re PR lto/48492 (LTO bootstrap failure in copy_constant)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR lto/48492
4         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5         DECL_IN_CONSTANT_POOL without RTL.
6
7 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
8             Ira Rosen  <ira.rosen@linaro.org>
9
10         PR target/48252
11         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12         to match neon_vzip/vuzp/vtrn_internal.
13         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
14         outputs explicitly dependent on both inputs.
15         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
16
17 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
18
19         PR tree-optimization/48616
20         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21         whether the shift is by scalar or vector based on whether all SLP
22         scalar stmts have the same rhs.
23
24 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
25
26         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
27         memory operands.
28
29 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
30
31         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
32         registers.
33
34 2011-04-17  Jan Hubicka  <jh@suse.cz>
35
36         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
37         * cgrpahunit.c (cgraph_finalize_function): Do not set
38         finalized_by_frontend.
39         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
40         finalized_by_frontend.
41
42 2011-04-17  Jan Hubicka  <jh@suse.cz>
43
44         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
45         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
46         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
47         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
48         method.
49         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
50         gimple-fold.c
51         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
52
53 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
54
55         PR lto/48538
56         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
57         is non-null before accessing it.
58         (input_cgraph): Remove trailing spaces.
59
60 2011-04-17  Revital Eres  <revital.eres@linaro.org>
61
62         * params.def (sms-min-sc): New param flag.
63         * modulo-sched.c (sms_schedule): Use it.
64         * doc/invoke.texi (sms-min-sc): Document it.
65
66 2011-04-17  Jan Hubicka  <jh@suse.cz>
67
68         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
69         present, also set gimple_call_set_cannot_inline.
70         * ipa-inline.c: Update toplevel comment.
71         (MAX_TIME): Remove.
72         (cgraph_clone_inlined_nodes): Fix linebreaks.
73         (cgraph_check_inline_limits): Restructure to ...
74         (caller_growth_limits): ... this one; be more tolerant
75         on growth in nested inline chains; add explanatory comment;
76         fix stack accounting thinko introduced by previous patch.
77         (cgraph_default_inline_p): Remove.
78         (report_inline_failed_reason): New function.
79         (can_inline_edge_p): New function.
80         (can_early_inline_edge_p): New function.
81         (leaf_node_p): Move upwards in file.
82         (want_early_inline_function_p): New function.
83         (want_inline_small_function_p): New function.
84         (want_inline_self_recursive_call_p): New function.
85         (cgraph_edge_badness): Rename to ...
86         (edge_badness) ... this one; fix linebreaks.
87         (update_edge_key): Update call of edge_baddness; add
88         detailed dump about queue updates.
89         (update_caller_keys): Use can_inline_edge_p and
90         want_inline_small_function_p.
91         (cgraph_decide_recursive_inlining): Rename to...
92         (recursive_inlining): Use can_inline_edge_p and
93         want_inline_self_recursive_call_p; simplify and
94         remove no longer valid FIXME.
95         (cgraph_set_inline_failed): Remove.
96         (add_new_edges_to_heap): Use can_inline_edge_p and
97         want_inline_small_function_p.
98         (cgraph_decide_inlining_of_small_functions): Rename to ...
99         (inline_small_functions): ... this one; cleanup; use
100         can/want predicates; cleanup debug ouput; work edges
101         till fibheap is exhausted and do not stop once unit
102         growth is reached; remove later loop processing remaining
103         edges.
104         (cgraph_flatten): Rename to ...
105         (flatten_function): ... this one; use can_inline_edge_p
106         and can_early_inline_edge_p predicates.
107         (cgraph_decide_inlining): Rename to ...
108         (ipa_inline): ... this one; remove unreachable nodes before
109         inlining functions called once; simplify the pass.
110         (cgraph_perform_always_inlining): Rename to ...
111         (inline_always_inline_functions): ... this one; use
112         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p
113         predicate
114         (cgraph_decide_inlining_incrementally): Rename to ...
115         (early_inline_small_functions): ... this one; simplify
116         using new predicates; cleanup; make dumps prettier.
117         (cgraph_early_inlining): Rename to ...
118         (early_inliner): newer inline regular functions into always-inlines;
119         fix updating of call stmt summaries.
120         (pass_early_inline): Update for new names.
121         (inline_transform): Fix formating.
122         (gate_cgraph_decide_inlining): Rename to ...
123         (pass_ipa_inline): ... this one.
124         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
125         * ipa-inline-analysis.c (dump_inline_summary): Update.
126         (compute_inline_parameters): Do not compute disregard_inline_limits;
127         look for mismatching arguments.
128         (estimate_growth): Fix handlig of non-trivial self recursion.
129         (inline_read_summary): Do not read info->disregard_inline_limits.
130         (inline_write_summary): Do not write info->disregard_inline_limits.
131         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
132         and move all checks into can_inline_edge_p predicate; re-enable code
133         comparing optimization levels.
134         (expand_call_inline): Do not test inline_forbidden_into_p.
135         * Makefile.in (ipa-inline.o): Update arguments.
136
137 2011-04-17  Revital Eres  <revital.eres@linaro.org>
138
139         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
140
141 2011-04-17  Revital Eres  <revital.eres@linaro.org>
142
143         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
144
145 2011-04-17  Michael Matz  <matz@suse.de>
146
147         PR tree-optimization/48622
148         PR lto/48645
149         * ipa-inline-analysis.c (inline_read_summary): Read size/time
150         in same order as they're written.
151
152 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
153
154         * config/i386/sse.md (sseunpackmode): New mode attribute.
155         (ssepackmode): Ditto.
156         (vec_pack_trunc_<mode>): Macroize expander from
157         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
158         (vec_unpacks_lo_<mode>): Macroize expander from
159         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
160         (vec_unpacks_hi_<mode>): Macroize expander from
161         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
162         (vec_unpacku_lo_<mode>): Macroize expander from
163         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
164         (vec_unpacku_hi_<mode>): Macroize expander from
165         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
166         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
167         ix86_expand_sse4_unpack.
168         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
169
170 2011-04-16  Jan Hubicka  <jh@suse.cz>
171
172         * cgraphbuild.c: Include ipa-inline.h.
173         (reset_inline_failed): Use initialize_inline_failed.
174         * cgraph.c: Include ipa-inline.h.
175         (cgraph_create_node_1): Do not initialize estimated_growth.
176         (initialize_inline_failed): More to ipa-inline-analysis.c
177         (dump_cgraph_node): Do not dump inline flags.
178         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
179         and disregard_inline_limits flags.
180         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
181         time, size, estimated_growth.
182         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
183         Update.
184         * cgraphunit.c (cgraph_decide_is_function_needed): Use
185         DECL_DISREGARD_INLINE_LIMITS.
186         (cgraph_analyze_function): Do not initialize
187         node->local.disregard_inline_limits.
188         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
189         inlinable, versionable and disregard_inline_limits.
190         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
191         cgraph_check_inline_limits, cgraph_default_inline_p,
192         cgraph_edge_badness, update_caller_keys, update_callee_keys,
193         add_new_edges_to_heap): Update.
194         (cgraph_decide_inlining_of_small_function): Update; set
195         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
196         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
197         cgraph_decide_inlining_incrementally): Update.
198         * ipa-inline.h (inline_summary): Add inlinable, versionable,
199         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
200         time, size and estimated_growth parameters.
201         (estimate_edge_growth): Update.
202         (initialize_inline_failed): Declare.
203         * ipa-split.c: Include ipa-inline.h
204         (execute_split_functions): Update.
205         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
206         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
207         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
208         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
209         estimated_growth to INT_MIN.
210         (inline_node_duplication_hook): Likewise.
211         (dump_inline_summary): Dump new fields.
212         (compute_inline_parameters): Update.
213         (estimate_edge_time, estimate_time_after_inlining,
214         estimate_size_after_inlining, estimate_growth, inline_read_summary,
215         inline_write_summary):
216         (initialize_inline_failed): Move here from cgraph.c.
217         * tree-sra.c: Include ipa-inline.h.
218         (ipa_sra_preliminary_function_checks): Update.
219         * Makefile.in: (cgraph.o, cgraphbuild.o): Add dependency on
220         ipa-inline.h
221
222 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
223
224         * config/i386/sse.md (V16): New mode iterator.
225         (VI1, VI8): Ditto.
226         (AVXMODEQI, AVXMODEDI): Remove.
227         (sse2, sse3): New mode attribute.
228         (mov<mode>): Use V16 mode iterator.
229         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
230         (push<mode>1): Use V16 mode iterator.
231         (movmisalign<mode>): Ditto.
232         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
233         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
234         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
235         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
236         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
237         avx_movdqu<avxmodesuffix>.
238         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
239         *avx_movdqu<avxmodesuffix>.
240         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
241         avx_lddqu<avxmodesuffix>.
242         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
243         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
244         avx_movnt<AVXMODEDI:mode>.
245         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
246         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
247
248 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
249
250         PR target/48629
251         * haifa-sched.c (prune_ready_list, schedule_block): Use
252         sched_pressure_p rather than flag_sched_pressure.
253
254 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
255
256         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
257         cgraph_get_node instead of cgraph_get_create_node.
258
259 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
260
261         * cfgexpand.c (expand_debug_expr): Use
262         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
263
264 2011-04-15  Michael Matz  <matz@suse.de>
265
266         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
267         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
268         * function.c (gimplify_parameters): Ditto.
269         * gimplify.c (gimplify_vla_decl): Ditto.
270
271         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
272         (gimple_call_set_alloca_for_var): New inline function.
273         (gimple_call_alloca_for_var_p): Ditto.
274         * gimple.c (gimple_build_call_from_tree): Remember
275         CALL_ALLOCA_FOR_VAR_P state.
276         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
277
278         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
279         calls if they were for VLA objects.
280
281 2011-04-15  Martin Jambor  <mjambor@suse.cz>
282
283         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
284         of ADR_EXPRs.
285
286 2011-04-15  Martin Jambor  <mjambor@suse.cz>
287
288         PR middle-end/48601
289         * tree-emutls.c (lower_emutls_function_body): Call
290         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
291         result is non-NULL.
292
293 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
294
295         * c-decl.c (detect_field_duplicates): Call
296         objc_detect_field_duplicates instead of objc_get_interface_ivars.
297
298 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
299
300         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
301         * gimple.c (gimple_asm_clobbers_memory_p): Define.
302         * ipa-pure-const.c (check_stmt): Call it.
303         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
304
305 2011-04-15  Richard Guenther  <rguenther@suse.de>
306
307         PR tree-optimization/48290
308         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
309         Properly decide inhibiting propagation based on the valueized
310         operand.  Do loop-closed SSA form preserving here ...
311         (init_copy_prop): ... not here.
312
313 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
314
315         PR target/48612
316         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
317         (*ieee_smax<mode>3): Likewise.
318
319 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
320
321         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
322         Replace match_operand with match_dup for the third operand in
323         these expanders.
324
325 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
326
327         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
328         to track processing of conditionals.  Update all callers.
329         (try_combine, simplify_if_then_else): Update.
330
331 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
332
333         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
334         -fsched-pressure.
335
336 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
337
338         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
339         instead of match_operand for operand 3.
340
341 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
342
343         * recog.h (insn_operand_data): Add an "allows_mem" field.
344         * genoutput.c (output_operand_data): Initialize it.
345         * optabs.c (maybe_legitimize_operand_same_code): New function.
346         (maybe_legitimize_operand): Use it when matching the original
347         op->value.
348
349 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
350
351         * gimplify.c: Fix issues in comments throughout.
352         (voidify_wrapper_expr): Fix long line.
353         (build_stack_save_restore): Likewise.
354         (gimplify_loop_expr): Likewise.
355         (gimplify_compound_lval): Likewise.
356         (gimplify_init_ctor_eval): Likewise.
357         (gimplify_modify_expr_rhs): Likewise.
358         (omp_notice_threadprivate_variable): Likewise.
359
360 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
361
362         * cfgexpand.c (expand_call_stmt): Convert the function type to the
363         original one if this is not a builtin function.
364
365 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
366
367         PR target/48605
368         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
369         offset it as needed based on top 2 bits in operands[3], change
370         MEM mode to SFmode and mask those 2 bits away from operands[3].
371
372 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
373
374         * c-parser.c (c_parser_objc_protocol_definition): Updated for
375         change from objc_declare_protocols() to objc_declare_protocol().
376
377 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
378
379         * config/i386/sse.md (sse4_1): New mode attribute.
380         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
381         avx_blend<ssemodesuffix><avxmodesuffix> and
382         sse4_1_blend<ssemodesuffix> using VF mode iterator.
383         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
384         avx_blendv<ssemodesuffix><avxmodesuffix> and
385         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
386         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
387         avx_dp<ssemodesuffix><avxmodesuffix> and
388         sse4_1_dp<ssemodesuffix> using VF mode iterator.
389         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
390         (sse4_1_packusdw): Merge with *avx_packusdw.
391         (sse4_1_pblendvb): Merge with *avx_pblendvb.
392         (sse4_1_pblendw): Merge with *avx_pblendw.
393         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
394         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
395         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
396         VF mode iterator.
397         (sse4_1_round<ssescalarmodesuffix>): Merge with
398         *avx_round<ssescalarmodesuffix>.
399         (aesenc): Merge with *avx_aesenc.
400         (aesenclast): Merge with *avx_aesenclast.
401         (aesdec): Merge with *avx_aesdec.
402         (aesdeclast): Merge with *avx_aesdeclast.
403         (pclmulqdq): Merge with *pclmulqdq.
404         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
405         New predicate.
406         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
407
408 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
409
410         PR middle-end/48608
411         * cfgexpand.c (get_decl_align_unit): Renamed to ...
412         (align_local_variable): This.  Update DECL_ALIGN.
413         (add_stack_var): Updated.
414         (expand_one_stack_var): Likewise.
415
416 2011-04-14  Richard Guenther  <rguenther@suse.de>
417
418         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
419         Remove.
420         (dse_initialize_block_local_data, dse_leave_block,
421         record_voperand_set, get_stmt_uid): Likewise.
422         (dse_possible_dead_store_p): Allow any kind of killing stmt.
423         (dse_optimize_stmt): Remove voperand set handling code.
424         Simplify and improve to handle any kind of killing stmt.
425         (dse_record_phi): Remove.
426         (dse_enter_block): Simplify.
427         (tree_ssa_dse): Likewise.
428         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
429
430 2011-04-14  Jan Hubicka  <jh@suse.cz>
431
432         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
433         * cgraph.h (struct inline_summary): Move to ipa-inline.h
434         (cgraph_local_info): Remove inline_summary.
435         * ipa-cp.c: Include ipa-inline.h.
436         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
437         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
438         accesor.
439         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
440         (input_overwrite_node): Do not set inline summary.
441         (input_node): Do not stream inline summary.
442         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
443         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
444         growth; we do not have inline parameters computed for that anyway.
445         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
446         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
447         (inline_summary_t): New type and VECtor.
448         (debug_inline_summary, dump_inline_summaries): Declare.
449         (inline_summary): Use VOCtor.
450         (estimate_edge_growth): Kill hack computing call stmt size directly.
451         * lto-section-in.c (lto_section_name): Add inline section.
452         * ipa-inline-analysis.c: Include lto-streamer.h
453         (node_removal_hook_holder, node_duplication_hook_holder): New holders
454         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
455         (inline_summary_vec): Define.
456         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
457         dump_inline_summaries): New functions.
458         (estimate_function_body_sizes): Properly compute size/time of outgoing
459         calls.
460         (compute_inline_parameters): Alloc inline_summary; do not compute
461         size/time of incomming calls.
462         (estimate_edge_time): Avoid missing time summary hack.
463         (inline_read_summary): Read inline summary info.
464         (inline_write_summary): Write inline summary info.
465         (inline_free_summary): Free all hooks and inline summary vector.
466         * lto-streamer.h: Add LTO_section_inline_summary section.
467         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
468         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
469
470 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
471
472         * tree-vectorizer.h (vect_strided_store_supported): Add a
473         HOST_WIDE_INT argument.
474         (vect_strided_load_supported): Likewise.
475         (vect_permute_store_chain): Return void.
476         (vect_transform_strided_load): Likewise.
477         (vect_permute_load_chain): Delete.
478         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
479         count argument.  Check that the count is a power of two.
480         (vect_strided_load_supported): Likewise.
481         (vect_permute_store_chain): Return void.  Update after above changes.
482         Assert that the access is supported.
483         (vect_permute_load_chain): Likewise.
484         (vect_transform_strided_load): Return void.
485         * tree-vect-stmts.c (vectorizable_store): Update calls after
486         above interface changes.
487         (vectorizable_load): Likewise.
488         (vect_analyze_stmt): Don't check for strided powers of two here.
489
490 2011-04-14  Richard Guenther  <rguenther@suse.de>
491
492         PR tree-optimization/48590
493         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
494         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
495         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
496         BUILT_IN_STACK_SAVE.
497         * tree-ssa-dce.c (propagate_necessity): Handle
498         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
499
500 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
501
502         * c-parser.c (c_parser_objc_class_declaration): Updated call to
503         objc_declare_class.
504
505 2011-04-14  Richard Guenther  <rguenther@suse.de>
506
507         * tree.h (get_object_alignment_1): Declare.
508         * builtins.c (get_object_alignment_1): Split out worker from ...
509         (get_object_alignment): ... here.
510         * fold-const.c (get_pointer_modulus_and_residue): Use
511         get_object_alignment_1.
512
513 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
514
515         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
516         type parameter.
517         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
518         parameter.  Generalise code to handle arrays as well as vectors.
519         (vect_setup_realignment): Update accordingly.
520         * tree-vect-stmts.c (vectorizable_store): Likewise.
521         (vectorizable_load): Likewise.
522
523 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
524
525         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
526         within the per-copy loop.
527
528 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
529
530         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
531         in the dump file.
532
533 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
534
535         * doc/options.texi (Negative): Explicitly mention that the
536         Negative chain must be circular.
537
538 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
539
540         * function.h (block_chainon): Declare.
541         * function.c (block_chainon): Define.
542
543 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
544             Eric Weddington  <eric.weddington@atmel.com>
545             Georg-Johann Lay <avr@gjlay.de>
546
547         * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
548         New Includes
549         (avr_init_builtins, avr_expand_builtin,
550         avr_expand_delay_cycles, avr_expand_unop_builtin,
551         avr_expand_binop_builtin ): New functions.
552         (avr_builtin_id): New enum
553         (struct avr_builtin_description): New struct
554         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
555         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
556
557         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
558         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
559         UNSPECV_DELAY_CYCLES): new enumeration values
560         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
561         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
562         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
563         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
564         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
565         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
566         "fmulsu"): New insns
567
568         * config/avr/avr-c.c: fix line endings
569         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
570         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
571         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
572         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
573         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
574
575         * doc/extend.texi (AVR Built-in Functions): New node
576         (Target Builtins): Add documentation of AVR
577         built-in functions.
578
579 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
580
581         PR target/44643
582         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
583         alone. Error if non-const data has attribute progmem.
584
585 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
586
587         * tree.h (struct tree_constructor): Include tree_typed instead of
588         tree_common.
589         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
590         TS_TYPED instead of TS_COMMON.
591
592 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
593
594         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
595         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
596         (sse2_psadbw): Merge with *avx_psadbw.
597         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
598         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
599         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
600         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
601         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
602         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
603         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
604         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
605         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
606         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
607         (ssse3_palignrti): Merge with *avx_palignrti.
608
609 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
610
611         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
612         * tree-ssanames.c (fini_ssanames): VEC_free it.
613         (make_ssa_name_fn): Update for VECness of free_ssanames.
614         (release_ssa_name, release_dead_ssa_names): Likewise.
615         * tree.h (struct tree_ssa_name): Include tree_typed instead of
616         tree_common.
617         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
618         TS_TYPED instead of TS_COMMON.
619
620 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
621
622         * postreload-gcse.c (gcse_after_reload_main): Add calls to
623         statistics_counter_event.
624         * tree-ssa-copyrename.c (stats): Define.
625         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
626         statistics_counter_event.
627         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
628         (bswap_stats, widen_mul_stats): Define.
629         (insert_reciprocals): Increment rdivs_inserted.
630         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
631         rfuncs_inserted.  Add calls to statistics_counter_event.
632         (execute_cse_sincos_1): Increment inserted.
633         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
634         statistics_counter_event.
635         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
636         of bswap_stats.  Add calls to statistics_counter_event.
637         (convert_mult_to_widen): Increment widen_mults_inserted.
638         (convert_plusminus_to_widen): Increment maccs_inserted.
639         (convert_mult_to_fma): Increment fmas_inserted.
640         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
641         calls to statistics_counter_event.
642
643 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
644
645         PR rtl-optimization/48455
646         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
647         `temp_costs->mem_cost'.
648
649 2011-04-13  Jan Hubicka  <jh@suse.cz>
650
651         * ipa-inline.h: New file.
652         * ipa-inline-analysis.c: New file. Broken out of ...
653         * ipa-inline.c: ... this file; update toplevel comment;
654         include ipa-inline.h
655         (inline_summary): Move to ipa-inline.h
656         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
657         ipa-inline-analysis.c.
658         (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
659         move to ipa-inline-analysis.c
660         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
661         to estimate_edge_growth.
662         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
663         rename to estimate_size_after_inlining.
664         (cgraph_mark_inline_edge): Update for new naming convention.
665         (cgraph_check_inline_limits): Likewise.
666         (cgraph_edge_badness): Likewise.
667         (cgraph_decide_recursive_inlining): Likewise.
668         (cgraph_decide_inlining_of_small_functions): Likewise.
669         (cgraph_decide_inlining_incrementally): Likewise.
670         (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
671         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
672         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
673         (compute_inline_parameters): Likewise.
674         (compute_inline_parameters_for_current): Likewise.
675         (pass_inline_parameters): Likewise.
676         (inline_indirect_intraprocedural_analysis): Likewise.
677         (analyze_function): Rename to inline_analyze_function; likewise.
678         (add_new_function): Move to ipa-inline-analysis.c.
679         (inline_generate_summary): Likewise.
680         (inline_read_summary): Likewise.
681         (inline_write_summary): Likewise.
682         * Makefile.in (ipa-inline-analysis.c): New file.
683
684 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
685
686         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
687         * configure: Regenerate.
688
689 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
690
691         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
692         instead of tree_common.
693         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
694         Likewise.
695         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
696         TS_TYPED rather than TS_COMMON.
697         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
698
699 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
700
701         PR target/45263
702         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
703         r20 around calls of __tablejump_elpm__
704
705 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
706
707         PR middle-end/48591
708         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
709         NULL.
710         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
711
712 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
713
714         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
715         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
716         (cfi_vec): New typedef.
717         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
718         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
719         (cie_cfi_vec): New static variable.
720         (cie_cfi_head): Delete.
721         (add_cfi): Accept a cfi_vec * as first argument. All callers and
722         declaration changed. Use vector rather than list operations.
723         (new_cfi): Don't initialize the dw_cfi_next field.
724         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
725         rather than list operations.
726         (lookup_cfa): Use vector rather than list operations.
727         (output_cfis): New argument upto. Accept a cfi_vec rather than
728         a dw_cfi_ref list head as argument. All callers changed.
729         Iterate over the vector using upto as a maximum index.
730         (output_all_cfis): New static function.
731         (output_fde): Use vector rather than list operations. Use the
732         new upto argument for output_cfis rather than manipulating a
733         list.
734         (dwarf2out_begin_prologue): Change initializations to match
735         new struct members.
736         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
737         from the vector length rather than searching for the end of a list.
738         Use output_all_cfis.
739         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
740
741 2011-04-13  Nick Clifton  <nickc@redhat.com>
742
743         * config/rx/rx.md (movmemsi): Do not use this pattern when
744         volatile pointers are involved.
745
746 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
747
748         * config/i386/sse.md (pinsrbits): Remove.
749         (sse2_packsswb): Merge with *avx_packsswb.
750         (sse2_packssdw): Merge with *avx_packssdw.
751         (sse2_packuswb): Merge with *avx_packuswb.
752         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
753         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
754         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
755         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
756         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
757         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
758         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
759         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
760         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
761         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
762         (sse2_loadld): Merge with *avx_loadld.
763         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
764         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
765         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
766         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
767         (vec_concatv2di): Merge with *vec_concatv2di_avx.
768
769 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
770
771         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
772         calling TREE_CHAIN.
773         * print-tree.c (print_node): Likewise.
774         * tree-inline.c (copy_tree_r): Likewise.
775         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
776         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
777         instead of TS_COMMON.
778         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
779         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
780         (copy_node_stat): Zero TREE_CHAIN only if necessary.
781         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
782         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
783         ...and these...
784         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
785         * tree.h: ...here.
786         (TREE_CHAIN): Check for a TS_COMMON structure.
787         (TREE_TYPE): Check for a TS_TYPED structure.
788
789 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
790
791         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
792         cgraph_get_create_node instead of cgraph_node.
793
794 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
795
796         * c-parser.c (c_parser_initelt): Updated call to
797         objc_build_message_expr.
798         (c_parser_postfix_expression): Likewise.
799
800 2011-04-12  Kai Tietz  <ktietz@redhat.com>
801
802         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
803         MASK_MS_BITFIELD_LAYOUT bit.
804
805 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
806
807         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
808         assert it is always true.
809         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
810         moves.
811
812 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
813
814         * c-parser.c (c_lex_one_token): Rewritten conditional used when
815         compiling Objective-C to be more efficient.
816
817 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
818
819         * opts-common.c (decode_cmdline_options_to_array): Remove variable
820         argv_copied.
821
822 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
823
824         * recog.h, genoutput.c, optabs.c: Revert last patch.
825
826 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
827
828         PR target/48090
829         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
830
831 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
832
833         * recog.h (insn_operand_data): Add an "allows_mem" field.
834         * genoutput.c (output_operand_data): Initialize it.
835         * optabs.c (maybe_legitimize_operand_same_code): New function.
836         (maybe_legitimize_operand): Use it when matching the original
837         op->value.
838
839 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
840
841         * genpreds.c (process_define_predicate): Move most processing
842         to gensupport.c.  Continue to validate the expression.
843         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
844         (process_define_predicate): Move processing to gensupport.c.
845         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
846         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
847         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
848         argument.
849         (valid_predicate_name_p): New function, split out from old
850         genpreds.c:process_define_predicate.
851         (process_define_predicate): New function, combining code from
852         old genpreds.c and genrecog.c functions.
853         (process_rtx): Call it for DEFINE_PREDICATE and
854         DEFINE_SPECIAL_PREDICATE.
855
856 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
857
858         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
859         size of a '%A' memory reference.
860         (T_DREG, T_QREG): New neon_builtin_type_bits.
861         (arm_init_neon_builtins): Assert that the load and store operands
862         are neon_struct_operands.
863         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
864         (NEON_ARG_MEMORY): New builtin_arg.
865         (neon_dereference_pointer): New function.
866         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
867         Handle NEON_ARG_MEMORY.
868         (arm_expand_neon_builtin): Update after above interface changes.
869         Use NEON_ARG_MEMORY for loads and stores.
870         * config/arm/predicates.md (neon_struct_operand): New predicate.
871         * config/arm/iterators.md (V_two_elem): Tweak formatting.
872         (V_three_elem): Use BLKmode for accesses that have no associated mode.
873         (V_four_elem): Tweak formatting.
874         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
875         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
876         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
877         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
878         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
879         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
880         (neon_vst4<mode>): Replace pointer operand with a memory operand.
881         Use %A in the output template.
882         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
883         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
884         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
885         the width of the memory access.  Remove post-increment.
886         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
887
888 2011-04-12  Nick Clifton  <nickc@redhat.com>
889
890         * config/v850/v850.c (expand_prologue): Do not use the CALLT
891         instruction for interrupt handlers if the target is the basic V850
892         architecture.
893         (expand_epilogue): Likewise.
894
895 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
896
897         PR rtl-optimization/48549
898         * combine.c (propagate_for_debug): Also stop after BB_END of
899         this_basic_block.  Process LAST and just stop processing after it.
900         (combine_instructions): If last_combined_insn has been deleted,
901         set last_combined_insn to its PREV_INSN.
902
903 2011-04-12  Richard Guenther  <rguenther@suse.de>
904
905         PR tree-optimization/46076
906         * gimple.h (struct gimple_statement_call): Add fntype field.
907         (gimple_call_fntype): Adjust.
908         (gimple_call_set_fntype): New function.
909         * gimple.c (gimple_build_call_1): Set the call function type.
910         * gimplify.c (gimplify_call_expr): Preserve the function
911         type the frontend used for the call.
912         (gimplify_modify_expr): Likewise.
913         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
914         function type.
915         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
916         function type.
917         * tree-ssa.c (useless_type_conversion_p): Function pointer
918         conversions are useless.
919
920 2011-04-12  Martin Jambor  <mjambor@suse.cz>
921
922         * cgraph.h (cgraph_node): Remove function declaration.
923         (cgraph_create_node): Declare.
924         (cgraph_get_create_node): Likewise.
925         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
926         Updated all callers.
927         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
928         the decl does not already exist.  Call cgraph_get_create_node instead
929         of cgraph_node.
930         (cgraph_get_create_node): New function.
931         (cgraph_same_body_alias): Update comment.
932         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
933         assert it does not return NULL.
934         (cgraph_update_edges_for_call_stmt): Likewise.
935         (cgraph_clone_edge): Likewise.
936         (cgraph_create_virtual_clone): Likewise.
937         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
938         instead of cgraph_node.
939         (cgraph_add_new_function): Call cgraph_create_node or
940         cgraph_get_create_node instead of cgraph_node.
941         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
942         instead of cgraph_node.
943         (record_eh_tables): Likewise.
944         (mark_address): Likewise.
945         (mark_load): Likewise.
946         (build_cgraph_edges): Call cgraph_get_create_node instead
947         of cgraph_node.
948         (rebuild_cgraph_edges): Likewise.
949         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
950         instead of cgraph_node.
951         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
952         cgraph_node.
953         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
954         cgraph_create_node instead of cgraph_node.
955         * c-decl.c (finish_function): Call cgraph_get_create_node instead
956         of cgraph_node.
957         * lto-cgraph.c (input_node): Likewise.
958         * lto-streamer-in.c (input_function): Likewise.
959         * varasm.c (mark_decl_referenced): Likewise.
960         (assemble_alias): Likewise.
961
962 2011-04-12  Martin Jambor  <mjambor@suse.cz>
963
964         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
965         instead of cgraph_node and assert it does not return NULL.
966         * lto-streamer-in.c (lto_read_body): Likewise.
967         * omp-low.c (new_omp_context): Likewise.
968         (create_task_copyfn): Likewise.
969         * tree-emutls.c (lower_emutls_function_body): Likewise.
970         * matrix-reorg.c (transform_allocation_sites): Likewise.
971
972 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
973
974         PR c/48552
975         * c-typeck.c (build_asm_expr): Error out on attempts to use
976         void type outputs or inputs for constraints that allow reg or
977         don't allow memory.
978
979 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
980             Richard Earnshaw  <rearnsha@arm.com>
981
982         PR target/48250
983         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
984         to use sign-magnitude offsets. Reject unsupported unaligned
985         cases. Add detailed description in comments.
986         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
987         condition from TARGET_32BIT to TARGET_ARM.
988
989 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
990
991         * tree.h (struct typed_tree): New.
992         (struct tree_common): Include it instead of tree_base.
993         (TREE_TYPE): Update for new location of type field.
994         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
995         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
996         (union tree_node): Add typed field.
997         * treestruct.def (TS_TYPED): New.
998         * lto-streamer.c (check_handled_ts_structures): Handle it.
999         * tree.c (MARK_TS_TYPED): New macro.
1000         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1001
1002 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1003
1004         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1005         (force_nonfallthru): Do not alter the loop nest if no basic block
1006         was created.
1007
1008 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1009
1010         * config/i386/sse.md (VI): New mode iterator.
1011         (SSEMODEI): Remove.
1012         (AVX256MODEI): Ditto.
1013         (AVXMODEF4P): Ditto.
1014         (avxvecpsmode): Ditto.
1015         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1016         (sse2_andnot<mode>3): New expander.
1017         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1018         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1019         (<any_logic:code><mode>3): Use VI mode iterator.
1020         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1021         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1022         (*andnottf3): Handle AVX three-operand constraints.
1023         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1024
1025 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1026             Robert Millan  <rmh@gnu.org>
1027
1028         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1029         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1030         GNU_USER_DYNAMIC_LINKER64): Define.
1031         (REG_NAME): Don't undefine.
1032         (MD_UNWIND_SUPPORT): Undefine.
1033         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1034         (REG_NAME): Don't undefine.
1035         (MD_UNWIND_SUPPORT): Undefine.
1036         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1037
1038 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1039
1040         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1041         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1042
1043 2011-04-11  Xinliang David Li  <davidxl@google.com>
1044
1045         * value-profile.c (check_ic_target): New function.
1046         (gimple_ic_transform): Sanity check indirect call target.
1047         * gimple-low.c (gimple_check_call_args): Interface change.
1048         (gimple_check_call_matching_types): New function.
1049         * tree-inline.c (tree_can_inline_p): Call new function.
1050
1051 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1052
1053         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1054         tree-pretty-print.h & realmpfr.h.
1055
1056 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1057
1058         PR middle-end/48464
1059         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1060         (setup_allocno_and_important_classes): Ditto.
1061
1062 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1063
1064         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1065         GNU_USER_DYNAMIC_LINKER.
1066         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1067         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1068         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1069         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1070         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1071         GNU_USER_TARGET_OS_CPP_BUILTINS.
1072         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1073         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1074         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1075         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1076         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1077         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1078         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1079         GNU_USER_TARGET_OS_CPP_BUILTINS.
1080         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1081         GNU_USER_DYNAMIC_LINKER.
1082         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1083         GNU_USER_TARGET_OS_CPP_BUILTINS.
1084         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1085         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1086         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1087         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1088         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1089         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1090         GNU_USER_DYNAMIC_LINKER64): Remove.
1091         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1092         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1093         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1094         GNU_USER_DYNAMIC_LINKER.
1095         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1096         GNU_USER_TARGET_OS_CPP_BUILTINS.
1097         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1098         GNU_USER_TARGET_OS_CPP_BUILTINS.
1099         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1100         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1101         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1102         GNU_USER_TARGET_OS_CPP_BUILTINS.
1103         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1104         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1105         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1106         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1107         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1108         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1109         GNU_USER_DYNAMIC_LINKER.
1110         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1111         GNU_USER_TARGET_OS_CPP_BUILTINS.
1112         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1113         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1114         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1115         GNU_USER_DYNAMIC_LINKER.
1116         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1117         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1118         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1119         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1120         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1121         GNU_USER_DYNAMIC_LINKER.
1122         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1123         GNU_USER_DYNAMIC_LINKERN32.
1124         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1125         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1126         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1127         GNU_USER_DYNAMIC_LINKER32.
1128         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1129         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1130         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1131         GNU_USER_DYNAMIC_LINKER.
1132         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1133         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1134         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1135         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1136         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1137         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1138         GNU_USER_DYNAMIC_LINKER32.
1139         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1140         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1141         GNU_USER_DYNAMIC_LINKER.
1142         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1143         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1144         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1145         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1146         GNU_USER_DYNAMIC_LINKER64.
1147         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1148         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1149         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1150         GNU_USER_DYNAMIC_LINKER.
1151         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1152         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1153         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1154         GNU_USER_DYNAMIC_LINKER.
1155         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1157         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1158         GNU_USER_DYNAMIC_LINKER32.
1159         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1160         GNU_USER_DYNAMIC_LINKER64.
1161         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1162         GNU_USER_DYNAMIC_LINKER64.
1163         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1164         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1165         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1166         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1167         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1168
1169 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1172         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1173         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1174         GNU_USER_DYNAMIC_LINKER.
1175         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1176         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1177         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1178         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1179         GNU_USER_DYNAMIC_LINKER64.
1180         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1181         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1182         GNU_USER_LINK_EMULATION.
1183         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1184         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1185         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1186         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1187         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1188         CPP_SPEC, CC1_SPEC): Remove.
1189         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1190         (GNU_USER_DYNAMIC_LINKER): Define.
1191         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1192         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1193         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1194         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1195         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1196         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1197         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1198         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1199         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1200         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1201         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1202         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1203         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1204         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1205         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1206         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1207         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1208         GNU_USER_DYNAMIC_LINKER.
1209         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1210         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1211         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1212         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1213         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1214         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1215         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1216         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1217         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1218         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1219
1220 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1221
1222         PR target/9601
1223         PR target/11772
1224         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1225         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1226         comment.
1227         (ix86_is_msabi_thiscall): Removed.
1228         (ix86_is_type_thiscall): Likewise.
1229         (ix86_get_callcvt): New function.
1230         (ix86_comp_type_attributes): Simplify check.
1231         (ix86_function_regparm): Use ix86_get_callcvt for calling
1232         convention attribute checks.
1233         (ix86_return_pops_args): Likewise.
1234         (ix86_static_chain): Likewise.
1235         (x86_this_parameter): Likewise.
1236         (x86_output_mi_thunk): Likewise.
1237         (ix86_function_type_abi): Optimize check for types without attributes.
1238         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1239         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1240         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1241         by flag-values.
1242         (IX86_BASE_CALLCVT): Helper macro.
1243         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1244         Use ix86_get_callcvt for calling convention attribute checks and avoid
1245         symbol-decoration for stdcall in TARGET_RTD case.
1246         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1247         Likewise.
1248         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1249         for declaration.
1250
1251 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1252
1253         * config/i386/sse.md (VI_128): New mode iterator.
1254         (VI12_128): Rename from SSEMODE12.
1255         (VI14_128): Rename from SSEMODE14.
1256         (VI124_128): New mode iterator.
1257         (VI24_128): Rename from SSEMODE248.
1258         (VI248_128): Rename from SSEMODE248.
1259         (SSEMODE124C8): Remove.
1260         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1261         (*sse2_<plusminus_insn><mode>3): Merge with
1262         *avx_<plusminus_insn><mode>3.
1263         (*mulv8hi3): Merge with *avx_mulv8hi3.
1264         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1265         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1266         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1267         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1268         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1269         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1270         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1271         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1272         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1273         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1274         (*<smaxmin:code>v8hi3): Ditto.
1275         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1276         (*<smaxmin:code>v16qi3): Ditto.
1277         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1278         (*sse2_eq<mode>3): Ditto.
1279         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1280         (*sse2_gt<mode>3): Ditto.
1281         (vcondv2di): Split out of vcond<mode>.
1282         (vconduv2di): Split out of vcondu<mode>.
1283
1284 2011-04-11  Richard Guenther  <rguenther@suse.de>
1285
1286         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1287         before calling tree_low_cst.
1288
1289 2011-04-11  Richard Guenther  <rguenther@suse.de>
1290
1291         * stor-layout.c (layout_type): Compute all array index size operations
1292         in the original type.
1293         (initialize_sizetypes): Add comment.
1294         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1295
1296 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1297
1298         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1299
1300 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1301
1302         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1303         of cgraph_node, handle NULL return value.
1304         (cgraph_global_info): Likewise.
1305         (cgraph_rtl_info): Likewise.
1306         * tree-inline.c (estimate_num_insns): Likewise.
1307         * gimplify.c (unshare_body): Likewise.
1308         (unvisit_body): Likewise.
1309         (gimplify_body): Likewise.
1310         * predict.c (optimize_function_for_size_p): Likewise.
1311         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1312         (call_may_clobber_ref_p_1): Likewise.
1313         * varasm.c (function_section_1): Likewise.
1314         (assemble_start_function): Likewise.
1315
1316 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1317
1318         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1319         of cgraph_node.
1320         * final.c (rest_of_clean_state): Likewise.
1321         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1322         * passes.c (pass_init_dump_file): Likewise.
1323         (execute_all_ipa_transforms): Likewise.
1324         (function_called_by_processed_nodes_p): Likewise.
1325         * predict.c (maybe_hot_frequency_p): Likewise.
1326         (probably_never_executed_bb_p): Likewise.
1327         (compute_function_frequency): Likewise.
1328         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1329         (unnest_nesting_tree_1): Likewise.
1330         (lower_nested_functions): Likewise.
1331         * tree-optimize.c (execute_fixup_cfg): Likewise.
1332         (tree_rest_of_compilation): Likewise.
1333         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1334         * tree-sra.c (ipa_early_sra): Likewise.
1335         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1336         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1337         * ipa.c (record_cdtor_fn): Likewise.
1338         * ipa-inline.c (cgraph_early_inlining): Likewise.
1339         (compute_inline_parameters_for_current): Likewise.
1340         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1341         * ipa-pure-const.c (local_pure_const): Likewise.
1342         * ipa-split.c (split_function): Likewise.
1343         (execute_split_functions): Likewise.
1344         * cgraphbuild.c (build_cgraph_edges): Likewise.
1345         (rebuild_cgraph_edges): Likewise.
1346         (cgraph_rebuild_references): Likewise.
1347         (remove_cgraph_callee_edges): Likewise.
1348         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1349         (verify_cgraph_node): Likewise.
1350         (cgraph_analyze_functions): Likewise.
1351         (cgraph_preserve_function_body_p): Likewise.
1352         (save_inline_function_body): Likewise.
1353         (save_inline_function_body): Likewise.
1354         * tree-inline.c (copy_bb): Likewise.
1355         (optimize_inline_calls): Likewise.
1356
1357 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1358
1359         PR tree-optimization/48195
1360         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1361         ipa_check_create_edge_args.
1362         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1363         ipa_check_create_edge_args.
1364         * ipa-inline.c (inline_generate_summary): Do not call
1365         ipa_check_create_node_params and ipa_check_create_edge_args.
1366         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1367         ipa_check_create_edge_args.
1368
1369 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1370
1371         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1372         instead of loop.
1373         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1374         * function.c (record_hard_reg_sets): Likewise.
1375         * ira.c (compute_regs_asm_clobbered): Likewise.
1376         * sched-deps.c (sched_analyze_1): Likewise.
1377         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1378
1379 2011-04-09  Xinliang David Li  <davidxl@google.com>
1380
1381         PR tree-optimization/PR48484
1382         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1383         has_valid_pred lazily
1384
1385 2011-04-09  Duncan Sands  <baldrick@free.fr>
1386
1387         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1388
1389 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1390
1391         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1392         cost of I0 to zero at the end, if any.
1393
1394 2011-04-08  Xinliang David Li  <davidxl@google.com>
1395
1396         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1397         to insane profile data.
1398
1399 2011-04-08  Xinliang David Li  <davidxl@google.com>
1400
1401         * final.c (dump_basic_block_info): New function.
1402         (final): Dump basic block.
1403         (final_scan_insn): Remove old dump.
1404
1405 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1406
1407         PR target/47829
1408         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1409         crtbegin/crtend.
1410
1411 2011-04-08  Michael Matz  <matz@suse.de>
1412
1413         PR middle-end/48389
1414         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1415         functions.
1416         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1417         * rtl.h (rebuild_jump_labels_chain): Declare.
1418         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1419         insns inserted on edges.
1420
1421 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1422
1423         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1424         * config/arm/arm-arches.def: New.
1425         * config/arm/arm-opts.h: New.
1426         * config/arm/genopt.sh: New.
1427         * config/arm/arm-tables.opt: New (generated).
1428         * config/arm/arm.c (arm_handle_option, arm_target_help,
1429         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1430         (all_architectures): Get most table contents from arm-arches.def.
1431         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1432         arm_selected_tune here.
1433         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1434         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1435         (march=, mcpu=, mtune=): Use Enum and Var.
1436         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1437         (arm.o): Update dependencies.
1438
1439 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1440
1441         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1442         of header_file.
1443         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1444         (write_typed_alloc_defns): Likewise.
1445         (main): Calls write_typed_alloc_defns with output_header.
1446
1447 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1448
1449         PR inline-asm/48435
1450         * ira-color.c (setup_profitable_hard_regs): Add comments.
1451         Don't take prohibited hard regs into account.
1452         (setup_conflict_profitable_regs): Rename to
1453         get_conflict_profitable_regs.
1454         (check_hard_reg_p): Check prohibited hard regs.
1455
1456 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1457
1458         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1459         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1460         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1461
1462 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1463
1464         PR target/48366
1465         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1466         move from floating point to shift amount register .
1467         (emit_move_sequence): Remove secondary reload support for floating
1468         point to shift amount amount register copies.
1469         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1470         amount register copies.
1471         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1472         register, return false if mode isn't a scalar integer mode.
1473         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1474
1475 2011-04-08  Richard Guenther  <rguenther@suse.de>
1476
1477         * gimple.c (gimple_call_flags): Remove kludge.
1478
1479 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1480
1481         * sel-sched.c (sel_region_init): Move call to
1482         sel_setup_region_sched_flags after setup_current_loop_nest.
1483
1484 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1485
1486         PR rtl-optimization/48272
1487         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1488         init_insn_reg_pressure_info.  Adjust a caller.
1489         * sched-int.h (init_insn_reg_pressure_info): Declare.
1490         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1491         when sched-pressure is enabled.
1492
1493 2011-04-08  Richard Guenther  <rguenther@suse.de>
1494
1495         * gimple.c (gimple_set_modified): Do not queue calls to
1496         MODIFIED_NORETURN_CALLS here ...
1497         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1498
1499 2011-04-08  Richard Guenther  <rguenther@suse.de>
1500
1501         PR lto/48467
1502         * toplev.c (lang_dependent_init): Do not open asm_out_file
1503         in WPA mode, nor perform debug machinery initialization.
1504         (finalize): Do not unlink asm_out_file in WPA mode.
1505
1506 2011-04-08  Richard Guenther  <rguenther@suse.de>
1507
1508         * gimple.h (gimple_call_fntype): New function.
1509         (gimple_call_return_type): Use it.
1510         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1511         * gimple-low.c (gimple_check_call_args): Likewise.
1512         * gimple.c (gimple_call_flags): Likewise.
1513         (gimple_call_arg_flags): Likewise.
1514         (gimple_call_return_flags): Likewise.
1515         * tree-cfg.c (verify_gimple_call): Likewise.
1516         (do_warn_unused_result): Likewise.
1517         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1518         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1519
1520 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1521
1522         PR rtl-optimization/48235
1523         * sel-sched.c (code_motion_process_successors): Recompute the last
1524         insn in basic block if control flow changed.
1525         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1526         Update condition for ilist_remove.
1527
1528 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1529
1530         PR rtl-optimization/48302
1531         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1532         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1533         it to record added preheader blocks.
1534         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1535         on to sel_add_loop_preheaders.
1536         (sel_region_init): Move call to setup_current_loop_nest after
1537         sel_init_bbs.
1538
1539 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1540
1541         PR target/48273
1542         * cfgloop.h (loop_has_exit_edges): New helper.
1543         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1544         non-clonable.
1545         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1546         that have no exit edges.
1547
1548 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1549
1550         PR rtl-optimization/48442
1551         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1552         all callers.  Adjust assert.
1553
1554 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1555
1556         PR tree-optimization/48377
1557         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1558         is_packed to true even for types with smaller TYPE_ALIGN than
1559         TYPE_SIZE.
1560
1561 2011-04-08  Richard Guenther  <rguenther@suse.de>
1562
1563         PR bootstrap/48513
1564         * doc/tm.texi: Re-generate.
1565
1566 2011-04-08  Wei Guozhi  <carrot@google.com>
1567
1568         PR target/47855
1569         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1570         * config/arm/arm.c (arm_attr_length_push_multi): New function.
1571         * config/arm/arm.md (*push_multi): Change the length computation to
1572         call a C function.
1573
1574 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
1575
1576         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1577         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1578         * doc/tm.texi: Regenerate.
1579         * system.h (ASM_OUTPUT_BSS): Poison.
1580         * varasm.c (asm_output_bss): Remove function.
1581         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1582
1583         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1584         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1585         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1586         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1587         Likewise.
1588         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1589         Likewise.
1590         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1591         Likewise.
1592         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1593
1594 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1597         EnumValue lines.
1598
1599 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1600
1601         * config/m68k/m68k.c (m68k_handle_option): Don't handle
1602         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1603         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1604         OPT_mcpu32.
1605         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1606         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1607         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1608         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1609         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1610         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1611         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1612         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1613         options.  Don't map other m68k options manually.  Don't handle
1614         old-style options as canonical.
1615         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1616         * doc/install.texi (m68k-*-*): Document binutils version requirement.
1617
1618 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1619
1620         * basic-block.h (force_nonfallthru): Move to...
1621         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1622         (force_nonfallthru): ...here.
1623         * cfghooks.c (force_nonfallthru): New function.
1624         * cfgrtl.c (force_nonfallthru): Rename into...
1625         (rtl_force_nonfallthru): ...this.
1626         (commit_one_edge_insertion): Do not set AUX field.
1627         (commit_edge_insertions): Do not discover new basic blocks.
1628         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1629         (cfg_layout_rtl_cfg_hooks): Likewise.
1630         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1631         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
1632         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1633
1634 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
1635
1636         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1637         Remove macros.
1638
1639 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
1640
1641         * config/i386/sse.md: Update copyright year.
1642         (avxcvtvecmode): Remove.
1643         (sse_movhlps): Merge with *avx_movhlps.
1644         (sse_movlhps): Merge with *avx_movlhps.
1645         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1646         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1647         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1648         (sse_loadhps): Merge with *avx_loadhps.
1649         (sse_storelps): Merge with *avx_storelps.
1650         (sse_loadlps): Merge with *avx_loadlps.
1651         (sse_movss): Merge with *avx_movss.
1652         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1653         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1654         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1655         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1656         (vec_set<mode>_0): Ditto.
1657         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1658         (sse4_1_insertps): Merge with *avx_insertps.
1659         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1660         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1661         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1662         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1663         (sse2_storehpd): Merge with *avx_storehpd.
1664         (sse2_loadhpd): Merge with *avx_loadhpd.
1665         (sse2_loadlpd): Merge with *avx_loadlpd.
1666         (sse2_movsd): Merge with *avx_movsd.
1667         (*vec_concatv2df): Merge with *vec_concatv2df.
1668
1669 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1670
1671         PR debug/48343
1672         * combine.c (combine_instructions): Add last_combined_insn,
1673         update it if insn is after it, pass it to all try_combine calls.
1674         (try_combine): Add last_combined_insn parameter, pass it instead of
1675         i3 to propagate_for_debug.
1676
1677 2011-04-07  Nick Clifton  <nickc@redhat.com>
1678
1679         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1680         to handle MDR <-> data register transfers.
1681         (movhi_internal): Likewise.
1682
1683 2011-04-07  Alan Modra  <amodra@gmail.com>
1684
1685         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1686         previous stack info.
1687
1688 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1689
1690         PR target/43920
1691         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1692         flow_find_cross_jump.  Swap variables to implement backward replacement.
1693         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1694
1695 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1696
1697         PR target/43920
1698         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1699         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1700         and bb2.
1701         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1702         src1 or src2.  Redirect edges to the last basic block.  Update
1703         frequency and count on multiple basic blocks in case of fallthru.
1704
1705 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1706
1707         PR target/43920
1708         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1709         function.
1710         (old_insns_match_p): Change return type.  Replace return false/true
1711         with return dir_none/dir_both.  Use can_replace_by.
1712         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1713         direction from dir_p.  Register replacement direction in dir, last_dir
1714         and afterlast_dir.  Handle new return type of old_insns_match_p using
1715         merge_dir.  Return replacement direction in dir_p.
1716         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1717         return type of old_insns_match_p.
1718         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1719         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1720         flow_find_cross_jump.
1721         * basic-block.h (enum replace_direction): New type.
1722         (flow_find_cross_jump): Add parameter to declaration.
1723
1724 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1725
1726         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1727         (AVXMODEDCVTPS2DQ): Ditto.
1728         (VEC_FLOAT_MODE): Ditto.
1729         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1730         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1731         (<any_logic:code><mode>3): Use VF mode iterator.
1732         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1733         Use VF mode iterator.
1734         (copysign<mode>3): Use VF mode iterator.
1735         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1736         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1737         (*<any_logic:code><MODEF:mode>3): Merge with
1738         *avx_<any_logic:code><MODEF:mode>3.
1739         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1740         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1741         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1742         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1743         (sse2_cvtdq2ps): Use %v modifier.
1744         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1745         (avx_cvtps2dq<avxmodesuffix>): Remove.
1746         (sse2_cvtps2dq): Use %v modifier.
1747         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1748         (avx_cvttps2dq<avxmodesuffix>): Remove.
1749         (sse2_cvttps2dq): Use %v modifier.
1750         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1751         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1752         (sse2_cvtsd2siq): Fix insn template.
1753         (sse2_cvtsd2siq_2): Ditto.
1754         (sse2_cvttsd2siq): Ditto.
1755         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1756         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1757
1758 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1759
1760         * gcov-io.c: Use GCC Runtime Library Exception.
1761
1762 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
1763
1764         PR debug/48466
1765         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1766         as base_reg whatever register reg has been eliminated to, instead
1767         of hardcoding STACK_POINTER_REGNUM.
1768
1769 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1770
1771         * doc/tm.texi.in: Document C target hooks as separate from general
1772         target hooks.
1773         * doc/tm.texi: Regenerate.
1774         * genhooks.c (struct hook_desc): Add docname field.
1775         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
1776         docname field.
1777         (hook_array): Include c-target.def.
1778         (emit_documentation): Use docname field in output.
1779         (emit_init_macros): Take docname argument.  Only emit definitions
1780         for hooks matching docname.
1781         (main): Expect additional arguments in all cases.  Pass argument
1782         to emit_init_macros.
1783         * target.def: Move initial macro definitions and comments to
1784         target-hooks-macros.h.
1785         (gcc_targetcm): Move to c-family/c-target.def.
1786         * target.h (targetcm): Move declaration to c-family/c-target.h.
1787         * targhooks.c (default_handle_c_option): Move to
1788         c-family/c-opts.c.
1789         * targhooks.h (default_handle_c_option): Move declaration to
1790         c-family/c-common.h.
1791         * target-hooks-macros.h: New file.
1792         * config.gcc (target_has_targetcm): Define and use to add to
1793         c_target_objs and cxx_target_objs.
1794         * config/default-c.c: New file.
1795         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1796         of target.h and target-def.h.
1797         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1798         (darwin_objc_construct_string, darwin_cfstring_ref_p,
1799         darwin_check_cfstring_format_arg): Make static.
1800         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1801         TARGET_STRING_OBJECT_REF_TYPE_P,
1802         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1803         * config/darwin-protos.h (darwin_objc_construct_string,
1804         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1805         declare.
1806         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1807         TARGET_STRING_OBJECT_REF_TYPE_P,
1808         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1809         * config/t-darwin (darwin-c.o): Update dependencies.
1810         * system.h (TARGET_HAS_TARGETCM): Poison.
1811         * Makefile.in (TARGET_H): Update.
1812         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1813         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1814         (default-c.o): New target.
1815         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1816         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1817         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
1818         c-target.def.
1819         (build/genhooks.o): Update dependencies.
1820
1821 2011-04-06  Richard Guenther  <rguenther@suse.de>
1822
1823         * ipa-inline.c (enum inlining_mode): Remove.
1824         (cgraph_flatten): Use some other token.
1825         (cgraph_edge_early_inlinable_p): New function, split out from ...
1826         (cgraph_perform_always_inlining): New function, split out from ...
1827         (cgraph_decide_inlining_incrementally): ... here.
1828         (cgraph_mark_inline_edge): Adjust.
1829         (cgraph_early_inlining): Re-structure.
1830         (pass_early_inline): Require SSA form.
1831
1832 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
1833             Julian Brown  <julian@codesourcery.com>
1834             Mark Shinwell  <shinwell@codesourcery.com>
1835
1836         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1837         LO_REGS only for Thumb-1.
1838         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1839         be used in short instructions when optimising for size on Thumb-2.
1840
1841 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1842
1843         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1844         associated with user returns to be preserved.
1845
1846 2011-04-06  Tristan Gingold  <gingold@adacore.com>
1847
1848         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1849         symbol_queue_size, DBXOUT_DECR_NESTING,
1850         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1851         if XCOFF_DEBUGGING_INFO.
1852
1853 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1854
1855         * config/i386/i386.md (attribute isa): New.
1856         (attribute enabled): New.
1857         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1858         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1859         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1860         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1861         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1862         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1863         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1864         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1865
1866         * config/i386/sse.md (VF): New mode iterator.
1867         (VF1): Ditto.
1868         (VF2): Ditto.
1869         (VF_128): Ditto.
1870         (SSEMODEF4): Remove.
1871         (attribute sse): Handle V8SF and V4DF modes.
1872         (<absneg:code><mode>2): Use VF mode iterator.
1873         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
1874         mode iterator.
1875         (<plusminus_insn><mode>3): Use VF mode iterator.
1876         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1877         Use VF mode iterator.
1878         (<sse>_vm<plusminus_insn><mode>3): Merge with
1879         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
1880         (mul<mode>3): Use VF mode iterator.
1881         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
1882         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
1883         mode iterator.
1884         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1885         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1886         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
1887         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
1888         mode iterator.
1889         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1890         Use VF1 mode iterator.
1891         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1892         (sqrt<VF2:mode>2): New expander.
1893         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1894         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1895         and sqrtv2df2.  Use VF mode iterator.
1896         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
1897         mode iterator.
1898         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1899         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1900         Use VF1 mode iterator.
1901         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1902         (<smaxmin:code><mode>3): Use VF mode iterator.
1903         (*<smaxmin:code><mode>3_finite): Merge with
1904         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
1905         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1906         (<sse>_vm<smaxmin:code><mode>2): Merge with
1907         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
1908         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
1909         mode iterator.
1910         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
1911         mode iterator.
1912         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1913         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1914         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1915         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1916         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
1917         VF mode iterator.
1918         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1919         Use VF_128 mode iterator.
1920         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
1921         mode iterator.
1922         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
1923         VF_128 mode iterator.
1924         (vcond<mode>): Use VF mode iterator.
1925         * config/i386/predicates.md (sse_comparison_operator): Merge with
1926         avx_comparison_float_operator.  Do not declare as special_predicate.
1927         * config/i386/i386.c (struct builtin_description): Update for renamed
1928         compare patterns.
1929         (ix86_expand_args_builtin): Ditto.
1930         (ix86_expand_sse_compare_mask): Ditto.
1931
1932 2011-04-06  Richard Guenther  <rguenther@suse.de>
1933
1934         * tree-inline.c (estimate_num_insns): For calls simply account
1935         for all passed arguments and a used return value.
1936
1937 2011-04-06  Richard Guenther  <rguenther@suse.de>
1938
1939         PR tree-optimization/47663
1940         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1941         call_stmt_time fields.
1942         (cgraph_edge_inlinable_p): Declare.
1943         (cgraph_edge_recursive_p): New inline function.
1944         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1945         (cgraph_clone_edge): Copy it.
1946         * ipa-inline.c (cgraph_estimate_edge_time): New function.
1947         Account for call stmt time.
1948         (cgraph_estimate_time_after_inlining): Take edge argument.
1949         (cgraph_estimate_edge_growth): Account call stmt size.
1950         (cgraph_estimate_size_after_inlining): Take edge argument.
1951         (cgraph_mark_inline_edge): Adjust.
1952         (cgraph_check_inline_limits): Likewise.
1953         (cgraph_recursive_inlining_p): Remove.
1954         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1955         (cgraph_decide_recursive_inlining): Take edge argument and
1956         adjust.
1957         (cgraph_decide_inlining_of_small_functions): Do not avoid
1958         diags for recursive inlining here.
1959         (cgraph_flatten): Adjust.
1960         (cgraph_decide_inlining_incrementally): Likewise.
1961         (estimate_function_body_sizes): Remove call cost handling.
1962         (compute_inline_parameters): Initialize caller edge call costs.
1963         (cgraph_estimate_edge_growth): New function.
1964         (cgraph_estimate_growth): Use it.
1965         (cgraph_edge_badness): Likewise.
1966         (cgraph_check_inline_limits): Take an edge argument.
1967         (cgraph_decide_inlining_of_small_functions): Adjust.
1968         (cgraph_decide_inlining): Likewise.
1969         * tree-inline.c (estimate_num_insns): Only account for call
1970         return value if it is used.
1971         (expand_call_inline): Avoid diagnostics on recursive inline
1972         functions here.
1973         * lto-cgraph.c (lto_output_edge): Output edge call costs.
1974         (input_edge): Input edge call costs.
1975
1976 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1977
1978         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1979
1980 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1981
1982         * doc/invoke.texi (Spec Files): Fix typo.
1983
1984 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1985
1986         * profile.c (branch_prob): Move declaration of local variable.  Remove
1987         obsolete ??? comment.  Expand the location explicitly instead of using
1988         the LOCATION_FILE and LOCATION_LINE macros.
1989
1990 2011-04-06  Wei Guozhi  <carrot@google.com>
1991
1992         PR target/47855
1993         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1994         (arm_cond_branch): Likewise.
1995         (arm_cond_branch_reversed): Likewise.
1996         (arm_jump): Likewise.
1997         (push_multi): Likewise.
1998         * config/arm/constraints.md (Py): New constraint.
1999
2000 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2001
2002         PR bootstrap/48471
2003         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2004         Move these...
2005         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2006         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2007         #ifdef DBX_DEBUGGING_INFO.
2008
2009 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2010
2011         PR bootstrap/48403
2012         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2013         if old and new states differ.
2014
2015 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2016
2017         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2018         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2019         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2020         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2021         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2022         mcfv4e): Use Alias.
2023         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2024         ColdFire options to -mcpu= options.
2025
2026 2011-04-05  Jeff Law  <law@redhat.com>
2027
2028         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2029         check if BB is a successor of LOOP->header and return
2030         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2031
2032 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2033
2034         * cprop.c (struct reg_use): Remove.
2035         (reg_use_table): Make an array of RTX.
2036         (find_used_regs, constprop_register, local_cprop_pass,
2037         bypass_block): Simplify users of reg_use_table.
2038         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2039         on one of the uses found by find_used_regs.
2040
2041 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2042
2043         PR bootstrap/48469
2044         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2045         declaration.
2046
2047 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2048
2049         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2050         as an rtx.
2051         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2052
2053 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2054
2055         PR middle-end/48441
2056         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2057
2058 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2059
2060         * combine.c: Include obstack.h.
2061         (struct insn_link): Define.
2062         (uid_log_links): Adjust type.
2063         (FOR_EACH_LOG_LINK): New macro.
2064         (insn_link_obstack): Declare.
2065         (alloc_insn_link): Define.
2066         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2067         type of link variables.
2068         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2069         (try_combine, record_promoted_values, distribute_notes): Likewise.
2070         (distribute_links): Likewise.  Tweak prototype.
2071         (clear_log_links): Delete.
2072         (adjust_for_new_dest): Call alloc_insn_link.
2073         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2074
2075 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2076
2077         * gcse.c (modify_mem_list): Convert to an array of VECs.
2078         (canon_modify_mem_list, compute_transp): Tweak formatting.
2079         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2080         (load_killed_in_block_p): Likewise.
2081         (record_last_mem_set_info): Likewise.
2082         (clear_modify_mem_tables): Likewise.
2083
2084 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2085
2086         PR middle-end/48461
2087         * function.c (emit_use_return_register_into_block): Only define if
2088         HAVE_return.
2089
2090 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2091
2092         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2093
2094 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2095
2096         * config/rx/rx-opts.h: New.
2097         * config/rx/rx.c (rx_cpu_type): Remove.
2098         (rx_handle_option): Don't assert that global structures are in
2099         use.  Access variables via opts pointer.  Defer most handling of
2100         OPT_mint_register_.  Use error_at.
2101         (rx_option_override): Handle deferred OPT_mint_register_ here.
2102         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2103         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2104         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2105         (rx_cpu_types): New Enum and EnumValue entries.
2106         (mint-register=): Use Defer and use Var accordingly.
2107
2108 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2109
2110         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2111         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2112         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2113         Move these...
2114         (debug_free_queue, debug_nesting, symbol_queue_index):
2115         ...and these...
2116         * dbxout.c: ...to here.  Make static.
2117
2118 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2119
2120         * gcse.c (modify_pair): Define.  Define a VEC of it.
2121         (canon_modify_mem_list): Convert to an array of VECs.
2122         (free_insn_expr_list_list): Delete.
2123         (clear_modify_mem_tables): Call VEC_free instead.
2124         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2125         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2126         (canon_list_insert, compute_transp): Likewise.
2127
2128 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2129
2130         PR target/43920
2131         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2132         for size.
2133
2134 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2135
2136         PR target/43920
2137         * function.c (emit_use_return_register_into_block): New function.
2138         (thread_prologue_and_epilogue_insns): Use
2139         emit_use_return_register_into_block.
2140
2141 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2142
2143         PR target/43920
2144         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2145         insn.
2146
2147 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2148
2149         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2150
2151 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2152
2153         * config/arm/arm.md (define_constants for unspec): Replace with
2154         define_c_enum.
2155         (define_constants for unspecv): Replace with define_c_enum.
2156         * config/arm/neon.md (define_constants for unspec): Replace with
2157         define_c_enum.
2158
2159 2011-04-04  Richard Henderson  <rth@redhat.com>
2160
2161         PR bootstrap/48400
2162         * dwarf2out.c (output_line_info): Always emit line info from
2163         at least one section.
2164         (dwarf2out_init): Create text_section_line_info here ...
2165         (set_cur_line_info_table): ... not here.
2166
2167 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2168
2169         PR target/48380
2170         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2171         not called.
2172
2173         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2174
2175 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2176
2177         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2178         (expr_equiv_p): Remove.
2179         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2180         (hash_scan_set): Update call to insert_set_in_table.
2181         (dump_hash_table): Dump <dest, src> pair.
2182         (lookup_set): Simplify.  Lookup <dest, src> pair.
2183         (compute_transp): Remove, fold heavily simplified code into...
2184         (compute_local_properties): ...here.  Expect COMP and TRANSP
2185         unconditionally.
2186         (find_avail_set): Take set directly from struct expr.
2187         (find_bypass-set): Likewise.
2188         (bypass_block): Likewise.
2189         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2190
2191         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2192         checks on form of COND from find_implicit_sets to here.
2193         (find_implicit_sets): Cleanup control flow. Split critical edges
2194         if it exposes implicit sets.  Allocate/resize implicit_sets as
2195         necessary.
2196         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2197         changed something.  Run df_analyze after find_implicit_sets if any
2198         edges were split.  Do not allocate implicit_sets here.
2199
2200         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2201         (gcse_obstack): Renamed to cprop_obstack.
2202         (GNEW, GNEWVEC, GNEWVAR): Remove.
2203         (gmalloc): Remove.
2204         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2205         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2206         (gcse_alloc): Likewise, and rename to cprop_alloc.
2207         (alloc_gcse_men, free_gcse_mem): Remove.
2208         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2209         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2210         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2211
2212         * cprop.c (oprs_not_set_p): Remove.
2213         (mark_set, mark_clobber): Remove.
2214         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2215         (reg_not_set_p): New function.
2216         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2217         (cprop_insn): Likewise.
2218         (cprop_jump): Use FOR_EACH_EDGE.
2219
2220 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2221
2222         PR bootstrap/48403
2223         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2224         (rank_for_schedule): Use scheduled_insns vector instead of
2225         last_scheduled_insn.
2226         (ok_for_early_queue_removal): Likewise.
2227         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2228         we have a dbg_cnt.
2229         (choose_ready): Likewise.
2230         (commit_schedule): Use VEC_iterate.
2231         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2232         a dbg_cnt, use it and ensure the first insn is in the ready list.
2233         (haifa_sched_init): Allocate scheduled_insns.
2234         (sched_extend_ready_list): Don't allocate it; reserve space.
2235         (haifa_sched_finish): Free it.
2236
2237 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2238
2239         * optc-gen.awk: Always remove type from Variable entry before
2240         recording in var_seen.
2241
2242 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2243
2244         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2245         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2246         call to tidy_fallthru_edges.
2247
2248 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2249
2250         * doc/options.texi (ToLower): Document.
2251         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2252         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2253         * opts.h (cl_option): Add cl_tolower field.
2254         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2255         arguments with lowercase strings.
2256         * config/rx/rx.opt (mcpu=): Add ToLower.
2257         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2258         argument.
2259
2260 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2261
2262         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2263
2264 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2265
2266         * config/vax/vax.c: Include reload.h.
2267
2268 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2269
2270         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2271         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2272         (sparc_preferred_reload_class): New function.
2273
2274 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2275
2276         PR debug/48401
2277         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2278         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2279
2280 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2281
2282         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2283         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2284
2285 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2286
2287         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2288         (ASM_OUTPUT_ALIGNED_BSS): Define.
2289
2290 2011-04-03  Michael Matz  <matz@suse.de>
2291
2292         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2293         and next_slot members.
2294         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2295         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2296         (lto_streamer_cache_append): Declare.
2297         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2298         unsigned index, remove offset parameter, ensure that we append
2299         or update existing entries.
2300         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2301         parameter, update next_slot for append.
2302         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2303         parameter.
2304         (lto_streamer_cache_insert_at): Likewise.
2305         (lto_streamer_cache_append): New function.
2306         (lto_streamer_cache_lookup): Use unsigned index.
2307         (lto_streamer_cache_get): Likewise.
2308         (lto_record_common_node): Don't test tree_node_can_be_shared.
2309         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2310         (lto_streamer_cache_delete): Don't free offsets member.
2311         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2312         (lto_output_string_with_length): Use lto_output_data_stream.
2313         (lto_output_tree_header): Remove ix parameter, don't write it.
2314         (lto_output_builtin_tree): Likewise.
2315         (lto_write_tree): Adjust callers to above, don't track and write
2316         offset, write unsigned index.
2317         (output_unreferenced_globals): Don't emit all global vars.
2318         (write_global_references): Use unsigned indices.
2319         (lto_output_decl_state_refs): Likewise.
2320         (write_symbol): Likewise.
2321         * lto-streamer-in.c (lto_input_chain): Move earlier.
2322         (input_function): Use unsigned index.
2323         (input_alias_pairs): Don't read and then ignore all global vars.
2324         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2325         don't pass it back, use lto_streamer_cache_append.
2326         (lto_register_var_decl_in_symtab): Use unsigned index.
2327         (lto_register_function_decl_in_symtab): Likewise.
2328         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2329         index.
2330         (lto_get_builtin_tree): Don't read index, use
2331         lto_streamer_cache_append.
2332         (lto_read_tree): Adjust call to lto_materialize_tree.
2333
2334         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2335         don't use function calls in arguments to MIN.
2336
2337         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2338         twice.
2339
2340         * gimple.c (gimple_type_leader_entry): Mark deletable.
2341
2342 2011-04-03  Alan Modra  <amodra@gmail.com>
2343
2344         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2345
2346 2011-04-03  Michael Matz  <matz@suse.de>
2347
2348         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2349         an integer.
2350         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2351
2352 2011-04-03  Michael Matz  <matz@suse.de>
2353
2354         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2355         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2356         without function context.
2357         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2358         current_function_decl and cfun.
2359
2360 2011-04-03  Michael Matz  <matz@suse.de>
2361
2362         * tree.c (decl_init_priority_insert): Don't create entry for
2363         default priority.
2364         (decl_fini_priority_insert): Ditto.
2365         (fields_compatible_p, find_compatible_field): Remove.
2366         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2367         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2368
2369 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2370
2371         * combine.c (try_combine): Remove useless local variable.
2372
2373 2011-04-03  Richard Guenther  <rguenther@suse.de>
2374             Ira Rosen  <ira.rosen@linaro.org>
2375
2376         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2377         non-variable offsets and compare the remaining bases of the two
2378         accesses instead of looking for exact same data-ref.
2379
2380 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2381
2382         PR target/48416
2383         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2384
2385         * i386.c (ix86_is_msabi_thiscall): New helper function.
2386         (ix86_is_type_thiscall): New helper function.
2387         (ix86_comp_type_attributes): Handle thiscall for method-functions
2388         special.
2389         (init_cumulative_args): Likewise.
2390         (find_drap_reg): Likewise.
2391         (ix86_static_chain): Likewise.
2392         (x86_this_parameter): Likewise.
2393         (x86_output_mi_thunk): Likewise.
2394
2395 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2396             Nicolas Setton  <setton@adacore.com>
2397             Eric Botcazou  <ebotcazou@adacore.com>
2398
2399         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2400         (add_gnat_descriptive_type_attribute): New function.
2401         (gen_array_type_die): Call it.
2402         (gen_enumeration_type_die): Likewise.
2403         (gen_struct_or_union_type_die): Likewise.
2404         (modified_type_die): Likewise.
2405         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2406         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2407         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2408
2409 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2410
2411         PR bootstrap/48148
2412         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2413         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2414
2415         Revert:
2416         2011-03-17  Richard Guenther  <rguenther@suse.de>
2417
2418         PR bootstrap/48148
2419         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2420         origin for decls in other ltrans units.
2421         (input_varpool_node): Likewise.
2422
2423 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2424
2425         PR middle-end/48335
2426         * expr.c (expand_assignment): Handle all possibilities
2427         if TO_RTX is CONCAT.
2428         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2429         (store_split_bit_field): If SUBREG_REG (op0) or
2430         op0 itself has smaller mode than word, return it
2431         for offset 0 and const0_rtx for out-of-bounds stores.
2432         If word is const0_rtx, skip it.
2433
2434 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2435
2436         * config/h8300/h8300.c (print_operand_address): Rename to...
2437         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2438         Call h8300_print_operand and h8300_print_operand_address instead of
2439         print_operand and print_operand_address. Declare.
2440         (print_operand): Renake to...
2441         (h8300_print_operand): ...this. Make static. Adjust comments.
2442         Call h8300_print_operand instead of print_operand. Declare.
2443         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2444         (h8300_register_move_cost): Likewise.
2445         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2446         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2447         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2448         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2449         * config/h8300/h8300-protos.h (print_operand): Delete.
2450         (print_operand_address): Delete.
2451
2452 2011-04-01  Richard Henderson  <rth@redhat.com>
2453
2454         PR 48400
2455         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2456         in strict mode before dwarf4.  Re-order tests to early out
2457         before switching sections.
2458
2459 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2460
2461         * config/h8300/constraints.md: New file.
2462         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2463         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2464         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2465         * config/h8300/predicates.md (bit_operand): Likewise.
2466         (incdec_operand): Use satisfies_constraint_M and
2467         satisfies_constraint_O.  Don't use C code block.
2468         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2469         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2470         (compute_mov_length): Use satisfies_constraint_G.
2471         (fix_bit_operand): Use satisfies_constraint_U.
2472         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2473         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2474         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2475         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2476         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2477         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2478         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2479         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2480         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2481         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2482         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2483         (EXTRA_MEMORY_CONSTRAINT): Delete.
2484
2485 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2486             Michael Meissner  <meissner@linux.vnet.ibm.com>
2487
2488         PR target/48262
2489         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2490         operands, as per the specifications.
2491
2492         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2493         (vec_extract_evenv4sf): Ditto.
2494         (vec_extract_evenv8hi): Ditto.
2495         (vec_extract_evenv16qi): Ditto.
2496         (vec_extract_oddv4si): Ditto.
2497
2498 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2499
2500         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2501         high_pc attribute if the CU has no associated code. Only output
2502         DW_AT_entry_pc for CU if not generating strict dwarf and
2503         dwarf_version < 4.
2504
2505 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2506
2507         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2508         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2509         out of ...
2510         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2511         * final.c (final_start_function): Call the new function rather
2512         than using a NULL argument for dwarf2out_frame_debug.
2513
2514         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2515         that contains the prologue.
2516
2517         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2518         changed.  Print it in debugging output.
2519
2520         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2521
2522         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2523         Split most of the code into...
2524         (begin_move_insn): ... here.  New function.
2525         (ebb_sched_info): Add a pointer to it.
2526         * haifa-sched.c (scheduled_insns): New static variable.
2527         (sched_extend_ready_list): Allocate it.
2528         (schedule_block): Use it to record the order of scheduled insns.
2529         Perform RTL changes to move insns only after all scheduling
2530         decisions have been made.
2531         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2532         begin_move_insn field.
2533         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2534         * sched-int.h (struct haifa_sched_info): Remove second argument
2535         from begin_schedule_ready hook.  Add new member begin_move_insn.
2536         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2537         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2538
2539         * haifa-sched.c (prune_ready_list): New function, broken out of
2540         schedule_block.
2541         (schedule_block): Use it.
2542
2543 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2544
2545         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2546
2547 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2548
2549         * config.gcc (*-*-mingw*): Allow as option the
2550         posix threading model.
2551         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2552         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2553         definition.
2554         (CPP_SPEC): Add pthread/no-pthread handling.
2555         (LIB_SPEC): Likewise.
2556         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2557         (LIB_SPEC): Likewise.
2558         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2559         flag to pass -pthread option for shared libgcc build.
2560         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2561         for shared libgcc build.
2562         * config/i386/t-mingw-pthread: New file.
2563         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2564         New define to enable use of library pthread by default.
2565         * config/i386/mingw.opt (pthread): New driver option.
2566         (no-pthread): New driver option.
2567         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2568         * config/i386/mingw-w64.opt: Likewise.
2569
2570 2011-04-01  Gary Funck <gary@intrepid.com>
2571
2572         * c-decl.c (grokdeclarator): Fix formatting.
2573
2574 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2575
2576         * expr.c (emit_block_move_via_movmem): Use n_generator_args
2577         instead of n_operands.
2578         (set_storage_via_setmem): Likewise.
2579         * optabs.c (maybe_gen_insn): Likewise.
2580         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2581         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2582         (mips_expand_builtin_direct): Likewise.
2583         * config/spu/spu.c (expand_builtin_args): Likewise.
2584
2585 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2586
2587         * recog.h (insn_data_d): Add n_generator_args.
2588         * genoutput.c (data): Likewise.
2589         (output_insn_data): Print it.
2590         (max_opno, num_dups): Delete.
2591         (scan_operands): Just fill in "d->operand[...]".
2592         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2593
2594 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2595
2596         * gensupport.h (pattern_stats): New structure.
2597         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2598         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2599         (max_operand_1, max_operand_vec): Delete.
2600         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2601
2602 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
2603
2604         * emit-rtl.c (emit_pattern_after_setloc): New function.
2605         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2606         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2607         (emit_pattern_after): New function.
2608         (emit_insn_after, emit_jump_insn_after): Call it.
2609         (emit_call_insn_after, emit_debug_insn_after): Likewise.
2610         (emit_pattern_before_setloc): New function.
2611         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2612         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2613         Likewise.
2614         (emit_pattern_before): New function.
2615         (emit_insn_before, emit_jump_insn_before): Call it.
2616         (emit_call_insn_before, emit_debug_insn_before): Likewise.
2617
2618 2011-03-31  Richard Henderson  <rth@redhat.com>
2619
2620         * dwarf2out.c (dw_separate_line_info_ref): Remove.
2621         (dw_separate_line_info_entry): Remove.
2622         (enum dw_line_info_opcode): New.
2623         (dw_line_info_entry): Use it.
2624         (dw_line_info_table, dw_line_info_table_p): New.
2625         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2626         (line_info_table, line_info_label_num): Remove.
2627         (line_info_table_in_use): Remove.
2628         (separate_line_info_table): Remove.
2629         (separate_line_info_table_allocated): Remove.
2630         (separate_line_info_table_in_use): Remove.
2631         (LINE_INFO_TABLE_INCREMENT): Remove.
2632         (line_info_label_num): New.
2633         (cur_line_info_table): New.
2634         (text_section_line_info, cold_text_section_line_info): New.
2635         (separate_line_info): New.
2636         (SEPARATE_LINE_CODE_LABEL): Remove.
2637         (print_dwarf_line_table): Remove.
2638         (debug_dwarf): Don't dump it.
2639         (output_one_line_info_table): New.
2640         (output_line_info): Use it.
2641         (new_line_info_table): New.
2642         (set_cur_line_info_table): New.
2643         (dwarf2out_switch_text_section): Use it.
2644         (dwarf2out_begin_function): Likewise.
2645         (push_dw_line_info_entry): New.
2646         (dwarf2out_source_line): Rewrite for new line info tables.
2647         (dwarf2out_init): Remove dead initailizations.
2648
2649 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2650
2651         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2652         various flags.
2653         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2654         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2655         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2656         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2657         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2658         * opt-functions.awk (flag_init, switch_bit_fields): New.
2659         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2660         generate CL_MISSING_OK or CL_SAVE.
2661         * optc-gen.awk: Update to generate bit-field output as well as
2662         flags field.
2663         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2664         bit-field instead of CL_REJECT_DRIVER flag.
2665         * opts-common.c (generate_canonical_option,
2666         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2667         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2668         instead of CL_REJECT_NEGATIVE flag.
2669         * toplev.c (print_switch_values): Use cl_report bit-field instead
2670         of CL_REPORT flag.
2671
2672 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2673
2674         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2675         a zero minimum index only if it is redundant.
2676
2677 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2678
2679         PR rtl-optimization/48381
2680         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2681         instead of ira_class_hard_reg_index for calculating conflicting
2682         hard registers.
2683
2684 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2685
2686         * cprop.c: Clean up hash table building.
2687         (reg_avail_info): Remove.
2688         (oprs_available_p): Remove.
2689         (record_last_reg_set_info): Remove.
2690         (record_last_set_info): Remove.
2691         (reg_available_p): New function.
2692         (gcse_constant_p): Do not treat unfolded conditions as constants.
2693         (make_set_regs_unavailable): New function.
2694         (hash_scan_set): Simplify with new reg_available_p.
2695         (compute_hash_table_work): Traverse insns stream only once.
2696         Do not compute reg_avail_info. Traverse insns in reverse order.
2697         Record implicit sets after recording explicit sets from the block.
2698
2699 2011-03-31  Michael Matz  <matz@suse.de>
2700
2701         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2702
2703 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2704
2705         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2706         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2707         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2708         (h8300_mode_dependent_address_p): New function.
2709         (h8300_get_index): Make static.
2710
2711 2011-03-31  Jeff Law  <law@redhat.com>
2712
2713         * reload1.c (elimination_effects): Fix typo in recent change.
2714
2715         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2716         typo potentially leading to null pointer dereference.
2717
2718         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2719         (setup_save_areas): Corresponding changes to avoid useless
2720         assignments.
2721
2722         * jump.c (reversed_comparison_code_parts): Avoid successive return
2723         statements when REVERSE_CONDITION is defined.
2724
2725         * expr.c (expand_assignment): Avoid useless assignments.
2726         (expand_expr_real_1): Likewise.
2727         (expand_expr_real_2): Avoid useless statements.
2728
2729         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2730
2731         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2732
2733         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2734         statements.
2735
2736         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2737
2738 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2739
2740         PR target/47109
2741         * doc/tm.texi.in (TARGET_VERSION): Remove.
2742         * doc/tm.texi: Regenerate.
2743         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2744         * collect2.c (main): Don't use TARGET_VERSION.
2745         * mips-tdump.c (main): Don't use TARGET_VERSION.
2746         * mips-tfile.c (main): Don't use TARGET_VERSION.
2747         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2748         * config/rs6000/vxworksae.h: Remove.
2749         * config/alpha/alpha.h (TARGET_VERSION): Remove.
2750         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2751         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2752         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2753         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2754         * config/arm/arm.h (TARGET_VERSION): Remove.
2755         * config/arm/coff.h (TARGET_VERSION): Remove.
2756         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2757         * config/arm/elf.h (TARGET_VERSION): Remove.
2758         * config/arm/freebsd.h (TARGET_VERSION): Remove.
2759         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2760         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2761         * config/arm/pe.h (TARGET_VERSION): Remove.
2762         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2763         * config/arm/semi.h (TARGET_VERSION): Remove.
2764         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2765         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2766         * config/arm/vxworks.h (TARGET_VERSION): Remove.
2767         * config/avr/avr.h (TARGET_VERSION): Remove.
2768         * config/bfin/bfin.h (TARGET_VERSION): Remove.
2769         * config/fr30/fr30.h (TARGET_VERSION): Remove.
2770         * config/frv/frv.h (TARGET_VERSION): Remove.
2771         * config/h8300/h8300.h (TARGET_VERSION): Remove.
2772         * config/i386/cygwin.h (TARGET_VERSION): Remove.
2773         * config/i386/darwin.h (TARGET_VERSION): Remove.
2774         * config/i386/darwin64.h (TARGET_VERSION): Remove.
2775         * config/i386/djgpp.h (TARGET_VERSION): Remove.
2776         * config/i386/freebsd.h (TARGET_VERSION): Remove.
2777         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2778         * config/i386/gnu.h (TARGET_VERSION): Remove.
2779         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2780         * config/i386/i386elf.h (TARGET_VERSION): Remove.
2781         * config/i386/linux.h (TARGET_VERSION): Remove.
2782         * config/i386/linux64.h (TARGET_VERSION): Remove.
2783         * config/i386/lynx.h (TARGET_VERSION): Remove.
2784         * config/i386/mingw32.h (TARGET_VERSION): Remove.
2785         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2786         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2787         * config/i386/netware.h (TARGET_VERSION): Remove.
2788         * config/i386/nto.h (TARGET_VERSION): Remove.
2789         * config/i386/openbsd.h (TARGET_VERSION): Remove.
2790         * config/i386/vxworks.h (TARGET_VERSION): Remove.
2791         * config/ia64/elf.h (TARGET_VERSION): Remove.
2792         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2793         * config/ia64/hpux.h (TARGET_VERSION): Remove.
2794         * config/ia64/linux.h (TARGET_VERSION): Remove.
2795         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2796         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2797         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2798         * config/lm32/lm32.h (TARGET_VERSION): Remove.
2799         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2800         * config/m32c/m32c.h (TARGET_VERSION): Remove.
2801         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2802         * config/m32r/m32r.h (TARGET_VERSION): Remove.
2803         * config/m68k/linux.h (TARGET_VERSION): Remove.
2804         * config/m68k/m68k.h (TARGET_VERSION): Remove.
2805         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2806         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2807         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2808         * config/mep/mep.h (TARGET_VERSION): Remove.
2809         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2810         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2811         * config/mips/iris6.h (MACHINE_TYPE): Remove.
2812         * config/mips/linux.h (TARGET_VERSION): Remove.
2813         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2814         * config/mips/vxworks.h (TARGET_VERSION): Remove.
2815         * config/mmix/mmix.h (TARGET_VERSION): Remove.
2816         * config/mn10300/linux.h (TARGET_VERSION): Remove.
2817         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2818         * config/pa/pa.h (TARGET_VERSION): Remove.
2819         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2820         * config/picochip/picochip.h (TARGET_VERSION): Remove.
2821         * config/rs6000/aix.h (TARGET_VERSION): Remove.
2822         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2823         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2824         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2825         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2826         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2827         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2828         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2829         * config/rs6000/linux.h (TARGET_VERSION): Remove.
2830         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2831         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2832         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2833         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2834         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2835         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2836         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2837         * config/s390/linux.h (TARGET_VERSION): Remove.
2838         * config/s390/s390.h (TARGET_VERSION): Remove.
2839         * config/s390/tpf.h (TARGET_VERSION): Remove.
2840         * config/score/score.h (TARGET_VERSION): Remove.
2841         * config/sh/linux.h (TARGET_VERSION): Remove.
2842         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2843         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2844         * config/sh/sh.h (TARGET_VERSION): Remove.
2845         * config/sh/sh64.h (TARGET_VERSION): Remove.
2846         * config/sh/superh.h (TARGET_VERSION): Remove.
2847         * config/sh/vxworks.h (TARGET_VERSION): Remove.
2848         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2849         * config/sparc/linux.h (TARGET_VERSION): Remove.
2850         * config/sparc/linux64.h (TARGET_VERSION): Remove.
2851         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2852         TARGET_NAME32, TARGET_NAME): Remove.
2853         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2854         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2855         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2856         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2857         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2858         * config/spu/spu.h (TARGET_VERSION): Remove.
2859         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2860         * config/v850/v850.h (TARGET_VERSION): Remove.
2861         * config/vax/linux.h (TARGET_VERSION): Remove.
2862         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2863         * config/xtensa/elf.h (TARGET_VERSION): Remove.
2864         * config/xtensa/linux.h (TARGET_VERSION): Remove.
2865
2866 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2867
2868         PR target/48142
2869         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2870         frame-related from frame-unrelated adjustments to the stack pointer.
2871
2872 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
2873
2874         * common.opt (fdebug-types-section): Move earlier.
2875         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2876
2877 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
2878
2879         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2880         var.
2881
2882 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
2883
2884         * tree.h (CASE_CHAIN): Define.
2885         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2886         (gimple_redirect_edge_and_branch): Likewise.
2887
2888 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2889
2890         PR middle-end/48367
2891         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2892         calculation.
2893
2894 2011-03-30  Jeff Law  <law@redhat.com>
2895
2896         * PR bootstrap/48371
2897         * reload1.c (reload): Fix botch in last change.
2898
2899         * reload.h (struct reload): Fix typo introduced in last change.
2900
2901 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2902
2903         * config/arm/arm.opt (mhard-float, msoft-float): Mark
2904         Undocumented.  Remove help text.
2905         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2906         -mhard-float.
2907
2908 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2909
2910         * doc/options.texi (NegativeAlias): Document.
2911         (Alias): Mention NegativeAlias.
2912         * opt-functions.awk: Handle NegativeAlias.
2913         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2914         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2915         * opts.h (CL_NEGATIVE_ALIAS): Define.
2916         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2917         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2918         OPT_mspe_.
2919         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2920         Alias entries.
2921         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2922         mno-spe and mno-isel instead of mspe=no and -misel=no.
2923
2924 2011-03-29  Mark Wielaard  <mjw@redhat.com>
2925
2926         * common.opt (fdebug-types-section): New flag.
2927         * doc/invoke.texi: Document new -fno-debug-types-section flag.
2928         * dwarf2out.c (use_debug_types): New define.
2929         (struct die_struct): Mark die_id with GTY desc use_debug_types.
2930         (print_die): Guard output of type unit signatures using
2931         use_debug_types.
2932         (build_abbrev_table): Replace assert of dwarf_version >= 4
2933         with assert on use_debug_types.
2934         (size_of_die): Likewise.
2935         (unmark_dies): Likewise.
2936         (value_format): Decide AT_ref_external form on use_debug_types.
2937         (output_die): Replace dwarf_version version check guard with
2938         use_debug_types where appropriate.
2939         (modified_type_die): Likewise.
2940         (gen_reference_type_die): Likewise.
2941         (dwarf2out_start_source_file): Likewise.
2942         (dwarf2out_end_source_file): Likewise.
2943         (prune_unused_types_walk_attribs): Likewise.
2944         (dwarf2out_finish): Likewise.
2945
2946 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2947
2948         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2949
2950 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2951
2952         PR rtl-optimization/48332
2953         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2954         mode of input operand N and modeN to its actual mode.
2955
2956 2011-03-30  Jeff Law  <law@redhat.com>
2957
2958         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2959         define accessor macro.
2960         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2961         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2962         (reg_equiv_init): Likewise.
2963         (reg_equivs_size): New variable.
2964         (reg_equiv_init_size): Remove.
2965         (allocate_initial_values): Move prototype to here from....
2966         * integrate.h (allocate_initial_values): Remove prototype.
2967         * integrate.c: Include reload.h.
2968         (allocate_initial_values): Corresponding changes.
2969         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2970         (fix_reg_equiv_init, no_equiv): Corresponding changes.
2971         (update_equiv_regs): Corresponding changes.
2972         (ira): Corresponding changes.
2973         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2974         (push_secondary_reload): Corresponding changes.
2975         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2976         (make_memloc, find_reloads_address): Corresponding changes.
2977         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2978         (find_reloads_address_1): Corresponding changes.
2979         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2980         (refers_to_regno_for_reload_p): Corresponding changes.
2981         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2982         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2983         * reload1.c: Include ggc.h.
2984         (grow_reg_equivs): New function.
2985         (replace_pseudos_in, reload): Corresponding changes.
2986         (calculate_needs_all_insns, alter_regs): Corresponding changes.
2987         (eliminate_regs_1, elimination_effects): Corresponding changes.
2988         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2989         (delete_output_reload): Likewise.
2990         * caller-save.c (mark_referenced_regs): Corresponding changes.
2991         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2992         * frv/predicates.md (frv_load_operand): Corresponding changes.
2993         * microblaze/microblaze.c (double_memory_operand): Corresponding
2994         changes.
2995         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2996         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2997         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2998         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2999         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3000         changes.
3001         * pa/pa.c (emit_move_sequence): Corresponding changes.
3002         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3003
3004 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3005
3006         PR target/47551
3007         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3008         structure modes.  Don't check neon_vector_mem_operand for
3009         vector or structure modes.
3010
3011 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3012             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3013
3014         PR target/43590
3015         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3016         operand 1 and reshuffle the operands to match.
3017         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3018
3019 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3020
3021         PR driver/48208
3022         * config/c.opt (F): Added 'Driver' to -F option.
3023
3024         PR driver/48260
3025         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3026           handler function.
3027         * config/darwin.opt: Added '-arch' option.
3028
3029 2011-03-30  Nick Clifton  <nickc@redhat.com>
3030
3031         * config/rx/rx.md: Add peepholes and patterns to combine
3032         extending loads and simple arithmetic instructions.
3033         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3034         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3035         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3036         modes to use pre-decrement and post-increment addressing.
3037         (rx_is_restricted_memory_address): Add range checking of REG+INT
3038         addresses.
3039         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3040         (rx_memory_move_cost): Adjust cost of stores.
3041         (rx_adjust_insn_length): New function.
3042
3043 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3044
3045         PR c/48305
3046         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3047         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3048         matching arg00/arg01 types.
3049
3050 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3051
3052         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3053         last_location to UNKNOWN_LOCATION.
3054
3055 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3056
3057         PR target/48349
3058         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3059         FLOAT_SSE_REGS.
3060
3061 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3062             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3063
3064         PR bootstrap/48337
3065         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3066         Init(PROCESSOR_V7).
3067         (sparc_cpu): Likewise.
3068         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3069         PROCESSOR_V7.
3070
3071 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3072
3073         PR target/48336
3074         PR middle-end/48342
3075         PR rtl-optimization/48345
3076         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3077         hard regs for given mode from profitable regs when doing secondary
3078         allocation.
3079
3080 2011-03-29  Jeff Law  <law@redhat.com>
3081
3082         PR bootstrap/48327
3083         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3084         do_not_duplicate field.
3085         (lookup_redirection_data): Corresponding changes.
3086         (create_duplicates): Always create a template block.
3087         (redirect_edges): Remove code which reused the original block
3088         when it was going to become unreachable code.
3089         (thread_block): Don't set do_not_duplicate field.
3090
3091 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3092
3093         * lto-opts.c (register_user_option_p, lto_register_user_option):
3094         Make type argument unsigned.
3095         * lto-streamer.h (lto_register_user_option): Make type argument
3096         unsigned.
3097         * opth-gen.awk: Make CL_* macros unsigned.
3098         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3099         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3100         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3101         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3102         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3103         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3104         (find_opt): Make lang_mask argument unsigned.
3105
3106 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3107
3108         PR rtl-optimization/48331
3109         PR rtl-optimization/48334
3110         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3111         for any used algorithm.
3112
3113 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3114
3115         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3116         to parent_max.
3117
3118 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3119
3120         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3121         (alpha_option_override): Don't set alpha_sr_alias_set.
3122         (emit_frame_store_1): Use gen_frame_mem rather than calling
3123         set_mem_alias_set.
3124         (alpha_expand_epilogue): Ditto.
3125
3126 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3127
3128         PR tree-optimization/48290
3129         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3130         vectorization, check that relevant phis in the basic block after
3131         the inner loop are really inner loop's exit phis.
3132
3133 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3134
3135         PR debug/48190
3136         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3137         (cached_dw_loc_list_def): New structure.
3138         (cached_dw_loc_list): New typedef.
3139         (cached_dw_loc_list_table): New variable.
3140         (cached_dw_loc_list_table_hash): New function.
3141         (cached_dw_loc_list_table_eq): Likewise.
3142         (add_location_or_const_value_attribute): Take a bool cache_p.
3143         Cache the list when the parameter is true.
3144         (gen_formal_parameter_die): Update caller.
3145         (gen_variable_die): Likewise.
3146         (dwarf2out_finish): Likewise.
3147         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3148         while generating debug info for the decl.
3149         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3150         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3151         (resolve_addr): Cache the result of resolving a chain of
3152         location lists.
3153
3154 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3155
3156         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3157         conflict object hard regset nodes have intersecting hard reg sets.
3158
3159         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3160         after regstat_init_n_sets_and_refs.
3161
3162         * ira.c: Add more comments at the top.
3163         (setup_stack_reg_pressure_class, setup_pressure_classes):
3164         Add comments how we compute the register pressure classes.
3165         (setup_allocno_and_important_classes): Add more comments.
3166         (setup_class_translate_array, reorder_important_classes)
3167         (setup_reg_class_relations): Add comments.
3168
3169         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3170         start of the file.
3171
3172         * ira-color.c: Add 2011 to the Copyright line.
3173         (assign_hard_reg):  Add more comments.
3174         (improve_allocation): Ditto.
3175
3176         * ira-costs.c: Add 2011 to the Copyright line.
3177         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3178         comments.
3179         (setup_regno_cost_classes_by_mode): Ditto.
3180
3181         Initial patches from ira-improv branch:
3182
3183         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3184
3185         * ira-build.c: (ira_create_object): Remove initialization of
3186         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3187         (ira_create_allocno): Remove initialization of
3188         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3189         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3190         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3191         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3192         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3193         Initialize ALLOCNO_ADD_DATA.
3194         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3195         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3196         ALLOCNO_REG.
3197         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3198         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3199
3200         * ira.c (ira_reallocate): Remove.
3201         (setup_pressure_classes): Call
3202         ira_init_register_move_cost_if_necessary.  Use
3203         ira_register_move_cost instead of ira_get_register_move_cost.
3204         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3205         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3206
3207         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3208         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3209         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3210         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3211         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3212         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3213         Fix formatting.
3214         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3215         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3216         (struct allocno_color_data): New.
3217         (allocno_color_data_t): New typedef.
3218         (allocno_color_data): New definition.
3219         (ALLOCNO_COLOR_DATA): New macro.
3220         (struct object_color_data): New.
3221         (object_color_data_t): New typedef.
3222         (object_color_data): New definition.
3223         (OBJECT_COLOR_DATA): New macro.
3224         (update_copy_costs, calculate_allocno_spill_cost): Call
3225         ira_init_register_move_cost_if_necessary.  Use
3226         ira_register_move_cost instead of ira_get_register_move_cost.
3227         (move_spill_restore, update_curr_costs): Ditto.
3228         (allocno_spill_priority): Make it inline.
3229         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3230         (struct coalesce_data, coalesce_data_t): New.
3231         (allocno_coalesce_data): New definition.
3232         (ALLOCNO_COALESCE_DATA): New macro.
3233         (merge_allocnos, coalesced_allocno_conflict_p): Use
3234         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3235         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3236         (coalesce_allocnos): Ditto.
3237         (setup_coalesced_allocno_costs_and_nums): Ditto.
3238         (collect_spilled_coalesced_allocnos): Ditto.
3239         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3240         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3241         (coalesce_spill_slots): Ditto.
3242         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3243         free allocno_coalesce_data.
3244
3245         * ira-conflicts.c: Fix formatting.
3246         (process_regs_for_copy): Call
3247         ira_init_register_move_cost_if_necessary.  Use
3248         ira_register_move_cost instead of ira_get_register_move_cost.
3249         (build_object_conflicts): Optimize.
3250
3251         * ira-costs.c (record_reg_classes): Optimize.  Call
3252         ira_init_register_move_cost_if_necessary.  Use
3253         ira_register_move_cost, ira_may_move_in_cost, and
3254         ira_may_move_out_cost instead of ira_get_register_move_cost and
3255         ira_get_may_move_cost.
3256         (record_address_regs): Ditto.
3257         (scan_one_insn): Optimize.
3258         (find_costs_and_classes): Optimize.
3259         (process_bb_node_for_hard_reg_moves): Call
3260         ira_init_register_move_cost_if_necessary.  Use
3261         ira_register_move_cost instead of ira_get_register_move_cost.
3262
3263         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3264         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3265         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3266         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3267         definitions.
3268         (ira_initiate_emit_data, ira_finish_emit_data)
3269         (create_new_allocno): New functions.
3270         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3271         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3272         Use ira_register_move_cost instead of ira_get_register_move_cost.
3273
3274         * ira-int.h: Fix some comments.
3275         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3276         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3277         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3278         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3279         add_data.
3280         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3281         bitfield after mode.  Make hard_regno a short int.  Make
3282         hard_regno short.  Remove first_coalesced_allocno and
3283         next_coalesced_allocno.  Move mem_optimized_dest_p,
3284         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3285         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3286         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3287         temp, colorable_p.  Add new member add_data.
3288         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3289         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3290         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3291         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3292         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3293         (ALLOCNO_ADD_DATA): New macro.
3294         (ira_emit_data_t): New typedef.
3295         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3296         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3297         from struct ira_allocno.
3298         (ALLOCNO_EMIT_DATA): New macro.
3299         (ira_allocno_emit_data, allocno_emit_reg): New.
3300         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3301         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3302         (OBJECT_ADD_DATA): New macro.
3303         (ira_reallocate): Remove.
3304         (ira_initiate_emit_data, ira_finish_emit_data): New.
3305         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3306         (ira_init_register_move_cost_if_necessary): New.
3307         (ira_object_conflict_iter_next): Merge into
3308         ira_object_conflict_iter_cond.
3309         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3310
3311         * ira-live.c: (process_single_reg_class_operands): Call
3312         ira_init_register_move_cost_if_necessary.  Use
3313         ira_register_move_cost instead of ira_get_register_move_cost.
3314
3315         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3316
3317         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3318
3319         * ira-costs.c: Fix formatting.
3320         (cost_classes, cost_classes_num): Remove.
3321         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3322         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3323         (cost_classes_del, cost_classes_htab): New.
3324         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3325         (initiate_regno_cost_classes, setup_cost_classes): New.
3326         (setup_regno_cost_classes_by_aclass): New.
3327         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3328         (record_reg_classes): Use regno_cost_classes instead of
3329         cost_classes.  Move checking opposite operand up.
3330         (record_address_regs): Use regno_cost_classes
3331         instead of cost_classes.
3332         (scan_one_insn): Ditto.  Use always general register.
3333         (print_allocno_costs): Use regno_cost_classes instead of
3334         cost_classes.
3335         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3336         (find_costs_and_classes): Set up cost classes for each registers.
3337         Use also their mode for this.  Use regno_cost_classes instead of
3338         cost_classes.
3339         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3340         cost_classes.
3341         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3342         (ira_costs, ira_set_pseudo_classes): Call
3343         initiate_regno_cost_classes and finish_regno_cost_classes.
3344
3345         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3346
3347         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3348
3349         * target.def (ira_cover_classes): Remove.
3350
3351         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3352
3353         * doc/tm.texi.in: Ditto.
3354
3355         * ira-conflicts.c: Remove mentioning cover classes from the file.
3356         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3357         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3358
3359         * targhooks.c (default_ira_cover_classes): Remove.
3360
3361         * targhooks.h (default_ira_cover_classes): Ditto.
3362
3363         * haifa-sched.c: Remove mentioning cover classes from the file.
3364         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3365         ira_pressure_classes and ira_pressure_classes_num instead of
3366         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3367         sched_regno_pressure_class instead of sched_regno_cover_class.
3368         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3369         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3370
3371         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3372         classes from the file.
3373         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3374         (struct object_hard_regs, struct object_hard_regs_node): New.
3375         (struct ira_object): New members profitable_hard_regs,
3376         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3377         (struct ira_allocno): Rename cover_class to aclass.  Rename
3378         cover_class_cost and updated_cover_class_cost to class_cost and
3379         updated_class_cost.  Remove splay_removed_p and
3380         left_conflict_size.  Add new members colorable_p.
3381         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3382         (ALLOCNO_COLORABLE_P): New macro.
3383         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3384         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3385         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3386         (OBJECT_...): Rename parameter C to O.
3387         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3388         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3389         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3390         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3391         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3392         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3393         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3394         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3395         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3396         x_ira_reg_class_subunion.
3397         (ira_max_memory_move_cost, ira_max_register_move_cost)
3398         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3399         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3400         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3401         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3402         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3403         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3404         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3405         (ira_tune_allocno_costs_and_cover_classes): Rename to
3406         ira_tune_allocno_costs.
3407         (ira_debug_hard_regs_forest): New.
3408         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3409         (ira_object_conflict_iter_next): Fix comments.
3410         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3411         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3412         cover_class to aclass.
3413         (ira_allocate_and_accumulate_costs): Ditto.
3414         (ira_allocate_and_set_or_copy_costs): Ditto.
3415
3416         * opts.c (decode_options): Remove ira_cover_class check.
3417
3418         * ira-color.c: Remove mentioning cover classes from the file.  Use
3419         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3420         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3421         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3422         (splay-tree.h): Remove include.
3423         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3424         before copy_freq_compare_func.
3425         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3426         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3427         New definitions.
3428         (hard_regs_roots, hard_regs_node_vec): Ditto.
3429         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3430         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3431         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3432         (create_new_object_hard_regs_node): Ditto.
3433         (add_new_object_hard_regs_node_to_forest): Ditto.
3434         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3435         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3436         Ditto.
3437         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3438         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3439         (remove_unused_object_hard_regs_nodes): Ditto.
3440         (enumerate_object_hard_regs_nodes): Ditto.
3441         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3442         (object_hard_regs_subnode_t): Ditto.
3443         (struct object_hard_regs_subnode): Ditto.
3444         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3445         (setup_object_hard_regs_subnode_index): Ditto.
3446         (get_object_hard_regs_subnodes_num): Ditto.
3447         (form_object_hard_regs_nodes_forest): Ditto.
3448         (finish_object_hard_regs_nodes_tree): Ditto.
3449         (finish_object_hard_regs_nodes_forest): Ditto.
3450         (allocnos_have_intersected_live_ranges_p): Rename to
3451         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3452         (pseudos_have_intersected_live_ranges_p): Rename to
3453         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3454         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3455         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3456         (update_copy_costs): Remove assert.  Skip cost update if the hard
3457         reg does not belong the class.
3458         (assign_hard_reg): Process only profitable hard regs.
3459         (uncolorable_allocnos_num): Make it scalar.
3460         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3461         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3462         and ira_reg_class_max_nregs.
3463         (bucket_allocno_compare_func): Check frequency first.
3464         (sort_bucket): Add compare function as a parameter.
3465         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3466         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3467         (push_allocno_to_stack): Rewrite for checking new allocno
3468         colorability.
3469         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3470         (push_only_colorable): Pass new parameter to sort_bucket.
3471         (push_allocno_to_spill): Remove.
3472         (allocno_spill_priority_compare): Make it inline and rewrite.
3473         (splay_tree_allocate, splay_tree_free): Remove.
3474         (allocno_spill_sort_compare): New function.
3475         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3476         build and use splay tree.  Choose first allocno in uncolorable
3477         allocno bucket to spill.  Remove setting spill cost.
3478         (all_conflicting_hard_regs): Remove.
3479         (setup_allocno_available_regs_num): Check only profitable hard
3480         regs.  Print info about hard regs nodes.
3481         (setup_allocno_left_conflicts_size): Remove.
3482         (put_allocno_into_bucket): Don't call
3483         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3484         (improve_allocation): New.
3485         (color_allocnos): Call setup_profitable_hard_regs,
3486         form_object_hard_regs_nodes_forest, improve_allocation,
3487         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3488         (print_loop_title): Use pressure classes.
3489         (color_allocnso): Ditto.
3490         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3491         and allocnos_for_spilling.
3492         (ira_sort_regnos_for_alter_reg): Don't setup members
3493         {first,next}_coalesced_allocno.
3494         (color): Remove allocating and freeing removed_splay_allocno_vec.
3495         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3496         prohibited_class_mode_regs.
3497
3498         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3499         formatting.
3500         (update_allocno_pressure_excess_length): Use pressure classes.
3501         (inc_register_pressure, dec_register_pressure): Check for pressure
3502         class.
3503         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3504         pressure class.  Use ira_reg_class_nregs instead of
3505         ira_reg_class_max_nregs.
3506         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3507         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3508         (single_reg_class): Use ira_reg_class_nregs instead of
3509         ira_reg_class_max_nregs.
3510         (process_bb_node_lives): Use pressure classes.
3511
3512         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3513         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3514         (change_loop): Use pressure classes.
3515         (modify_move_list): Call ira_set_allocno_class instead of
3516         ira_set_allocno_cover_class.
3517
3518         * ira-build.c: Remove mentioning cover classes from the file.  Use
3519         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3520         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3521         ALLOCNO_UPDATED_CLASS_COST instead of
3522         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3523         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3524         (ira_create_allocno): Remove initialization of
3525         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3526         ALLOCNO_COLORABLE_P.
3527         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3528         Update conflict regs for the objects.
3529         (create_cap_allocno): Remove assert.  Don't propagate
3530         ALLOCNO_AVAILABLE_REGS_NUM.
3531         (ira_free_allocno_costs): New function.
3532         (finish_allocno): Change a part of code into call of
3533         ira_free_allocno_costs.
3534         (low_pressure_loop_node_p): Use pressure classes.
3535         (object_range_compare_func): Don't compare classes.
3536         (setup_min_max_conflict_allocno_ids): Ditto.
3537
3538         * loop-invariant.c: Remove mentioning cover classes from the file.
3539         Use ira_pressure_classes and ira_pressure_classes_num instead of
3540         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3541         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3542         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3543         Use reg_allocno_class instead of reg_cover_class.
3544         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3545         STACK_REG_COVER_CLASS.
3546         (get_regno_cover_class): Rename to get_regno_pressure_class.
3547         (move_loop_invariants): Initialize and finalize regstat.
3548
3549         * ira.c: Remove mentioning cover classes from the file.  Add
3550         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3551         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3552         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3553         setup_class_subset_and_memory_move_costs.
3554         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3555         (setup_cover_and_important_classes): Rename to
3556         setup_allocno_and_important_classes.
3557         (setup_class_translate_array): New.
3558         (setup_class_translate): Call it for allocno and pressure classes.
3559         (cover_class_order): Rename to allocno_class_order.
3560         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3561         of ira_class_translate.
3562         (reorder_important_classes): Set up ira_important_class_nums.
3563         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3564         (print_class_cover): Rename to print_classes.  Add parameter.
3565         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3566         Print pressure classes too.
3567         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3568         setup_reg_subclasses.
3569         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3570         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3571         (setup_prohibited_class_mode_regs): Use
3572         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3573         (clarify_prohibited_class_mode_regs): New function.
3574         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3575         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3576         (ira_init_once): Initialize them.
3577         (free_register_move_costs): Process them.
3578         (ira_init): Move calls of find_reg_classes and
3579         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3580         Call clarify_prohibited_class_mode_regs.
3581         (ira_no_alloc_reg): Remove.
3582         (too_high_register_pressure_p): Use pressure classes.
3583
3584         * sched-deps.c: Remove mentioning cover classes from the file.
3585         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3586         ira_pressure_classes and ira_pressure_classes_num instead of
3587         ira_reg_class_cover_size and ira_reg_class_cover.
3588         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3589         sched_regno_pressure_class instead of sched_regno_cover_class.
3590         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
3591         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3592
3593         * ira.h: Add 2010 to Copyright.
3594         (ira_no_alloc_reg): Remove external.
3595         (struct target_ira): Rename x_ira_hard_regno_cover_class,
3596         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3597         x_ira_class_translate to x_ira_hard_regno_allocno_class,
3598         x_ira_allocno_classes_num, x_ira_allocno_classes, and
3599         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
3600         x_ira_pressure_classes, x_ira_pressure_class_translate, and
3601         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
3602         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
3603         x_ira_no_alloc_regs.
3604         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3605         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3606         ira_allocno_classes_num and ira_allocno_classes.
3607         (ira_class_translate): Rename to ira_allocno_class_translate.
3608         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3609         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3610         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3611         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3612         (ira_no_alloc_regs): New.
3613
3614         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
3615         classes from the file.  Use ALLOCNO_CLASS instead of
3616         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
3617         ALLOCNO_COVER_CLASS_COST.
3618         (regno_cover_class): Rename to regno_aclass.
3619         (record_reg_classes): Use ira_reg_class_subunion instead of
3620         ira_reg_class_union.
3621         (record_address_regs): Check overflow.
3622         (scan_one_insn): Ditto.
3623         (print_allocno_costs): Print total mem cost fore regional allocation.
3624         (print_pseudo_costs): Use REG_N_REFS.
3625         (find_costs_and_classes): Use classes intersected with them on the
3626         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
3627         ira_reg_class_union.  Use ira_allocno_class_translate and
3628         regno_aclass instead of ira_class_translate and regno_cover_class.
3629         Modify code for finding regno_aclass.  Setup preferred classes for
3630         the next pass.
3631         (setup_allocno_cover_class_and_costs): Rename to
3632         setup_allocno_class_and_costs.  Use regno_aclass instead of
3633         regno_cover_class.  Use ira_set_allocno_class instead of
3634         ira_set_allocno_cover_class.
3635         (init_costs, finish_costs): Use regno_aclass instead of
3636         regno_cover_class.
3637         (ira_costs): Use setup_allocno_class_and_costs instead of
3638         setup_allocno_cover_class_and_costs.
3639         (ira_tune_allocno_costs_and_cover_classes): Rename to
3640         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
3641         by processing objects.  Use ira_reg_class_max_nregs instead of
3642         ira_reg_class_nregs.
3643
3644         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3645
3646         * sched-int.h: Remove mentioning cover classes from the file.
3647         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3648
3649         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3650         classes from the file.
3651         (struct reg_pref): Rename coverclass into allocnoclass.
3652         (reg_cover_class): Rename to reg_allocno_class.
3653
3654         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3655
3656         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3657
3658         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3659
3660         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3661
3662         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3663
3664         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3665
3666         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3667
3668         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3669
3670         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3671
3672         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3673
3674         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3675         (i386_ira_cover_classes): Ditto.
3676
3677         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3678
3679         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3680
3681         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3682
3683         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3684
3685         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3686
3687         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3688
3689         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3690         (mips_ira_cover_classes): Ditto.
3691
3692         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3693
3694         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3695
3696         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3697
3698         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3699
3700         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3701
3702         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3703         (IRA_COVER_CLASSES_VSX): Ditto.
3704
3705         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3706         (rs6000_ira_cover_classes): Ditto.
3707
3708         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3709
3710         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3711
3712         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3713
3714         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3715
3716         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3717
3718         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3719
3720         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3721
3722         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3723
3724         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3725
3726         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3727
3728 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3729
3730         PR debug/48253
3731         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3732         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3733         dw_fde_unlikely_section_end_label, cold_in_std_section,
3734         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3735         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3736         fields.
3737         (output_fde): Use dw_fde_second_{begin,end} if second is
3738         true, otherwise dw_fde_{begin,end}.
3739         (output_call_frame_info): Test dw_fde_second_begin != NULL
3740         instead of dw_fde_switched_sections.
3741         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3742         fields, initialize new fields.  Initialize in_std_section
3743         unconditionally from the first partition.
3744         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3745         dw_fde_second_begin is non-NULL.
3746         (dwarf2out_switch_text_section): Stop initializing removed
3747         dw_fde_struct fields, initialize new fields, initialize
3748         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3749         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
3750         (struct var_loc_list_def): Add last_before_switch field.
3751         (arange_table, arange_table_allocated, arange_table_in_use,
3752         ARANGE_TABLE_INCREMENT, add_arange): Removed.
3753         (size_of_aranges): Count !in_std_section and !second_in_std_section
3754         hunks in fdes, instead of looking at arange_table_in_use.
3755         (output_aranges): Add aranges_length argument, don't call
3756         size_of_aranges here.  Instead of using aranges_table*
3757         emit ranges for fdes when !in_std_section resp.
3758         !second_in_std_section.
3759         (dw_loc_list): Break ranges crossing section switch.
3760         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
3761         use dw_fde_second_end instead of dw_fde_end as end of last range.
3762         (gen_subprogram_die): Don't call add_arange.  Use
3763         dw_fde_{begin,end} for first partition and if switched
3764         section dw_fde_second_{begin,end} for the second.
3765         (var_location_switch_text_section_1,
3766         var_location_switch_text_section): New functions.
3767         (dwarf2out_begin_function): Initialize cold_text_section even
3768         when function_section () isn't text_section.
3769         (prune_unused_types): Don't walk arange_table.
3770         (dwarf2out_finish): Don't needlessly test
3771         flag_reorder_blocks_and_partition when testing cold_text_section_used.
3772         If info_section_emitted, call size_of_aranges and if it indicates
3773         non-empty .debug_aranges, call output_aranges with the computed
3774         size.  Stop using removed dw_fde_struct fields, use
3775         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3776         for second.
3777
3778         PR debug/48203
3779         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3780         create ENTRY_VALUE if incoming or address of incoming's MEM
3781         is a hard REG.
3782         * dwarf2out.c (mem_loc_descriptor): Don't emit
3783         DW_OP_GNU_entry_value of DW_OP_fbreg.
3784         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3785         on ENTRY_VALUE is able to find the canonical parameter VALUE.
3786         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3787         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3788         ENTRY_VALUE_EXPs.
3789         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3790         is a REG_P or MEM_P with REG_P address, compute hash directly
3791         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3792         (preserve_only_constants): Don't clear VALUES forwaring
3793         ENTRY_VALUE to some other VALUE.
3794
3795 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3796
3797         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3798         instead of GEN_INT.
3799
3800 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3801
3802         * cfgexpand.c (expand_gimple_cond): Always set the source location and
3803         block before expanding the statement.
3804         (expand_gimple_stmt_1): Likewise.  Set them here...
3805         (expand_gimple_stmt): ...and not here.  Tidy.
3806         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3807         unknown.
3808
3809 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3810
3811         * Makefile.in: New rule for cprop.o.
3812         * gcse.c: Move constant/copy propagation to cprop.c.
3813         (compute_local_properties): Only handle expression tables.
3814         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3815         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3816         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3817         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3818         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3819         compute_cprop_data, find_used_regs, try_replace_reg,
3820         find_avail_set, cprop_jump, constprop_register, cprop_insn,
3821         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3822         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3823         find_bypass_set, reg_killed_on_edge, bypass_block,
3824         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3825         execute_rtl_cprop, pass_rtl_cprop): Move to...
3826         * cprop.c: ...here.  New file, constant/copy propagation for RTL
3827         moved from gcse.c to here with minor cleanups in duplicated code.
3828
3829 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3830
3831         * config/i386/i386.c (flag_opts): Fix a typo in
3832         -mavx256-split-unaligned-store.
3833
3834 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3835
3836         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3837         LIBCALL_VALUE): Remove macros.
3838         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3839         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3840         (h8300_function_value, h8300_libcall_value,
3841         h8300_function_value_regno_p): New functions.
3842
3843 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3844
3845         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3846
3847 2011-03-28  Jeff Law  <law@redhat.com>
3848
3849         * tree-ssa-threadupdate.c (redirect_edges): Call
3850         create_edge_and_update_destination_phis as needed.
3851         (create_edge_and_update_destination_phis): Accept new BB argument.
3852         All callers updated.
3853         (thread_block): Do not update the profile when threading around
3854         intermediate blocks.
3855         (thread_single_edge): Likewise.
3856         (determine_bb_domination_status): If BB is not a successor of the
3857         loop header, return NONDOMINATING.
3858         (register_jump_thread): Note when we register a jump thread around
3859         an intermediate block.
3860         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3861         (thread_across_edge): Use it.
3862
3863 2011-03-28  Tristan Gingold  <gingold@adacore.com>
3864
3865         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3866         when for_return is 2.
3867
3868 2011-03-28  Jeff Law  <law@redhat.com>
3869
3870         * var-tracking.c (canonicalize_values_mark): Delete unused
3871         lhs assignment.
3872         (canonicalize_values_star, set_variable_part): Likewise.
3873         (clobber_variable_part, delete_variable_part): Likewise.
3874
3875 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3876
3877         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3878
3879 2011-03-28  Martin Jambor  <mjambor@suse.cz>
3880
3881         * tree-inline.c (expand_call_inline): Do not check that destination
3882         node is analyzed.
3883         (optimize_inline_calls): Assert that destination node is analyzed.
3884         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3885         not call tree_lowering_passes.
3886         * cgraph.h (cgraph_analyze_function): Declare.
3887         * cgraphunit.c (cgraph_analyze_function): Make public.
3888
3889 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
3890
3891         * config/sparc/sparc-opts.h: New.
3892         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3893         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3894         (sparc_option_override): Store processor_type enumeration rather
3895         than string in cpu_default.  Remove name and enumeration from
3896         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
3897         without using sparc_select.  Use target_flags_explicit instead of
3898         fpu_option_set.
3899         * config/sparc/sparc.h (enum processor_type): Move to
3900         sparc-opts.h.
3901         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3902         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3903         HeaderInclude entry.
3904         (mcpu=, mtune=): Use Var and Enum.
3905         (sparc_processor_type): New Enum and EnumValue entries.
3906
3907 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3908             Iain Sandoe  <iains@gcc.gnu.org>
3909
3910         PR target/48245
3911         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3912
3913 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3914
3915         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3916         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3917         Insert new statements at it in lieu of STMT.
3918         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3919         * tree-vect-stmts.c (vectorizable_store): Likewise.
3920         (vectorizable_load): Likewise.
3921
3922 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
3923
3924         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3925         (divtf3): Ditto.
3926         (multf3): Ditto.
3927         (subtf3): Ditto.
3928
3929 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3930
3931         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3932         unaligned 256bit load/store.
3933         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3934         (*avx_movdqu<avxmodesuffix>): Likewise.
3935
3936 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3937
3938         PR target/48288
3939         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3940         * config/pa/pa.md (iordi3): Use new predicate in expander.
3941         (iorsi3): Likewise.
3942
3943 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
3944
3945         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3946         FUNCTION_VALUE_REGNO_P): Remove macros.
3947         * config/mips/mips-protos.h (mips_function_value): Remove.
3948         * config/mips/mips.c (mips_function_value): Rename to...
3949         (mips_function_value_1): ... this. Make static.  Handle receiving
3950         the function type in 'fn_decl_or_type' argument.
3951         (mips_function_value, mips_libcall_value,
3952         mips_function_value_regno_p): New function.
3953         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3954         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3955
3956 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3957
3958         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3959         and -mavx256-split-unaligned-store.
3960         (ix86_option_override_internal): Split 32-byte AVX unaligned
3961         load/store by default.
3962         (ix86_avx256_split_vector_move_misalign): New.
3963         (ix86_expand_vector_move_misalign): Use it.
3964
3965         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3966         -mavx256-split-unaligned-store.
3967
3968         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3969         256bit load/store.  Generate unaligned store on misaligned memory
3970         operand.
3971         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3972         256bit load/store.
3973         (*avx_movdqu<avxmodesuffix>): Likewise.
3974
3975         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3976         -mavx256-split-unaligned-store.
3977
3978 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3979
3980         PR target/38598
3981         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3982         Update commentary.
3983
3984 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3985
3986         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3987         opno arguments with an expand_operand.  Use create_input_operand.
3988         (mips_prepare_builtin_target): Delete.
3989         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3990         functions.
3991         (mips_expand_builtin_direct): Use create_output_operand and
3992         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
3993         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
3994         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3995
3996 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
3997
3998         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3999         function.
4000         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4001
4002 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4003
4004         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4005         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4006         basic blocks and call commit_edge_insertions directly.
4007         (fixup_abnormal_edges): Move from here to...
4008         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4009         on the edges and return whether some have actually been inserted.
4010         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4011         compensation code.
4012
4013 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4014
4015         PR rtl-optimization/48144
4016         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4017         (merge_expr_data): ... here.
4018         (av_set_intersect): Rename to av_set_code_motion_filter.
4019         Update all callers.  Call merge_history_vect when an expression
4020         is found in both sets.
4021         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4022
4023 2011-03-26  Alan Modra  <amodra@gmail.com>
4024
4025         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4026         cmodel medium addresses.
4027         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4028         64-bit gpr loads and stores.
4029         (rs6000_secondary_reload_ppc64): New function.
4030         * config/rs6000/rs6000-protos.h: Declare it.
4031         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4032
4033 2011-03-26  Alan Modra  <amodra@gmail.com>
4034
4035         PR target/47487
4036         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4037         GNU Go in traceback table.
4038
4039 2011-03-25  Richard Henderson  <rth@redhat.com>
4040
4041         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4042         if there are exactly 6 operands.
4043         (set_storage_via_setmem): Similarly.
4044
4045 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4046
4047         * collect2.c (write_c_file_stat): Handle backslash
4048         as right-hand directory separator.
4049         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4050         checking just for slash.
4051         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4052         instead of checking for trailing slash.
4053         * gcc.c (record_temp_file): Use filename_cmp instead
4054         of strcmp.
4055         (do_spec_1): Likewise.
4056         (replace_outfile_spec_function): Likewise.
4057         (is_directory): Use filename_ncmp instead of strncmp.
4058         (print_multilib_info): Likewise.
4059         * gcov.c (find_source): Use filename_cmp instead
4060         instead of strcmp.
4061         (make_gcov_file_name): Fix order of slash/backslash
4062         checks.
4063         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4064         (add_standard_paths): Likewise.
4065         * mips-tfile.c (saber_stop): Handle backslash.
4066         * prefix.c (update_path): Use filename_ncmp instead of
4067         strncmp.
4068         * profile.c (output_location): Use filename_cmp instead
4069         of strcmp.
4070         * read-md.c (handle_toplevel_file): Handle backslash.
4071         * tlink.c (frob_extension):  Likewise.
4072         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4073         strcmp.
4074         * tree-dump.c (dequeue_and_dump): Handle backslash.
4075         * tree.c (get_file_function_name): Likewise.
4076         * gengtype.c (read_input_list): Likewise.
4077         (get_file_realbasename): Likewise.
4078         (get_output_file_with_visibility): Use filename_cmp
4079         instead of strcmp.
4080
4081 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4082
4083         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4084         case to VFPv1.
4085
4086 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4087
4088         * fold-const.c (expr_location_or): New function.
4089         (fold_truth_not_expr): Call it.
4090
4091 2011-03-25  Jeff Law  <law@redhat.com>
4092
4093         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4094         va_end.
4095         * c-family/c-common.c (def_fn_type): Likewise.
4096         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4097         * emit-rtl.c (gen_rtvec): Likewise.
4098         * lto/lto-lang.c (def_fn_type): Likewise.
4099
4100 2011-03-25  Richard Guenther  <rguenther@suse.de>
4101
4102         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4103         also generate copies.
4104         (fini_copy_prop): Handle constant values properly.
4105
4106 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4107
4108         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4109         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4110         (hash_loc_operands, compare_loc_operands): Handle
4111         DW_OP_GNU_entry_value.
4112
4113 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4114
4115         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4116         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4117         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4118         comment and use macro TARGET_64BIT_MS_ABI instead.
4119         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4120         and change default behavior for 32-bit MS_ABI.
4121         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4122         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4123         32-bit, too.
4124         (ix86_cfun_abi): Likewise.
4125         (ix86_maybe_switch_abi): Adjust comment.
4126         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4127         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4128         instead of checking for SYSV_ABI.
4129         (ix86_nsaved_sseregs): Likewise.
4130         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4131         to 16 bytes.
4132         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4133         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4134         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4135         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4136         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4137
4138 2011-03-25  Richard Guenther  <rguenther@suse.de>
4139
4140         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4141         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4142         (verify_gimple): Remove.
4143         * tree-cfg.c (verify_gimple_call): Merge verification
4144         from verify_stmts.
4145         (verify_gimple_phi): Merge verification from verify_stmts.
4146         (verify_gimple_label): New function.
4147         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4148         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4149         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4150         (verify_stmts): Rename to verify_gimple_in_cfg.
4151         (verify_gimple_in_cfg): New function.
4152         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4153         * tree-ssa.c (verify_ssa): Likewise.
4154         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4155
4156 2011-03-25  Richard Guenther  <rguenther@suse.de>
4157
4158         * passes.c (init_optimization_passes): Add FRE pass after
4159         early SRA.
4160
4161 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4162             Andrew Stubbs  <ams@codesourcery.com>
4163
4164         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4165         for Cortex-A8.
4166         (arm_movdi_vfp_cortexa8): New pattern.
4167         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4168         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4169         instructions when tuning for Cortex-A8.  Set attribute "arch".
4170         * config/arm/arm.md: Move include arm-tune.md up a bit.
4171         (define_attr "arch"): Add "onlya8" and "nota8" values.
4172         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4173
4174 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4175
4176         PR bootstrap/48282
4177         Revert:
4178         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4179
4180         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4181         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4182         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4183         * passes.c (init_optimization_passes): Move
4184         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4185
4186 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4187
4188         * c-typeck.c (comptypes_internal): Replace target
4189         hook call of comp_type_attributes by version in tree.c file.
4190         * gimple.c (gimple_types_compatible_p_1): Likewise.
4191         * tree-ssa.c (useless_type_conversion_p): Likewise.
4192         * tree.c (build_type_attribute_qual_variant): Likewise.
4193         (attribute_value_equal): New static helper function.
4194         (comp_type_attributes): New function.
4195         (merge_attributes): Use attribute_value_equal for comparison.
4196         (attribute_list_contained): Likewise.
4197         * tree.h (comp_type_attributes): New prototype.
4198
4199 2011-03-25  Richard Guenther  <rguenther@suse.de>
4200
4201         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4202         of complex types at -O0.
4203         (verify_gimple_assign_binary): Likewise.
4204         (verify_gimple_assign_ternary): Likewise.
4205
4206 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4207
4208         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4209         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4210
4211 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4212
4213         PR debug/48041
4214         * dwarf2out.c (output_abbrev_section): Only write table when
4215         abbrev_die_table_in_use > 1.
4216
4217 2011-02-24  Richard Henderson  <rth@redhat.com>
4218
4219         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4220         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4221         (alpha_expand_unaligned_load_words): Use extql.
4222         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4223         (emit_insxl): Handle all modes for consistency.
4224
4225 2011-02-24  Richard Henderson  <rth@redhat.com>
4226
4227         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4228         (alpha_expand_unaligned_load): Likewise.
4229         (alpha_expand_unaligned_store): Likewise.
4230         (alpha_expand_unaligned_load_words): Likewise.
4231         (alpha_expand_unaligned_store_words): Likewise.
4232         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4233         (alpha_split_lock_test_and_set_12): Likewise.
4234         (print_operand, alpha_fold_builtin_extxx): Likewise.
4235         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4236         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4237         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4238         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4239         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4240         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4241         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4242         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4243         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4244         (extwl, extll, extql): Similarly.
4245         (inswh, inslh, insqh): Similarly.
4246         (mskbl, mskwl, mskll, mskql): Similarly.
4247         (mskwh, msklh, mskqh): Similarly.
4248
4249 2011-02-24  Richard Henderson  <rth@redhat.com>
4250
4251         * config/alpha/alpha.md (attribute isa): Add er, ner.
4252         (attribute enabled): Handle them.
4253         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4254
4255 2011-02-24  Richard Henderson  <rth@redhat.com>
4256
4257         * config/alpha/alpha.md (attribute isa): Add vms.
4258         (attribute enabled): Handle it.
4259         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4260         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4261         (*movtf): Rename from *movtf_internal for consistency.
4262         (*movsi): Merge with *movsi_nt_vms.
4263         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4264         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4265         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4266         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4267
4268 2011-02-24  Richard Henderson  <rth@redhat.com>
4269
4270         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4271         (extendqisi2, extendhisi2): Likewise.
4272         (extendqidi2): Simplify BWX/non-BWX expansions.
4273         (extendhidi2): Similarly.
4274
4275 2011-02-24  Richard Henderson  <rth@redhat.com>
4276
4277         * config/alpha/alpha.md (attribute isa): New.
4278         (attribute enabled): New.
4279         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4280         (zero_extendqisi2, zero_extendqidi2): Similarly.
4281         (zero_extendhisi2, zero_extendhidi2): Similarly.
4282         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4283
4284 2011-02-24  Richard Henderson  <rth@redhat.com>
4285
4286         * config/alpha/predicates.md (input_operand): Revert last change;
4287         update comment to mention 32-bit VMS rather than Windows.
4288
4289 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4290
4291         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4292         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4293         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4294         * passes.c (init_optimization_passes): Move
4295         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4296
4297 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4298
4299         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4300
4301 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4302
4303         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4304         correctly.
4305
4306 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4307
4308         PR debug/48204
4309         * simplify-rtx.c (simplify_const_unary_operation): Call
4310         real_convert when changing mode class with FLOAT_EXTEND.
4311
4312 2011-03-24  Nick Clifton  <nickc@redhat.com>
4313
4314         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4315         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4316         * config/rx/rx.c (rx_option_override): Set align_jumps,
4317         align_loops and align_labels if not set by the user.
4318         (rx_align_for_label): New function.
4319         (rx_max_skip_for_label): New function.
4320         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4321         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4322         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4323         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4324         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4325
4326 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4327
4328         PR rtl-optimization/48263
4329         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4330         and original commutative_p handling.  Use maybe_gen_insn.
4331
4332 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4333
4334         * reload.c (find_reloads_subreg_address): Add address_reloaded
4335         parameter and return true there if the full address has been
4336         reloaded.
4337         (find_reloads_toplev): Pass address_reloaded flag.
4338         (find_reloads_address_1): Don't use address_reloaded parameter.
4339
4340 2011-03-24  Jeff Law  <law@redhat.com>
4341
4342         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4343         unused variable "ann".
4344         (remove_unused_locals): Likewise.
4345
4346         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4347         statement.
4348
4349         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4350         after it is freed.
4351
4352 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4353
4354         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4355         for invalid symbolic addresses.
4356         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4357         larl operands.
4358
4359 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4360
4361         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4362         the argument in calls to fold_truth_not_expr.
4363
4364 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4365
4366         * tree.c (record_node_allocation_statistics): New function.
4367         (make_node_stat, copy_node_stat, build_string): Call it.
4368         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4369         (build1_stat, build_omp_clause): Likewise.
4370
4371 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4372
4373         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4374         last commit.
4375
4376 2011-03-24  Richard Guenther  <rguenther@suse.de>
4377
4378         PR tree-optimization/48271
4379         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4380         blocks that still exist.
4381
4382 2011-03-24  Richard Guenther  <rguenther@suse.de>
4383
4384         PR tree-optimization/48270
4385         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4386         not free datarefs before ddrs.
4387
4388 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4389
4390         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4391         from the address built for a reference with variable offset.
4392
4393 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4394
4395         PR target/48237
4396         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4397         alternatives that can be handled with movq or movabsq insn.
4398         (*movdf_internal): Disable for !TARGET_64BIT.
4399         (*movdf_internal_nointeger): Ditto.
4400         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4401
4402 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4403
4404         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4405         (FUNCTION_ARG_ADVANCE): Likewise.
4406         * tm.texi.in: Change references to them to hook references.
4407         * tm.texi: Regenerate.
4408         * targhooks.c (default_function_arg): Eliminate check for target macro.
4409         (default_function_incoming_arg): Likewise.
4410         (default_function_arg_advance): Likewise.
4411         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4412         (function_arg_advance): Likewise.
4413         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4414
4415 2011-03-24  Richard Guenther  <rguenther@suse.de>
4416
4417         PR middle-end/48269
4418         * tree-object-size.c (addr_object_size): Do not double-account
4419         for MEM_REF offsets.
4420
4421 2011-03-24  Diego Novillo  <dnovillo@google.com>
4422
4423         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4424         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4425         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4426         Update all users.
4427         (lto_input_string): Rename from input_string.  Make extern.
4428         Update all users.
4429         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4430         output_string_with_length.
4431         Output 0 to indicate a non-NULL string.  Update all callers to
4432         not emit 0.
4433         (lto_output_string): Rename from output_string.  Make extern.
4434         Update all users.
4435         (lto_output_decl_state_streams): Make extern.
4436         (lto_output_decl_state_refs): Make extern.
4437         * lto-streamer.h (lto_input_string): Declare.
4438         (lto_input_data_block): Declare.
4439         (lto_output_string): Declare.
4440         (lto_output_string_with_length): Declare.
4441         (lto_output_decl_state_streams): Declare.
4442         (lto_output_decl_state_refs): Declare.
4443
4444 2011-03-24  Richard Guenther  <rguenther@suse.de>
4445
4446         PR tree-optimization/46562
4447         * tree.c (build_invariant_address): New function.
4448         * tree.h (build_invariant_address): Declare.
4449         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4450         a renamed function moved ...
4451         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4452         Take valueization callback parameter.
4453         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4454         * gimple-fold.h: New file.
4455         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4456         (ccp_fold, fold_const_aggregate_ref,
4457         fold_ctor_reference, fold_nonarray_ctor_reference,
4458         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4459         get_base_constructor): Move ...
4460         * gimple-fold.c: ... here.
4461         (gimple_fold_stmt_to_constant_1): New function
4462         split out from ccp_fold.  Take a valueization callback parameter.
4463         Valueize all operands.
4464         (gimple_fold_stmt_to_constant): New wrapper function.
4465         (fold_const_aggregate_ref_1): New function split out from
4466         fold_const_aggregate_ref.  Take a valueization callback parameter.
4467         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4468         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4469         invariant POINTER_PLUS_EXPRs to invariant form.
4470         (vn_valueize): New function.
4471         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4472         * tree-vrp.c (vrp_valueize): New function.
4473         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4474         to fold statements to constants.
4475         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4476         function declarations.
4477         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4478         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4479
4480 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4481
4482         * config/h8300/predicates.md (jump_address_operand): Fix register
4483         mode check.
4484
4485 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4486
4487         * doc/invoke.texi (max-stores-to-sink): Document.
4488         * params.h (MAX_STORES_TO_SINK): Define.
4489         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4490         if either vectorization or if-conversion is disabled.
4491         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4492         tree-vect-data-refs.c vect_equal_offsets.
4493         (dr_equal_offsets_p): New function.
4494         (find_data_references_in_bb): Remove static.
4495         * tree-data-ref.h (find_data_references_in_bb): Declare.
4496         (dr_equal_offsets_p): Likewise.
4497         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4498         (vect_drs_dependent_in_basic_block): Update calls to
4499         vect_equal_offsets.
4500         (vect_check_interleaving): Likewise.
4501         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4502         (cond_if_else_store_replacement): Rename to...
4503         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4504         documentation.
4505         (cond_if_else_store_replacement): New function.
4506         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4507         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4508
4509 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4510
4511         PR target/46934
4512         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4513         to subtract lower bound instead of GEN_INT().
4514
4515 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4516
4517         PR other/48179
4518         PR other/48221
4519         PR other/48234
4520         * doc/extend.texi (Alignment): Move section to match order in TOC.
4521         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4522         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4523
4524 2011-03-23  Jeff Law  <law@redhat.com>
4525
4526         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4527         before removing the edge.
4528
4529         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4530         it may have been freed by redirect_branch_edge or
4531         redirect_edge_succ_nodup.
4532
4533 2011-03-23  Richard Guenther  <rguenther@suse.de>
4534
4535         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4536         (check_va_list_escapes): Likewise.
4537         (check_all_va_list_escapes): Likewise.
4538
4539 2011-03-23  Richard Guenther  <rguenther@suse.de>
4540
4541         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4542         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4543         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4544         (alias.o): Likewise.
4545         (ipa-type-escape.o): Remove.
4546         (ipa-struct-reorg.o): Likewise.
4547         (GTFILES): Remove ipa-struct-reorg.c.
4548         * alias.c: Do not include ipa-type-escape.h.
4549         * tree-ssa-alias.c: Likewise.
4550         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4551         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4552         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4553         and ipa-type-escape passes.
4554         * tree-pass.h (pass_ipa_type_escape): Remove.
4555         (pass_ipa_struct_reorg): Likewise.
4556         * ipa-struct-reorg.h: Remove.
4557         * ipa-struct-reorg.c: Likewise.
4558         * ipa-type-escape.h: Likewise.
4559         * ipa-type-escape.c: Likewise.
4560         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4561         (--param struct-reorg-cold-struct-ratio): Likewise.
4562         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4563         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4564         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4565
4566 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4567
4568         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4569         cpu attribute value.
4570         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4571         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4572         * config/s390/s390.c (processor_flags_table): New constant array.
4573         (s390_handle_arch_option): Remove.
4574         (s390_handle_option): Remove s390_handle_arch_option invocations
4575         and OPT_mwarn_framesize_ handling.
4576         (s390_option_override): Remove s390_handle_arch_option invocation.
4577         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4578         warnings.
4579         * config/s390/s390.md (cpu attribute): Add z9_ec value.
4580         * config/s390/s390.opt (s390_tune, s390_arch)
4581         (march=): Replace s390_arch_option enum and values with
4582         processor_type.  Set variable name to s390_arch.  Set
4583         initialization value.
4584         (mtune=): Replace s390_arch_option with processor_type.  Set
4585         variable name to s390_tune.  Set initialization value.
4586
4587 2011-03-23  Julian Brown  <julian@codesourcery.com>
4588
4589         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4590         accesses which are not naturally aligned.
4591
4592 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4593
4594         PR target/47553
4595         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4596
4597 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4598
4599         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4600         parameter from "int" to "enum insn_code".
4601         (expand_operand_type): New enum.
4602         (expand_operand): New structure.
4603         (create_expand_operand): New function.
4604         (create_fixed_operand, create_output_operand): Likewise
4605         (create_input_operand, create_convert_operand_to): Likewise.
4606         (create_convert_operand_from, create_address_operand): Likewise.
4607         (create_integer_operand): Likewise.
4608         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4609         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4610         (expand_insn, expand_jump_insn): Likewise.
4611         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4612         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4613         (expand_movstr, expand_builtin___clear_cache): Likewise.
4614         (expand_builtin_lock_release): Likewise.
4615         * explow.c (allocate_dynamic_stack_space): Likewise.
4616         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
4617         and use the default handling in that case.
4618         * expmed.c (check_predicate_volatile_ok): Delete.
4619         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4620         (emit_cstore): Likewise.
4621         * expr.c (emit_block_move_via_movmem): Likewise.
4622         (set_storage_via_setmem, expand_assignment): Likewise.
4623         (emit_storent_insn, try_casesi): Likewise.
4624         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
4625         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4626         (expand_vec_shift_expr, expand_binop_directly): Likewise.
4627         (expand_twoval_unop, expand_twoval_binop): Likewise.
4628         (expand_unop_direct, emit_indirect_jump): Likewise.
4629         (emit_conditional_move, vector_compare_rtx): Likewise.
4630         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4631         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4632         (expand_sync_lock_test_and_set): Likewise.
4633         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
4634         (emit_unop_insn): Likewise.
4635         (expand_copysign_absneg): Change icode to an insn_code.
4636         (create_convert_operand_from_type): New function.
4637         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4638         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4639         (expand_insn, expand_jump_insn): Likewise.
4640         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4641         than const_int_operand for operand 2.
4642
4643 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4644
4645         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4646         if possible.
4647
4648 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4649
4650         * emit-rtl.c (emit_pattern_before_noloc): New function.
4651         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4652         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4653         (emit_pattern_after_noloc): New function.
4654         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4655         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4656
4657 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4658
4659         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4660         (__ffsDI2): Likewise.
4661
4662 2011-03-22  Richard Henderson  <rth@redhat.com>
4663
4664         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4665         of !TARGET_ABI_OPEN_VMS.
4666         (alpha_trampoline_init, alpha_start_function): Likewise.
4667         (alpha_expand_epilogue, alpha_file_start): Likewise.
4668         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4669         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4670         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4671         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4672         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4673
4674 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4675
4676         * config/s390/s390-opts.h: New.
4677         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4678         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4679         s390_stack_guard): Remove.
4680         (s390_handle_arch_option): Return void.  Take enum
4681         s390_arch_option value instead of string and searching array.
4682         (s390_handle_option): Don't assert that global structures are in
4683         use.  Access variables via opts pointer.  Use error_at.  Don't use
4684         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4685         s390_handle_arch_option.
4686         (s390_option_override): Update call to s390_handle_arch_option.
4687         (s390_emit_prologue): Use %d format for s390_stack_size in
4688         diagnostic.  Use %wd for HOST_WIDE_INT.
4689         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4690         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4691         * config/s390/s390.opt (config/s390/s390-opts.h): New
4692         HeaderInclude entry.
4693         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4694         s390_arch_flags, s390_warn_framesize): New Variable entries.
4695         (s390_arch_option): New Enum and EnumValue entries.
4696         (march=): Use Enum instead of Var.
4697         (mstack-guard=, mstack-size=): Use UInteger and Var.
4698         (mtune=): Use Enum.
4699
4700 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4701
4702         * config/score/score.c (score_handle_option): Don't assert that
4703         global structures are in use.  Access target_flags via opts
4704         pointer.  Use value of -march= option to determine target_flags
4705         settings.
4706         * config/score/score.opt (march=): Use Enum.
4707         (score_arch): New Enum and EnumValue entries.
4708
4709 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4710
4711         * config/mep/mep.c (option_mtiny_specified): Remove.
4712         (mep_option_override): Move register handling for -mivc2 from
4713         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4714         instead of option_mtiny_specified.
4715         (mep_handle_option): Access target_flags via opts pointer.  Don't
4716         assert that global structures are in use.  Defer part of -mivc2
4717         handling and move it to mep_option_override.
4718         * config/mep/mep.opt (IVC2): New Mask entry.
4719         (mivc2): Use Var and Defer instead of Mask.
4720
4721 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4722
4723         * config/v850/v850-opts.h: New.
4724         * config/v850/v850.c (small_memory): Replace with
4725         small_memory_physical_max array.  Make that array static const.
4726         (v850_handle_memory_option): Take integer value of argument.  Take
4727         gcc_options pointer, option text and location.  Return void.
4728         Update for changes to small memory structures.
4729         (v850_handle_option): Access target_flags via opts pointer.  Don't
4730         assert that global structures are in use.  Update calls to
4731         v850_handle_memory_option.
4732         (v850_encode_data_area): Update references to small memory settings.
4733         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4734         (enum small_memory_type): Move to v850-opts.h.
4735         * config/v850/v850.opt (config/v850/v850-opts.h): New
4736         HeaderInclude entry.
4737         (small_memory_max): New Variable entry.
4738         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4739         (mtda, mzda): Likewise.
4740
4741 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4742
4743         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4744         pointer.  Don't assert that global structures are in use.
4745
4746 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4747
4748         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4749         via opts pointer.  Don't assert that global structures are in use.
4750
4751 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4752
4753         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4754         (munix=93): Use Var.
4755         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4756         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4757         * config/pa/pa-opts.h: New.
4758         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4759         (pa_handle_option): Don't assert that global structures are in
4760         use.  Access target_flags via opts pointer.  Don't handle
4761         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4762         OPT_munix_98 here.
4763         (pa_option_override): Handle deferred OPT_mfixed_range_.
4764
4765 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4766
4767         * config/mn10300/mn10300-opts.h: New.
4768         * config/mn10300/mn10300.c (mn10300_processor,
4769         mn10300_tune_string): Remove.
4770         (mn10300_handle_option): Don't assert that global structures are
4771         in use.  Access mn10300_processor via opts pointer.  Don't handle
4772         OPT_mtune_ here.
4773         * config/mn10300/mn10300.h (enum processor_type): Move to
4774         mn10300-opts.h.
4775         (mn10300_processor): Remove.
4776         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4777         HeaderInclude entry.
4778         (mn10300_processor): New Variable entry.
4779         (mtune=): Use Var.
4780
4781 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4782
4783         * config/microblaze/microblaze.c: Don't include opts.h.
4784         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4785         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4786         (mno-clearbss): Use Var and Warn.
4787
4788 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4789
4790         * config/m32r/m32r-opts.h: New.
4791         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4792         (m32r_handle_option): Don't assert that global structures are in
4793         use.  Access target_flags and m32r_cache_flush_func via opts
4794         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
4795         OPT_mno_flush_trap here.
4796         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4797         include of m32r-opts.h.
4798         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4799         HeaderInclude entry.
4800         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4801         (mmodel=): Use Enum and Var.
4802         (m32r_model): New Enum and EnumValue entries.
4803         (mno-flush-trap): Use Var.
4804         (msdata=): Use Enum and Var.
4805         (m32r_sdata): New Enum and EnumValue entries.
4806
4807 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4808
4809         * config/m32c/m32c.c: Don't include opts.h.
4810         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4811         m32c_handle_option): Remove.
4812         (m32c_option_override): Check global_options_set.x_target_memregs
4813         instead of target_memregs_set.
4814         * config/m32c/m32c.h (target_memregs): Remove.
4815         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4816         variable.
4817
4818 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4819
4820         * config/iq2000/iq2000-opts.h: New.
4821         * config/iq2000/iq2000.c: Don't include opts.h.
4822         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4823         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4824         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4825         HeaderInclude entry.
4826         (iq2000_tune): New Variable entry.
4827         (march=): Add comment.  Use Enum.
4828         (iq2000_arch): New Enum and EnumValue entries.
4829         (mcpu=): Use Enum and Var.
4830         (iq2000_tune): New Enum and EnumValue entries.
4831
4832 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4833
4834         * config/ia64/ia64-opts.h: New.
4835         * config/ia64/ia64.c (ia64_tune): Remove.
4836         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4837         here.  Use error_at.
4838         (ia64_option_override): Handle deferred OPT_mfixed_range_.
4839         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4840         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4841         HeaderInclude entry.
4842         (ia64_tune): New Variable entry.
4843         (mfixed-range=): Use Defer and Var.
4844         (mtune=): Use Enum and Var.
4845         (ia64_tune): New Enum and EnumValue entries.
4846
4847 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4848
4849         * config/frv/frv-opts.h: New.
4850         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4851         frv-opts.h.
4852         (frv_cpu_type): Remove.
4853         * config/frv/frv.c: Don't include opts.h.
4854         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4855         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4856         (frv_cpu_type): New Variable entry.
4857         (frv_cpu): New Enum and EnumValue entries.
4858
4859 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4860
4861         * config/cris/cris.c (cris_handle_option): Access target_flags via
4862         opts pointer.  Don't assert that global structures are in use.
4863         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4864         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4865
4866 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4867
4868         * config/bfin/bfin-opts.h: New.
4869         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4870         bfin_si_revision, bfin_workarounds): Remove.
4871         (bfin_cpus): Make static const.
4872         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4873         not bfin_lib_id_given.
4874         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
4875         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4876         pointer. Use error_at.  Don't assert that global structures are in use.
4877         * config/bfin/bfin.h: Include bfin-opts.h.
4878         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4879         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4880         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4881         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4882         entries.
4883
4884 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4885
4886         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4887         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4888         or -msoft-float here.
4889         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4890         -msoft-float and -mhard-float.
4891         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4892         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4893         msoft-float.
4894         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4895         -msoft-float.
4896         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4897         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4898         not mhard-float.
4899         (LIBGCC_SPEC): Don't handle -msoft-float.
4900         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4901         -mhard-float.
4902         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4903         msoft-float.
4904         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4905         -mfloat-abi=*, not -msoft-float and -mhard-float.
4906         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4907         -msoft-float.
4908         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4909         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4910         mhard-float and msoft-float.
4911         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4912         mfloat-abi=soft in comments, not mhard-float and msoft-float.
4913         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4914         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4915         mhard-float.
4916         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4917         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4918         msoft-float.
4919         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4920         not mhard-float.
4921         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4922         not msoft-float.
4923
4924 2011-03-22  Richard Henderson  <rth@redhat.com>
4925
4926         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4927         TARGET_ABI_WINDOWS_NT.
4928         (alpha_output_function_end_prologue): Likewise.
4929         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4930         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4931         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4932         (trap, *movsi_nt_vms): Likewise.
4933         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4934         (*tablejump_osf_nt_internal): Remove.
4935         * config/alpha/predicates.md (input_operand): Only test Pmode.
4936
4937 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4938
4939         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4940         via opts pointer.  Use error_at.  Don't assert that global
4941         structures are in use.
4942
4943 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4944
4945         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4946         (ix86_handle_option): Access ix86_isa_flags and
4947         ix86_isa_flags_explicit via opts pointer.  Don't assert that
4948         global structures are in use.
4949         (ix86_function_specific_save, ix86_function_specific_restore):
4950         Update ix86_isa_flags_explicit field name.
4951         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4952         (ix86_isa_flags_explicit): Rename TargetSave entry to
4953         x_ix86_isa_flags_explicit.
4954
4955 2011-03-22  Richard Henderson  <rth@redhat.com>
4956
4957         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4958         (alpha_option_override, direct_return): Likewise.
4959         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4960         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4961         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4962         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4963         (alpha_expand_epilogue, alpha_end_function): Likewise.
4964         (alpha_init_libfuncs): Likewise.
4965         (struct machine_function): Remove unicosmk members.
4966         (print_operand) ['t']: Remove.
4967         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4968         unicosmk_output_module_name, unicosmk_output_common,
4969         current_section_align, unicosmk_output_text_section_asm_op,
4970         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4971         unicosmk_section_type_flags, unicosmk_unique_section,
4972         unicosmk_asm_named_section, unicosmk_insert_attributes,
4973         unicosmk_output_align, unicosmk_defer_case_vector,
4974         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4975         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4976         unicosmk_output_ssib, unicosmk_add_call_info_word,
4977         unicosmk_extern_head, unicosmk_output_default_externs,
4978         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4979         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4980         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4981         * config/alpha/alpha-protos.h: Update.
4982         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4983         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4984         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4985         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4986         (*mulsi_se, mulvsi3): Likewise.
4987         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4988         (*divmodsi_internal, call, call_value, realign): Likewise.
4989         (moddi3, umoddi3): Likewise; remove duplicate expander.
4990         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4991         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4992         (*movdi_nofix): Remove r/U alternative.
4993         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4994         * config/alpha/constraints.md ("U"): Remove.
4995         * config/alpha/predicates.md (call_operand"): Don't test
4996         TARGET_ABI_UNICOSMK.
4997
4998 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4999
5000         * target.def (handle_option): Take gcc_options and
5001         cl_decoded_option pointers and location_t.
5002         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5003         * doc/tm.texi: Regenerate.
5004         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5005         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5006         * lto-opts.c (lto_reissue_options): Generate option structure for
5007         targetm.handle_option call.
5008         * opts.c (target_handle_option): Update call to
5009         targetm.handle_option.  Remove assertions about values now passed
5010         down to hook.
5011         * targhooks.c (default_target_handle_option): New.
5012         * targhooks.h (default_target_handle_option): Declare.
5013         * config/alpha/alpha.c: Include opts.h.
5014         (alpha_handle_option): Update to new hook interface.
5015         * config/arm/arm.c: Include opts.h.
5016         (arm_handle_option): Update to new hook interface.
5017         * config/arm/t-arm (arm.o): Update dependencies.
5018         * config/bfin/bfin.c: Include opts.h.
5019         (bfin_handle_option): Update to new hook interface.
5020         * config/cris/cris.c: Include opts.h.
5021         (cris_handle_option): Update to new hook interface.
5022         * config/frv/frv.c: Include opts.h.
5023         (frv_handle_option): Update to new hook interface.
5024         * config/i386/i386.c: Include opts.h.
5025         (ix86_handle_option): Update to new hook interface.
5026         (ix86_valid_target_attribute_inner_p): Generate option structure
5027         for call to ix86_handle_option.
5028         * config/i386/t-i386 (i386.o): Update dependencies.
5029         * config/ia64/ia64.c: Include opts.h.
5030         (ia64_handle_option): Update to new hook interface.
5031         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5032         * config/iq2000/iq2000.c: Include opts.h.
5033         (iq2000_handle_option): Update to new hook interface.
5034         * config/m32c/m32c.c: Include opts.h.
5035         (m32c_handle_option): Update to new hook interface.
5036         * config/m32r/m32r.c: Include opts.h.
5037         (m32r_handle_option): Update to new hook interface.
5038         * config/m68k/m68k.c: Include opts.h.
5039         (m68k_handle_option): Update to new hook interface.
5040         * config/mep/mep.c: Include opts.h.
5041         (mep_handle_option): Update to new hook interface.
5042         * config/microblaze/microblaze.c: Include opts.h.
5043         (microblaze_handle_option): Update to new hook interface.
5044         * config/mips/mips.c: Include opts.h.
5045         (mips_handle_option): Update to new hook interface.
5046         * config/mn10300/mn10300.c: Include opts.h.
5047         (mn10300_handle_option): Update to new hook interface.
5048         * config/pa/pa.c: Include opts.h.
5049         (pa_handle_option): Update to new hook interface.
5050         * config/pdp11/pdp11.c: Include opts.h.
5051         (pdp11_handle_option): Update to new hook interface.
5052         * config/rs6000/rs6000.c: Include opts.h.
5053         (rs6000_handle_option): Update to new hook interface.
5054         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5055         * config/rx/rx.c: Include opts.h.
5056         (rx_handle_option): Update to new hook interface.
5057         * config/s390/s390.c: Include opts.h.
5058         (s390_handle_option): Update to new hook interface.
5059         * config/score/score.c: Include opts.h.
5060         (score_handle_option): Update to new hook interface.
5061         * config/sh/sh.c: Include opts.h.
5062         (sh_handle_option): Update to new hook interface.
5063         * config/sparc/sparc.c: Include opts.h.
5064         (sparc_handle_option): Update to new hook interface.
5065         * config/v850/v850.c: Include opts.h.
5066         (v850_handle_option): Update to new hook interface.
5067
5068 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5069
5070         * gcc.c (driver_unknown_option_callback): Only permit and save
5071         unknown -Wno- options.
5072         (driver_wrong_lang_callback): Save options directly instead of via
5073         driver_unknown_option_callback.
5074
5075 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5076
5077         * combine.c (simplify_set): Try harder to find the best CC mode when
5078         simplifying a nested COMPARE on the RHS.
5079
5080 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5081
5082         * config/alpha/gnu.h: Remove.
5083         * config/arc: Remove directory.
5084         * config/arm/netbsd.h: Remove.
5085         * config/arm/t-pe: Remove.
5086         * config/crx: Remove directory.
5087         * config/i386/netbsd.h: Remove.
5088         * config/m68hc11: Remove directory.
5089         * config/m68k/uclinux-oldabi.h: Remove.
5090         * config/mcore/mcore-pe.h: Remove.
5091         * config/mcore/t-mcore-pe: Remove.
5092         * config/netbsd-aout.h: Remove.
5093         * config/rs6000/gnu.h: Remove.
5094         * config/sh/sh-symbian.h: Remove.
5095         * config/sh/symbian-base.c: Remove.
5096         * config/sh/symbian-c.c: Remove.
5097         * config/sh/symbian-cxx.c: Remove.
5098         * config/sh/symbian-post.h: Remove.
5099         * config/sh/symbian-pre.h: Remove.
5100         * config/sh/t-symbian: Remove.
5101         * config/svr3.h: Remove.
5102         * config/vax/netbsd.h: Remove.
5103         * config.build: Don't handle i[34567]86-*-pe.
5104         * config.gcc: Remove handling of deprecations for most deprecated
5105         targets.
5106         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5107         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5108         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5109         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5110         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5111         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5112         Remove cases.
5113         * config.host: Don't handle i[34567]86-*-pe.
5114         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5115         (ASM_SPEC32): Don't handle -mcall-gnu.
5116         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5117         -mcall-gnu.
5118         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5119         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5120         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5121         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5122         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5123         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5124         conditional on SYMBIAN.
5125         * configure.ac: Don't handle powerpc*-*-gnu*.
5126         * configure: Regenerate.
5127         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5128         * doc/install-old.texi (m6811, m6812): Don't mention.
5129         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5130         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5131         (m68k-uclinuxoldabi): Don't mention.
5132         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5133         Remove.
5134         (-mcall-gnu): Remove.
5135         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5136         families): Remove constraint documentation.
5137
5138 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5139
5140         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5141         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5142         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5143
5144 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5145
5146         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5147         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5148         * config/avr/avr.c (init_cumulative_args)
5149         (avr_function_arg_advance): Use it.
5150         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5151         sibcall epilogues.
5152         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5153         (avr_function_ok_for_sibcall): ...this new function.
5154         (avr_lookup_function_attribute1): New static Function.
5155         (avr_naked_function_p, interrupt_function_p)
5156         (signal_function_p, avr_OS_task_function_p)
5157         (avr_OS_main_function_p): Use it.
5158         * config/avr/avr.md ("sibcall", "sibcall_value")
5159         ("sibcall_epilogue"): New expander.
5160         ("*call_insn", "*call_value_insn"): New insn.
5161         ("call_insn", "call_value_insn"): Remove
5162         ("call", "call_value", "epilogue"): Change expander to handle
5163         sibling calls.
5164
5165 2011-03-21  Nick Clifton  <nickc@redhat.com>
5166
5167         * doc/invoke.texi (Overall Options): Move closing brace to end of
5168         options list.
5169         (Optimization Options): Add missing @gol.
5170         (Directory Options): Likewise.
5171         (i386 and x86-64 Options): Likewise.
5172         (RS6000 and PowerPC Options): Likewise.
5173         (i386 and x86-64 Windows Options): Likewise.
5174         (V850 Options): Add text missing from descriptions.
5175
5176 2011-03-22  Richard Henderson  <rth@redhat.com>
5177
5178         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5179         (avr_incoming_return_addr_rtx): New.
5180         (emit_push_byte): New.
5181         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5182         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5183         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5184         (emit_pop_byte): New.
5185         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5186         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5187         (INCOMING_RETURN_ADDR_RTX): New.
5188         (INCOMING_FRAME_SP_OFFSET): New.
5189         (ARG_POINTER_CFA_OFFSET): New.
5190         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5191         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5192         (pophi): Remove.
5193
5194         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5195
5196 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5197
5198         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5199         (FUNCTION_ARG_ADVANCE): Likewise.
5200         * tm.texi.in: Change references to them to hook references.
5201         * tm.texi: Regenerate.
5202         * targhooks.c (default_function_arg): Eliminate check for target
5203         macro.
5204         (default_function_incoming_arg): Likewise.
5205         (default_function_arg_advance): Likewise.
5206         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5207         (function_arg_advance): Likewise.
5208         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5209
5210 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5211
5212         * tree.c (build_call_1): New function.
5213         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5214
5215 2011-03-22  Richard Guenther  <rguenther@suse.de>
5216
5217         PR tree-optimization/48228
5218         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5219         for single-arg PHIs.
5220
5221 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5222
5223         PR rtl-optimization/48143
5224         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5225         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5226         sse2_cvtps2pd): Likewise.
5227
5228 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5229
5230         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5231
5232 2011-03-22  Richard Guenther  <rguenther@suse.de>
5233
5234         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5235         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5236         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5237         and REALIGN_LOAD_EXPR.
5238         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5239         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5240         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5241         DOT_PROD_EXPR case ...
5242         (expand_expr_real_2): ... here.
5243         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5244         and REALIGN_LOAD_EXPR.
5245         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5246         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5247         (vect_create_epilog_for_reduction): Likewise.
5248         (vectorizable_reduction): Likewise.
5249         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5250         * tree-vect-stmts.c (vectorizable_load): Likewise.
5251
5252 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5253
5254         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5255
5256 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5257
5258         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5259         handling for PLTOFF/GOTOFF.
5260
5261 2011-03-22  Nick Clifton  <nickc@redhat.com>
5262
5263         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5264         trailing backslash from the end of the macro definition.
5265
5266 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5267
5268         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5269         and PLT unspecs.
5270
5271 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5272
5273         * expr.h (prepare_operand): Move to...
5274         * optabs.h (prepare_operand): ...here and change the insn code
5275         parameter from "int" to "enum insn_code".
5276         (insn_operand_matches): Declare.
5277         * expr.c (init_expr_target): Use insn_operand_matches.
5278         (compress_float_constant): Likewise.
5279         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5280         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5281         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5282         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5283         Likewise.
5284         (gen_cond_trap): Likewise.
5285         (prepare_operand): Likewise.  Change icode to an insn_code.
5286         (insn_operand_matches): New function.
5287         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5288         * reload1.c (gen_reload): Likewise.
5289         * targhooks.c (default_secondary_reload): Likewise.
5290
5291 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5292
5293         * config/alpha/alpha.md (unspec): New define_c_enum.
5294         (unspecv): Ditto.
5295
5296 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5297
5298         PR debug/48214
5299         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5300         between a call and its CALL_ARG_LOCATION note.
5301
5302 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5303
5304         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5305
5306 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5307
5308         PR c/42544
5309         PR c/48197
5310         * c-common.c (shorten_compare): If primopN is first sign-extended
5311         to opN and then zero-extended to result type, set primopN to opN.
5312
5313 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5314
5315         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5316         for barrier handlers.
5317
5318 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5319
5320         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5321         UNSPEC constants to be in the unspec enumeration, and redefine
5322         all UNSPECV constants to be in the unspecv enumeration, so that
5323         dumps print which unspec/unspec_volatile this is.
5324         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5325         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5326         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5327         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5328         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5329
5330         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5331         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5332         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5333         * config/rs6000/sync.md (isync, lwsync): Ditto.
5334
5335 2011-03-21  Richard Guenther  <rguenther@suse.de>
5336
5337         * params.def (lto-min-partition): Fix typo.
5338
5339 2011-03-21  Richard Guenther  <rguenther@suse.de>
5340
5341         PR c/47939
5342         * c-decl.c (grokdeclarator): Drop to the main variant only
5343         for array types.  Drop flag_gen_aux_info check.
5344
5345 2011-03-21  Richard Guenther  <rguenther@suse.de>
5346
5347         PR translation/47911
5348         * params.def (lto-partitions): Fix typo.
5349         (lto-min-partition): Fix wording.
5350
5351 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5352
5353         * config/rs6000/t-freebsd: Remove duplication from file.
5354
5355 2011-03-21  Richard Guenther  <rguenther@suse.de>
5356
5357         PR middle-end/47661
5358         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5359
5360 2011-03-21  Richard Guenther  <rguenther@suse.de>
5361
5362         PR lto/48210
5363         * params.def (lto-partitions): Require at least 1 partition.
5364
5365 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5366
5367         * gthr-solaris.h: Remove.
5368         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5369         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5370         (LIB_SPEC): Likewise.
5371         * config/sol2.opt (threads): Remove.
5372         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5373         (sparc*-*-solaris2*): Likewise.
5374         * configure.ac (enable_threads): Enable solaris support.
5375         * configure: Regenerate.
5376         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5377         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5378         solaris.
5379
5380 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5381
5382         * config.gcc: Obsolete *-*-solaris2.8*.
5383         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5384
5385 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5386
5387         PR bootstrap/48135
5388         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5389         reference.  Solaris 8 perl works.
5390
5391 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5392
5393         PR bootstrap/48135
5394         * doc/install.texi (Prerequisites): Move jar etc. up.
5395         Explain support library version requirements.
5396
5397 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5398
5399         PR bootstrap/48135
5400         * doc/install.texi (Prerequisites): Move Perl to build
5401         requirements.  Always necessary on Solaris 2 with Sun ld.
5402
5403 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5404
5405         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5406         binutils 2.21.
5407         (Specific, i?86-*-solaris2.[89]): Likewise.
5408         (Specific, i?86-*-solaris2.10): Likewise.
5409         (Specific, mips-sgi-irix6): Likewise.
5410         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5411         Update for binutils 2.21.
5412
5413 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5414
5415         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5416         Allow -fuse-linker-plugin for non-default plugin linker.
5417         * configure: Regenerate.
5418
5419 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5420
5421         PR bootstrap/48167
5422         * gengtype.c (files_rules): Added rule for cp/parser.h.
5423
5424 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5425
5426         PR target/48213
5427         * config/s390/s390.c (s390_delegitimize_address): Don't call
5428         lowpart_subreg if orig_x has BLKmode.
5429
5430 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5431
5432         PR target/12171
5433         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5434         * tree.h (attribute_spec): Add new member affects_type_identity.
5435         * attribs.c (empty_attribute_table): Adjust attribute_spec
5436         initializers.
5437         * config/alpha/alpha.c: Likewise.
5438         * config/arc/arc.c: Likewise.
5439         * config/arm/arm.c: Likewise.
5440         * config/avr/avr.c: Likewise.
5441         * config/bfin/bfin.c: Likewise.
5442         * config/crx/crx.c: Likewise.
5443         * config/darwin.h: Likewise.
5444         * config/h8300/h8300.c: Likewise.
5445         * config/i386/cygming.h: Likewise.
5446         * config/i386/i386.c: Likewise.
5447         * config/ia64/ia64.c: Likewise.
5448         * config/m32c/m32c.c: Likewise.
5449         * config/m32r/m32r.c: Likewise.
5450         * config/m68hc11/m68hc11.c: Likewise.
5451         * config/m68k/m68k.c: Likewise.
5452         * config/mcore/mcore.c: Likewise.
5453         * config/mep/mep.c: Likewise.
5454         * config/microblaze/microblaze.c: Likewise.
5455         * config/mips/mips.c: Likewise.
5456         * config/rs6000/rs6000.c: Likewise.
5457         * config/rx/rx.c: Likewise.
5458         * config/sh/sh.c: Likewise.
5459         * config/sol2.h: Likewise.
5460         * config/sparc/sparc.c: Likewise.
5461         * config/spu/spu.c: Likewise.
5462         * config/stormy16/stormy16.c: Likewise.
5463         * config/v850/v850.c: Likewise.
5464
5465 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5466
5467         * simplify-rtx.c (simplify_binary_operation_1): Handle
5468         (xor (and A B) C) case when B and C are both constants.
5469
5470 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5471
5472         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5473
5474 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5475
5476         PR bootstrap/48168
5477         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5478
5479 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5480
5481         PR rtl-optimization/48156
5482         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5483         assume df and df_lr are not NULL.
5484
5485 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5486
5487         PR debug/48023
5488         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5489         between a call and its CALL_ARG_LOCATION note.
5490
5491 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5492
5493         PR debug/48178
5494         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5495         between a call and its corresponding CALL_ARG_LOCATION note.
5496
5497 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5498
5499         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5500         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5501         * haifa-sched.c (setup_ref_regs): Ditto.
5502         * caller-save.c (add_used_regs_1): Ditto.
5503         * dse.c (look_for_hardregs): Ditto.
5504         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5505         * sched-rgn.c (check_live_1): Ditto.
5506
5507 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5508
5509         * c-decl.c (diagnose_mismatched_decls): Give an error for
5510         redefining a typedef with variably modified type.
5511
5512 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5513
5514         * c-decl.c (grokfield): Don't allow typedefs for structures or
5515         unions with no tag by default.
5516         * doc/extend.texi (Unnamed Fields): Update.
5517
5518 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5519
5520         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5521         Rewrite using indirect functions.
5522         (lwp_slwpcb): Ditto.
5523         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5524         (avx_vinsertf128<mode>): Ditto.
5525
5526 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5527
5528         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5529         unspecs.
5530
5531 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5532
5533         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5534         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5535
5536 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5537
5538         PR rtl-optimization/48170
5539         * gcse.c (hoist_code): Remove bogus asserts.
5540
5541 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5542
5543         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5544         computation for prologue/epilogue.
5545
5546 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5547
5548         * Makefile.in (check-consistency): Remove.
5549
5550 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5551
5552         PR debug/48176
5553         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5554         arange_table_in_use is 0, but either text_section_used or
5555         cold_text_section_used is true.  Don't call it if
5556         !info_section_emitted.
5557
5558 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5559
5560         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5561         FUNCTION_VALUE_REGNO_P): Remove.
5562         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5563         Remove.
5564         * config/avr/avr.c (avr_ret_register): Make static inline.
5565         (avr_function_value_regno_p): New function.
5566         (avr_libcall_value): Make static. Add 'func' argument.
5567         (avr_function_value): Make static. Rename 'func' argument to
5568         'fn_decl_or_type', forward it to avr_libcall_value. Call
5569         avr_ret_register function instead of RET_REGISTER macro.
5570         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5571
5572 2011-03-18  Jason Merrill  <jason@redhat.com>
5573
5574         PR c++/23372
5575         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5576
5577 2011-03-18  Richard Guenther  <rguenther@suse.de>
5578
5579         * doc/install.texi (--enable-gold): Remove.
5580         (--with-plugin-ld): Document.
5581         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5582
5583 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
5584
5585         PR middle-end/47790
5586         * expr.c (optimize_bitfield_assignment_op): Revamp to work
5587         again after expansion changes.
5588
5589 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
5590
5591         * combine.c (try_combine): Do simplification only call of
5592         subst() on i2 even when i1 is present. Update comments.
5593
5594 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5595
5596         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5597         and UNSPEC_PCREL_SYMOFF.
5598
5599 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5600
5601         * config/s390/s390.md: Use define_c_enum for the unspec constant
5602         definitions.
5603
5604 2011-03-18  Richard Henderson  <rth@redhat.com>
5605             Jakub Jelinek  <jakub@redhat.com>
5606
5607         PR bootstrap/48161
5608         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5609         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5610
5611 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5612
5613         PR middle-end/47725
5614         * combine.c (cant_combine_insn_p): Don't check zero/sign
5615         extended hard registers.
5616
5617 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5618
5619         PR middle-end/47725
5620         * combine.c (cant_combine_insn_p): Check zero/sign extended
5621         hard registers.
5622
5623 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
5624
5625         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5626         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5627         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5628         Change return type to bool.
5629         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5630
5631 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5632
5633         PR debug/48163
5634         * var-tracking.c (prepare_call_arguments): If CALL target
5635         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5636         pc instead of looking it up using cselib_lookup and use
5637         Pmode for it if x has VOIDmode.
5638         * dwarf2out.c (gen_subprogram_die): If also both first and
5639         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5640
5641         PR debug/48163
5642         * function.c (assign_parms): For data.passed_pointer parms
5643         use MEM of data.entry_parm instead of data.entry_parm itself
5644         as DECL_INCOMING_RTL.
5645         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5646         also when passed and declared mode is the same, DECL_RTL
5647         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5648         a MEM too.
5649
5650 2011-03-16  Jeff Law  <law@redhat.com>
5651
5652         PR rtl-optimization/37273
5653         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5654         handle them like argument loads from stack slots.  Do not double
5655         count memory for memory constants and argument loads from stack slots.
5656
5657 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5658
5659         PR debug/48160
5660         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5661
5662 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         PR target/48171
5665         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5666
5667 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5668
5669         PR bootstrap/48153
5670         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5671         if dwarf_strict.
5672         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5673         Clear call_arg_locations and call_arg_loc_last always.
5674
5675         PR middle-end/48152
5676         * var-tracking.c (prepare_call_arguments): If argument needs to be
5677         passed by reference, adjust argtype and mode.
5678
5679 2011-03-17  Richard Guenther  <rguenther@suse.de>
5680
5681         PR middle-end/48134
5682         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5683         a value make sure to fold the statement.
5684
5685 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5686
5687         PR target/43872
5688         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5689         return condition with !cfun->calls_alloca.
5690
5691 2011-03-17  Richard Guenther  <rguenther@suse.de>
5692
5693         PR bootstrap/48148
5694         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5695         origin for decls in other ltrans units.
5696         (input_varpool_node): Likewise.
5697
5698 2011-03-17  Richard Guenther  <rguenther@suse.de>
5699
5700         PR middle-end/48165
5701         * tree-object-size.c (compute_object_offset): Properly return
5702         the offset operand of MEM_REFs as sizetype.
5703
5704 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5705
5706         PR rtl-optimization/48141
5707         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5708         * dse.c: Include params.h.
5709         (active_local_stores_len): New variable.
5710         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5711         to NULL.
5712         (record_store, check_mem_read_rtx): Decrease it when removing
5713         from the chain.
5714         (scan_insn): Likewise.  Increase it when adding to chain, if it
5715         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5716         set active_local_stores to NULL before the addition.
5717         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5718
5719         PR rtl-optimization/48141
5720         * dse.c (record_store): If no positions are needed in an insn
5721         that cannot be deleted, at least unchain it from active_local_stores.
5722
5723 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5724
5725         PR debug/47510
5726         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5727         (lookup_type_die_strip_naming_typedef): ... here.
5728         (get_context_die): Use it.
5729         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5730         the anonymous struct named by the naming typedef.
5731
5732 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5733
5734         PR target/48154
5735         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5736         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5737
5738 2011-03-16  Jeff Law  <law@redhat.com>
5739
5740         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5741         check for operands of conditional.  Allow type to be a pointer.
5742
5743 2011-03-16  Richard Guenther  <rguenther@suse.de>
5744
5745         PR tree-optimization/48149
5746         * fold-const.c (fold_binary_loc): Fold
5747         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5748
5749 2011-03-16  Richard Guenther  <rguenther@suse.de>
5750
5751         PR tree-optimization/26134
5752         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5753         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5754         (non_rewritable_mem_ref_base): Handle complex type component
5755         accesses, constrain offsets for vector and complex extracts
5756         more properly.
5757
5758 2011-03-16  Richard Guenther  <rguenther@suse.de>
5759
5760         PR tree-optimization/48146
5761         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5762         operands avoiding the need for renaming.
5763
5764 2011-03-16  Richard Guenther  <rguenther@suse.de>
5765
5766         * gimple-fold.c (maybe_fold_reference): Open-code relevant
5767         constant folding.  Move MEM_REF canonicalization first.
5768         Rely on fold_const_aggregate_ref for initializer folding.
5769         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5770
5771 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5772
5773         PR middle-end/48136
5774         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5775         arg0/arg1 or their arguments are always fold converted to matching
5776         types.
5777
5778         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5779         to nargs.
5780
5781 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5782
5783         PR lto/46944
5784         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5785         Handle in-tree gold.
5786         (ld_vers): Extract binutils version for gold.
5787         (gcc_cv_ld_hidden): Handle gold here.
5788         (gcc_cv_lto_plugin): Determine level of linker plugin support.
5789         * configure: Regenerate.
5790         * config.in: Regenerate.
5791         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5792         -fuse-linker-plugin otherwise.
5793         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
5794         (LINK_COMMAND_SPEC): Use it.
5795         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5796
5797 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5798
5799         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5800         * calls.c: Remove debug.h include.
5801         (emit_call_1): Don't call virtual_call_token debug hook.
5802         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5803         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5804         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5805         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5806         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5807         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5808         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5809         dwarf2out_virtual_call): Remove.
5810         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5811         copy_call_info and virtual_call hooks.
5812         (dwarf2out_init): Don't initialize vcall_insn_table,
5813         debug_dcall_section and debug_vcall_section.
5814         (prune_unused_types): Don't mark nodes from dcall_table.
5815         (dwarf2out_finish): Don't output dcall or vcall tables.
5816         * final.c (final_scan_insn): Don't call direct_call or
5817         virtual_call debug hooks.
5818         * debug.h (struct gcc_debug_hooks): Remove direct_call,
5819         virtual_call_token, copy_call_info and virtual_call hooks.
5820         (debug_nothing_uid): Remove prototype.
5821         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5822         copy_call_info and virtual_call hooks.
5823         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5824         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5825         * debug.c (do_nothing_debug_hooks): Likewise.
5826         (debug_nothing_uid): Remove.
5827         * doc/invoke.texi (-fenable-icf-debug): Remove.
5828         * common.opt (-fenable-icf-debug): Likewise.
5829
5830         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5831         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5832         call's MEM.  Handle functions returning aggregate through a hidden
5833         first pointer.  For virtual calls add clobbered pc to call arguments
5834         chain.
5835         * dwarf2out.c (gen_subprogram_die): Emit
5836         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5837         can't be emitted.
5838
5839         PR debug/45882
5840         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5841         * rtl.h (ENTRY_VALUE_EXP): Define.
5842         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5843         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5844         * print-rtl.c (print_rtx): Likewise.
5845         * gengtype.c (adjust_field_rtx_def): Likewise.
5846         * var-tracking.c (vt_add_function_parameter): Adjust
5847         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5848         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5849         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5850         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5851         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5852
5853         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5854         Call var_location debug hook even on CALL_INSNs.
5855         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5856         * rtl.def (ENTRY_VALUE): New.
5857         * dwarf2out.c: Include cfglayout.h.
5858         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5859         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5860         (struct call_arg_loc_node): New type.
5861         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5862         tail_call_site_count): New variables.
5863         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5864         DW_TAG_GNU_call_site_parameter.
5865         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5866         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5867         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5868         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5869         and DW_AT_GNU_all_source_call_sites.
5870         (mem_loc_descriptor): Handle ENTRY_VALUE.
5871         (add_src_coords_attributes): Don't add enything if
5872         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5873         (dwarf2out_abstract_function): Save and clear call_arg_location,
5874         call_site_count and tail_call_site_count around dwarf2out_decl call.
5875         (gen_call_site_die): New function.
5876         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5877         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5878         (dwarf2out_function_decl): Clear call_arg_locations,
5879         call_arg_loc_last, set call_site_count and tail_call_site_count
5880         to -1 and free block_map.
5881         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5882         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
5883         followed by any real instructions.
5884         (dwarf2out_begin_function): Set call_site_count and
5885         tail_call_site_count to 0.
5886         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5887         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5888         attempt to force a DIE for it and worst case remove the attribute.
5889         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5890         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5891         the decl itself.
5892         * var-tracking.c: Include tm_p.h.
5893         (vt_stack_adjustments): For calls call note_register_arguments.
5894         (argument_reg_set): New variable.
5895         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5896         ensure the VALUE is resolved.
5897         (call_arguments): New variable.
5898         (prepare_call_arguments): New function.
5899         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5900         (struct expand_loc_callback_data): Add ignore_cur_loc field.
5901         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5902         always use the best expression.
5903         (vt_expand_loc): Add ignore_cur_loc argument.
5904         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5905         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5906         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5907         note for all calls.
5908         (vt_add_function_parameter): Use cselib_lookup_from_insn.
5909         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5910         argument.  Don't call cselib_preserve_only_values and
5911         cselib_reset_table.
5912         (note_register_arguments): New function.
5913         (vt_initialize): Compute argument_reg_set.  Call
5914         vt_add_function_parameters before processing basic blocks instead of
5915         afterwards.  For calls call prepare_call_arguments before calling
5916         cselib_process_insn.
5917         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5918         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5919         (var-tracking.o): Depend on $(TM_P_H).
5920         * cfglayout.h (insn_scope): New prototype.
5921         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5922         * cfglayout.c (insn_scope): No longer static.
5923         * insn-notes.def (CALL_ARG_LOCATION): New.
5924         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5925         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5926         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5927         nothing for DECL_EXTERNAL BLOCK_VARS.
5928
5929 2011-03-16  Alan Modra  <amodra@gmail.com>
5930
5931         PR target/45844
5932         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5933         create invalid offset address for vsx splat insn.
5934         * config/rs6000/predicates.md (splat_input_operand): New.
5935         * config/rs6000/vsx.md (vsx_splat_*): Use it.
5936
5937 2011-03-15  Xinliang David Li  <davidxl@google.com>
5938
5939         PR c/47837
5940         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5941         (normalize_preds): New function.
5942         (is_use_properly_guarded): Normalize def predicates.
5943
5944 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5945
5946         PR target/46788
5947         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5948         in the output template.
5949
5950 2011-03-15  Richard Guenther  <rguenther@suse.de>
5951
5952         PR middle-end/47650
5953         * tree-pretty-print.c (dump_function_declaration): Properly
5954         dump unprototyped and varargs function types.
5955
5956 2011-03-15  Richard Guenther  <rguenther@suse.de>
5957
5958         PR tree-optimization/13954
5959         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5960         and friends.
5961
5962 2011-03-15  Richard Guenther  <rguenther@suse.de>
5963
5964         PR tree-optimization/48037
5965         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5966         selects into BIT_FIELD_REFs.
5967         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5968         vector select.
5969
5970 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
5971
5972         PR tree-optimization/48129
5973         * builtins.c (fold_builtin_snprintf): Convert to type of
5974         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5975         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5976
5977 2011-03-15  Richard Guenther  <rguenther@suse.de>
5978
5979         PR tree-optimization/41490
5980         * tree-ssa-dce.c (propagate_necessity): Handle returns without
5981         value but with VUSE.
5982         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5983         return statements.
5984         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5985         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5986         * tree-tailcall.c (find_tail_calls): Ignore returns.
5987
5988 2011-03-15  Richard Guenther  <rguenther@suse.de>
5989
5990         PR middle-end/48031
5991         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5992         or variable-indexed array accesses when in gimple form.
5993
5994 2011-03-15  Richard Guenther  <rguenther@suse.de>
5995
5996         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5997
5998 2011-03-15  Alan Modra  <amodra@gmail.com>
5999
6000         PR target/48032
6001         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6002         presume symbol_refs without a symbol_ref_decl are suitably
6003         aligned, nor other trees we may see here.  Handle anchor symbols.
6004         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6005         Check cmodel=medium addresses.  Adjust all calls.
6006         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6007         creating cmodel=medium optimized access to locals.
6008         * config/rs6000/constraints.md (R): Pass QImode to
6009         legitimate_constant_pool_address_p.
6010         * config/rs6000/predicates.md (input_operand): Pass mode to
6011         legitimate_constant_pool_address_p.
6012         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6013         Update prototype.
6014
6015 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6016
6017         PR target/48053
6018         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6019         64-bit constants being loaded into registers other than GPRs such
6020         as loading 0 into a VSX register.
6021
6022 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6023
6024         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6025
6026 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6027
6028         PR middle-end/47917
6029         * builtins.c (fold_builtin_snprintf): New function.
6030         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6031         (fold_builtin_4): Likewise.
6032
6033         PR middle-end/38878
6034         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6035         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6036         and C - X == X also strip nops from +/-/p+ operand.
6037         When optimizing -X == C, fold C to arg0's type.
6038
6039         PR debug/47946
6040         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6041         emit it as add_AT_int instead of add_AT_unsigned.
6042
6043 2011-03-14  Tom Tromey  <tromey@redhat.com>
6044
6045         * unwind-dw2.c: Include sys/sdt.h if it exists.
6046         (_Unwind_DebugHook): Use STAP_PROBE2.
6047         * config.in, configure: Rebuild.
6048         * configure.ac: Check for sys/sdt.h.
6049
6050 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6051
6052         * config/i386/i386.md (ROUND_FLOOR): New constant.
6053         (ROUND_CEIL): Ditto.
6054         (ROUND_TRUNC): Ditto.
6055         (ROUND_MXCSR): Ditto.
6056         (ROUND_NO_EXC): Ditto.
6057         (rint<mode>2): Use new defines instead of numerical constants.
6058         (floor<mode>2): Ditto.
6059         (ceil<mode>2): Ditto.
6060         (btrunc<mode>2): Ditto.
6061         * config/i386/i386-builtin-types.def: Define ROUND function type
6062         aliases.
6063         * config/i386/i386.c (enum ix86_builtins): Add
6064         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6065         (struct builtin_description): Add
6066         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6067         (ix86_expand_sse_round): New static function.
6068         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6069         function types.
6070         (ix86_builtin_vectorized_function): Handle
6071         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6072
6073 2011-03-14  Tom Tromey  <tromey@redhat.com>
6074
6075         * c-parser.c (c_parser_asm_string_literal): Clear
6076         warn_overlength_strings.
6077
6078 2011-03-14  Tom Tromey  <tromey@redhat.com>
6079
6080         * c-parser.c (disable_extension_diagnostics): Save
6081         warn_overlength_strings.
6082         (restore_extension_diagnostics): Restore warn_overlength_strings.
6083
6084 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6085
6086         * BASE-VER: Change to 4.7.0.
6087
6088 2011-03-14  Richard Guenther  <rguenther@suse.de>
6089
6090         PR middle-end/48098
6091         * tree.c (build_vector_from_val): Adjust assert to requirements
6092         and reality.
6093
6094 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6095
6096         PR bootstrap/48102
6097         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6098
6099 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6100
6101         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
6102         terms of target_flags_explicit. Adjust copyright year.
6103
6104         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6105         * config/rs6000/t-freebsd: New file. Add override for
6106         LIB2FUNCS_EXTRA.
6107
6108 2011-03-13  Chris Demetriou  <cgd@google.com>
6109
6110         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6111         (-fno-diagnostics-show-option): this, to reflect current default.
6112         (-Werror=): Update text about -fno-diagnostics-show-option.
6113
6114 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6115
6116         PR target/48053
6117         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6118         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6119         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6120         mode is not V2DImode or V2DFmode.
6121         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6122         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6123         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6124         registers to 0.
6125         (movdi_internal64): Likewise.
6126
6127 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6128
6129         PR tree-optimization/47127
6130         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6131         parameter.
6132         (set_cloog_options): Same.
6133         (scop_to_clast): Same.
6134         (print_clast_stmt): Do not call cloog_state_malloc and
6135         cloog_state_free.
6136         (print_generated_program): Same.
6137         (gloog): Same.
6138         * graphite-clast-to-gimple.h (cloog_state): Declared.
6139         (scop_to_clast): Adjust declaration.
6140         * graphite.c (cloog_state): Defined here.
6141         (graphite_initialize): Call cloog_state_malloc.
6142         (graphite_finalize): Call cloog_state_free.
6143
6144 2011-03-11  Jason Merrill  <jason@redhat.com>
6145
6146         * attribs.c (lookup_attribute_spec): Take const_tree.
6147         * tree.h: Adjust.
6148
6149 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6150
6151         * config/sparc/sparc.c (sparc_option_override): Use
6152         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6153
6154 2011-03-11  Richard Guenther  <rguenther@suse.de>
6155
6156         PR tree-optimization/48067
6157         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6158         multiplication result will be only used once on the target
6159         stmt.
6160
6161 2011-03-11  Richard Guenther  <rguenther@suse.de>
6162
6163         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6164
6165 2011-03-11  Richard Guenther  <rguenther@suse.de>
6166
6167         PR lto/48073
6168         * tree.c (find_decls_types_r): Do not walk types only reachable
6169         from IDENTIFIER_NODEs.
6170
6171 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6172
6173         PR middle-end/48044
6174         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6175         all vnode->force_output nodes as needed.
6176
6177 2011-03-11  Jason Merrill  <jason@redhat.com>
6178
6179         PR c++/48069
6180         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6181         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6182
6183 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6184
6185         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6186         cgraph_node.
6187
6188 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6189
6190         PR tree-optimization/48063
6191         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6192         inline functions called once if !tree_can_inline_p (node->callers).
6193
6194 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6195
6196         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6197         extra_objs.
6198         * config/score/score3.c: Delete.
6199         * config/score/score3.h: Delete.
6200         * config/score/mul-div.S: Delete.
6201         * config/score/sfp-machine.h: Add new file.
6202         * config/score/constraints.md: Add new file.
6203         * config/score/t-score-softfp: Add new file.
6204         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6205         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6206         (score7_extra_constraint): Delete.
6207         (score7_option_override): Remove unused code.
6208         * config/score/score.c: Remove score3 and score5 define and code.
6209         * config/score/score.h: Remove score3 and score5 define and code.
6210         * config/score/score.md: Remove score3 template and unusual insn.
6211         * config/score/score.opt: Remove score3 and score5 options.
6212
6213 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6214
6215         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6216         when _HPUX_SOURCE is defined.
6217         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6218
6219 2011-03-10  Jason Merrill  <jason@redhat.com>
6220
6221         PR c++/48029
6222         * stor-layout.c (layout_type): Don't set structural equality
6223         on arrays of incomplete type.
6224         * tree.c (type_hash_eq): Handle comparing them properly.
6225
6226 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6227
6228         PR debug/48043
6229         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6230         result mode matches original rtl mode.
6231
6232 2011-03-10  Nick Clifton  <nickc@redhat.com>
6233
6234         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6235         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6236
6237 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6238
6239         PR rtl-optimization/47866
6240         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6241         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6242         if target wasn't scalar.
6243         * function.c (assign_stack_temp_for_type): Assert that neither
6244         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6245         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6246         macro.
6247         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6248
6249 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6250
6251         * config/s390/s390-protos.h (s390_label_align): New prototype.
6252         * config/s390/s390.c (s390_label_align): New function.
6253         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6254
6255 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6256
6257         PR target/47755
6258         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6259         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6260         (output_vec_const_move): Ditto.
6261
6262 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6263
6264         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6265         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6266         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6267         Change 'rclass' argument and result type to reg_class_t.
6268         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6269
6270 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6271
6272         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6273         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6274         (TARGET_MEMORY_MOVE_COST): Define.
6275         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6276
6277 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6278
6279         PR debug/47881
6280         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6281         removed anything.
6282
6283         PR tree-optimization/48022
6284         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6285         for EQ/NE_EXPR.
6286
6287 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6288
6289         PR debug/47991
6290         * var-tracking.c (find_use_val): Return NULL for
6291         cui->sets && cui->store_p BLKmode MEMs.
6292
6293 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6294
6295         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6296         Remove.
6297         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6298         xstormy16_print_operand_address): Remove.
6299         * config/stormy16/stormy16.c (xstormy16_print_operand,
6300         xstormy16_print_operand_address): Make static.
6301         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6302
6303 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6304
6305         PR target/47862
6306         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6307         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6308         before definition.
6309
6310 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6311
6312         PR bootstrap/48000
6313         * cfgloopmanip.c (fix_bb_placements): Return immediately
6314         if FROM is BASE_LOOP's header.
6315
6316 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6317
6318         * gimplify.c (gimplify_function_tree): Fix building calls
6319         to __builtin_return_address.
6320
6321 2011-03-07  Alan Modra  <amodra@gmail.com>
6322
6323         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6324         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6325         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6326         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6327         return_mode args.
6328         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6329         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6330         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6331         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6332         * config/rs6000/rs6000.c
6333         (rs6000_elf_end_indicate_exec_stack): Rename to..
6334         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6335         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6336         (rs6000_file_start): ..here.
6337         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6338         file scope variables.
6339         (call_ABI_of_interest): New function.
6340         (init_cumulative_args): Set above vars when function return value
6341         is a float, vector, or small struct.
6342         (rs6000_function_arg_advance_1): Likewise for function args.
6343         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6344         references float args.
6345
6346 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6347
6348         * doc/cfg.texi: Remove "See" before @ref.
6349         * doc/invoke.texi: Likewise.
6350
6351 2011-03-05  Jason Merrill  <jason@redhat.com>
6352
6353         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6354
6355 2011-03-05  Anthony Green  <green@moxielogic.com>
6356
6357         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6358
6359 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6360
6361         PR rtl-optimization/47899
6362         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6363         to flow_loop_nested_p when moving the loop upward.
6364
6365 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6366
6367         PR target/47719
6368         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6369
6370 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6371
6372         PR tree-optimization/47967
6373         * ipa-cp.c (build_const_val): Return NULL instead of creating
6374         VIEW_CONVERT_EXPR for mismatching sizes.
6375         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6376         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6377         give up on versioning.
6378
6379 2011-03-05  Alan Modra  <amodra@gmail.com>
6380
6381         PR target/47986
6382         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6383         full cmodel medium/large lo_sum + high addresses.
6384
6385 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6386
6387         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6388         pool references in UNSPEC_LTREL_OFFSET.
6389
6390 2011-03-04  Jan Hubicka  <jh@suse.cz>
6391
6392         PR lto/47497
6393         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6394         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6395         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6396         Add node pointers.
6397         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6398         cgraph_add_thunk): Add node pointers.
6399         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6400         associated to right node.
6401         (input_node): Update use of cgraph_same_body_alias
6402         and cgraph_add_thunk.
6403
6404 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6405
6406         * config/i386/i386.opt (mprefer-avx128): New flag.
6407         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6408         modes when the flag -mprefer-avx128 is on.
6409
6410 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6411
6412         * dwarf2out.c (compare_loc_operands): Fix address handling.
6413
6414 2011-03-04  Alan Modra  <amodra@gmail.com>
6415
6416         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6417
6418 2011-03-04  Richard Guenther  <rguenther@suse.de>
6419
6420         PR middle-end/47968
6421         * expmed.c (extract_bit_field_1): Prefer vector modes that
6422         vec_extract patterns can handle.
6423
6424 2011-03-04  Richard Guenther  <rguenther@suse.de>
6425
6426         PR middle-end/47975
6427         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6428
6429 2011-03-04  Richard Henderson  <rth@redhat.com>
6430
6431         * explow.c (emit_stack_save): Remove 'after' parameter.
6432         (emit_stack_restore): Likewise.
6433         * expr.h: Update to match.
6434         * builtins.c, calls.c, stmt.c: Likewise.
6435         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6436         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6437         * function.c (expand_function_end): Insert the emit_stack_save
6438         sequence before parm_birth_insn instead of after.
6439
6440 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6441
6442         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6443         (ssse3_pmaddubsw128): Ditto.
6444         (ssse3_pmaddubsw): Ditto.
6445
6446 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6447
6448         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6449
6450 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6451
6452         PR c/47963
6453         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6454         on TYPE_SIZE_UNIT if it is a DECL.
6455
6456         PR debug/47283
6457         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6458         first operand is not is_gimple_mem_ref_addr, try to fold it.
6459         If the operand still isn't is_gimple_mem_ref_addr, clear
6460         MEM_EXPR on op0.
6461
6462 2011-03-03  Richard Guenther  <rguenther@suse.de>
6463
6464         PR middle-end/47283
6465         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6466         match comment.
6467         (refs_may_alias_p_1): For release branches return true if
6468         we are confused by our input.
6469
6470 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6471
6472         * config/s390/s390.c (s390_function_value): Rename to ...
6473         (s390_function_and_libcall_value): ... this.
6474         (s390_function_value): New function.
6475         (s390_libcall_value): New function.
6476         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6477         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6478         target macro definitions.
6479         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6480
6481 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6482
6483         * config/i386/freebsd64.h (CC1_SPEC): Define.
6484         * config/i386/linux64.h (CC1_SPEC): Define.
6485         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6486
6487 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6488
6489         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6490         Remove.
6491         * config/stormy16/stormy16.c: Include reload.h.
6492         (xstormy16_memory_move_cost): New function.
6493         (TARGET_MEMORY_MOVE_COST): Define.
6494
6495 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6496
6497         PR rtl-optimization/47925
6498         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6499         with side effects.  Remove the more-specific check for volatile asms.
6500
6501 2011-03-02  Alan Modra  <amodra@gmail.com>
6502
6503         PR target/47935
6504         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6505         toc relative addresses for valid offsets.
6506
6507 2011-03-01  Richard Guenther  <rguenther@suse.de>
6508
6509         PR tree-optimization/47890
6510         * tree-vect-loop.c (get_initial_def_for_induction): Set
6511         related stmt properly.
6512
6513 2011-03-01  Richard Guenther  <rguenther@suse.de>
6514
6515         PR lto/47924
6516         * lto-streamer.c (lto_record_common_node): Also register
6517         the canonical type.
6518
6519 2011-03-01  Richard Guenther  <rguenther@suse.de>
6520
6521         PR lto/46911
6522         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6523         Do not stream DECL_ABSTRACT_ORIGIN.
6524         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6525         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6526         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6527         Do not stream DECL_ABSTRACT_ORIGIN.
6528         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6529         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6530
6531 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6532
6533         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6534         FUNCTION_VALUE_REGNO_P): Remove.
6535         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6536         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6537         Add 'outgoing' argument.
6538         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6539         function.
6540         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6541         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6542
6543 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6544
6545         PR debug/28047
6546         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6547         (lookup_filename): Likewise.
6548         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6549
6550 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6551             Jakub Jelinek  <jakub@redhat.com>
6552
6553         PR middle-end/47893
6554         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6555         (assign_stack_local_1): Change last argument type to int.
6556         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6557         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6558         don't record padding space into frame_space_list nor use those areas.
6559         (assign_stack_local): Adjust caller.
6560         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6561         of assign_stack_local, pass 0 as last argument.
6562         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6563         callers.
6564
6565 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6566
6567         PR debug/47283
6568         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6569         Use target address_mode and pointer_mode hooks instead of hardcoded
6570         Pmode and ptr_mode.  Handle some simple cases of extending if
6571         POINTERS_EXTEND_UNSIGNED < 0.
6572         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6573         Call convert_debug_memory_address.
6574         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6575         convert_debug_memory_address.
6576
6577         PR middle-end/46790
6578         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6579         * configure: Regenerated.
6580         * config.in: Regenerated.
6581         * varasm.c (default_function_section): Return NULL
6582         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6583
6584 2011-02-28  Martin Jambor  <mjambor@suse.cz>
6585
6586         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6587         the description to match the printed values.
6588
6589 2011-02-28  Richard Guenther  <rguenther@suse.de>
6590
6591         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6592         of the copied scope tree.
6593
6594 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6595
6596         * doc/extend.texi (Function Attributes): Avoid deeply (and
6597         wrongly) nested tables.
6598
6599 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
6600
6601         PR middle-end/47903
6602         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6603         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6604         r isn't op0 nor op1.
6605
6606 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6607
6608         * config/avr/avr.md: Remove magic comment for emacs.
6609
6610 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6611
6612         PR target/45261
6613         * config/avr/avr.c (avr_option_override): Use error on bad options.
6614         (avr_help): New function.
6615         (TARGET_HELP): Define.
6616
6617 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
6618
6619         PR target/42240
6620         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6621         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6622
6623 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6624
6625         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6626         (ARM Options): Ditto.
6627         (i386 and x86-64 Options): Ditto.
6628         (RX Options): Ditto.
6629         (SPARC Options): Ditto.
6630
6631 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
6632
6633         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6634         FreeBSD 6 and later.  Generally use cpu generic.
6635
6636 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6637
6638         * doc/cpp.texi: Update copyright years.
6639
6640 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6641
6642         PR target/46898
6643         * config/lm32/lm32.md (ashrsi3): Added needed variable.
6644
6645 2011-02-25  Jon Beniston  <jon@beniston.com>
6646
6647         PR target/46898
6648         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6649         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6650         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6651         (lm32_block_move_inline): Add type cast to remove warning.
6652         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6653         (gen_int_relational): Move declarations to start of function.
6654
6655 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6656
6657         PR tree-optimization/45470
6658         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6659         can throw internally only.
6660         * tree-vect-stmts.c (vectorizable_call): Likewise.
6661
6662 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6663
6664         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6665         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6666         * config/stormy16/stormy16-protos.h
6667         (xstormy16_preferred_reload_class): Remove.
6668         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6669         static. Change 'rclass' argument and return type to reg_class_t.
6670         (TARGET_PREFERRED_RELOAD_CLASS,
6671         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6672
6673 2011-02-24  Richard Guenther  <rguenther@suse.de>
6674
6675         * lto-streamer-in.c (input_bb): Do not find referenced vars
6676         in debug statements.
6677
6678 2011-02-23  Jason Merrill  <jason@redhat.com>
6679
6680         * common.opt (fabi-version): Document v5 and v6.
6681
6682 2011-02-23  Richard Guenther  <rguenther@suse.de>
6683
6684         PR tree-optimization/47849
6685         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6686
6687 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6688
6689         * opts-common.c (decode_cmdline_option): Print empty string
6690         argument as "" in decoded->orig_option_with_args_text.
6691         * gcc.c (execute): Print empty string argument as ""
6692         in the verbose output.
6693         (do_spec_1): Keep empty string argument.
6694
6695 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6696
6697         * config.gcc: Declare score-* and crx-* obsolete.
6698
6699 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6700
6701         PR rtl-optimization/47763
6702         * web.c (web_main): Ignore naked clobber when replacing register.
6703
6704 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6705
6706         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6707         Remove.
6708
6709 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6710
6711         PR doc/47848
6712         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6713
6714 2011-02-22  Mike Stump  <mikestump@comcast.net>
6715
6716         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6717         assembler.
6718         * configure: Regenerate.
6719
6720 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6721
6722         PR rtl-optimization/46002
6723         * ira-color.c (update_copy_costs): Change class intersection
6724         test to reg_class_contents[] test of 'hard_regno'.
6725
6726 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6727
6728         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6729         than Driver option.
6730         * config/hpux11.opt (mt): Likewise.
6731         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6732         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6733         * config/vax/elf.opt (mno-asm-pic): Likewise.
6734         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6735
6736 2011-02-21  Mike Stump  <mikestump@comcast.net>
6737
6738         PR target/47822
6739         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6740         tree so we can get save the type.
6741         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6742         for CFString instead of trying to use past the end of the builtins.
6743         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6744         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6745         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6746         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6747         Rename to darwin_builtin_cfstring.
6748         (darwin_init_cfstring_builtins): Return the built type.
6749
6750 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
6751
6752         PR target/47840
6753         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6754         (_mm256_insert_epi64): Use _mm_insert_epi64.
6755
6756 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
6757
6758         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6759         * config/stormy16/stormy16-protos.h
6760         (xstormy16_mode_dependent_address_p): Remove.
6761         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6762         Make static. Change return type to bool. Change argument type to
6763         const_rtx. Remove dead code.
6764         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6765
6766 2011-02-21  Richard Guenther  <rguenther@suse.de>
6767
6768         PR lto/47820
6769         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6770         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6771         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6772         TUs context.
6773         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6774         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6775
6776 2011-02-20  Richard Guenther  <rguenther@suse.de>
6777
6778         PR lto/47822
6779         * tree.c (free_lang_data_in_decl): Clean builtins from
6780         the TU decl BLOCK_VARS.
6781
6782 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
6783
6784         PR debug/47620
6785         PR debug/47630
6786         * haifa-sched.c (fix_tick_ready): Skip tick computation
6787         for debug insns.
6788
6789 2011-02-19  Richard Guenther  <rguenther@suse.de>
6790
6791         PR lto/47647
6792         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6793         Remove lazy BLOCK_VARS streaming.
6794         (lto_input_ts_block_tree_pointers): Likewise.
6795         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6796
6797 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6798
6799         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6800
6801 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6802
6803         * config/i386/biarch32.h, config/i386/mach.h,
6804         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6805
6806 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
6807
6808         PR target/47800
6809         * config/i386/i386.md (peephole2 for shift and plus): Use
6810         operands[1] original mode in the first insn.
6811
6812 2011-02-18  Mike Stump  <mikestump@comcast.net>
6813
6814         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6815
6816 2011-02-18  Jan Hubicka  <jh@suse.cz>
6817
6818         PR middle-end/47788
6819         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6820         to zero when the function is not inlinable at all.
6821
6822 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6823
6824         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6825         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6826         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6827         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6828         * config/pa/t-pa64: Likewise.
6829         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6830
6831 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6832
6833         PR driver/47787
6834         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6835
6836 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6837
6838         PR target/47792
6839         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6840
6841 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
6842
6843         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6844         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6845         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6846         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6847         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6848         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6849         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6850         m32r_load_postinc_p, m32r_store_preinc_predec_p,
6851         m32r_legitimate_address_p): New functions.
6852         * config/m32r/constraints.md (constraint "S"): Don't use
6853         STORE_PREINC_PREDEC_P.
6854         (constraint "U"): Don't use LOAD_POSTINC_P.
6855
6856 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
6857
6858         PR rtl-optimization/46178
6859         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6860         compute ira_hard_regno_cover_class[].
6861
6862 2011-02-18  Richard Guenther  <rguenther@suse.de>
6863
6864         PR lto/47798
6865         * lto-streamer.h (lto_global_var_decls): Declare.
6866         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6867         statics for global var processing.
6868
6869 2011-02-18  Richard Guenther  <rguenther@suse.de>
6870
6871         PR tree-optimization/47737
6872         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6873         edge dominance check.
6874
6875 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6876
6877         PR debug/47780
6878         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6879         avoid invalid rtx sharing.
6880
6881 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
6882
6883         * doc/cpp.texi (Obsolete Features): Add background on the
6884         origin of assertions.
6885
6886 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
6887
6888         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6889         objc_abi == 2.
6890         * config/darwin.c (output_objc_section_asm_op): Added support for
6891         ABI v1 and v2.
6892         (is_objc_metadata): New.
6893         (darwin_objc2_section): New.
6894         (darwin_objc1_section): New.
6895         (machopic_select_section): Added support for ABI v1 and v2.
6896         (darwin_emit_objc_zeroed): New.
6897         (darwin_output_aligned_bss): Detect objc metadata and treat it
6898         appropriately.
6899         (darwin_asm_output_aligned_decl_common): Same.
6900         (darwin_asm_output_aligned_decl_local): Same.
6901         * config/darwin-sections.def: Updated for ABI v1 and v2.
6902         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6903         compiling Objective-C code for the NeXT runtime, default to using
6904         ABI version 0 for 32-bit, and version 2 for 64-bit.
6905
6906 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6907
6908         * common.opt (optimize_fast): New Variable.
6909         * opts.c (default_options_optimization): Use opts->x_optimize_fast
6910         instead of local variable ofast.
6911
6912 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6913
6914         * doc/invoke.texi (fobjc-abi-version): Documented.
6915         (fobjc-nilcheck): Documented.
6916         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6917         version.
6918
6919 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6920
6921         PR driver/47390
6922         * common.opt (export-dynamic): New Driver option.
6923         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6924
6925 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6926
6927         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6928
6929 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
6930             Jan Hubicka  <jh@suse.cz>
6931
6932         PR debug/47106
6933         PR debug/47402
6934         * cfgexpand.c (account_used_vars_for_block): Remove.
6935         (estimated_stack_frame_size): Use referenced vars.
6936         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6937         that were referenced in the original function.  Test src_fn
6938         rather than cfun.  Drop redundant get_var_ann.
6939         (setup_one_parameter): Drop redundant get_var_ann.
6940         (declare_return_variable): Likewise.
6941         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6942         (copy_arguments_for_versioning): Drop redundant get_var_ann.
6943         * ipa-inline.c (compute_inline_parameters): Do not compute
6944         disregard_inline_limits here.
6945         (compute_inlinable_for_current, pass_inlinable): New.
6946         (pass_inline_parameters): Require PROP_referenced_vars.
6947         * cgraphunit.c (cgraph_process_new_functions): Don't run
6948         compute_inline_parameters explicitly unless function is in SSA form.
6949         (cgraph_analyze_function): Set .disregard_inline_limits.
6950         * tree-sra.c (convert_callers): Compute inliner parameters
6951         only for functions already in SSA form.
6952
6953 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6954
6955         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6956         -mlittle-endian-data.
6957
6958 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6959
6960         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6961         -mno-fpu, not -fpu and -no-fpu.
6962         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6963         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6964
6965 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
6966
6967         PR target/43653
6968         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6969         input reload with PLUS RTX.
6970
6971 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6972
6973         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6974         of InverseVar(MDMX).
6975
6976 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6977
6978         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6979         --m4-340.
6980
6981 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6982
6983         * config/mn10300/mn10300.opt (mno-crt0): New.
6984
6985 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6986
6987         * config/m68k/uclinux.opt (static-libc): New Driver option.
6988
6989 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6990
6991         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6992
6993 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6994
6995         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6996         %{muser-extend-enabled}.
6997
6998 2011-02-16  Richard Guenther  <rguenther@suse.de>
6999
7000         PR tree-optimization/47738
7001         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7002         the TODO from tree_predictive_commoning.
7003
7004 2011-02-15  Jeff Law  <law@redhat.com>
7005
7006         Revert
7007         2011-01-25  Jeff Law  <law@redhat.com>
7008
7009         PR rtl-optimization/37273
7010         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7011         handle them like argument loads from stack slots.  Do not double
7012         count memory for memory constants and argument loads from stack slots.
7013
7014 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7015
7016         PR middle-end/47725
7017         * combine.c (cant_combine_insn_p): Revert the last change.
7018
7019 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7020
7021         PR target/47755
7022         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7023         mode for vector constants.  Remove code that checks for TImode.
7024
7025 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7026
7027         PR debug/47106
7028         PR debug/47402
7029         * cgraph.h (compute_inline_parameters): Return void.
7030         * ipa-inline.c (compute_inline_parameters): Adjust.
7031
7032 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7033
7034         PR debug/47106
7035         PR debug/47402
7036         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7037         rather than decl.
7038         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7039         * ipa-inline.c (compute_inline_parameters): Adjust.
7040
7041 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7042
7043         PR debug/47106
7044         PR debug/47402
7045         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7046         Adjust all users.  Pass FN to...
7047         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7048         fn argument.
7049         * ipa-struct-reorg.c: Adjust.
7050         * tree-dfa.c: Adjust.
7051         * tree-into-ssa.c: Adjust.
7052         * tree-sra.c: Adjust.
7053         * tree-ssa-alias.c: Adjust.
7054         * tree-ssa-live.c: Adjust.
7055         * tree-ssa.c: Adjust.
7056         * tree-ssanames.c: Adjust.
7057         * tree-tailcall.c: Adjust.
7058
7059 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7060
7061         PR debug/47106
7062         PR debug/47402
7063         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7064         Adjust all callers.
7065         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7066         * tree-flow-inline.h: Adjust.
7067         * gimple-pretty-print.c: Adjust.
7068         * tree-into-ssa.c: Adjust.
7069         * tree-ssa.c: Adjust.
7070         * cfgexpand.c: Adjust.
7071
7072 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7073
7074         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7075         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7076         (EXTRA_CONSTRAINT): Delete.
7077         * config/iq2000/constraints.md: New file.
7078         * config/iq2000/iq2000.md: Include it.
7079         (define_insn ""): Delete.
7080         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7081         unsupported constraint letters from patterns.
7082         (call_value, call_value_internal1): Likewise.
7083         (call_value_multiple_internal1): Likewise.
7084
7085 2011-02-15  Nick Clifton  <nickc@redhat.com>
7086
7087         * config/mn10300/mn10300.c: Include tm-constrs.h.
7088         (struct liw_data): New data structure describing an LIW candidate
7089         instruction.
7090         (extract_bundle): Use struct liw_data.  Allow small integer
7091         operands for some instructions.
7092         (check_liw_constraints): Use struct liw_data.  Remove swapped
7093         parameter.  Add comments describing the checks.  Fix bug when
7094         assigning the source of liw1 to the source of liw2.
7095         (liw_candidate): Delete.  Code moved into extract_bundle.
7096         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7097         before swapping.
7098         * config/mn10300/predicates.md (liw_operand): New predicate.
7099         Allows registers and small integer constants.
7100         * config/mn10300/constraints.md (O): New constraint.  Accetps
7101         integers in the range -8 to +7 inclusive.
7102         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7103         for moving a small integer into a register.  Give this alternative
7104         LIW attributes.
7105         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7106         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7107         using the J,K,L and M constraints,
7108         (liw): Remove SI mode on second operands to allow for HI and QI
7109         mode values.
7110         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7111         instruction.
7112
7113 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7114
7115         PR middle-end/47725
7116         * combine.c (cant_combine_insn_p): Check zero/sign extended
7117         hard registers.
7118
7119 2011-02-15  Richard Guenther  <rguenther@suse.de>
7120
7121         PR tree-optimization/47743
7122         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7123         for a non-type-compatible VN lookup bail out.
7124
7125 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7126
7127         * config/fr30/constraints.md: New file.
7128         * config/fr30/fr30.md: Include it.
7129         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7130         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7131         (EXTRA_CONSTRAINT): Delete.
7132
7133 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7134
7135         * config/frv/constraints.md: New file.
7136         * config/frv/predicates.md: Include it.
7137         * config/frv/frv.c (reg_class_from_letter): Delete.
7138         (frv_option_override): Don't initialize it.
7139         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7140         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7141         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7142         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7143         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7144         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7145         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7146         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7147         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7148         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7149         (REG_CLASS_FROM_CONSTRAINT): Delete.
7150
7151 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7152
7153         PR middle-end/47581
7154         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7155         if frame size is 0 in a leaf function.
7156
7157 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7158
7159         PR pch/14940
7160         * config/alpha/host-osf.c: New file.
7161         * config/alpha/x-osf: New file.
7162         * config.host (alpha*-dec-osf*): Use it.
7163
7164 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7165
7166         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7167         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7168         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7169         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7170         type to const_rtx.
7171         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7172
7173 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7174
7175         * config/stormy16/constraints.md: New file.
7176         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7177         Use satisfies_constraint_Q and satisfies_constraint_R.
7178         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7179         Delete.
7180         (xstormy16_legitiamte_address_p): Declare.
7181         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7182         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7183         (EXTRA_CONSTRAINT): Delete.
7184         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7185         Un-staticize.
7186         (xstormy16_extra_constraint_p): Delete.
7187
7188 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7189
7190         PR tree-optimization/46494
7191         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7192         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7193         (pass_rtl_loop_done): Add TODO_verify_flow.
7194         * fwprop.c (pass_rtl_fwprop): Likewise.
7195         * modulo-sched.c (pass_sms): Likewise.
7196         * tree-ssa-dom.c (pass_dominator): Likewise.
7197         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7198         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7199         (pass_tree_loop_done): Likewise.
7200         * tree-ssa-pre.c (execute_pre): Likewise.
7201         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7202         * tree-ssa-sink.c (pass_sink_code): Likewise.
7203         * tree-vrp.c (pass_vrp): Likewise.
7204
7205 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7206
7207         * config/v850/constraints.md: New file.
7208         * config/v850/v850.md: Include it.
7209         * config/v850/predicates.md (reg_or_0_operand): Use
7210         satisfies_constraint_G.
7211         (special_symbolref_operand): Use satisfies_constraint_K.
7212         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7213         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7214         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7215         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7216         (EXTRA_CONSTRAINT): Delete.
7217         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7218         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7219         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7220
7221 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7222
7223         PR target/47696
7224         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7225         description.
7226
7227 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7228
7229         * config/mcore/constraints.md: New file.
7230         * config/mcore/mcore.md: Include it.
7231         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7232         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7233         (REG_CLASS_FROM_LETTER): Delete.
7234         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7235         insn_const_int_ok_for_constraint.
7236         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7237         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7238         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7239         (EXTRA_CONSTRAINT): Delete.
7240
7241 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7242
7243         PR ada/41929
7244         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7245         (IS_SIGHANDLER): Define.
7246         (sparc64_is_sighandler): New function, split off from
7247         sparc64_fallback_frame_state.
7248         (sparc_is_sighandler): New function, split off from
7249         sparc_fallback_frame_state.
7250         (sparc64_fallback_frame_state): Merge with ...
7251         (sparc_fallback_frame_state): ... this into ...
7252         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7253         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7254         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7255         stack instead of hardcoded offsets.
7256
7257 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7258
7259         PR target/45808
7260         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7261
7262 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7263
7264         * configure: Regenerate.
7265
7266 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7267
7268         PR driver/45731
7269         * gcc.c (asm_options): Correct spec matching --target-help.
7270
7271 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7272
7273         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7274         to gimple call error.
7275
7276 2011-02-12  Mike Stump  <mikestump@comcast.net>
7277
7278         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7279         comments in backslash regions.
7280
7281 2011-02-12  Mike Stump  <mikestump@comcast.net>
7282             Jakub Jelinek  <jakub@redhat.com>
7283             Iain Sandoe  <iains@gcc.gnu.org>
7284
7285         PR target/47324
7286         * dwarf2out.c (output_cfa_loc): When required, apply the
7287         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7288         (output_loc_sequence): Likewise.
7289         (output_loc_operands_raw): Likewise.
7290         (output_loc_sequence_raw): Likewise.
7291         (output_cfa_loc): Likewise.
7292         (output_loc_list): Suppress register number adjustment when
7293         calling output_loc_sequence()
7294         (output_die): Likewise.
7295
7296 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7297
7298         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7299         Remove macros.
7300         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7301         xtensa_memory_move_cost): New functions.
7302         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7303
7304 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7305
7306         PR lto/47225
7307         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7308         in the current directory.
7309         * configure: Rebuilt.
7310
7311 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7312
7313         * config/darwin.c (darwin_override_options): Add a hunk missed
7314         from the commit of r168571.  Trim comment line lengths and
7315         correct indents of the preceding block.
7316
7317 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7318
7319         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7320         the switch.
7321
7322 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7323
7324         * common.opt (nostartfiles): New Driver option.
7325
7326 2011-02-11  Xinliang David Li  <davidxl@google.com>
7327
7328         PR tree-optimization/47707
7329         * tree-chrec.c (convert_affine_scev): Keep type precision.
7330
7331 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7332
7333         PR tree-optimization/47420
7334         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7335
7336 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7337
7338         PR rtl-optimization/47614
7339         * rtl.h (check_for_inc_dec): Declare.
7340         * dse.c (check_for_inc_dec): Externalize...
7341         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7342         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7343
7344 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7345
7346         PR driver/47678
7347         * gcc.c (main): Do not compile inputs if there were errors in
7348         option handling.
7349         * opts-common.c (read_cmdline_option): Check for wrong language
7350         after other error checks.
7351
7352 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7353
7354         * cgraph.c: Fix comment typos.
7355         * cgraph.h: Likewise.
7356         * cgraphunit.c: Likewise.
7357         * ipa-cp.c: Likewise.
7358         * ipa-inline.c: Likewise.
7359         * ipa-prop.c: Likewise.
7360         * ipa-pure-const.c: Likewise.
7361         * ipa-ref.c: Likewise.
7362         * ipa-reference.c: Likewise.
7363
7364 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7365
7366         PR debug/47684
7367         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7368
7369 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7370
7371         PR testsuite/47400
7372         * doc/sourcebuild.texi (Require Support): Document
7373         dg-require-ascii-locale.
7374
7375 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7376
7377         * doc/lto.texi (Write summary): Fix missing parentheses.
7378
7379 2011-02-10  DJ Delorie  <dj@redhat.com>
7380
7381         * config/m32c/m32c.c (m32c_option_override): Disable
7382         -fcombine-stack-adjustments until flag value tracking and compare
7383         optimization can be rewritten.
7384
7385 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7386
7387         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7388         PROCESSOR_POWER7.
7389         (PROCESSOR_DEFAULT64): Likewise.
7390
7391 2011-02-10  Richard Henderson  <rth@redhat.com>
7392
7393         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7394         change from 2011-02-03.
7395         * config/rx/rx.c (flags_from_code): Likewise.
7396         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7397         is valid, n/pz otherwise.
7398         (rx_select_cc_mode): Return CCmode if Y is not zero.
7399
7400 2011-02-10  Richard Guenther  <rguenther@suse.de>
7401
7402         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7403
7404 2011-02-10  Richard Guenther  <rguenther@suse.de>
7405
7406         PR tree-optimization/47677
7407         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7408
7409 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7410
7411         PR target/47665
7412         * combine.c (make_compound_operation): Only change shifts into
7413         multiplication for SCALAR_INT_MODE_P.
7414
7415 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7416
7417         PR testsuite/47622
7418         Revert
7419         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7420         PR debug/42631
7421         * web.c (entry_register): Don't clobber the number of the
7422         first uninitialized reference in used[].
7423
7424 2011-02-09  Richard Guenther  <rguenther@suse.de>
7425
7426         PR tree-optimization/47664
7427         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7428         all edges again.
7429
7430 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7431
7432         PR target/46481
7433         PR target/47032
7434         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7435         PROCESSOR_POWER7.
7436         (PROCESSOR_DEFAULT64): Same.
7437         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7438
7439 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7440
7441         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7442
7443 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7444
7445         PR middle-end/45505
7446         * tree-sra.c (struct access): New flags grp_scalar_read and
7447         grp_scalar_write.  Changed description of assignment read and write
7448         flags.
7449         (dump_access): Dump new flags, reorder all of them.
7450         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7451         to detect multiple scalar reads.
7452         (analyze_access_subtree): Use the new scalar read write flags instead
7453         of the old flags.  Adjusted comments.
7454
7455 2011-02-08  DJ Delorie  <dj@redhat.com>
7456
7457         PR target/47548
7458         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7459         patterns.
7460
7461 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7462
7463         * config/m68k/uclinux.opt: New.
7464         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7465
7466 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7467
7468         * config/cris/elf.opt (sim): New Driver option.
7469
7470 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7471
7472         * config/xtensa/elf.opt: New.
7473         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7474
7475 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7476
7477         * config/vax/elf.opt: New.
7478         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7479
7480 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7481
7482         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7483
7484 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7485
7486         * config/gnu-user.opt: New.
7487         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7488         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7489         *-*-uclinux*): Use gnu-user.opt.
7490
7491 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7492
7493         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7494         * config/i386/gnu.h (CPP_SPEC): Likewise.
7495
7496 2011-02-08  Ian Lance Taylor  <iant@google.com>
7497
7498         * common.opt (fcx-limited-range): Add SetByCombined flag.
7499         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7500         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7501         (fassociative-math, freciprocal-math): Likewise.
7502         (funsafe-math-optimizations): Likewise.
7503         * opth-gen.awk: Handle SetByCombined.
7504         * optc-gen.awk: Likewise.
7505         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7506         (set_unsafe_math_optimizations_flags): Likewise.
7507         * doc/options.texi (Option properties): Document SetByCombined.
7508
7509 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7510
7511         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7512         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7513         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7514         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7515         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7516
7517 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7518
7519         PR tree-optimization/46834
7520         PR tree-optimization/46994
7521         PR tree-optimization/46995
7522         * graphite-sese-to-poly.c (used_outside_reduction): New.
7523         (detect_commutative_reduction): Call used_outside_reduction.
7524         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7525         translate_scalar_reduction_to_array only when at least one
7526         loop-phi/close-phi tuple has been detected.
7527
7528 2011-02-08  Richard Guenther  <rguenther@suse.de>
7529
7530         PR middle-end/47639
7531         * tree-vect-generic.c (expand_vector_operations_1): Update
7532         stmts here ...
7533         (expand_vector_operations): ... not here.  Cleanup EH info
7534         and the CFG if required.
7535
7536 2011-02-08  Richard Guenther  <rguenther@suse.de>
7537
7538         PR tree-optimization/47641
7539         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7540         require type compatibility.
7541
7542 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7543
7544         * gimple-low.c (lower_function_body): Don't remove the location of
7545         the return statement here.
7546         (lower_gimple_return): Do it here instead but only if the return
7547         statement is actually used twice.
7548
7549 2011-02-08  Richard Guenther  <rguenther@suse.de>
7550
7551         PR tree-optimization/47632
7552         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7553         unused up_to_stmt parameter, return whether cfg-cleanup is
7554         necessary, remove EH info properly.
7555         (forward_propagate_into_gimple_cond): Adjust caller.
7556         (forward_propagate_into_cond): Likewise.
7557         (forward_propagate_comparison): Likewise.
7558         (tree_ssa_forward_propagate_single_use_vars): Make
7559         forward_propagate_comparison case similar to the two others.
7560
7561 2011-02-08  Nick Clifton  <nickc@redhat.com>
7562
7563         * config/mn10300/mn10300.opt (mliw): New command line option.
7564         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7565         (liw_bundling): New automaton.
7566         (liw): New attribute.
7567         (liw_op): New attribute.
7568         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7569         (movsi_internal): Add LIW attributes.
7570         (andsi3): Likewise.
7571         (iorsi3): Likewise.
7572         (xorsi3): Likewise.
7573         (addsi3): Separate register and immediate alternatives.
7574         Add LIW attributes.
7575         (subsi3): Likewise.
7576         (cmpsi): Likewise.
7577         (aslsi3): Likewise.
7578         (lshrsi3): Likewise.
7579         (ashrsi3): Likewise.
7580         (liw): New pattern.
7581         * config/mn10300/mn10300.c (liw_op_names): New
7582         (mn10300_print_operand): Handle 'W' operand descriptor.
7583         (extract_bundle): New function.
7584         (check_liw_constraints): New function.
7585         (liw_candidate): New function.
7586         (mn10300_bundle_liw): New function.
7587         (mn10300_reorg): New function.
7588         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7589         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7590         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7591         __LIW__ or __NO_LIW__.
7592         * doc/invoke.texi: Describe the -mliw command line option.
7593
7594 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7595
7596         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7597         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7598         pthread_mutex_unlock): Remove.
7599         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7600         * config/pa/t-pa64: Likewise.
7601         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7602         shared libc if not linking against libpthread.
7603         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7604
7605 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
7606
7607         PR target/47558
7608         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7609         on 10.6 and later to ensure that we always use the unwinder from
7610         the system.  Only add -no_compact_unwind when tarteting darwin
7611         10.6 or later.
7612
7613 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
7614
7615         PR target/46997
7616         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7617         (vec_interleave_lowv2sf): Ditto.
7618         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7619         (vec_extract_oddv2sf): Ditto.
7620
7621 2011-02-07  Mike Stump  <mikestump@comcast.net>
7622
7623         PR target/42333
7624         Add __ieee_divdc3 entry point.
7625         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7626         entry point.
7627         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7628         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7629         * config/darwin.c (darwin_rename_builtins): Add.
7630         * config/darwin-protos.h (darwin_rename_builtins): Add.
7631
7632 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7633
7634         PR target/47636
7635         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7636         for the condition.
7637
7638 2011-02-07  Mike Stump  <mikestump@comcast.net>
7639
7640         * config/darwin.opt (mmacosx-version-min): Update default OS version.
7641
7642 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
7643
7644         PR target/47534
7645         * config/avr/libgcc.S (exit): Move .endfunc
7646
7647 2011-02-07  Richard Guenther  <rguenther@suse.de>
7648
7649         PR tree-optimization/47615
7650         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7651         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7652         (run_scc_vn): Initialize it.
7653         (visit_reference_op_load): Use it.
7654         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7655
7656 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7657
7658         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7659         DImode trapping arithmetic libfuncs.
7660
7661 2011-02-07  Richard Guenther  <rguenther@suse.de>
7662
7663         PR tree-optimization/47621
7664         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7665         two duplicates ...
7666         (execute_update_addresses_taken): ... here.  Make it more
7667         conservative in what we accept.
7668
7669 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7670
7671         * config/sparc/freebsd.h (ASM_SPEC): Define.
7672         * config/sparc/vxworks.h (ASM_SPEC): Define.
7673
7674 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7675
7676         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7677
7678 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7679
7680         * doc/invoke.texi: Remove reference to compiler internals from
7681         user documentation.
7682
7683         * reg-notes.def: Remove REG_VALUE_PROFILE.
7684         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7685
7686 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7687
7688         PR middle-end/47610
7689         * varasm.c (default_section_type_flags): If decl is NULL,
7690         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7691
7692 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7693
7694         PR debug/42631
7695         * web.c (entry_register): Don't clobber the number of the
7696         first uninitialized reference in used[].
7697
7698 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7699
7700         PR tree-optimization/46194
7701         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7702         (build_classic_dist_vector_1): Do not represent classic distance
7703         vectors when the access functions are variating in different loops.
7704
7705 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7706
7707         * config/mips/iris6.opt: New.
7708         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7709
7710 2011-02-04  Richard Henderson  <rth@redhat.com>
7711             Steve Ellcey  <sje@cup.hp.com>
7712
7713         PR target/46997
7714         * config/ia64/predicates.md (mux1_brcst_element): New.
7715         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7716         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7717         (ia64_unpack_sign): New.
7718         (ia64_expand_unpack): Rewrite using new routines.
7719         (ia64_expand_widen_sum): Ditto.
7720         (ia64_expand_dot_prod_v8qi): Ditto.
7721         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7722         routines, add endian check.
7723         (pmpy2_even): Rename from pmpy2_r, add endian check.
7724         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7725         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7726         (vec_widen_smult_hi_v4hi): Ditto.
7727         (vec_widen_umult_lo_v4hi): Ditto.
7728         (vec_widen_umult_hi_v4hi): Ditto.
7729         (mulv2si3): Change endian checks.
7730         (sdot_prodv4hi): Rewrite with new calls.
7731         (udot_prodv4hi): New.
7732         (vec_pack_ssat_v4hi): Add endian check.
7733         (vec_pack_usat_v4hi): Ditto.
7734         (vec_pack_ssat_v2si): Ditto.
7735         (max1_even): Rename from max1_r, add endian check.
7736         (max1_odd): Rename from max1_l, add endian check.
7737         (*mux1_rev): Format change.
7738         (*mux1_mix): Ditto.
7739         (*mux1_shuf): Ditto.
7740         (*mux1_alt): Ditto.
7741         (*mux1_brcst_v8qi): Use new predicate.
7742         (vec_extract_evenv8qi): Remove endian check.
7743         (vec_extract_oddv8qi): Ditto.
7744         (vec_interleave_lowv4hi): Format change.
7745         (vec_interleave_highv4hi): Ditto.
7746         (mix2_even): Rename from mix2_r, add endian check.
7747         (mix2_odd): Rename from mux2_l, add endian check.
7748         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7749         (vec_extract_evenodd_helper): Format change.
7750         (vec_extract_evenv4hi): Remove endian check.
7751         (vec_extract_oddv4hi): Remove endian check.
7752         (vec_interleave_lowv2si): Format change.
7753         (vec_interleave_highv2si): Format change.
7754         (vec_initv2si): Remove endian check.
7755         (vecinit_v2si): Add endian check.
7756         (reduc_splus_v2sf): Add endian check.
7757         (reduc_smax_v2sf): Ditto.
7758         (reduc_smin_v2sf): Ditto.
7759         (vec_initv2sf): Remove endian check.
7760         (fpack): Add endian check.
7761         (fswap): Add endian check.
7762         (vec_interleave_highv2sf): Add endian check.
7763         (vec_interleave_lowv2sf): Add endian check.
7764         (fmix_lr): Add endian check.
7765         (vec_setv2sf): Format change.
7766         (*vec_extractv2sf_0_be): Use shift to extract operand.
7767         (*vec_extractv2sf_1_be): New.
7768         (vec_pack_trunc_v4hi): Add endian check.
7769         (vec_pack_trunc_v2si): Format change.
7770
7771 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
7772
7773         PR inline-asm/23200
7774         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
7775         do bb, locus and block comparison and disallow loads if it is not set.
7776         (stmt_is_replaceable_p): New function.
7777         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7778         callers.
7779         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7780         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7781         SSA_NAME_DEF_STMT.
7782         * tree-flow.h (stmt_is_replaceable_p): New prototype.
7783
7784 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7785
7786         * config/rs6000/xilinx.opt: New.
7787         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7788
7789 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7790
7791         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7792
7793 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
7794
7795         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7796         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7797         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7798         secondary_reload_info, xtensa_secondary_reload): Remove.
7799         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7800         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7801         (xtensa_preferred_reload_class): Make static. Change return and
7802         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7803         Use CONST_DOUBLE_P predicate.
7804         (xtensa_preferred_output_reload_class): New function.
7805         (xtensa_secondary_reload): Make static.
7806
7807 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
7808
7809         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7810         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7811         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7812
7813 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7814
7815         PR middle-end/31490
7816         * output.h (SECTION_RELRO): Define.
7817         (SECTION_MACH_DEP): Adjust.
7818         (get_variable_section): New prototype.
7819         * varpool.c (varpool_finalize_named_section_flags): New function.
7820         (varpool_assemble_pending_decls): Call it.
7821         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7822         * cgraphunit.c (cgraph_output_in_order): Call
7823         varpool_finalize_named_section_flags.
7824         * varasm.c (get_section): Allow section flags conflicts between
7825         relro and read-only sections if the section hasn't been declared yet.
7826         Set SECTION_OVERRIDE after diagnosing section type conflict.
7827         (get_variable_section): No longer static.
7828         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7829         readonly sections that need relocations.
7830         (decl_readonly_section_1): New function.
7831         (decl_readonly_section): Use it.
7832
7833         Revert:
7834         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
7835                     Steve Ellcey  <sje@cup.hp.com>
7836
7837         PR middle-end/31490
7838         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7839         if section attribute used.
7840
7841 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7842
7843         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7844         * config/darwin.c (SECTION_NO_ANCHOR): Define.
7845         (darwin_init_sections): Remove assertion.
7846
7847 2011-02-03  Nick Clifton  <nickc@redhat.com>
7848
7849         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7850         lt and ge.
7851         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7852         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7853         instead of "n" and "pz".
7854         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7855         CC_FLAG_S.
7856
7857 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7858
7859         PR target/47312
7860         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7861         fma, expand FMA_EXPR as fma{,f,l} call.
7862
7863         PR lto/47274
7864         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7865         copy them into a unsigned char variable and pass address of it to
7866         lto_output_data_stream.
7867
7868         PR target/47564
7869         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7870         around backend_init_target and lang_dependent_init_target calls.
7871         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7872         (verify_cgraph_node): Don't call set_cfun here.  Use
7873         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7874         Set error_found for incorrectly represented calls to thunks.
7875
7876 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7877
7878         PR debug/43092
7879         PR rtl-optimization/43494
7880         * rtl.h (for_each_inc_dec_fn): New type.
7881         (for_each_inc_dec): Declare.
7882         * rtlanal.c (struct for_each_inc_dec_ops): New type.
7883         (for_each_inc_dec_find_inc_dec): New fn.
7884         (for_each_inc_dec_find_mem): New fn.
7885         (for_each_inc_dec): New fn.
7886         * dse.c (struct insn_size): Remove.
7887         (replace_inc_dec, replace_inc_dec_mem): Remove.
7888         (emit_inc_dec_insn_before): New fn.
7889         (check_for_inc_dec): Use it, along with for_each_inc_dec.
7890         (canon_address): Pass mem modes to cselib_lookup.
7891         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
7892         (cselib_lookup_from_insn): Likewise.
7893         (cselib_subst_to_values): Likewise.
7894         * cselib.c (find_slot_memmode): New var.
7895         (cselib_find_slot): New fn.  Use it instead of
7896         htab_find_slot_with_hash everywhere.
7897         (entry_and_rtx_equal_p): Use find_slot_memmode.
7898         (autoinc_split): New fn.
7899         (rtx_equal_for_cselib_p): Rename and implement in terms of...
7900         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
7901         Deal with autoinc.  Special-case recursion into MEMs.
7902         (cselib_hash_rtx): Likewise.
7903         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
7904         address and MEM modes.
7905         (cselib_subst_to_values): Add memmode, pass it on.
7906         Deal with autoinc.
7907         (cselib_lookup): Add memmode argument, pass it on.
7908         (cselib_lookup_from_insn): Add memmode.
7909         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7910         (struct cselib_record_autoinc_data): New.
7911         (cselib_record_autoinc_cb): New fn.
7912         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
7913         mode to cselib_lookup.  Reset autoinced REGs here instead of...
7914         (cselib_process_insn): ... here.
7915         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7916         to cselib_lookup.
7917         (add_uses): Likewise, also to cselib_subst_to_values.
7918         (add_stores): Likewise.
7919         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
7920         cselib_subst_to_values.
7921         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
7922         * gcse.c (do_local_cprop): Adjusted.
7923         * postreload.c (reload_cse_simplify_set): Adjusted.
7924         (reload_cse_simplify_operands): Adjusted.
7925         * sel-sched-dump (debug_mem_addr_value): Pass mode.
7926
7927 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7928
7929         PR tree-optimization/45122
7930         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7931         unsafe assumptions when there's more than one loop exit.
7932
7933 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7934
7935         PR target/47272
7936         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7937         Document using vector double with the load/store builtins, and
7938         that the load/store builtins always use Altivec instructions.
7939
7940         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7941         to use altivec memory instructions, even on VSX.
7942         (vector_altivec_store_<mode>): Ditto.
7943
7944         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7945         function.
7946
7947         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7948         V2DF, V2DI support to load/store overloaded builtins.
7949
7950         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7951         altivec load/store builtins for V2DF/V2DI types.
7952
7953         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7954         set avoid indexed addresses on power6 if -maltivec.
7955         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7956         vector_altivec_load/vector_altivec_store builtins.
7957         (altivec_expand_st_builtin): Ditto.
7958         (altivec_expand_builtin): Add VSX memory builtins.
7959         (rs6000_init_builtins): Add V2DI types to internal types.
7960         (altivec_init_builtins): Add support for V2DF/V2DI altivec
7961         load/store builtins.
7962         (rs6000_address_for_altivec): Insure memory address is appropriate
7963         for Altivec.
7964
7965         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7966         vec_vsx_ld and vec_vsx_st.
7967         (vsx_store_<mode>): Ditto.
7968
7969         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7970         variables to hold long long types for VSX vector memory builtins.
7971         (RS6000_BTI_unsigned_long_long): Ditto.
7972         (long_long_integer_type_internal_node): Ditti.
7973         (long_long_unsigned_type_internal_node): Ditti.
7974
7975         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7976         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7977         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7978
7979         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7980         short cuts.
7981         (vec_vsx_st): Ditto.
7982
7983 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7984
7985         * config/pa/pa-hpux10.opt: New.
7986         * config/hpux11.opt (pthread): New Driver option.
7987         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7988         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7989
7990 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7991
7992         * config/ia64/vms.opt: New.
7993         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7994
7995 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7996
7997         PR target/47580
7998         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7999         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8000         generator functions.
8001         (vsx_floatuns<VSi><mode>2): Ditto.
8002         (vsx_fix_trunc<mode><VSi>2): Ditto.
8003         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8004
8005 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8006
8007         * config/i386/djgpp.opt (posix): New Driver option.
8008
8009 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8010
8011         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8012         Move to the unsupported targets list.
8013
8014 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8015
8016         PR rtl-optimization/47525
8017         * df-scan.c: Update copyright years.
8018         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8019         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8020
8021 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8022
8023         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8024         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8025         (ASM_OUTPUT_ASCII): Remove.
8026         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8027
8028 2011-02-02  Jeff Law  <law@redhat.com>
8029
8030         PR middle-end/47543
8031         * reload.c (find_reloads_address): Handle reg+d address where both
8032         components are invalid by reloading the entire address.
8033
8034 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8035             Richard Guenther  <rguenther@suse.de>
8036
8037         PR tree-optimization/40979
8038         PR bootstrap/47044
8039         * passes.c (init_optimization_passes): After LIM call copy_prop
8040         and DCE to clean up.
8041         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8042
8043 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8044
8045         PR tree-optimization/47576
8046         PR tree-optimization/47555
8047         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8048         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8049         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8050         * tree-scalar-evolution.c (follow_ssa_edge): Use
8051         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8052
8053 2011-02-02  Richard Guenther  <rguenther@suse.de>
8054
8055         PR tree-optimization/47566
8056         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8057
8058 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8059
8060         PR debug/47106
8061         PR debug/47402
8062         * tree-inline.c (declare_return_variable): Remove unused caller
8063         variable.
8064
8065         PR debug/47106
8066         PR debug/47402
8067         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8068         * cfgexpand.c (account_used_vars_for_block): Use them.
8069         * tree-nrv.c (tree_nrv): Likewise.
8070         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8071         (dump_scope_block): Likewise.
8072         (remove_unused_locals): Likewise.
8073
8074         PR debug/47106
8075         PR debug/47402
8076         * tree-inline.c (declare_return_variable): Add result decl to
8077         local decls only once.
8078         * gimple-low.c (record_vars_into): Mark newly-created variables
8079         as referenced.
8080
8081 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8082
8083         PR debug/47498
8084         PR debug/47501
8085         PR debug/45136
8086         PR debug/45130
8087         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8088         debug insns.
8089         (no_real_insns_p, schedule_block, set_priorities): Drop special
8090         treatment of boundary debug insns.
8091         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8092         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8093         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8094         (BOUNDARY_DEBUG_INSN_P): Likewise.
8095         (SCHEDULE_DEBUG_INSN_P): Likewise.
8096         * sched-rgn.c (init_ready_list): Drop special treatment of
8097         boundary debug insns.
8098         * final.c (rest_of_clean_state): Clear notes' BB.
8099
8100 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8101
8102         * config/openbsd.opt (assert=): New Driver option.
8103
8104 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * config/i386/nto.opt: New.
8107         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8108
8109 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8110
8111         * config/i386/netware.opt: New.
8112         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8113
8114 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8115
8116         * config/interix.opt (posix): New Driver option.
8117
8118 2011-02-01  DJ Delorie  <dj@redhat.com>
8119
8120         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8121
8122         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8123         class for A0/A1.
8124
8125 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8126
8127         PR tree-optimization/47561
8128         * toplev.c (process_options): Print the Graphite flags.  Add
8129         flag_loop_flatten to the list of options requiring Graphite.
8130
8131 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8132
8133         * config/i386/cygming.opt (posix): New Driver option.
8134
8135 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8136
8137         * config/arm/vxworks.opt: New.
8138         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8139
8140 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8141
8142         * config/alpha/elf.opt: New.
8143         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8144         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8145
8146 2011-02-01  Richard Guenther  <rguenther@suse.de>
8147
8148         PR tree-optimization/47559
8149         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8150         store-motion on references that can throw.
8151
8152 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8153
8154         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8155         * tree-pass.h (TDF_CSELIB): New macro.
8156         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8157         cselib_lookup): Check for it rather than for TDF_DETAILS.
8158
8159 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8160
8161         PR driver/47547
8162         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8163         is HOST_BIT_BUCKET.
8164
8165         * opts.c (finish_options): Don't add x_aux_base_name if it is
8166         HOST_BIT_BUCKET.
8167
8168 2011-02-01  Richard Guenther  <rguenther@suse.de>
8169
8170         PR tree-optimization/47555
8171         Revert
8172         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8173
8174         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8175
8176 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8177
8178         PR gcc/46692
8179         * config/lm32/t-lm32: Add multilib for all CPU options.
8180
8181 2011-02-01  Richard Guenther  <rguenther@suse.de>
8182
8183         PR tree-optimization/47541
8184         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8185         sure to have a field at offset zero.
8186
8187 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8188
8189         * config/arc/arc.opt (EB, EL): New Driver options.
8190
8191 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8192
8193         * config/alpha/osf5.opt: New.
8194         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8195
8196 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8197
8198         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8199
8200 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8201
8202         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8203         -floop-interchange.
8204         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8205         is an alias of -floop-interchange and that it requires the
8206         Graphite infrastructure.
8207         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8208         flag_loop_interchange based on the value of flag_tree_loop_linear.
8209
8210 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8211             Richard Guenther  <rguenther@suse.de>
8212
8213         PR tree-optimization/47538
8214         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8215         type instead of r1type, except for comparisons.  For right
8216         shifts and comparisons punt if there are mismatches in
8217         sizetype vs. non-sizetype types.
8218
8219 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8220
8221         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8222         avx_runtime.
8223
8224 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8225
8226         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8227         version number.
8228         * configure: Regenerate.
8229
8230 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8231
8232         * configure.ac (gcc_cv_ld_static_option): Define.
8233         (gcc_cv_ld_dynamic_option): Define.
8234         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8235         instead.
8236         (HAVE_LD_STATIC_DYNAMIC): Update message.
8237         (LD_STATIC_OPTION): Define.
8238         (LD_DYNAMIC_OPTION): Define.
8239         * configure: Regenerate.
8240         * config.in: Regenerate.
8241         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8242         HAVE_LD_STATIC_DYNAMIC]: Use them.
8243
8244 2011-01-31  Nick Clifton  <nickc@redhat.com>
8245
8246         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8247         registers inside interrupt handlers if the handler is not a leaf
8248         function.
8249
8250 2011-01-31  Nick Clifton  <nickc@redhat.com>
8251
8252         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8253         reg_renumber returning an INVALID_REGNUM.
8254
8255 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8256
8257         PR libgcj/44341
8258         * doc/install.texi: Document host options discarded when cross
8259         configuring target libraries.
8260
8261 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8262
8263         Reverted:
8264         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8265         PR debug/45136
8266         PR debug/45130
8267         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8268         debug insns.
8269         (no_real_insns_p, schedule_block, set_priorities): Drop special
8270         treatment of boundary debug insns.
8271         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8272         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8273         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8274         (BOUNDARY_DEBUG_INSN_P): Likewise.
8275         (SCHEDULE_DEBUG_INSN_P): Likewise.
8276         * sched-rgn.c (init_ready_list): Drop special treatment of
8277         boundary debug insns.
8278         * final.c (rest_of_clean-state): Clear notes' BB.
8279
8280 2011-01-31  Alan Modra  <amodra@gmail.com>
8281
8282         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8283         toc relative expressions as we do in print_operand_address.
8284
8285 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8286
8287         * doc/extend.texi: Follow spelling conventions.
8288         * doc/invoke.texi: Fix a typo.
8289
8290 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8291
8292         * config/hpux11.opt: New.
8293         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8294         ia64*-*-hpux*): Use hpux11.opt.
8295
8296 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8297
8298         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8299         to tmake_file.
8300
8301 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8302
8303         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8304         support sites.
8305
8306 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8307
8308         * doc/install.texi (Binaries): Remove outdated reference for
8309         Motorola 68HC11/68HC12 downloads.
8310
8311 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8312
8313         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8314         Drepper's paper.
8315
8316 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8317
8318         PR bootstrap/47147
8319         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8320         used by NetBSD.
8321
8322 2011-01-28  Ahmad Sharif  <asharif@google.com>
8323
8324         * value-prof.c (check_counter): Corrected error message.
8325
8326 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8327
8328         * config/arm/arm.c (arm_legitimize_reload_address): New.
8329         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8330         arm_legitimize_reload_address.
8331         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8332
8333 2011-01-28  Ian Lance Taylor  <iant@google.com>
8334
8335         * godump.c (go_define): Ignore macros whose definitions include
8336         two adjacent operands.
8337
8338 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8339
8340         PR target/42894
8341         * varasm.c (force_const_mem): Store copy of x in desc->constant
8342         instead of x itself.
8343         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8344         itself into REG_EQUAL note.
8345
8346 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8347
8348         * config/freebsd.opt (posix, rdynamic): New Driver options.
8349
8350 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8351
8352         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8353         -Bstatic/-Bdynamic.
8354         * configure: Regenerate.
8355
8356 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8357
8358         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8359         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8360
8361 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8362
8363         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8364         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8365         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8366         (s390_preferred_reload_class): Make static. Change return and
8367         'rclass' argument type to reg_class_t.
8368
8369 2011-01-27  Jan Hubicka  <jh@suse.cz>
8370
8371         PR middle-end/46949
8372         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8373         (process_function_and_variable_attributes): Check defined weakrefs.
8374
8375 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8376
8377         PR tree-optimization/47228
8378         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8379         build_ref_for_offset.
8380
8381 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8382
8383         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8384
8385 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8386
8387         PR rtl-optimization/46856
8388         * postreload.c (reload_combine_recognize_const_pattern): Do not
8389         separate cc0 setter and user on cc0 targets.
8390
8391 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8392
8393         PR c/43082
8394         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8395         passed a VOID_TYPE expression, immediately emit an error and
8396         return error_mark_node.
8397
8398 2011-01-26  Jeff Law  <law@redhat.com>
8399
8400         PR rtl-optimization/47464
8401         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8402         rather than may_trap_p as needed.
8403
8404 2011-01-26  DJ Delorie  <dj@redhat.com>
8405
8406         PR rtl-optimization/46878
8407         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8408         setter/user dependency as well.
8409
8410 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8411
8412         PR rtl-optimization/44469
8413         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8414         after removing trivially dead basic blocks.
8415
8416 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8417
8418         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8419         * config/frv/frv.h (LINK_SPEC): Likewise.
8420         * config/i386/netware.h (LINK_SPEC): Likewise.
8421         * config/m68k/linux.h (ASM_SPEC): Likewise.
8422         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8423         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8424         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8425         * config/sparc/linux.h (ASM_SPEC): Likewise.
8426         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8427         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8428
8429 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8430
8431         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8432         * config/frv/frv.h (ASM_SPEC): Likewise.
8433         * config/m68k/linux.h (ASM_SPEC): Likewise.
8434         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8435         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8436         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8437         * config/sparc/linux.h (ASM_SPEC): Likewise.
8438         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8439         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8440
8441 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8442
8443         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8444         * config/frv/frv.h (LINK_SPEC): Likewise.
8445         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8446
8447 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8448
8449         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8450         * config/frv/frv.h (ASM_SPEC): Likewise.
8451         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8452         * config/m68k/linux.h (ASM_SPEC): Likewise.
8453         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8454         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8455         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8456         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
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         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8461
8462 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8463
8464         PR target/46997
8465         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8466         (*mux2): Ditto.
8467         (vec_extract_evenodd_help): Ditto.
8468         (vec_extract_evenv4hi): Ditto.
8469         (vec_extract_oddv4hi): Ditto.
8470         (vec_interleave_lowv2si): Ditto.
8471         (vec_interleave_highv2si): Ditto.
8472         (vec_extract_evenv2si): Ditto.
8473         (vec_extract_oddv2si: Ditto.
8474         (vec_pack_trunc_v2si): Ditto.
8475
8476 2011-01-22  Jan Hubicka  <jh@suse.cz>
8477
8478         PR target/47237
8479         * cgraph.h (cgraph_local_info): New field can_change_signature.
8480         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8481         signature can change.
8482         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8483         can change.
8484         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8485         (cgraph_function_versioning): We can not change signature of functions
8486         that don't allow that.
8487         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8488         (lto_input_node): Likewise.
8489         * ipa-inline.c (compute_inline_parameters): Compute
8490         local.can_change_signature.
8491         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8492         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8493         functions that can not change signature.
8494         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8495         init_cumulative_args): Do not use local calling conventions
8496         for functions that can not change signature.
8497
8498 2011-01-22  Jan Hubicka  <jh@suse.cz>
8499
8500         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8501
8502 2011-01-26  Richard Guenther  <rguenther@suse.de>
8503
8504         PR tree-optimization/47190
8505         * cgraphunit.c (process_common_attributes): New function.
8506         (process_function_and_variable_attributes): Use it.
8507
8508 2011-01-26  Richard Guenther  <rguenther@suse.de>
8509
8510         PR lto/47423
8511         * cgraphbuild.c (record_eh_tables): Record reference to personality
8512         function.
8513
8514 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8515
8516         PR debug/45454
8517         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8518         non-debug insns from moving up.
8519
8520 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8521
8522         PR target/40125
8523         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8524         t-dlldir{,-x} fragment for build and add it to tmake_file.
8525         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8526         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8527         * config/i386/t-dlldir: New file.
8528         (SHLIB_DLLDIR): Define.
8529         * config/i386/t-dlldir-x: New file.
8530         (SHLIB_DLLDIR): Define.
8531         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8532         (SHLIB_INSTALL): Use it.
8533
8534 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8535
8536         PR target/47246
8537         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8538         lower bound of the allowed Thumb-2 coprocessor load/store
8539         index range to -256. Add explaining comment.
8540
8541 2011-01-25  Ian Lance Taylor  <iant@google.com>
8542
8543         * godump.c (go_define): Improve lexing of macro expansion to only
8544         accept expressions which match Go spec.
8545
8546 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8547
8548         PR c++/43601
8549         * tree.c (handle_dll_attribute): Handle it.
8550         * doc/extend.texi (@item dllexport): Mention it.
8551         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8552
8553 2011-01-25  Ian Lance Taylor  <iant@google.com>
8554
8555         PR tree-optimization/26854
8556         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8557         (decl_jump_unsafe): Move higher in file, with no other change.
8558         (bind): Set has_jump_unsafe_decl if appropriate.
8559         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8560         (check_earlier_gotos): Likewise.
8561         (c_check_switch_jump_warnings): Likewise.
8562
8563 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8564
8565         * doc/invoke.texi (Warning Options): Add missing hyphen.
8566         (-fprofile-dir): Minor grammatical fixes.
8567         (-fbranch-probabilities): Likewise.
8568
8569 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8570
8571         PR debug/45136
8572         PR debug/45130
8573         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8574         debug insns.
8575         (no_real_insns_p, schedule_block, set_priorities): Drop special
8576         treatment of boundary debug insns.
8577         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8578         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8579         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8580         (BOUNDARY_DEBUG_INSN_P): Likewise.
8581         (SCHEDULE_DEBUG_INSN_P): Likewise.
8582         * sched-rgn.c (init_ready_list): Drop special treatment of
8583         boundary debug insns.
8584         * final.c (rest_of_clean-state): Clear notes' BB.
8585
8586 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8587
8588         * Makefile.in (LAMBDA_H): Removed.
8589         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8590         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8591         lambda-trans.o, and tree-loop-linear.o.
8592         (lto-symtab.o): Remove dependence on LAMBDA_H.
8593         (tree-loop-linear.o): Remove rule.
8594         (lambda-mat.o): Same.
8595         (lambda-trans.o): Same.
8596         (lambda-code.o): Same.
8597         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8598         (tree-vect-slp.o): Same.
8599         * hwint.h (gcd): Moved here.
8600         (least_common_multiple): Same.
8601         * lambda-code.c: Removed.
8602         * lambda-mat.c: Removed.
8603         * lambda-trans.c: Removed.
8604         * lambda.h: Removed.
8605         * tree-loop-linear.c: Removed.
8606         * lto-symtab.c: Do not include lambda.h.
8607         * omega.c (gcd): Removed.
8608         * passes.c (init_optimization_passes): Remove pass_linear_transform.
8609         * tree-data-ref.c (print_lambda_vector): Moved here.
8610         (lambda_vector_copy): Same.
8611         (lambda_matrix_copy): Same.
8612         (lambda_matrix_id): Same.
8613         (lambda_vector_first_nz): Same.
8614         (lambda_matrix_row_add): Same.
8615         (lambda_matrix_row_exchange): Same.
8616         (lambda_vector_mult_const): Same.
8617         (lambda_vector_negate): Same.
8618         (lambda_matrix_row_negate): Same.
8619         (lambda_vector_equal): Same.
8620         (lambda_matrix_right_hermite): Same.
8621         * tree-data-ref.h: Do not include lambda.h.
8622         (lambda_vector): Moved here.
8623         (lambda_matrix): Same.
8624         (dependence_level): Same.
8625         (lambda_transform_legal_p): Removed declaration.
8626         (lambda_collect_parameters): Same.
8627         (lambda_compute_access_matrices): Same.
8628         (lambda_vector_gcd): Same.
8629         (lambda_vector_new): Same.
8630         (lambda_vector_clear): Same.
8631         (lambda_vector_lexico_pos): Same.
8632         (lambda_vector_zerop): Same.
8633         (lambda_matrix_new): Same.
8634         * tree-flow.h (least_common_multiple): Removed declaration.
8635         * tree-parloops.c (lambda_trans_matrix): Moved here.
8636         (LTM_MATRIX): Same.
8637         (LTM_ROWSIZE): Same.
8638         (LTM_COLSIZE): Same.
8639         (LTM_DENOMINATOR): Same.
8640         (lambda_trans_matrix_new): Same.
8641         (lambda_matrix_vector_mult): Same.
8642         (lambda_transform_legal_p): Same.
8643         * tree-pass.h (pass_linear_transform): Removed declaration.
8644         * tree-ssa-loop.c (tree_linear_transform): Removed.
8645         (gate_tree_linear_transform): Removed.
8646         (pass_linear_transform): Removed.
8647         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8648         flag_loop_interchange.
8649
8650 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8651
8652         PR tree-optimization/47265
8653         PR tree-optimization/47443
8654         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8655         if name still has some uses.
8656
8657 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8658
8659         PR tree-optimization/47382
8660         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8661         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8662
8663 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8664
8665         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8666         sjlj_except_unwind_info.
8667
8668 2011-01-25  Richard Guenther  <rguenther@suse.de>
8669
8670         PR tree-optimization/47426
8671         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8672         visible functions results escape.
8673
8674 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8675
8676         PR target/45701
8677         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8678         (arm_get_frame_offsets): Use it.
8679
8680 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8681             Jakub Jelinek  <jakub@redhat.com>
8682
8683         PR tree-optimization/47271
8684         * tree-if-conv.c (bb_postdominates_preds): New.
8685         (if_convertible_bb_p): Call bb_postdominates_preds.
8686         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8687         (predicate_scalar_phi): Call bb_postdominates_preds.
8688
8689 2011-01-25  Nick Clifton  <nickc@redhat.com>
8690
8691         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8692         * config/rx/rx.c (rx_function_value): Likewise.
8693         (rx_promote_function_mode): Likewise.
8694         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8695         in order to make it legitimate.
8696         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8697         make sure that the first operand is the same as the result register.
8698         (addsi3_unspec): Delete.
8699         (subdi3): Do not accept immediate operands.
8700         (subdi3_internal): Likewise.
8701
8702 2011-01-25  Jeff Law  <law@redhat.com>
8703
8704         PR rtl-optimization/37273
8705         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8706         handle them like argument loads from stack slots.  Do not double
8707         count memory for memory constants and argument loads from stack slots.
8708
8709 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8710
8711         PR tree-optimization/47427
8712         PR tree-optimization/47428
8713         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8714         coalesce if the new root var would be TREE_READONLY.
8715
8716 2011-01-25  Richard Guenther  <rguenther@suse.de>
8717
8718         PR middle-end/47414
8719         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8720         correct type for TBAA.
8721
8722 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8723
8724         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8725         (close_phi_written_to_memory): Call for_each_index with
8726         dr_indices_valid_in_loop.
8727
8728 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8729
8730         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8731         when it is initialized.
8732
8733 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8734
8735         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8736         call to graphite_find_data_references_in_stmt.
8737         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8738         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8739         call to graphite_find_data_references_in_stmt.
8740         (analyze_drs_in_stmts): Same.
8741         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8742         in which the scalar analysis of indices is performed.
8743         (create_data_ref): Same.  Update call to dr_analyze_indices.
8744         (find_data_references_in_stmt): Update call to create_data_ref.
8745         (graphite_find_data_references_in_stmt): Same.
8746         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8747         declaration.
8748         (create_data_ref): Same.
8749         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8750         call to create_data_ref.
8751
8752 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8753
8754         * graphite-sese-to-poly.c (build_poly_scop): Move
8755         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8756
8757 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8758
8759         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8760         VAR_DECL, PARM_DECL, and RESULT_DECL.
8761
8762 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8763
8764         * graphite-dependences.c (reduction_dr_1): Allow several reductions
8765         in a reduction PBB.
8766         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8767         that have already been marked as PBB_IS_REDUCTION.
8768
8769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8770
8771         * graphite-scop-detection.c (same_close_phi_node): New.
8772         (remove_duplicate_close_phi): New.
8773         (make_close_phi_nodes_unique): New.
8774         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8775
8776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8777
8778         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8779         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8780         of both data references to be the same.
8781
8782 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8783
8784         * graphite-dependences.c (build_lexicographical_constraint): Remove
8785         the gdim parameter.
8786         (build_lexicographical_constraint): Adjust call to
8787         ppl_powerset_is_empty.
8788         (dependence_polyhedron): Same.
8789         (graphite_legal_transform_dr): Same.
8790         (graphite_carried_dependence_level_k): Same.
8791         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8792         parameter.
8793         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8794
8795 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8796
8797         * graphite-sese-to-poly.c
8798         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8799         (close_phi_written_to_memory): New.
8800         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8801         and unshare_expr.
8802
8803 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8804
8805         * doc/install.texi: Update the expected version number of PPL to 0.11.
8806         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8807         #if PPL_VERSION_MINOR < 11.
8808
8809 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8810
8811         * graphite-dependences.c: Include graphite-cloog-util.h.
8812         (new_poly_ddr): Inlined into dependence_polyhedron.
8813         (free_poly_ddr): Moved close by new_poly_ddr.
8814         (dependence_polyhedron_1): Renamed dependence_polyhedron.
8815         Early return NULL when ppl_powerset_is_empty returns true.
8816         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
8817         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
8818         (graphite_legal_transform_dr): Call new_poly_ddr.
8819         (graphite_carried_dependence_level_k): Same.
8820         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
8821         (dot_transformed_deps_stmt_1): Removed.
8822         (dot_deps_stmt_1): Call dot_deps_stmt_2.
8823         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
8824         (dot_deps_1): Call dot_deps_2.
8825         * Makefile.in (graphite-dependences.o): Add missing dependence on
8826         graphite-cloog-util.h.
8827
8828 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8829
8830         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8831         (build_lexicographical_constraint): Same.
8832         (dependence_polyhedron_1): Same.
8833         (graphite_legal_transform_dr): Same.
8834         (graphite_carried_dependence_level_k): Same.
8835         * graphite-ppl.c (ppl_powerset_is_empty): New.
8836         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8837         * tree-data-ref.c (dump_data_reference): Print the basic block index.
8838
8839 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8840
8841         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8842         the "a followed by b" relation and document it.
8843
8844 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8845
8846         * graphite-dependences.c (build_lexicographical_constraint): Stop the
8847         iteration when the bag of constraints is empty.
8848
8849 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8850
8851         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8852
8853 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8854
8855         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8856         nest and two loop depths as parameters.
8857         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8858         lst_perfect_nestify.
8859
8860 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8861
8862         * graphite-dependences.c (print_pddr): Call
8863         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8864
8865 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8866
8867         * graphite-ppl.c (debug_gmp_value): New.
8868         * graphite-ppl.h (debug_gmp_value): Declared.
8869
8870 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
8871
8872         * doc/install.texi: Document availability of cloog-0.16.
8873
8874 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
8875
8876         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8877         invalid postdominance info.
8878
8879 2011-01-24  Jan Hubicka  <jh@suse.cz>
8880
8881         PR c/21659
8882         * doc/extend.texi (weak pragma): Drop claim that it must
8883         appear before definition.
8884         * varasm.c (merge_weak, declare_weak): Only sanity check
8885         that DECL is not output at a time it is declared weak.
8886
8887 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
8888
8889         * machmode.def: Fixed comments.
8890
8891 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
8892
8893         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8894
8895 2011-01-24  Paul Koning  <ni1d@arrl.net>
8896
8897         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8898         WORDS_BIG_ENDIAN.
8899
8900 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8901
8902         PR target/46519
8903         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8904         (block_info): Add scanned and prev.
8905         (move_or_delete_vzeroupper_2): Return if the basic block
8906         has been scanned and the upper 128bit state is unchanged
8907         from the last scan.
8908         (move_or_delete_vzeroupper_1): Return true if the exit
8909         state is changed.
8910         (move_or_delete_vzeroupper): Visit basic blocks using the
8911         work-list based algorithm based on vt_find_locations in
8912         var-tracking.c.
8913
8914         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8915
8916 2011-01-24  Nick Clifton  <nickc@redhat.com>
8917
8918         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8919         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8920         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
8921         then define __v850e1__.
8922         * doc/invoke.texi: Document -mv850es.
8923
8924 2011-01-24  Richard Henderson  <rth@redhat.com>
8925
8926         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8927         compound unordered comparisons.
8928         * config/rx/rx.c (rx_split_fp_compare): Remove.
8929         * config/rx/rx-protos.h: Update.
8930         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8931         (cbranchsf4): Don't call rx_split_fp_compare.
8932         (*cbranchsf4): Use rx_split_cbranch.
8933         (*cmpsf): Don't accept "i" constraint.
8934         (*conditional_branch): Only valid after reload.
8935         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
8936
8937 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8938
8939         PR target/47385
8940         * config/rs6000/altivec.md (vector constant splitters): Add
8941         support for creating vector single precision constants if -mvsx is
8942         used and we would create the constant using Altivec primitives.
8943
8944 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
8945             Richard Sandiford  <rdsandiford@googlemail.com>
8946
8947         PR rtl-optimization/47166
8948         * reload1.c (emit_reload_insns): Disable the spill_reg_store
8949         mechanism for PRE_MODIFY and POST_MODIFY.
8950         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8951         reloadreg.
8952
8953 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
8954
8955         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8956
8957 2011-01-22  Jan Hubicka  <jh@suse.cz>
8958
8959         PR lto/47333
8960         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8961
8962 2011-01-22  Jan Hubicka  <jh@suse.cz>
8963
8964         PR tree-optimization/43884
8965         PR lto/44334
8966         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8967         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8968
8969 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
8970
8971         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8972         * config/s390/s390.c (s390_register_move_cost,
8973         s390_memory_move_cost): New.
8974         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8975
8976 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8977
8978         PR middle-end/47401
8979         * except.c (sjlj_assign_call_site_values): Move setting the
8980         crtl->uses_eh_lsda flag to ...
8981         (sjlj_mark_call_sites): ... here.
8982         (sjlj_emit_function_enter): Support NULL dispatch label.
8983         (sjlj_build_landing_pads): In a function with no landing pads
8984         that still has must-not-throw regions, generate code to register
8985         a personality function with empty LSDA.
8986
8987 2011-01-21  Richard Henderson  <rth@redhat.com>
8988
8989         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8990
8991         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8992
8993         * compare-elim.c: New file.
8994         * Makefile.in (OBJS-common): Add it.
8995         (compare-elim.o): New.
8996         * common.opt (fcompare-elim): New.
8997         * opts.c (default_options_table): Add OPT_fcompare_elim.
8998         * tree-pass.h (pass_compare_elim_after_reload): New.
8999         * passes.c (init_optimization_passes): Add it.
9000         * recog.h: Protect against re-inclusion.
9001         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9002         * doc/invoke.texi (-fcompare-elim): Document it.
9003         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9004         * doc/tm.texi: Rebuild.
9005
9006 2011-01-22  Nick Clifton  <nickc@redhat.com>
9007
9008         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9009         rx_split_fp_compare.
9010
9011 2011-01-22  Nick Clifton  <nickc@redhat.com>
9012
9013         * config/rx/rx.md (UNSPEC_CONST): New.
9014         (deallocate_and_return): Wrap the amount popped off the stack in
9015         an UNSPEC_CONST in order to stop it being rejected by
9016         -mmax-constant-size.
9017         (pop_and_return): Add a "(return)" rtx.
9018         (call): Drop the immediate operand.
9019         (call_internal): Likewise.
9020         (call_value): Likewise.
9021         (call_value_internal): Likewise.
9022         (sibcall_internal): Likewise.
9023         (sibcall_value_internal): Likewise.
9024         (sibcall): Likewise.  Generate an explicit call using
9025         sibcall_internal.
9026         (sibcall_value): Likewise.
9027         (mov<>): FAIL if a constant operand is not legitimate.
9028         (addsi3_unpsec): New pattern.
9029
9030         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9031         (ok_for_max_constant): New function.
9032         (gen_safe_add): New function.
9033         (rx_expand_prologue): Use gen_safe_add.
9034         (rx_expand_epilogue): Likewise.
9035         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9036         UNSPEC CONSTs.
9037
9038 2011-01-21  Jeff Law  <law@redhat.com>
9039
9040         PR tree-optimization/47053
9041         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9042         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9043         statements are deleted.
9044         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9045         is nonempty, then purge dead edges and cleanup the CFG.
9046
9047 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9048
9049         PR debug/47402
9050         Temporarily revert:
9051         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9052         PR debug/47106
9053         * tree-dfa.c (create_var_ann): Mark variable as used.
9054
9055 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9056
9057         PR middle-end/45566
9058         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9059         notes from other section in hot/cold partitioning even if
9060         last_action is -3.  Increment call_site_base.
9061
9062         PR rtl-optimization/47366
9063         * fwprop.c (forward_propagate_into): Return bool.  If
9064         any changes are made, -fnon-call-exceptions is used and
9065         REG_EH_REGION note is present, call purge_dead_edges
9066         and return true if it purged anything.
9067         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9068         any EH edges were purged.
9069
9070 2011-01-21  Jeff Law  <law@redhat.com>
9071
9072         PR rtl-optimization/41619
9073         * caller-save.c (setup_save_areas): Break out code to determine
9074         which hard regs are live across calls by examining the reload chains
9075         so that it is always used.
9076         Eliminate code which checked REG_N_CALLS_CROSSED.
9077
9078 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9079
9080         PR tree-optimization/47355
9081         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9082         NOP has non-debug uses beyond PHIs in new_bb.
9083
9084 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9085
9086         PR debug/47106
9087         * cfgexpand.c (account_used_vars_for_block): Only account vars
9088         that are annotated as used.
9089         (estimated_stack_frame_size): Don't set TREE_USED.
9090         * tree-dfa.c (create_var_ann): Mark variable as used.
9091
9092 2011-01-21  Richard Guenther  <rguenther@suse.de>
9093
9094         PR middle-end/47395
9095         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9096
9097 2011-01-21  Richard Guenther  <rguenther@suse.de>
9098
9099         PR tree-optimization/47365
9100         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9101         (vn_reference_lookup_pieces): Adjust.
9102         (vn_reference_lookup): Likewise.
9103         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9104         (vn_reference_lookup_3): Only look through kills if in
9105         VN_WALKREWRITE mode.
9106         (vn_reference_lookup_pieces): Adjust.
9107         (vn_reference_lookup): Likewise.
9108         (visit_reference_op_load): Likewise.
9109         (visit_reference_op_store): Likewise.
9110         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9111         (compute_avail): Likewise.
9112         (eliminate): Likewise.
9113
9114 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9115
9116         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9117         DECL_IGNORED_P non-reg vars if they are used.
9118
9119         PR tree-optimization/47391
9120         * varpool.c (const_value_known_p): Return false if
9121         decl is volatile.
9122
9123 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9124
9125         PR bootstrap/47215
9126         * config/i386/i386.c (ix86_local_alignment): Handle
9127         case for va_list_type_node is nil.
9128         (ix86_canonical_va_list_type): Likewise.
9129
9130 2011-01-21  Alan Modra  <amodra@gmail.com>
9131
9132         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9133         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9134
9135 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9136
9137         * config/arm/arm.md (define_attr type): Rename f_load
9138         and f_store to f_fpa_load and f_fpa_store. Update.
9139         (write_conflict): Deal with rename fallout.
9140         (*push_fp_multi): Likewise.
9141         * config/arm/fpa.md (f_load): Use f_fpa_load.
9142         (f_store): Use f_fpa_store.
9143         (*movsf_fpa): Likewise.
9144         (*movdf_fpa): Likewise.
9145         (*movxf_fpa): Likewise.
9146         (*thumb2_movsf_fpa): Likewise.
9147         (*thumb2_movdf_fpa): Likewise.
9148         (*thumb2_movxf_fpa): Likewise.
9149         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9150         f_loadd and f_stored.
9151         (*thumb2_movdi_vfp): Likewise.
9152         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9153         (*thumb2_movsi_vfp): Likewise.
9154         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9155         Use f_loads instead of f_load.
9156         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9157
9158 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9159
9160         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9161         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9162         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9163         (xtensa_mode_dependent_address_p): New function.
9164         (constantpool_address_p): Make static. Change return type to bool.
9165         Change argument type to const_rtx. Use CONST_INT_P predicate.
9166
9167 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9168
9169         PR debug/46583
9170         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9171
9172 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9173
9174         PR debug/47283
9175         * cfgexpand.c (expand_debug_expr): Instead of generating
9176         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9177         etc. handling.
9178
9179 2011-01-20  Richard Guenther  <rguenther@suse.de>
9180
9181         PR middle-end/47370
9182         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9183         the pointer operand of MEM_REFs.
9184
9185 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9186
9187         PR tree-optimization/46130
9188         * ipa-split.c (consider_split): If return_bb contains non-virtual
9189         PHIs other than for retval or if split_function would not adjust it,
9190         refuse to split.
9191
9192 2011-01-20  Richard Guenther  <rguenther@suse.de>
9193
9194         PR tree-optimization/47167
9195         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9196         Revert previous change, only avoid enumeral type changes.
9197
9198 2011-01-19  Mike Stump  <mikestump@comcast.net>
9199
9200         * doc/tm.texi.in (BRANCH_COST): Englishify.
9201         * doc/tm.texi (BRANCH_COST): Likewise.
9202
9203 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9204
9205         PR c++/47291
9206         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9207         (gen_scheduled_generic_parms_dies): New functions.
9208         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9209         generation for the end of CU compilation.
9210         (dwarf2out_finish): Generate template parameters DIEs here.
9211
9212 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9213
9214         PR debug/46240
9215         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9216         debug bind stmt on merge edges.
9217
9218 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9219
9220         PR debug/47079
9221         PR debug/46724
9222         * function.c (instantiate_expr): Instantiate incoming rtl of
9223         implicit arguments, and recurse on VALUE_EXPRs.
9224         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9225         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9226
9227 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9228
9229         * c-parser.c (c_parser_for_statement): Initialize
9230         collection_expression.
9231
9232 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9233
9234         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9235
9236 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9237
9238         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9239         (LINK_SHLIB_SPEC): Don't use %(link_path).
9240         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9241
9242 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9243
9244         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9245         (NO_SHARED_LIB_SUPPORT): Remove.
9246         (LINK_SHLIB_SPEC): Remove one conditional definition.
9247
9248 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9249
9250         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9251         %{call_shared}.
9252         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9253         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9254         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9255         %{call_shared} and conditionals on these options not being passed.
9256         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9257         %{call_shared}.
9258
9259 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9260
9261         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9262         simplify.
9263
9264         * ipa-split.c: Spelling fixes.
9265
9266 2011-01-19  Richard Henderson  <rth@redhat.com>
9267
9268         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9269         (*mulsi3): Likewise.
9270
9271         * longlong.h [__mn10300__] (count_leading_zeros): New.
9272         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9273         [__mn10300__] (add_ssaaaa, subddmmss): New.
9274         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9275         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9276
9277 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9278
9279         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9280
9281 2011-01-19  Richard Henderson  <rth@redhat.com>
9282
9283         * config/mn10300/mn10300.md (addsi3_flags): New.
9284         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9285         (subsi3_flags, subc_internal, subdi3): New.
9286         (subdi3_internal, *subdi3_degenerate): New.
9287         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9288
9289         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9290         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9291         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9292         * config/mn10300/mn10300-protos.h: Update.
9293         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9294         (return_ret): Likewise.  Rename from return_internal_regs.
9295         (return_internal): Remove.
9296
9297         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9298         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9299         (mn10300_legitimate_constant_p): Likewise.
9300         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9301         (mn10300_frame_size): New.
9302         (mn10300_expand_prologue): Use it.
9303         (mn10300_expand_epilogue): Likewise.
9304         (mn10300_initial_offset): Likewise.
9305         * config/mn10300/mn10300-protos.h: Update.
9306         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9307         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9308         (prologue, epilogue, return_internal): Tidy output code.
9309         (mn10300_store_multiple_operation, return): Likewise.
9310         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9311         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9312         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9313         (load_pic, am33_load_pic): New.
9314         (mn10300_load_pic0, mn10300_load_pic1): New.
9315
9316         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9317         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9318         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9319         (cc_flags_for_mode, cc_flags_for_code): New.
9320         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9321         overflow flag is not valid.  Validate that the flags we need
9322         for the comparison are valid.
9323         (mn10300_output_cmp): Remove.
9324         (mn10300_output_add): New.
9325         (mn10300_select_cc_mode): Use cc_flags_for_code.
9326         (mn10300_split_cbranch): New.
9327         (mn10300_match_ccmode): New.
9328         (mn10300_split_and_operand_count): New.
9329         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9330         to the function.
9331         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9332         (addsi3): ... here.  Use mn10300_output_add.
9333         (*addsi3_flags): New.
9334         (*am33_subsi3, *mn10300_subsi3): Merge...
9335         (subsi3): ... here.  Use attribute isa.
9336         (*subsi3_flags): New.
9337         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9338         when possible.
9339         (*am33_andsi3, *mn10300_andsi3): Merge...
9340         (andsi3): ... here.
9341         (*andsi3_flags): New.
9342         (andsi3 splitters): New.
9343         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9344         (iorsi3): ... here.
9345         (*iorsi3_flags): New.
9346         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9347         (xorsi3): ... here.
9348         (*xorsi3_flags): New.
9349         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9350         (one_cmplsi2): ... here.
9351         (*one_cmplsi2_flags): New.
9352         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9353         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9354         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9355         use matching constraints to eliminate a self-comparison.
9356         (*integer_conditional_branch): Rename from integer_conditional_branch.
9357         Use int_mode_flags to match CC_REG.
9358         (*cbranchsi4_btst, *btstsi): New.
9359         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9360         mn10300_split_cbranch.
9361         (*am33_cmpsf): Rename from am33_cmpsf.
9362         (*float_conditional_branch): Rename from float_conditional_branch.
9363         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9364         (zero_extendqisi2): ... here.
9365         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9366         (zero_extendhisi2): ... here.
9367         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9368         (extendqisi2): ... here.
9369         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9370         (extendhisi2): ... here.
9371         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9372         (ashlsi3): ... here.
9373         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9374         (lshrsi3): ... here.
9375         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9376         (ashrsi3): ... here.
9377         (consecutive add peephole): Remove.
9378         * config/mn10300/predicates.md (label_ref_operand): New.
9379         (int_mode_flags): New.
9380         (CCZN_comparison_operator): New.
9381
9382         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9383         (throughput_42_latency_43): New reservation.
9384         (mulsidi3, umulsidi3): New expanders.
9385         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9386         the MDR register to allocation; separately allocate the low and
9387         high parts of the DImode result.
9388         (umulsidi3_internal): Similarly.
9389         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9390         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9391         (udivsi3, umodsi3): Remove.
9392         (udivmodsi4, divmodsi4): New expanders.
9393         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9394         (*divmodsi4): Simiarly.
9395         (ext_internal): New.
9396
9397         * config/mn10300/constraints.md ("z"): New constraint.
9398         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9399         (FIXED_REGISTERS): Don't fix MDR.
9400         (CALL_USED_REGSITERS): Reformat nicely.
9401         (REG_ALLOC_ORDER): Add MDR.
9402         (enum regclass): Add MDR_REGS.
9403         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9404         (IRA_COVER_CLASSES): Add MDR_REGS.
9405         (REGNO_REG_CLASS): Handle MDR_REG.
9406         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9407         (mn10300_register_move_cost): Likewise.
9408         * config/mn10300/mn10300.md (MDR_REG): New.
9409         (*movsi_internal): Handle moves to/from MDR_REGS.
9410
9411         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9412         POST_MODIFY.
9413         (mn10300_secondary_reload): Tidy combination reload classes.
9414         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9415         addresses for AM33.  Allow symbolic offsets for reg+imm.
9416         (mn10300_regno_in_class_p): New.
9417         (mn10300_legitimize_reload_address): New.
9418         * config/mn10300/mn10300.h (enum reg_class): Remove
9419         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9420         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9421         SP_OR_GENERAL_REGS.
9422         (REG_CLASS_NAMES): Update to match.
9423         (REG_CLASS_CONTENTS): Likewise.
9424         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9425         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9426         (REGNO_IN_RANGE_P): Remove.
9427         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9428         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9429         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9430         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9431         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9432         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9433         (REGNO_GENERAL_P): New.
9434         (HAVE_POST_MODIFY_DISP): New.
9435         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9436         (LEGITIMIZE_RELOAD_ADDRESS): New.
9437         * config/mn10300/mn10300-protos.h: Update.
9438
9439         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9440         DATA_REGS for AM33 stack-pointer destination.
9441         (mn10300_preferred_output_reload_class): Likewise.
9442         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9443         into a form appropriate for ...
9444         (TARGET_SECONDARY_RELOAD): New.
9445         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9446         * config/mn10300/mn10300-protos.h: Update.
9447         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9448         reload_insi; use the "A" constraint for the scratch; handle AM33
9449         moves of sp to non-address registers.
9450
9451         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9452         (*movqi_internal): ... here.
9453         (*am33_movhi, *mn10300_movhi): Merge into...
9454         (*movhi_internal): ... here.
9455         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9456         as the source/destination of moves from/to SP.
9457         (movsf): Only allow for AM33-2.
9458         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9459         any integer constant constraint.  Only allow for AM33-2.  Tidy
9460         all of the alternative outputs.
9461         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9462         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9463         for MN103.
9464         (udivsi3, umodsi3): New patterns for MN103 only.
9465
9466 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9467
9468         * doc/tm.texi.in: Spell out that a lack of register class unions
9469         can lead to ICEs.
9470         * doc/tm.texi: Regenerate.
9471
9472 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9473
9474         PR rtl-optimization/47337
9475         * dce.c (check_argument_store): New function.
9476         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9477
9478         PR tree-optimization/47290
9479         * tree-eh.c (infinite_empty_loop_p): New function.
9480         (cleanup_empty_eh): Use it.
9481
9482 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9483
9484         PR target/46997
9485         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9486         (a64_expand_widen_sum): Ditto.
9487         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9488         (vec_extract_evenodd_help): Ditto.
9489         (vec_extract_evenv4hi): Ditto.
9490         (vec_extract_oddv4hi): Ditto.
9491         (vec_extract_evenv2si): Ditto.
9492         (vec_extract_oddv2si): Ditto.
9493         (vec_extract_evenv2sf): Ditto.
9494         (vec_extract_oddv2sf): Ditto.
9495         (vec_pack_trunc_v4hi: Ditto.
9496         (vec_pack_trunc_v2si): Ditto.
9497         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9498         (vec_interleave_highv8qi): Ditto.
9499         (mix1_r): Ditto.
9500         (vec_extract_oddv8qi): Ditto.
9501         (vec_interleave_lowv4hi): Ditto.
9502         (vec_interleave_highv4hi): Ditto.
9503         (vec_interleave_lowv2si): Ditto.
9504         (vec_interleave_highv2si): Ditto.
9505
9506 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9507
9508         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9509         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9510         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9511         (pa_c_mode_for_suffix): New.
9512         (TARGET_EXPAND_BUILTIN): Define.
9513         (TARGET_C_MODE_FOR_SUFFIX): Define.
9514         (pa_builtins): Define.
9515         (pa_init_builtins): Register __float128 type and init new support
9516         builtins.
9517         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9518         * config/pa/quadlib.c (_U_Qfcopysign): New.
9519
9520 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9521
9522         PR middle-end/46894
9523         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9524         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9525         are defined.
9526
9527 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9528
9529         PR tree-optimization/47179
9530         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9531         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9532
9533 2011-01-18  Richard Guenther  <rguenther@suse.de>
9534
9535         PR rtl-optimization/47216
9536         * emit-rtl.c: Include tree-flow.h.
9537         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9538         of replicating it with different semantics.
9539         * Makefile.in (emit-rtl.o): Adjust.
9540
9541 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9542
9543         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9544         (cortex_a9_dp): Handle neon types correctly.
9545
9546 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9547
9548         PR rtl-optimization/47299
9549         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9550         subtarget.  Use normal multiplication if both operands are constants.
9551         * expmed.c (expand_widening_mult): Don't try to optimize constant
9552         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9553         before using it.
9554
9555 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9556
9557         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9558         spacing after 'e.g.', typos, comma, hyphenation.
9559
9560 2011-01-17  Richard Henderson  <rth@redhat.com>
9561
9562         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9563         (rx_restricted_mem_operand): New.
9564         (rx_shift_operand): Use register_operand.
9565         (rx_source_operand, rx_compare_operand): Likewise.
9566         * config/rx/rx.md (addsi3_flags): New expander.
9567         (adddi3): Rewrite as expander.
9568         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9569         (subsi3_flags): New expander.
9570         (subdi3): Rewrite as expander.
9571         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9572
9573         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9574         (rx_init_builtins): Remove sat builtin.
9575         (rx_expand_builtin): Likewise.
9576         * config/rx/rx.md (ssaddsi3): New.
9577         (*sat): Rename from sat.  Represent the CC_REG input.
9578
9579         * config/rx/predicates.md (rshift_operator): New.
9580         * config/rx/rx.c (rx_expand_insv): Remove.
9581         * config/rx/rx-protos.h: Update.
9582         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
9583         operand to the canonical position.
9584         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9585         (*bitclr, *bitclr_in_memory): Similarly.
9586         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9587         (insv): Retain the zero_extract in the expansion.
9588
9589         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9590         (bswaphi2, bitinvert, revw): Likewise.
9591
9592         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9593         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9594         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9595         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9596         (bitset, bitset_in_memory): Likewise.
9597         (bitinvert, bitinvert_in_memory): Likewise.
9598         (bitclr, bitclr_in_memory): Likewise.
9599         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9600         (rx_strend, rx_cmpstrn): Likewise.
9601         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
9602         (bitop peep2 patterns): Remove.
9603
9604         * config/rx/rx.c (rx_match_ccmode): New.
9605         * config/rx/rx-protos.h: Update.
9606         * config/rx/rx.md (abssi2): Clobber, don't set flags.
9607         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9608         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9609         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9610         (fix_truncsfsi2, floatsisf2): Likewise.
9611         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9612         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9613         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9614         (*subsi3_flags, *xorsi3_flags): New.
9615
9616         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9617
9618         * config/rx/rx.c (rx_print_operand): Remove workaround for
9619         unsplit comparison operations.
9620
9621         * config/rx/rx.md (movsicc): Split after reload.
9622         (*movsicc): Merge *movsieq and *movsine via match_operator.
9623         (*stcc): New pattern.
9624
9625         * config/rx/rx.c (rx_float_compare_mode): Remove.
9626         * config/rx/rx.h (rx_float_compare_mode): Remove.
9627         * config/rx/rx.md (cstoresi4): Split after reload.
9628         (*sccc): New pattern.
9629
9630         * config/rx/predicates.md (label_ref_operand): New.
9631         (rx_z_comparison_operator): New.
9632         (rx_zs_comparison_operator): New.
9633         (rx_fp_comparison_operator): New.
9634         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9635         Validate that the flags are set properly for the comparison.
9636         (rx_gen_cond_branch_template): Remove.
9637         (rx_cc_modes_compatible): Remove.
9638         (mode_from_flags): New.
9639         (flags_from_code): Rename from flags_needed_for_conditional.
9640         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9641         (rx_select_cc_mode): Likewise.
9642         (rx_split_fp_compare): New.
9643         (rx_split_cbranch): New.
9644         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9645         (*cbranchsi4): Use match_operator and rx_split_cbranch.
9646         (*cbranchsf4): Similarly.
9647         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9648         match_operator and rx_split_cbranch.
9649         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9650         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9651         (*cmpsi): Rename from cmpsi.
9652         (*tstsi): Rename from tstsi.
9653         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9654         (*conditional_branch): Rename from conditional_branch.
9655         (*reveresed_conditional_branch): Remove.
9656         (b<code>): Remove expander.
9657         * config/rx/rx-protos.h: Update.
9658
9659         * config/rx/rx.c (rx_compare_redundant): Remove.
9660         * config/rx/rx.md (cmpsi): Don't use it.
9661         * config/rx/rx-protos.h: Update.
9662
9663         * config/rx/rx-modes.def (CC_F): New mode.
9664         * config/rx/rx.c (rx_select_cc_mode): New.
9665         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9666         * config/rx/rx-protos.h: Update.
9667
9668 2011-01-17  Richard Henderson  <rth@redhat.com>
9669
9670         * except.c (dump_eh_tree): Fix stray ; after for statement.
9671
9672 2011-01-17  Richard Guenther  <rguenther@suse.de>
9673
9674         PR tree-optimization/47313
9675         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9676         handling before copying the body.  Properly deal with
9677         by-reference result in SSA form.
9678
9679 2011-01-17  Ian Lance Taylor  <iant@google.com>
9680
9681         PR target/47219
9682         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9683         (struct_value_alias_set): Don't define.
9684         (sparc_option_override): Don't set sparc_sr_alias_set and
9685         struct_value_alias_set.
9686         (save_or_restore_regs): Use gen_frame_mem rather than calling
9687         set_mem_alias_set.
9688         (sparc_struct_value_rtx): Likewise.
9689
9690 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9691
9692         PR target/47318
9693         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9694         (_mm_maskstore_pd): Likewise.
9695         (_mm_maskload_ps): Likewise.
9696         (_mm_maskstore_ps): Likewise.
9697         (_mm256_maskload_pd): Change mask to __m256i.
9698         (_mm256_maskstore_pd): Likewise.
9699         (_mm256_maskload_ps): Likewise.
9700         (_mm256_maskstore_ps): Likewise.
9701
9702         * config/i386/i386-builtin-types.def: Updated.
9703         (ix86_expand_special_args_builtin): Likewise.
9704
9705         * config/i386/i386.c (bdesc_special_args): Update
9706         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9707         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9708         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9709         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9710
9711         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9712         Use <avxpermvecmode> on mask register.
9713         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9714
9715 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9716             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9717             Eric Botcazou  <ebotcazou@adacore.com>
9718
9719         PR target/46655
9720         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9721         if <= USHRT_MAX in 32-bit mode.
9722
9723 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9724
9725         * doc/install.texi (Configuration, Specific): Wrap long
9726         lines in examples.  Allow line wrapping in long options
9727         and URLs where beneficial for PDF output.
9728
9729 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9730
9731         * config/mips/mips.c (mips_classify_symbol): Don't return
9732         SYMBOL_PC_RELATIVE for nonlocal labels.
9733
9734 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9735
9736         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9737
9738 2011-01-15  Jan Hubicka  <jh@suse.cz>
9739
9740         PR tree-optimization/47276
9741         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9742         declarations as needed.
9743
9744 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9745
9746         * common.opt (fdevirtualize): New flag.
9747         * doc/invoke.texi (Option Summary): Document it.
9748         * opts.c (default_options_table): Add devirtualize flag.
9749         * ipa-prop.c (detect_type_change): Return immediately if
9750         devirtualize flag is not set.
9751         (detect_type_change_ssa): Likewise.
9752         (compute_known_type_jump_func): Likewise.
9753         (ipa_analyze_virtual_call_uses): Likewise.
9754
9755 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9756
9757         PR tree-optimization/45934
9758         PR tree-optimization/46302
9759         * ipa-prop.c (type_change_info): New type.
9760         (stmt_may_be_vtbl_ptr_store): New function.
9761         (check_stmt_for_type_change): Likewise.
9762         (detect_type_change): Likewise.
9763         (detect_type_change_ssa): Likewise.
9764         (compute_complex_assign_jump_func): Check for dynamic type change.
9765         (compute_complex_ancestor_jump_func): Likewise.
9766         (compute_known_type_jump_func): Likewise.
9767         (compute_scalar_jump_functions): Likewise.
9768         (ipa_analyze_virtual_call_uses): Likewise.
9769         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9770
9771 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9772
9773         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9774         * config/i386/i386.opt (msse5): New Alias.
9775
9776 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9777
9778         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9779         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9780         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9781         * config/sparc/sparc.h (CC1_SPEC): Likewise.
9782
9783 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9784
9785         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9786         -mcpu options.
9787         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9788         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9789         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9790         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9791         Likewise.
9792         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9793
9794 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9797
9798 2011-01-14  Mike Stump  <mikestump@comcast.net>
9799
9800         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9801         * config/fr30/fr30.md: Likweise
9802         (movsi_push): Likewise.
9803         (movsi_pop): Likewise.
9804         (enter_func): Likewise.
9805         * config/moxie/moxie.md (movsi_push): Likewise.
9806         (movsi_pop): Likewise.
9807
9808 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9811         %{no_archive} %{exact_version}.
9812         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9813         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9814         %{no_archive} %{exact_version}.
9815         * config/mips/openbsd.h (LINK_SPEC): Likewise.
9816         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9817         * config/mips/vxworks.h: Likewise.
9818
9819 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9820
9821         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9822
9823 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9824
9825         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9826         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9827
9828 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9829
9830         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9831         -nodefaultlib.
9832
9833 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9834
9835         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9836         for mcpu not cpu.
9837         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9838         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9839         not cpu.
9840         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9841         Don't handle -shlib.
9842
9843 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9844
9845         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9846         (CC1_SPEC): Don't handle -profile.
9847
9848 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9851         * config/mips/mips.h (CC1_SPEC): Likewise.
9852
9853 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9854
9855         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9856         * config/mips/mips.h (CC1_SPEC): Likewise.
9857
9858 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9859
9860         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9861         * config/m32r/linux.h (LINK_SPEC): Likewise.
9862         * config/mips/linux.h (LINK_SPEC): Likewise.
9863         * config/mips/linux64.h (LINK_SPEC): Likewise.
9864         * config/sparc/linux.h (LINK_SPEC): Likewise.
9865         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9866         LINK_SPEC): Likewise.
9867         * config/xtensa/linux.h (LINK_SPEC): Likewise.
9868
9869 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9870
9871         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9872         %{version:-v}.
9873         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9874
9875 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9876
9877         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9878         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9879
9880 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9881
9882         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9883
9884 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9885
9886         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9887         supports -Bstatic/-Bdynamic.
9888         * configure: Regenerate.
9889
9890 2011-01-14  Jan Hubicka  <jh@suse.cz>
9891             Jack Howarth  <howarth@bromo.med.uc.edu>
9892
9893         PR target/46037
9894         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9895         when checking debug_info_level. Test write_symbols instead of
9896         debug_hooks->var_location when setting flag_var_tracking_uninit.
9897
9898 2011-01-14  Richard Guenther  <rguenther@suse.de>
9899
9900         PR tree-optimization/47179
9901         * target.def (ref_may_alias_errno): New target hook.
9902         * targhooks.h (default_ref_may_alias_errno): Declare.
9903         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9904         (default_ref_may_alias_errno): New function.
9905         * target.h (struct ao_ref_s): Declare.
9906         * tree-ssa-alias.c: Include target.h.
9907         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9908         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9909         (targhooks.o): Likewise.
9910         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9911         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9912
9913 2011-01-14  Richard Guenther  <rguenther@suse.de>
9914
9915         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
9916
9917 2011-01-14  Richard Guenther  <rguenther@suse.de>
9918
9919         PR tree-optimization/47280
9920         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9921         return CFG changes.
9922         (tree_ssa_forward_propagate_single_use_vars): Deal with
9923         CFG changes from associate_plusminus.
9924
9925 2011-01-14  Richard Guenther  <rguenther@suse.de>
9926
9927         PR middle-end/47281
9928         Revert
9929         2011-01-11  Richard Guenther  <rguenther@suse.de>
9930
9931         PR tree-optimization/46076
9932         * tree-ssa.c (useless_type_conversion_p): Conversions from
9933         unprototyped to empty argument list function types are useless.
9934
9935 2011-01-14  Richard Guenther  <rguenther@suse.de>
9936
9937         PR tree-optimization/47286
9938         * tree-ssa-structalias.c (new_var_info): Register variables are global.
9939
9940 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9941
9942         PR middle-end/46823
9943         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9944
9945 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
9946
9947         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9948         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9949         * config/xtensa/xtensa.c (xtensa_libcall_value,
9950         xtensa_function_value_regno_p): New functions.
9951         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9952
9953 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
9954
9955         PR c++/47213
9956         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9957         PE specific hook.
9958         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9959         New function prototype.
9960         * config/i386/winnt.c (i386_pe_assemble_visibility):
9961         Warn only if attribute was specified by user.
9962
9963 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9964
9965         PR target/47251
9966         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9967         floating point.
9968         (floatunsdidf2_fcfidu): Ditto.
9969
9970 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9971
9972         * config/s390/s390.c (print_operand_address): Replace 'error' with
9973         'output_operand_lossage'.
9974         (print_operand): Likewise.
9975
9976 2011-01-13  Jeff Law  <law@redhat.com>
9977
9978         PR rtl-optimization/39077
9979         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9980         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9981         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9982         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9983         * gcse.c (prune_insertions_deletions): New function.
9984         (compute_pre_data): Use it.
9985
9986 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
9987
9988         PR debug/PR46973
9989         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9990         static function.
9991         (prune_unused_types_mark): Use it.
9992
9993 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
9994
9995         PR rtl-optimization/45352
9996         * sel-sched.c: Update copyright years.
9997         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9998         in the advancing loop when we have issued issue_rate insns.
9999
10000 2011-01-12  Richard Henderson  <rth@redhat.com>
10001
10002         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10003         (TARGET_MD_ASM_CLOBBERS): New.
10004
10005         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10006         (TARGET_DELEGITIMIZE_ADDRESS): New.
10007
10008         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10009         (clzsi2, *bsch): New patterns.
10010
10011         * config/mn10300/mn10300.md (INT): New mode iterator.
10012         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10013
10014         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10015         flag_split_wide_types.
10016
10017         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10018         (mn10300_trampoline_init): Rewrite without a template, an immediate
10019         load and a direct branch.
10020         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10021
10022 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10023
10024         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10025         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10026         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10027         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10028
10029 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10030
10031         PR debug/47209
10032         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10033         of type.
10034
10035 2011-01-12  Jan Hubicka  <jh@suse.cz>
10036
10037         PR driver/47244
10038         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10039         (PLUGIN_COND_CLOSE): New macro.
10040         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10041
10042 2011-01-12  Richard Guenther  <rguenther@suse.de>
10043
10044         PR lto/47259
10045         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10046         register variables in a MEM_REF.
10047
10048 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10049
10050         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10051         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10052         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10053         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10054         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10055         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10056         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10057         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10058         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10059         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10060         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10061         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10062         * config/gnu-user.h: New.  Copied from linux.h.
10063         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10064         GNU_USER_TARGET_STARTFILE_SPEC.
10065         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10066         GNU_USER_TARGET_ENDFILE_SPEC.
10067         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10068         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10069         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10070         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10071         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10072         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10073         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10074         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10075         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10076         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10077         * config/arm/linux-eabi.h (CC1_SPEC): Use
10078         GNU_USER_TARGET_CC1_SPEC.
10079         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10080         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10081         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10082         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10083         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10084         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10085         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10086         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10087
10088 2011-01-12  Richard Guenther  <rguenther@suse.de>
10089
10090         PR other/46946
10091         * doc/invoke.texi (ffast-math): Document it is turned on
10092         with -Ofast.
10093
10094 2011-01-12  Jan Hubicka  <jh@suse.cz>
10095
10096         PR tree-optimization/47233
10097         * opts.c (common_handle_option): Disable ipa-reference with profile
10098         feedback.
10099
10100 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10101
10102         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10103         error message.
10104
10105 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10106
10107         * c-parser.c (c_lex_one_token): Updated and reindented some
10108         comments.  No changes in code.
10109
10110 2011-01-11  Ian Lance Taylor  <iant@google.com>
10111
10112         * godump.c (go_output_var): Don't output the variable if there is
10113         already a type with the same name.
10114
10115 2011-01-11  Ian Lance Taylor  <iant@google.com>
10116
10117         * godump.c (go_format_type): Don't generate float80.
10118
10119 2011-01-11  Richard Henderson  <rth@redhat.com>
10120
10121         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10122         declaration.  Rewrite for both speed and size.
10123         (mn10300_address_cost_1): Remove.
10124         (mn10300_register_move_cost): New.
10125         (mn10300_memory_move_cost): New.
10126         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10127         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10128         extensions, shifts, BSWAP, CLZ.
10129         (mn10300_wide_const_load_uses_clr): Remove.
10130         (TARGET_REGISTER_MOVE_COST): New.
10131         (TARGET_MEMORY_MOVE_COST): New.
10132         * config/mn10300/mn10300-protos.h: Update.
10133         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10134
10135         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10136         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10137         * config/mn10300/mn10300-protos.h: Update.
10138         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10139         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10140         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10141         (*test_int_bitfield, *test_byte_bitfield): Remove.
10142         (*bit_test, *subreg_bit_test): Remove.
10143         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10144
10145         * config/mn10300/constraints.md ("c"): Rename from "A".
10146         ("A", "D"): New constraint letters.
10147         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10148         (fmssf4, fnmasf4, fnmssf4): Likewise.
10149
10150         * config/mn10300/mn10300.md (isa): New attribute.
10151         (enabled): New attribute.
10152
10153         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10154         (abssf2, negsf2): Define only for hardware fp.
10155         (sqrtsf2): Reformat.
10156         (addsf3, subsf3, mulsf3): Merge expander and insn.
10157
10158         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10159         (DEBUGGER_AUTO_OFFSET): Remove.
10160         (DEBUGGER_ARG_OFFSET): Remove.
10161
10162         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10163         Emit register stores with the same offsets as the hardware.
10164         (mn10300_store_multiple_operation): Don't check that the register
10165         save offsets are monotonic.
10166         * config/mn10300/mn10300-protos.h: Update.
10167
10168         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10169
10170         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10171         in terms of the value on the stack, not the MDR register.
10172
10173 2011-01-11  Jan Hubicka  <jh@suse.cz>
10174
10175         PR lto/45721
10176         PR lto/45375
10177         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10178         (symbol_alias_set_destroy, symbol_alias_set_contains,
10179         propagate_aliases_backward): Declare.
10180         * lto-streamer-out.c (struct sets): New sturcture.
10181         (trivally_defined_alias): New function.
10182         (output_alias_pair_p): Rewrite.
10183         (output_unreferenced_globals): Fix output of alias pairs.
10184         (produce_symtab): Likewise.
10185         * ipa.c (function_and_variable_visibility): Set weak alias destination
10186         as needed in lto.
10187         * varasm.c (symbol_alias_set_t): Remove.
10188         (symbol_alias_set_destroy): Export.
10189         (propagate_aliases_forward, propagate_aliases_backward): New functions
10190         based on ...
10191         (compute_visible_aliases): ... this one; remove.
10192         (trivially_visible_alias): New
10193         (trivially_defined_alias): New.
10194         (remove_unreachable_alias_pairs): Rewrite.
10195         (finish_aliases_1): Reorganize code checking if alias is defined.
10196         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10197         in LTO mode.
10198
10199 2011-01-11  Richard Guenther  <rguenther@suse.de>
10200
10201         PR tree-optimization/46076
10202         * tree-ssa.c (useless_type_conversion_p): Conversions from
10203         unprototyped to empty argument list function types are useless.
10204
10205 2011-01-11  Richard Guenther  <rguenther@suse.de>
10206
10207         PR middle-end/45235
10208         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10209         volatile MEMs as MEM_READONLY_P.
10210
10211 2011-01-11  Richard Guenther  <rguenther@suse.de>
10212
10213         PR tree-optimization/47239
10214         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10215
10216 2011-01-11  Jeff Law  <law@redhat.com>
10217
10218         PR tree-optimization/47086
10219         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10220         IVs from statements that might throw.
10221
10222 2011-01-10  Jan Hubicka  <jh@suse.cz>
10223
10224         PR lto/45375
10225         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10226
10227 2011-01-10  Jan Hubicka  <jh@suse.cz>
10228
10229         PR lto/45375
10230         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10231         when correcting profile.
10232
10233 2011-01-10  Jan Hubicka  <jh@suse.cz>
10234
10235         PR lto/46083
10236         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10237         DECL_FINI_PRIORITY.
10238         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10239         Restore DECL_FINI_PRIORITY.
10240
10241 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10242
10243         * doc/gimple.texi: Fix quoting of multi-word return values in
10244         @deftypefn statements.  Ensure presence of return value.  Wrap
10245         overlong @deftypefn lines.
10246         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10247         descriptions of removed functions.
10248         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10249         of multi-word return value in @deftypefn statement.
10250
10251 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10252
10253         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10254         (Conditional Expressions, Logical Operators)
10255         (Statement and operand traversals): Do not indent smallexample
10256         code.  Fix duplicate function argument in example.
10257
10258 2011-01-10  Jeff Law  <law@redhat.com>
10259
10260         PR tree-optimization/47141
10261         * ipa-split.c (split_function): Handle case where we are
10262         returning a value and the return block has a virtual operand phi.
10263
10264 2011-01-10  Jan Hubicka  <jh@suse.cz>
10265
10266         PR tree-optimization/47234
10267         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10268         (pass_feedback_split_functions): Declare.
10269         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10270         tree-profile.
10271         * ipa-split.c (gate_split_functions): Update comments; disable
10272         split-functions for profile_arc_flag and branch_probabilities.
10273         (gate_feedback_split_functions): New function.
10274         (execute_feedback_split_functions): New function.
10275         (pass_feedback_split_functions): New global var.
10276
10277 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10278
10279         PR lto/46760
10280         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10281         calling gimple_call_set_cannot_inline.
10282
10283 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10284
10285         * config/darwin-sections.def: Remove unused section.
10286
10287 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10288
10289         PR c++/47218
10290         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10291
10292 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10293
10294         PR objc/47232
10295         * c-parser.c (c_parser_declaration_or_fndef): Improved
10296         error message.
10297
10298 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10299
10300         * config/i386/winnt.c (i386_pe_start_function): Make sure
10301         to switch back to function's section.
10302
10303 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10304
10305         PR gcc/46902
10306         PR testsuite/46912
10307         * plugin.c: Move include of dlfcn.h from here...
10308         * system.h: ... to here.
10309
10310 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10311
10312         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10313         file name.
10314         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10315         two extra empty pages in PDF output.
10316
10317 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10318
10319         PR objc/47078
10320         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10321         for error recovery purposes behave as if it was not specified so
10322         that the default type is usd.
10323
10324 2011-01-07  Jan Hubicka  <jh@suse.cz>
10325
10326         PR tree-optmization/46469
10327         * ipa.c (function_and_variable_visibility): Clear needed flags on
10328         nodes with external decls; handle weakrefs merging correctly.
10329
10330 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10331
10332         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10333         not false.
10334
10335 2011-01-07  Jan Hubicka  <jh@suse.cz>
10336
10337         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
10338         and no longer claim that gold is required for linker plugin.
10339         * configure: Regenerate.
10340         * gcc.c (PLUGIN_COND): New macro.
10341         (LINK_COMMAND_SPEC): Use it.
10342         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10343         * config.in (HAVE_LTO_PLUGIN): New.
10344         * configure.ac (--with-lto-plugin): New parameter; autodetect
10345         HAVE_LTO_PLUGIN.
10346
10347 2011-01-07  Jan Hubicka  <jh@suse.cz>
10348
10349         PR tree-optimization/46367
10350         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10351         when we can update original.
10352         (cgraph_mark_inline_edge): Sanity check.
10353         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10354
10355 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10356
10357         * config/spu/spu.h (ASM_COMMENT_START): Define.
10358
10359 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10360
10361         PR driver/42445
10362         * gcc.c (%>S): New.
10363         (SWITCH_KEEP_FOR_GCC): Likewise.
10364         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10365         (do_spec_1): Handle "%>".
10366
10367         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10368
10369 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10370
10371         PR target/47201
10372         * config/i386/i386.c (ix86_delegitimize_address): If
10373         simplify_gen_subreg fails, return orig_x.
10374
10375         PR bootstrap/47187
10376         * value-prof.c (gimple_stringop_fixed_value): Handle
10377         lhs of the call properly.
10378
10379 2011-01-07  Jan Hubicka  <jh@suse.cz>
10380
10381         PR lto/45375
10382         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10383
10384 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10385
10386         * target.def (function_switched_text_sections): New hook.
10387         * doc/tm.texi: Regenerated.
10388         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10389         * final.c (default_function_switched_text_sections): New.
10390         (final_scan_insn): Call function_switched_text_sections when a
10391         mid-function section change occurs.
10392         * output.h (default_function_switched_text_sections): Declare.
10393         * config/darwin-protos.h (darwin_function_switched_text_sections):
10394         Likewise.
10395         * config/darwin.c (darwin_function_switched_text_sections): New.
10396         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10397
10398 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10399
10400         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10401         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10402         the secondary code fragment when outputting for DWARF == 2.
10403
10404 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10405
10406         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10407         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10408         Remove.
10409         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10410         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10411
10412 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10413
10414         PR debug/46704
10415         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10416         when it is not empty.
10417
10418 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10419
10420         Bobcat Enablement
10421         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10422         (case ${target}): Add btver1.
10423         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10424         -march=native recognize btver1 processors.
10425         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10426         btver1 def_and_undef
10427         * config/i386/i386.c (struct processor_costs btver1_cost): New
10428         btver1 cost table.
10429         (m_BTVER1): New definition.
10430         (m_AMD_MULTIPLE): Includes m_BTVER1.
10431         (initial_ix86_tune_features): Add btver1 tune.
10432         (processor_target_table): Add btver1 entry.
10433         (static const char *const cpu_names): Add btver1 entry.
10434         (software_prefetching_beneficial_p): Add btver1.
10435         (ix86_option_override_internal): Add btver1 instruction sets.
10436         (ix86_issue_rate): Add btver1.
10437         (ix86_adjust_cost): Add btver1.
10438         * config/i386/i386.h (TARGET_BTVER1): New definition.
10439         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10440         (enum processor_type): Add PROCESSOR_BTVER1.
10441         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10442
10443 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10444
10445         PR target/43309
10446         * config/i386/i386.c (legitimize_tls_address)
10447         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10448         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10449         (tls_initial_exec_64_sun): New pattern.
10450
10451 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10452
10453         * doc/invoke.texi (Overall Options): Improve wording and markup
10454         of the description of -wrapper.
10455
10456 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10457
10458         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10459         rdynamic, threads): New Driver options.
10460
10461 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10462
10463         PR target/38118
10464         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10465         if coming from .tdata.
10466         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10467
10468 2011-01-06  Jan Hubicka  <jh@suse.cz>
10469
10470         PR lto/47188
10471         * collect2.c (main): Do not enable LTOmode when plugin is active.
10472
10473 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10474
10475         PR other/45915
10476         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10477         --version output if supported.
10478         * configure: Regenerate.
10479
10480 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10481
10482         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10483         Driver options.
10484
10485 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10486
10487         PR c/47150
10488         * c-convert.c (convert): When converting a complex expression
10489         other than COMPLEX_EXPR to a different complex type, ensure
10490         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10491         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10492         when converting COMPLEX_TYPE.
10493
10494 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10495
10496         PR tree-optimization/47139
10497         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10498         only the last reduction value is used outside the loop.  Update
10499         documentation.
10500
10501 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10502
10503         * config/rtems.opt: New.
10504         * config.gcc (*-*-rtems*): Use rtems.opt.
10505
10506 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10507
10508         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10509         processors do not support 3DNow instructions.
10510
10511 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10512
10513         * config/spu/spu.c (spu_option_override): Set parameter
10514         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10515
10516 2011-01-05  Jan Hubicka  <jh@suse.cz>
10517
10518         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10519         at the command line.
10520
10521 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10522
10523         PR lto/47162
10524         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10525         deltas on streamed outgoing edges.
10526         (output_node_opt_summary): Output info for outgoing edges only when
10527         the node is in new parameter set.
10528         (output_cgraph_opt_summary): New parameter set, passed to the two
10529         aforementioned functions.  Update its forward declaration and its
10530         callee too.
10531
10532 2011-01-05  Tom Tromey  <tromey@redhat.com>
10533
10534         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10535         operator to c_finish_omp_atomic.
10536         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10537         (build_unary_op): Update.
10538         (build_modify_expr): Update.
10539         (build_asm_expr): Update.
10540
10541 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10542
10543         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10544         newly inserted insns.
10545         (pad_bb): Likewise.
10546         (spu_emit_branch_hint): Likewise.
10547         (insert_hbrp_for_ilb_runout): Likewise.
10548         (spu_machine_dependent_reorg): Call df_finish_pass after
10549         schedule_insns returns.
10550
10551 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10552
10553         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10554
10555 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10556
10557         PR tree-optimization/47005
10558         * tree-sra.c (struct access): Add 'non_addressable' bit.
10559         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10560         (decide_one_param_reduction): Return 0 if the parameter is passed by
10561         reference and one of the accesses in the group is non_addressable.
10562
10563 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10564
10565         PR tree-optimization/47056
10566         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10567         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10568         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10569
10570 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10571
10572         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10573         initializer.  Skip view conversions from aggregate types.
10574
10575 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
10576
10577         PR bootstrap/47055
10578         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10579
10580 2011-01-04  Philipp Thomas  <pth@suse.de>
10581
10582         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10583         obvious typo.
10584
10585 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10586
10587         * function.c (thread_prologue_and_epilogue_insns): Do not crash
10588         on empty epilogue sequences.
10589
10590 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
10591
10592         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10593         non-static): New Driver options.
10594
10595 2011-01-04  Jie Zhang  <jie@codesourcery.com>
10596
10597         PR driver/47137
10598         * gcc.c (default_compilers[]): Set combinable field to 0
10599         for all assembly languages.
10600
10601 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
10602
10603         * config/mips/loongson3a.md: New file.
10604         * config/mips/mips.md: Include loongson3a.md.
10605         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10606         TUNE_LOONGSON_3A.
10607
10608 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10609
10610         PR middle-end/47017
10611         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10612         instead of convert_memory_address_addr_space on the base expression.
10613
10614 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10615
10616         * config/spu/spu.c (spu_option_override): Update error text
10617         for bad -march= / -mtune= values.
10618
10619 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10620
10621         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10622         if branch-hint optimization will be performed.
10623
10624 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10625
10626         PR tree-optimization/47148
10627         * ipa-split.c (split_function): Convert arguments to
10628         DECL_ARG_TYPE if possible.
10629
10630         PR tree-optimization/47155
10631         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10632         when computing uns.
10633
10634         PR rtl-optimization/47157
10635         * combine.c (try_combine): If undobuf.other_insn becomes
10636         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10637         and set *new_direct_jump_p too.
10638
10639 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10640
10641         PR tree-optimization/47021
10642         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10643
10644 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10645
10646         * gcc.c (process_command): Update copyright notice dates.
10647         * gcov.c (print_version): Likewise.
10648         * gcov-dump.c (print_version): Likewise.
10649         * mips-tfile.c (main): Likewise.
10650         * mips-tdump.c (main): Likewise.
10651
10652 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10653
10654         PR tree-optimization/46801
10655         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10656         aggregate fields start at byte boundary instead of the bit-field flag.
10657
10658 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10659
10660         PR driver/47137
10661         * gcc.c (main): Revert revision 168407.
10662
10663 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10664
10665         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10666
10667 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10668
10669         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10670         vector optab to expand vector/scalar shift, update gimple to vector.
10671
10672 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10673
10674         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10675         a thunk.
10676
10677 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10678
10679         PR tree-optimization/46984
10680         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10681         HOST_WIDE_INT.
10682         (cgraph_create_indirect_edge): Fixed line length.
10683         (cgraph_indirect_call_info): Declare.
10684         (cgraph_make_edge_direct) Update declaration.
10685         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10686         (cgraph_create_indirect_edge): Use it.
10687         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10688         callees.
10689         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10690         the new thunk_delta representation.
10691         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10692         HOST_WIDE_INT.
10693         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10694         (ipa_read_indirect_edge_info): Likewise.
10695         * lto-cgraph.c (output_edge_opt_summary): New function.
10696         (output_node_opt_summary): Call it on all outgoing edges.
10697         (input_edge_opt_summary): New function.
10698         (input_node_opt_summary): Call it on all outgoing edges.
10699
10700 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10701
10702         PR driver/47137
10703         * gcc.c (main): Don't check have_o when settting combine_inputs.
10704
10705 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10706
10707         * regrename.c: Add general comment describing the pass.
10708         (struct du_head): Remove 'length' field.
10709         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10710         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10711         Force renaming to the preferred class (if any) in the first pass and do
10712         not consider registers that belong to it in the second pass.
10713         (create_new_chain): Do not set 'length' field.
10714         (scan_rtx_reg): Likewise.
10715
10716 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10717
10718         PR tree-optimization/47140
10719         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10720         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10721         to bit_value_binop.
10722
10723         PR rtl-optimization/47028
10724         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10725         parm_birth_insn instead of at the beginning of first bb.
10726
10727 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10728
10729         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10730         Remove the word "see" before "@pxref".
10731         * doc/rtl.texi: Remove the word "see" before "@pxref".
10732
10733 2011-01-01  Jan Hubicka  <jh@suse.cz>
10734
10735         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10736         memory.
10737
10738 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10739
10740         PR target/38662
10741         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10742
10743 \f
10744 Copyright (C) 2011 Free Software Foundation, Inc.
10745
10746 Copying and distribution of this file, with or without modification,
10747 are permitted in any medium without royalty provided the copyright
10748 notice and this notice are preserved.