re PR lto/48538 (profiled LTO bootstrap failure with Ada)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR lto/48538
4         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5         is non-null before accessing it.
6         (input_cgraph): Remove trailing spaces.
7
8 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9
10         * params.def (sms-min-sc): New param flag.
11         * modulo-sched.c (sms_schedule): Use it.
12         * doc/invoke.texi (sms-min-sc): Document it.
13
14 2011-04-17  Jan Hubicka  <jh@suse.cz>
15
16         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17         present, also set gimple_call_set_cannot_inline.
18         * ipa-inline.c: Update toplevel comment.
19         (MAX_TIME): Remove.
20         (cgraph_clone_inlined_nodes): Fix linebreaks.
21         (cgraph_check_inline_limits): Restructure to ...
22         (caller_growth_limits): ... this one; be more tolerant
23         on growth in nested inline chains; add explanatory comment;
24         fix stack accounting thinko introduced by previous patch.
25         (cgraph_default_inline_p): Remove.
26         (report_inline_failed_reason): New function.
27         (can_inline_edge_p): New function.
28         (can_early_inline_edge_p): New function.
29         (leaf_node_p): Move upwards in file.
30         (want_early_inline_function_p): New function.
31         (want_inline_small_function_p): New function.
32         (want_inline_self_recursive_call_p): New function.
33         (cgraph_edge_badness): Rename to ...
34         (edge_badness) ... this one; fix linebreaks.
35         (update_edge_key): Update call of edge_baddness; add
36         detailed dump about queue updates.
37         (update_caller_keys): Use can_inline_edge_p and
38         want_inline_small_function_p.
39         (cgraph_decide_recursive_inlining): Rename to...
40         (recursive_inlining): Use can_inline_edge_p and
41         want_inline_self_recursive_call_p; simplify and
42         remove no longer valid FIXME.
43         (cgraph_set_inline_failed): Remove.
44         (add_new_edges_to_heap): Use can_inline_edge_p and
45         want_inline_small_function_p.
46         (cgraph_decide_inlining_of_small_functions): Rename to ...
47         (inline_small_functions): ... this one; cleanup; use
48         can/want predicates; cleanup debug ouput; work edges
49         till fibheap is exhausted and do not stop once unit
50         growth is reached; remove later loop processing remaining
51         edges.
52         (cgraph_flatten): Rename to ...
53         (flatten_function): ... this one; use can_inline_edge_p
54         and can_early_inline_edge_p predicates.
55         (cgraph_decide_inlining): Rename to ...
56         (ipa_inline): ... this one; remove unreachable nodes before
57         inlining functions called once; simplify the pass.
58         (cgraph_perform_always_inlining): Rename to ...
59         (inline_always_inline_functions): ... this one; use
60         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p
61         predicate
62         (cgraph_decide_inlining_incrementally): Rename to ...
63         (early_inline_small_functions): ... this one; simplify
64         using new predicates; cleanup; make dumps prettier.
65         (cgraph_early_inlining): Rename to ...
66         (early_inliner): newer inline regular functions into always-inlines;
67         fix updating of call stmt summaries.
68         (pass_early_inline): Update for new names.
69         (inline_transform): Fix formating.
70         (gate_cgraph_decide_inlining): Rename to ...
71         (pass_ipa_inline): ... this one.
72         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
73         * ipa-inline-analysis.c (dump_inline_summary): Update.
74         (compute_inline_parameters): Do not compute disregard_inline_limits;
75         look for mismatching arguments.
76         (estimate_growth): Fix handlig of non-trivial self recursion.
77         (inline_read_summary): Do not read info->disregard_inline_limits.
78         (inline_write_summary): Do not write info->disregard_inline_limits.
79         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
80         and move all checks into can_inline_edge_p predicate; re-enable code
81         comparing optimization levels.
82         (expand_call_inline): Do not test inline_forbidden_into_p.
83         * Makefile.in (ipa-inline.o): Update arguments.
84
85 2011-04-17  Revital Eres  <revital.eres@linaro.org>
86
87         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
88
89 2011-04-17  Revital Eres  <revital.eres@linaro.org>
90
91         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
92
93 2011-04-17  Michael Matz  <matz@suse.de>
94
95         PR tree-optimization/48622
96         PR lto/48645
97         * ipa-inline-analysis.c (inline_read_summary): Read size/time
98         in same order as they're written.
99
100 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
101
102         * config/i386/sse.md (sseunpackmode): New mode attribute.
103         (ssepackmode): Ditto.
104         (vec_pack_trunc_<mode>): Macroize expander from
105         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
106         (vec_unpacks_lo_<mode>): Macroize expander from
107         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
108         (vec_unpacks_hi_<mode>): Macroize expander from
109         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
110         (vec_unpacku_lo_<mode>): Macroize expander from
111         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
112         (vec_unpacku_hi_<mode>): Macroize expander from
113         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
114         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
115         ix86_expand_sse4_unpack.
116         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
117
118 2011-04-16  Jan Hubicka  <jh@suse.cz>
119
120         * cgraphbuild.c: Include ipa-inline.h.
121         (reset_inline_failed): Use initialize_inline_failed.
122         * cgraph.c: Include ipa-inline.h.
123         (cgraph_create_node_1): Do not initialize estimated_growth.
124         (initialize_inline_failed): More to ipa-inline-analysis.c
125         (dump_cgraph_node): Do not dump inline flags.
126         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
127         and disregard_inline_limits flags.
128         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
129         time, size, estimated_growth.
130         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
131         Update.
132         * cgraphunit.c (cgraph_decide_is_function_needed): Use
133         DECL_DISREGARD_INLINE_LIMITS.
134         (cgraph_analyze_function): Do not initialize
135         node->local.disregard_inline_limits.
136         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
137         inlinable, versionable and disregard_inline_limits.
138         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
139         cgraph_check_inline_limits, cgraph_default_inline_p,
140         cgraph_edge_badness, update_caller_keys, update_callee_keys,
141         add_new_edges_to_heap): Update.
142         (cgraph_decide_inlining_of_small_function): Update; set
143         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
144         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
145         cgraph_decide_inlining_incrementally): Update.
146         * ipa-inline.h (inline_summary): Add inlinable, versionable,
147         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
148         time, size and estimated_growth parameters.
149         (estimate_edge_growth): Update.
150         (initialize_inline_failed): Declare.
151         * ipa-split.c: Include ipa-inline.h
152         (execute_split_functions): Update.
153         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
154         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
155         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
156         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
157         estimated_growth to INT_MIN.
158         (inline_node_duplication_hook): Likewise.
159         (dump_inline_summary): Dump new fields.
160         (compute_inline_parameters): Update.
161         (estimate_edge_time, estimate_time_after_inlining,
162         estimate_size_after_inlining, estimate_growth, inline_read_summary,
163         inline_write_summary):
164         (initialize_inline_failed): Move here from cgraph.c.
165         * tree-sra.c: Include ipa-inline.h.
166         (ipa_sra_preliminary_function_checks): Update.
167         * Makefile.in: (cgraph.o, cgraphbuild.o): Add dependency on
168         ipa-inline.h
169
170 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
171
172         * config/i386/sse.md (V16): New mode iterator.
173         (VI1, VI8): Ditto.
174         (AVXMODEQI, AVXMODEDI): Remove.
175         (sse2, sse3): New mode attribute.
176         (mov<mode>): Use V16 mode iterator.
177         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
178         (push<mode>1): Use V16 mode iterator.
179         (movmisalign<mode>): Ditto.
180         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
181         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
182         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
183         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
184         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
185         avx_movdqu<avxmodesuffix>.
186         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
187         *avx_movdqu<avxmodesuffix>.
188         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
189         avx_lddqu<avxmodesuffix>.
190         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
191         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
192         avx_movnt<AVXMODEDI:mode>.
193         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
194         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
195
196 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
197
198         PR target/48629
199         * haifa-sched.c (prune_ready_list, schedule_block): Use
200         sched_pressure_p rather than flag_sched_pressure.
201
202 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
203
204         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
205         cgraph_get_node instead of cgraph_get_create_node.
206
207 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
208
209         * cfgexpand.c (expand_debug_expr): Use
210         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
211
212 2011-04-15  Michael Matz  <matz@suse.de>
213
214         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
215         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
216         * function.c (gimplify_parameters): Ditto.
217         * gimplify.c (gimplify_vla_decl): Ditto.
218
219         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
220         (gimple_call_set_alloca_for_var): New inline function.
221         (gimple_call_alloca_for_var_p): Ditto.
222         * gimple.c (gimple_build_call_from_tree): Remember
223         CALL_ALLOCA_FOR_VAR_P state.
224         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
225
226         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
227         calls if they were for VLA objects.
228
229 2011-04-15  Martin Jambor  <mjambor@suse.cz>
230
231         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
232         of ADR_EXPRs.
233
234 2011-04-15  Martin Jambor  <mjambor@suse.cz>
235
236         PR middle-end/48601
237         * tree-emutls.c (lower_emutls_function_body): Call
238         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
239         result is non-NULL.
240
241 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
242
243         * c-decl.c (detect_field_duplicates): Call
244         objc_detect_field_duplicates instead of objc_get_interface_ivars.
245
246 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
247
248         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
249         * gimple.c (gimple_asm_clobbers_memory_p): Define.
250         * ipa-pure-const.c (check_stmt): Call it.
251         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
252
253 2011-04-15  Richard Guenther  <rguenther@suse.de>
254
255         PR tree-optimization/48290
256         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
257         Properly decide inhibiting propagation based on the valueized
258         operand.  Do loop-closed SSA form preserving here ...
259         (init_copy_prop): ... not here.
260
261 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
262
263         PR target/48612
264         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
265         (*ieee_smax<mode>3): Likewise.
266
267 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
268
269         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
270         Replace match_operand with match_dup for the third operand in
271         these expanders.
272
273 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
274
275         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
276         to track processing of conditionals.  Update all callers.
277         (try_combine, simplify_if_then_else): Update.
278
279 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
280
281         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
282         -fsched-pressure.
283
284 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
285
286         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
287         instead of match_operand for operand 3.
288
289 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
290
291         * recog.h (insn_operand_data): Add an "allows_mem" field.
292         * genoutput.c (output_operand_data): Initialize it.
293         * optabs.c (maybe_legitimize_operand_same_code): New function.
294         (maybe_legitimize_operand): Use it when matching the original
295         op->value.
296
297 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
298
299         * gimplify.c: Fix issues in comments throughout.
300         (voidify_wrapper_expr): Fix long line.
301         (build_stack_save_restore): Likewise.
302         (gimplify_loop_expr): Likewise.
303         (gimplify_compound_lval): Likewise.
304         (gimplify_init_ctor_eval): Likewise.
305         (gimplify_modify_expr_rhs): Likewise.
306         (omp_notice_threadprivate_variable): Likewise.
307
308 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
309
310         * cfgexpand.c (expand_call_stmt): Convert the function type to the
311         original one if this is not a builtin function.
312
313 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
314
315         PR target/48605
316         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
317         offset it as needed based on top 2 bits in operands[3], change
318         MEM mode to SFmode and mask those 2 bits away from operands[3].
319
320 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
321
322         * c-parser.c (c_parser_objc_protocol_definition): Updated for
323         change from objc_declare_protocols() to objc_declare_protocol().
324
325 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
326
327         * config/i386/sse.md (sse4_1): New mode attribute.
328         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
329         avx_blend<ssemodesuffix><avxmodesuffix> and
330         sse4_1_blend<ssemodesuffix> using VF mode iterator.
331         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
332         avx_blendv<ssemodesuffix><avxmodesuffix> and
333         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
334         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
335         avx_dp<ssemodesuffix><avxmodesuffix> and
336         sse4_1_dp<ssemodesuffix> using VF mode iterator.
337         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
338         (sse4_1_packusdw): Merge with *avx_packusdw.
339         (sse4_1_pblendvb): Merge with *avx_pblendvb.
340         (sse4_1_pblendw): Merge with *avx_pblendw.
341         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
342         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
343         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
344         VF mode iterator.
345         (sse4_1_round<ssescalarmodesuffix>): Merge with
346         *avx_round<ssescalarmodesuffix>.
347         (aesenc): Merge with *avx_aesenc.
348         (aesenclast): Merge with *avx_aesenclast.
349         (aesdec): Merge with *avx_aesdec.
350         (aesdeclast): Merge with *avx_aesdeclast.
351         (pclmulqdq): Merge with *pclmulqdq.
352         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
353         New predicate.
354         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
355
356 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
357
358         PR middle-end/48608
359         * cfgexpand.c (get_decl_align_unit): Renamed to ...
360         (align_local_variable): This.  Update DECL_ALIGN.
361         (add_stack_var): Updated.
362         (expand_one_stack_var): Likewise.
363
364 2011-04-14  Richard Guenther  <rguenther@suse.de>
365
366         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
367         Remove.
368         (dse_initialize_block_local_data, dse_leave_block,
369         record_voperand_set, get_stmt_uid): Likewise.
370         (dse_possible_dead_store_p): Allow any kind of killing stmt.
371         (dse_optimize_stmt): Remove voperand set handling code.
372         Simplify and improve to handle any kind of killing stmt.
373         (dse_record_phi): Remove.
374         (dse_enter_block): Simplify.
375         (tree_ssa_dse): Likewise.
376         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
377
378 2011-04-14  Jan Hubicka  <jh@suse.cz>
379
380         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
381         * cgraph.h (struct inline_summary): Move to ipa-inline.h
382         (cgraph_local_info): Remove inline_summary.
383         * ipa-cp.c: Include ipa-inline.h.
384         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
385         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
386         accesor.
387         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
388         (input_overwrite_node): Do not set inline summary.
389         (input_node): Do not stream inline summary.
390         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
391         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
392         growth; we do not have inline parameters computed for that anyway.
393         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
394         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
395         (inline_summary_t): New type and VECtor.
396         (debug_inline_summary, dump_inline_summaries): Declare.
397         (inline_summary): Use VOCtor.
398         (estimate_edge_growth): Kill hack computing call stmt size directly.
399         * lto-section-in.c (lto_section_name): Add inline section.
400         * ipa-inline-analysis.c: Include lto-streamer.h
401         (node_removal_hook_holder, node_duplication_hook_holder): New holders
402         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
403         (inline_summary_vec): Define.
404         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
405         dump_inline_summaries): New functions.
406         (estimate_function_body_sizes): Properly compute size/time of outgoing
407         calls.
408         (compute_inline_parameters): Alloc inline_summary; do not compute
409         size/time of incomming calls.
410         (estimate_edge_time): Avoid missing time summary hack.
411         (inline_read_summary): Read inline summary info.
412         (inline_write_summary): Write inline summary info.
413         (inline_free_summary): Free all hooks and inline summary vector.
414         * lto-streamer.h: Add LTO_section_inline_summary section.
415         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
416         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
417
418 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
419
420         * tree-vectorizer.h (vect_strided_store_supported): Add a
421         HOST_WIDE_INT argument.
422         (vect_strided_load_supported): Likewise.
423         (vect_permute_store_chain): Return void.
424         (vect_transform_strided_load): Likewise.
425         (vect_permute_load_chain): Delete.
426         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
427         count argument.  Check that the count is a power of two.
428         (vect_strided_load_supported): Likewise.
429         (vect_permute_store_chain): Return void.  Update after above changes.
430         Assert that the access is supported.
431         (vect_permute_load_chain): Likewise.
432         (vect_transform_strided_load): Return void.
433         * tree-vect-stmts.c (vectorizable_store): Update calls after
434         above interface changes.
435         (vectorizable_load): Likewise.
436         (vect_analyze_stmt): Don't check for strided powers of two here.
437
438 2011-04-14  Richard Guenther  <rguenther@suse.de>
439
440         PR tree-optimization/48590
441         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
442         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
443         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
444         BUILT_IN_STACK_SAVE.
445         * tree-ssa-dce.c (propagate_necessity): Handle
446         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
447
448 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
449
450         * c-parser.c (c_parser_objc_class_declaration): Updated call to
451         objc_declare_class.
452
453 2011-04-14  Richard Guenther  <rguenther@suse.de>
454
455         * tree.h (get_object_alignment_1): Declare.
456         * builtins.c (get_object_alignment_1): Split out worker from ...
457         (get_object_alignment): ... here.
458         * fold-const.c (get_pointer_modulus_and_residue): Use
459         get_object_alignment_1.
460
461 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
462
463         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
464         type parameter.
465         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
466         parameter.  Generalise code to handle arrays as well as vectors.
467         (vect_setup_realignment): Update accordingly.
468         * tree-vect-stmts.c (vectorizable_store): Likewise.
469         (vectorizable_load): Likewise.
470
471 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
472
473         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
474         within the per-copy loop.
475
476 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
477
478         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
479         in the dump file.
480
481 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
482
483         * doc/options.texi (Negative): Explicitly mention that the
484         Negative chain must be circular.
485
486 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
487
488         * function.h (block_chainon): Declare.
489         * function.c (block_chainon): Define.
490
491 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
492             Eric Weddington  <eric.weddington@atmel.com>
493             Georg-Johann Lay <avr@gjlay.de>
494
495         * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
496         New Includes
497         (avr_init_builtins, avr_expand_builtin,
498         avr_expand_delay_cycles, avr_expand_unop_builtin,
499         avr_expand_binop_builtin ): New functions.
500         (avr_builtin_id): New enum
501         (struct avr_builtin_description): New struct
502         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
503         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
504
505         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
506         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
507         UNSPECV_DELAY_CYCLES): new enumeration values
508         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
509         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
510         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
511         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
512         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
513         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
514         "fmulsu"): New insns
515
516         * config/avr/avr-c.c: fix line endings
517         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
518         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
519         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
520         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
521         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
522
523         * doc/extend.texi (AVR Built-in Functions): New node
524         (Target Builtins): Add documentation of AVR
525         built-in functions.
526
527 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
528
529         PR target/44643
530         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
531         alone. Error if non-const data has attribute progmem.
532
533 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
534
535         * tree.h (struct tree_constructor): Include tree_typed instead of
536         tree_common.
537         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
538         TS_TYPED instead of TS_COMMON.
539
540 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
541
542         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
543         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
544         (sse2_psadbw): Merge with *avx_psadbw.
545         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
546         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
547         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
548         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
549         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
550         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
551         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
552         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
553         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
554         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
555         (ssse3_palignrti): Merge with *avx_palignrti.
556
557 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
558
559         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
560         * tree-ssanames.c (fini_ssanames): VEC_free it.
561         (make_ssa_name_fn): Update for VECness of free_ssanames.
562         (release_ssa_name, release_dead_ssa_names): Likewise.
563         * tree.h (struct tree_ssa_name): Include tree_typed instead of
564         tree_common.
565         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
566         TS_TYPED instead of TS_COMMON.
567
568 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
569
570         * postreload-gcse.c (gcse_after_reload_main): Add calls to
571         statistics_counter_event.
572         * tree-ssa-copyrename.c (stats): Define.
573         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
574         statistics_counter_event.
575         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
576         (bswap_stats, widen_mul_stats): Define.
577         (insert_reciprocals): Increment rdivs_inserted.
578         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
579         rfuncs_inserted.  Add calls to statistics_counter_event.
580         (execute_cse_sincos_1): Increment inserted.
581         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
582         statistics_counter_event.
583         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
584         of bswap_stats.  Add calls to statistics_counter_event.
585         (convert_mult_to_widen): Increment widen_mults_inserted.
586         (convert_plusminus_to_widen): Increment maccs_inserted.
587         (convert_mult_to_fma): Increment fmas_inserted.
588         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
589         calls to statistics_counter_event.
590
591 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
592
593         PR rtl-optimization/48455
594         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
595         `temp_costs->mem_cost'.
596
597 2011-04-13  Jan Hubicka  <jh@suse.cz>
598
599         * ipa-inline.h: New file.
600         * ipa-inline-analysis.c: New file. Broken out of ...
601         * ipa-inline.c: ... this file; update toplevel comment;
602         include ipa-inline.h
603         (inline_summary): Move to ipa-inline.h
604         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
605         ipa-inline-analysis.c.
606         (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
607         move to ipa-inline-analysis.c
608         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
609         to estimate_edge_growth.
610         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
611         rename to estimate_size_after_inlining.
612         (cgraph_mark_inline_edge): Update for new naming convention.
613         (cgraph_check_inline_limits): Likewise.
614         (cgraph_edge_badness): Likewise.
615         (cgraph_decide_recursive_inlining): Likewise.
616         (cgraph_decide_inlining_of_small_functions): Likewise.
617         (cgraph_decide_inlining_incrementally): Likewise.
618         (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
619         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
620         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
621         (compute_inline_parameters): Likewise.
622         (compute_inline_parameters_for_current): Likewise.
623         (pass_inline_parameters): Likewise.
624         (inline_indirect_intraprocedural_analysis): Likewise.
625         (analyze_function): Rename to inline_analyze_function; likewise.
626         (add_new_function): Move to ipa-inline-analysis.c.
627         (inline_generate_summary): Likewise.
628         (inline_read_summary): Likewise.
629         (inline_write_summary): Likewise.
630         * Makefile.in (ipa-inline-analysis.c): New file.
631
632 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
633
634         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
635         * configure: Regenerate.
636
637 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
638
639         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
640         instead of tree_common.
641         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
642         Likewise.
643         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
644         TS_TYPED rather than TS_COMMON.
645         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
646
647 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
648
649         PR target/45263
650         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
651         r20 around calls of __tablejump_elpm__
652
653 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
654
655         PR middle-end/48591
656         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
657         NULL.
658         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
659
660 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
661
662         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
663         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
664         (cfi_vec): New typedef.
665         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
666         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
667         (cie_cfi_vec): New static variable.
668         (cie_cfi_head): Delete.
669         (add_cfi): Accept a cfi_vec * as first argument. All callers and
670         declaration changed. Use vector rather than list operations.
671         (new_cfi): Don't initialize the dw_cfi_next field.
672         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
673         rather than list operations.
674         (lookup_cfa): Use vector rather than list operations.
675         (output_cfis): New argument upto. Accept a cfi_vec rather than
676         a dw_cfi_ref list head as argument. All callers changed.
677         Iterate over the vector using upto as a maximum index.
678         (output_all_cfis): New static function.
679         (output_fde): Use vector rather than list operations. Use the
680         new upto argument for output_cfis rather than manipulating a
681         list.
682         (dwarf2out_begin_prologue): Change initializations to match
683         new struct members.
684         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
685         from the vector length rather than searching for the end of a list.
686         Use output_all_cfis.
687         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
688
689 2011-04-13  Nick Clifton  <nickc@redhat.com>
690
691         * config/rx/rx.md (movmemsi): Do not use this pattern when
692         volatile pointers are involved.
693
694 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
695
696         * config/i386/sse.md (pinsrbits): Remove.
697         (sse2_packsswb): Merge with *avx_packsswb.
698         (sse2_packssdw): Merge with *avx_packssdw.
699         (sse2_packuswb): Merge with *avx_packuswb.
700         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
701         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
702         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
703         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
704         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
705         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
706         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
707         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
708         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
709         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
710         (sse2_loadld): Merge with *avx_loadld.
711         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
712         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
713         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
714         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
715         (vec_concatv2di): Merge with *vec_concatv2di_avx.
716
717 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
718
719         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
720         calling TREE_CHAIN.
721         * print-tree.c (print_node): Likewise.
722         * tree-inline.c (copy_tree_r): Likewise.
723         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
724         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
725         instead of TS_COMMON.
726         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
727         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
728         (copy_node_stat): Zero TREE_CHAIN only if necessary.
729         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
730         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
731         ...and these...
732         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
733         * tree.h: ...here.
734         (TREE_CHAIN): Check for a TS_COMMON structure.
735         (TREE_TYPE): Check for a TS_TYPED structure.
736
737 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
738
739         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
740         cgraph_get_create_node instead of cgraph_node.
741
742 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
743
744         * c-parser.c (c_parser_initelt): Updated call to
745         objc_build_message_expr.
746         (c_parser_postfix_expression): Likewise.
747
748 2011-04-12  Kai Tietz  <ktietz@redhat.com>
749
750         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
751         MASK_MS_BITFIELD_LAYOUT bit.
752
753 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
754
755         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
756         assert it is always true.
757         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
758         moves.
759
760 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
761
762         * c-parser.c (c_lex_one_token): Rewritten conditional used when
763         compiling Objective-C to be more efficient.
764
765 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
766
767         * opts-common.c (decode_cmdline_options_to_array): Remove variable
768         argv_copied.
769
770 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
771
772         * recog.h, genoutput.c, optabs.c: Revert last patch.
773
774 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
775
776         PR target/48090
777         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
778
779 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
780
781         * recog.h (insn_operand_data): Add an "allows_mem" field.
782         * genoutput.c (output_operand_data): Initialize it.
783         * optabs.c (maybe_legitimize_operand_same_code): New function.
784         (maybe_legitimize_operand): Use it when matching the original
785         op->value.
786
787 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
788
789         * genpreds.c (process_define_predicate): Move most processing
790         to gensupport.c.  Continue to validate the expression.
791         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
792         (process_define_predicate): Move processing to gensupport.c.
793         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
794         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
795         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
796         argument.
797         (valid_predicate_name_p): New function, split out from old
798         genpreds.c:process_define_predicate.
799         (process_define_predicate): New function, combining code from
800         old genpreds.c and genrecog.c functions.
801         (process_rtx): Call it for DEFINE_PREDICATE and
802         DEFINE_SPECIAL_PREDICATE.
803
804 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
805
806         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
807         size of a '%A' memory reference.
808         (T_DREG, T_QREG): New neon_builtin_type_bits.
809         (arm_init_neon_builtins): Assert that the load and store operands
810         are neon_struct_operands.
811         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
812         (NEON_ARG_MEMORY): New builtin_arg.
813         (neon_dereference_pointer): New function.
814         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
815         Handle NEON_ARG_MEMORY.
816         (arm_expand_neon_builtin): Update after above interface changes.
817         Use NEON_ARG_MEMORY for loads and stores.
818         * config/arm/predicates.md (neon_struct_operand): New predicate.
819         * config/arm/iterators.md (V_two_elem): Tweak formatting.
820         (V_three_elem): Use BLKmode for accesses that have no associated mode.
821         (V_four_elem): Tweak formatting.
822         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
823         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
824         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
825         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
826         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
827         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
828         (neon_vst4<mode>): Replace pointer operand with a memory operand.
829         Use %A in the output template.
830         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
831         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
832         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
833         the width of the memory access.  Remove post-increment.
834         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
835
836 2011-04-12  Nick Clifton  <nickc@redhat.com>
837
838         * config/v850/v850.c (expand_prologue): Do not use the CALLT
839         instruction for interrupt handlers if the target is the basic V850
840         architecture.
841         (expand_epilogue): Likewise.
842
843 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
844
845         PR rtl-optimization/48549
846         * combine.c (propagate_for_debug): Also stop after BB_END of
847         this_basic_block.  Process LAST and just stop processing after it.
848         (combine_instructions): If last_combined_insn has been deleted,
849         set last_combined_insn to its PREV_INSN.
850
851 2011-04-12  Richard Guenther  <rguenther@suse.de>
852
853         PR tree-optimization/46076
854         * gimple.h (struct gimple_statement_call): Add fntype field.
855         (gimple_call_fntype): Adjust.
856         (gimple_call_set_fntype): New function.
857         * gimple.c (gimple_build_call_1): Set the call function type.
858         * gimplify.c (gimplify_call_expr): Preserve the function
859         type the frontend used for the call.
860         (gimplify_modify_expr): Likewise.
861         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
862         function type.
863         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
864         function type.
865         * tree-ssa.c (useless_type_conversion_p): Function pointer
866         conversions are useless.
867
868 2011-04-12  Martin Jambor  <mjambor@suse.cz>
869
870         * cgraph.h (cgraph_node): Remove function declaration.
871         (cgraph_create_node): Declare.
872         (cgraph_get_create_node): Likewise.
873         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
874         Updated all callers.
875         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
876         the decl does not already exist.  Call cgraph_get_create_node instead
877         of cgraph_node.
878         (cgraph_get_create_node): New function.
879         (cgraph_same_body_alias): Update comment.
880         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
881         assert it does not return NULL.
882         (cgraph_update_edges_for_call_stmt): Likewise.
883         (cgraph_clone_edge): Likewise.
884         (cgraph_create_virtual_clone): Likewise.
885         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
886         instead of cgraph_node.
887         (cgraph_add_new_function): Call cgraph_create_node or
888         cgraph_get_create_node instead of cgraph_node.
889         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
890         instead of cgraph_node.
891         (record_eh_tables): Likewise.
892         (mark_address): Likewise.
893         (mark_load): Likewise.
894         (build_cgraph_edges): Call cgraph_get_create_node instead
895         of cgraph_node.
896         (rebuild_cgraph_edges): Likewise.
897         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
898         instead of cgraph_node.
899         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
900         cgraph_node.
901         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
902         cgraph_create_node instead of cgraph_node.
903         * c-decl.c (finish_function): Call cgraph_get_create_node instead
904         of cgraph_node.
905         * lto-cgraph.c (input_node): Likewise.
906         * lto-streamer-in.c (input_function): Likewise.
907         * varasm.c (mark_decl_referenced): Likewise.
908         (assemble_alias): Likewise.
909
910 2011-04-12  Martin Jambor  <mjambor@suse.cz>
911
912         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
913         instead of cgraph_node and assert it does not return NULL.
914         * lto-streamer-in.c (lto_read_body): Likewise.
915         * omp-low.c (new_omp_context): Likewise.
916         (create_task_copyfn): Likewise.
917         * tree-emutls.c (lower_emutls_function_body): Likewise.
918         * matrix-reorg.c (transform_allocation_sites): Likewise.
919
920 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
921
922         PR c/48552
923         * c-typeck.c (build_asm_expr): Error out on attempts to use
924         void type outputs or inputs for constraints that allow reg or
925         don't allow memory.
926
927 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
928             Richard Earnshaw  <rearnsha@arm.com>
929
930         PR target/48250
931         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
932         to use sign-magnitude offsets. Reject unsupported unaligned
933         cases. Add detailed description in comments.
934         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
935         condition from TARGET_32BIT to TARGET_ARM.
936
937 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
938
939         * tree.h (struct typed_tree): New.
940         (struct tree_common): Include it instead of tree_base.
941         (TREE_TYPE): Update for new location of type field.
942         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
943         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
944         (union tree_node): Add typed field.
945         * treestruct.def (TS_TYPED): New.
946         * lto-streamer.c (check_handled_ts_structures): Handle it.
947         * tree.c (MARK_TS_TYPED): New macro.
948         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
949
950 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
951
952         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
953         (force_nonfallthru): Do not alter the loop nest if no basic block
954         was created.
955
956 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
957
958         * config/i386/sse.md (VI): New mode iterator.
959         (SSEMODEI): Remove.
960         (AVX256MODEI): Ditto.
961         (AVXMODEF4P): Ditto.
962         (avxvecpsmode): Ditto.
963         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
964         (sse2_andnot<mode>3): New expander.
965         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
966         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
967         (<any_logic:code><mode>3): Use VI mode iterator.
968         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
969         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
970         (*andnottf3): Handle AVX three-operand constraints.
971         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
972
973 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
974             Robert Millan  <rmh@gnu.org>
975
976         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
977         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
978         GNU_USER_DYNAMIC_LINKER64): Define.
979         (REG_NAME): Don't undefine.
980         (MD_UNWIND_SUPPORT): Undefine.
981         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
982         (REG_NAME): Don't undefine.
983         (MD_UNWIND_SUPPORT): Undefine.
984         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
985
986 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
987
988         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
989         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
990
991 2011-04-11  Xinliang David Li  <davidxl@google.com>
992
993         * value-profile.c (check_ic_target): New function.
994         (gimple_ic_transform): Sanity check indirect call target.
995         * gimple-low.c (gimple_check_call_args): Interface change.
996         (gimple_check_call_matching_types): New function.
997         * tree-inline.c (tree_can_inline_p): Call new function.
998
999 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1000
1001         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1002         tree-pretty-print.h & realmpfr.h.
1003
1004 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1005
1006         PR middle-end/48464
1007         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1008         (setup_allocno_and_important_classes): Ditto.
1009
1010 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1011
1012         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1013         GNU_USER_DYNAMIC_LINKER.
1014         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1015         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1016         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1017         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1018         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1019         GNU_USER_TARGET_OS_CPP_BUILTINS.
1020         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1021         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1022         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1023         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1024         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1025         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1026         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1027         GNU_USER_TARGET_OS_CPP_BUILTINS.
1028         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1029         GNU_USER_DYNAMIC_LINKER.
1030         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1031         GNU_USER_TARGET_OS_CPP_BUILTINS.
1032         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1033         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1034         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1035         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1036         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1037         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1038         GNU_USER_DYNAMIC_LINKER64): Remove.
1039         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1040         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1041         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1042         GNU_USER_DYNAMIC_LINKER.
1043         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1044         GNU_USER_TARGET_OS_CPP_BUILTINS.
1045         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1046         GNU_USER_TARGET_OS_CPP_BUILTINS.
1047         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1048         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1049         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1050         GNU_USER_TARGET_OS_CPP_BUILTINS.
1051         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1052         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1053         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1054         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1055         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1056         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1057         GNU_USER_DYNAMIC_LINKER.
1058         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1059         GNU_USER_TARGET_OS_CPP_BUILTINS.
1060         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1061         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1062         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1063         GNU_USER_DYNAMIC_LINKER.
1064         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1065         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1066         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1067         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1068         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1069         GNU_USER_DYNAMIC_LINKER.
1070         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1071         GNU_USER_DYNAMIC_LINKERN32.
1072         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1073         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1074         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1075         GNU_USER_DYNAMIC_LINKER32.
1076         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1077         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1078         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1079         GNU_USER_DYNAMIC_LINKER.
1080         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1082         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1083         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1084         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1085         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1086         GNU_USER_DYNAMIC_LINKER32.
1087         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1088         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1089         GNU_USER_DYNAMIC_LINKER.
1090         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1091         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1092         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1093         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1094         GNU_USER_DYNAMIC_LINKER64.
1095         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1096         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1097         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1098         GNU_USER_DYNAMIC_LINKER.
1099         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1100         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1101         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1102         GNU_USER_DYNAMIC_LINKER.
1103         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1104         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1105         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1106         GNU_USER_DYNAMIC_LINKER32.
1107         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1108         GNU_USER_DYNAMIC_LINKER64.
1109         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1110         GNU_USER_DYNAMIC_LINKER64.
1111         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1112         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1113         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1114         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1115         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1116
1117 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1118
1119         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1120         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1121         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1122         GNU_USER_DYNAMIC_LINKER.
1123         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1124         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1125         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1126         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1127         GNU_USER_DYNAMIC_LINKER64.
1128         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1129         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1130         GNU_USER_LINK_EMULATION.
1131         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1132         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1133         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1134         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1135         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1136         CPP_SPEC, CC1_SPEC): Remove.
1137         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1138         (GNU_USER_DYNAMIC_LINKER): Define.
1139         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1140         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1141         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1142         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1143         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1144         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1145         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1146         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1147         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1148         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1149         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1150         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1151         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1152         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1153         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1154         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1155         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1156         GNU_USER_DYNAMIC_LINKER.
1157         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1158         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1159         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1160         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1161         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1162         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1163         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1164         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1165         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1166         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1167
1168 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1169
1170         PR target/9601
1171         PR target/11772
1172         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1173         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1174         comment.
1175         (ix86_is_msabi_thiscall): Removed.
1176         (ix86_is_type_thiscall): Likewise.
1177         (ix86_get_callcvt): New function.
1178         (ix86_comp_type_attributes): Simplify check.
1179         (ix86_function_regparm): Use ix86_get_callcvt for calling
1180         convention attribute checks.
1181         (ix86_return_pops_args): Likewise.
1182         (ix86_static_chain): Likewise.
1183         (x86_this_parameter): Likewise.
1184         (x86_output_mi_thunk): Likewise.
1185         (ix86_function_type_abi): Optimize check for types without attributes.
1186         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1187         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1188         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1189         by flag-values.
1190         (IX86_BASE_CALLCVT): Helper macro.
1191         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1192         Use ix86_get_callcvt for calling convention attribute checks and avoid
1193         symbol-decoration for stdcall in TARGET_RTD case.
1194         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1195         Likewise.
1196         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1197         for declaration.
1198
1199 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1200
1201         * config/i386/sse.md (VI_128): New mode iterator.
1202         (VI12_128): Rename from SSEMODE12.
1203         (VI14_128): Rename from SSEMODE14.
1204         (VI124_128): New mode iterator.
1205         (VI24_128): Rename from SSEMODE248.
1206         (VI248_128): Rename from SSEMODE248.
1207         (SSEMODE124C8): Remove.
1208         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1209         (*sse2_<plusminus_insn><mode>3): Merge with
1210         *avx_<plusminus_insn><mode>3.
1211         (*mulv8hi3): Merge with *avx_mulv8hi3.
1212         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1213         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1214         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1215         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1216         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1217         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1218         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1219         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1220         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1221         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1222         (*<smaxmin:code>v8hi3): Ditto.
1223         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1224         (*<smaxmin:code>v16qi3): Ditto.
1225         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1226         (*sse2_eq<mode>3): Ditto.
1227         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1228         (*sse2_gt<mode>3): Ditto.
1229         (vcondv2di): Split out of vcond<mode>.
1230         (vconduv2di): Split out of vcondu<mode>.
1231
1232 2011-04-11  Richard Guenther  <rguenther@suse.de>
1233
1234         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1235         before calling tree_low_cst.
1236
1237 2011-04-11  Richard Guenther  <rguenther@suse.de>
1238
1239         * stor-layout.c (layout_type): Compute all array index size operations
1240         in the original type.
1241         (initialize_sizetypes): Add comment.
1242         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1243
1244 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1245
1246         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1247
1248 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1249
1250         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1251         of cgraph_node, handle NULL return value.
1252         (cgraph_global_info): Likewise.
1253         (cgraph_rtl_info): Likewise.
1254         * tree-inline.c (estimate_num_insns): Likewise.
1255         * gimplify.c (unshare_body): Likewise.
1256         (unvisit_body): Likewise.
1257         (gimplify_body): Likewise.
1258         * predict.c (optimize_function_for_size_p): Likewise.
1259         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1260         (call_may_clobber_ref_p_1): Likewise.
1261         * varasm.c (function_section_1): Likewise.
1262         (assemble_start_function): Likewise.
1263
1264 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1265
1266         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1267         of cgraph_node.
1268         * final.c (rest_of_clean_state): Likewise.
1269         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1270         * passes.c (pass_init_dump_file): Likewise.
1271         (execute_all_ipa_transforms): Likewise.
1272         (function_called_by_processed_nodes_p): Likewise.
1273         * predict.c (maybe_hot_frequency_p): Likewise.
1274         (probably_never_executed_bb_p): Likewise.
1275         (compute_function_frequency): Likewise.
1276         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1277         (unnest_nesting_tree_1): Likewise.
1278         (lower_nested_functions): Likewise.
1279         * tree-optimize.c (execute_fixup_cfg): Likewise.
1280         (tree_rest_of_compilation): Likewise.
1281         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1282         * tree-sra.c (ipa_early_sra): Likewise.
1283         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1284         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1285         * ipa.c (record_cdtor_fn): Likewise.
1286         * ipa-inline.c (cgraph_early_inlining): Likewise.
1287         (compute_inline_parameters_for_current): Likewise.
1288         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1289         * ipa-pure-const.c (local_pure_const): Likewise.
1290         * ipa-split.c (split_function): Likewise.
1291         (execute_split_functions): Likewise.
1292         * cgraphbuild.c (build_cgraph_edges): Likewise.
1293         (rebuild_cgraph_edges): Likewise.
1294         (cgraph_rebuild_references): Likewise.
1295         (remove_cgraph_callee_edges): Likewise.
1296         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1297         (verify_cgraph_node): Likewise.
1298         (cgraph_analyze_functions): Likewise.
1299         (cgraph_preserve_function_body_p): Likewise.
1300         (save_inline_function_body): Likewise.
1301         (save_inline_function_body): Likewise.
1302         * tree-inline.c (copy_bb): Likewise.
1303         (optimize_inline_calls): Likewise.
1304
1305 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1306
1307         PR tree-optimization/48195
1308         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1309         ipa_check_create_edge_args.
1310         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1311         ipa_check_create_edge_args.
1312         * ipa-inline.c (inline_generate_summary): Do not call
1313         ipa_check_create_node_params and ipa_check_create_edge_args.
1314         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1315         ipa_check_create_edge_args.
1316
1317 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1318
1319         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1320         instead of loop.
1321         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1322         * function.c (record_hard_reg_sets): Likewise.
1323         * ira.c (compute_regs_asm_clobbered): Likewise.
1324         * sched-deps.c (sched_analyze_1): Likewise.
1325         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1326
1327 2011-04-09  Xinliang David Li  <davidxl@google.com>
1328
1329         PR tree-optimization/PR48484
1330         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1331         has_valid_pred lazily
1332
1333 2011-04-09  Duncan Sands  <baldrick@free.fr>
1334
1335         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1336
1337 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1338
1339         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1340         cost of I0 to zero at the end, if any.
1341
1342 2011-04-08  Xinliang David Li  <davidxl@google.com>
1343
1344         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1345         to insane profile data.
1346
1347 2011-04-08  Xinliang David Li  <davidxl@google.com>
1348
1349         * final.c (dump_basic_block_info): New function.
1350         (final): Dump basic block.
1351         (final_scan_insn): Remove old dump.
1352
1353 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1354
1355         PR target/47829
1356         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1357         crtbegin/crtend.
1358
1359 2011-04-08  Michael Matz  <matz@suse.de>
1360
1361         PR middle-end/48389
1362         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1363         functions.
1364         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1365         * rtl.h (rebuild_jump_labels_chain): Declare.
1366         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1367         insns inserted on edges.
1368
1369 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1370
1371         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1372         * config/arm/arm-arches.def: New.
1373         * config/arm/arm-opts.h: New.
1374         * config/arm/genopt.sh: New.
1375         * config/arm/arm-tables.opt: New (generated).
1376         * config/arm/arm.c (arm_handle_option, arm_target_help,
1377         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1378         (all_architectures): Get most table contents from arm-arches.def.
1379         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1380         arm_selected_tune here.
1381         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1382         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1383         (march=, mcpu=, mtune=): Use Enum and Var.
1384         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1385         (arm.o): Update dependencies.
1386
1387 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1388
1389         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1390         of header_file.
1391         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1392         (write_typed_alloc_defns): Likewise.
1393         (main): Calls write_typed_alloc_defns with output_header.
1394
1395 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1396
1397         PR inline-asm/48435
1398         * ira-color.c (setup_profitable_hard_regs): Add comments.
1399         Don't take prohibited hard regs into account.
1400         (setup_conflict_profitable_regs): Rename to
1401         get_conflict_profitable_regs.
1402         (check_hard_reg_p): Check prohibited hard regs.
1403
1404 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1405
1406         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1407         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1408         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1409
1410 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1411
1412         PR target/48366
1413         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1414         move from floating point to shift amount register .
1415         (emit_move_sequence): Remove secondary reload support for floating
1416         point to shift amount amount register copies.
1417         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1418         amount register copies.
1419         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1420         register, return false if mode isn't a scalar integer mode.
1421         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1422
1423 2011-04-08  Richard Guenther  <rguenther@suse.de>
1424
1425         * gimple.c (gimple_call_flags): Remove kludge.
1426
1427 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1428
1429         * sel-sched.c (sel_region_init): Move call to
1430         sel_setup_region_sched_flags after setup_current_loop_nest.
1431
1432 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1433
1434         PR rtl-optimization/48272
1435         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1436         init_insn_reg_pressure_info.  Adjust a caller.
1437         * sched-int.h (init_insn_reg_pressure_info): Declare.
1438         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1439         when sched-pressure is enabled.
1440
1441 2011-04-08  Richard Guenther  <rguenther@suse.de>
1442
1443         * gimple.c (gimple_set_modified): Do not queue calls to
1444         MODIFIED_NORETURN_CALLS here ...
1445         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1446
1447 2011-04-08  Richard Guenther  <rguenther@suse.de>
1448
1449         PR lto/48467
1450         * toplev.c (lang_dependent_init): Do not open asm_out_file
1451         in WPA mode, nor perform debug machinery initialization.
1452         (finalize): Do not unlink asm_out_file in WPA mode.
1453
1454 2011-04-08  Richard Guenther  <rguenther@suse.de>
1455
1456         * gimple.h (gimple_call_fntype): New function.
1457         (gimple_call_return_type): Use it.
1458         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1459         * gimple-low.c (gimple_check_call_args): Likewise.
1460         * gimple.c (gimple_call_flags): Likewise.
1461         (gimple_call_arg_flags): Likewise.
1462         (gimple_call_return_flags): Likewise.
1463         * tree-cfg.c (verify_gimple_call): Likewise.
1464         (do_warn_unused_result): Likewise.
1465         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1466         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1467
1468 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1469
1470         PR rtl-optimization/48235
1471         * sel-sched.c (code_motion_process_successors): Recompute the last
1472         insn in basic block if control flow changed.
1473         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1474         Update condition for ilist_remove.
1475
1476 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1477
1478         PR rtl-optimization/48302
1479         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1480         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1481         it to record added preheader blocks.
1482         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1483         on to sel_add_loop_preheaders.
1484         (sel_region_init): Move call to setup_current_loop_nest after
1485         sel_init_bbs.
1486
1487 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1488
1489         PR target/48273
1490         * cfgloop.h (loop_has_exit_edges): New helper.
1491         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1492         non-clonable.
1493         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1494         that have no exit edges.
1495
1496 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1497
1498         PR rtl-optimization/48442
1499         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1500         all callers.  Adjust assert.
1501
1502 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1503
1504         PR tree-optimization/48377
1505         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1506         is_packed to true even for types with smaller TYPE_ALIGN than
1507         TYPE_SIZE.
1508
1509 2011-04-08  Richard Guenther  <rguenther@suse.de>
1510
1511         PR bootstrap/48513
1512         * doc/tm.texi: Re-generate.
1513
1514 2011-04-08  Wei Guozhi  <carrot@google.com>
1515
1516         PR target/47855
1517         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1518         * config/arm/arm.c (arm_attr_length_push_multi): New function.
1519         * config/arm/arm.md (*push_multi): Change the length computation to
1520         call a C function.
1521
1522 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
1523
1524         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1525         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1526         * doc/tm.texi: Regenerate.
1527         * system.h (ASM_OUTPUT_BSS): Poison.
1528         * varasm.c (asm_output_bss): Remove function.
1529         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1530
1531         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1532         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1533         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1534         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1535         Likewise.
1536         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1537         Likewise.
1538         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1539         Likewise.
1540         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1541
1542 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1543
1544         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1545         EnumValue lines.
1546
1547 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1548
1549         * config/m68k/m68k.c (m68k_handle_option): Don't handle
1550         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1551         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1552         OPT_mcpu32.
1553         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1554         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1555         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1556         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1557         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1558         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1559         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1560         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1561         options.  Don't map other m68k options manually.  Don't handle
1562         old-style options as canonical.
1563         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1564         * doc/install.texi (m68k-*-*): Document binutils version requirement.
1565
1566 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1567
1568         * basic-block.h (force_nonfallthru): Move to...
1569         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1570         (force_nonfallthru): ...here.
1571         * cfghooks.c (force_nonfallthru): New function.
1572         * cfgrtl.c (force_nonfallthru): Rename into...
1573         (rtl_force_nonfallthru): ...this.
1574         (commit_one_edge_insertion): Do not set AUX field.
1575         (commit_edge_insertions): Do not discover new basic blocks.
1576         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1577         (cfg_layout_rtl_cfg_hooks): Likewise.
1578         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1579         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
1580         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1581
1582 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
1583
1584         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1585         Remove macros.
1586
1587 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
1588
1589         * config/i386/sse.md: Update copyright year.
1590         (avxcvtvecmode): Remove.
1591         (sse_movhlps): Merge with *avx_movhlps.
1592         (sse_movlhps): Merge with *avx_movlhps.
1593         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1594         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1595         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1596         (sse_loadhps): Merge with *avx_loadhps.
1597         (sse_storelps): Merge with *avx_storelps.
1598         (sse_loadlps): Merge with *avx_loadlps.
1599         (sse_movss): Merge with *avx_movss.
1600         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1601         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1602         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1603         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1604         (vec_set<mode>_0): Ditto.
1605         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1606         (sse4_1_insertps): Merge with *avx_insertps.
1607         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1608         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1609         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1610         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1611         (sse2_storehpd): Merge with *avx_storehpd.
1612         (sse2_loadhpd): Merge with *avx_loadhpd.
1613         (sse2_loadlpd): Merge with *avx_loadlpd.
1614         (sse2_movsd): Merge with *avx_movsd.
1615         (*vec_concatv2df): Merge with *vec_concatv2df.
1616
1617 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1618
1619         PR debug/48343
1620         * combine.c (combine_instructions): Add last_combined_insn,
1621         update it if insn is after it, pass it to all try_combine calls.
1622         (try_combine): Add last_combined_insn parameter, pass it instead of
1623         i3 to propagate_for_debug.
1624
1625 2011-04-07  Nick Clifton  <nickc@redhat.com>
1626
1627         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1628         to handle MDR <-> data register transfers.
1629         (movhi_internal): Likewise.
1630
1631 2011-04-07  Alan Modra  <amodra@gmail.com>
1632
1633         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1634         previous stack info.
1635
1636 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1637
1638         PR target/43920
1639         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1640         flow_find_cross_jump.  Swap variables to implement backward replacement.
1641         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1642
1643 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1644
1645         PR target/43920
1646         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1647         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1648         and bb2.
1649         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1650         src1 or src2.  Redirect edges to the last basic block.  Update
1651         frequency and count on multiple basic blocks in case of fallthru.
1652
1653 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1654
1655         PR target/43920
1656         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1657         function.
1658         (old_insns_match_p): Change return type.  Replace return false/true
1659         with return dir_none/dir_both.  Use can_replace_by.
1660         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1661         direction from dir_p.  Register replacement direction in dir, last_dir
1662         and afterlast_dir.  Handle new return type of old_insns_match_p using
1663         merge_dir.  Return replacement direction in dir_p.
1664         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1665         return type of old_insns_match_p.
1666         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1667         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1668         flow_find_cross_jump.
1669         * basic-block.h (enum replace_direction): New type.
1670         (flow_find_cross_jump): Add parameter to declaration.
1671
1672 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1673
1674         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1675         (AVXMODEDCVTPS2DQ): Ditto.
1676         (VEC_FLOAT_MODE): Ditto.
1677         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1678         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1679         (<any_logic:code><mode>3): Use VF mode iterator.
1680         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1681         Use VF mode iterator.
1682         (copysign<mode>3): Use VF mode iterator.
1683         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1684         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1685         (*<any_logic:code><MODEF:mode>3): Merge with
1686         *avx_<any_logic:code><MODEF:mode>3.
1687         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1688         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1689         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1690         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1691         (sse2_cvtdq2ps): Use %v modifier.
1692         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1693         (avx_cvtps2dq<avxmodesuffix>): Remove.
1694         (sse2_cvtps2dq): Use %v modifier.
1695         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1696         (avx_cvttps2dq<avxmodesuffix>): Remove.
1697         (sse2_cvttps2dq): Use %v modifier.
1698         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1699         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1700         (sse2_cvtsd2siq): Fix insn template.
1701         (sse2_cvtsd2siq_2): Ditto.
1702         (sse2_cvttsd2siq): Ditto.
1703         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1704         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1705
1706 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1707
1708         * gcov-io.c: Use GCC Runtime Library Exception.
1709
1710 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
1711
1712         PR debug/48466
1713         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1714         as base_reg whatever register reg has been eliminated to, instead
1715         of hardcoding STACK_POINTER_REGNUM.
1716
1717 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * doc/tm.texi.in: Document C target hooks as separate from general
1720         target hooks.
1721         * doc/tm.texi: Regenerate.
1722         * genhooks.c (struct hook_desc): Add docname field.
1723         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
1724         docname field.
1725         (hook_array): Include c-target.def.
1726         (emit_documentation): Use docname field in output.
1727         (emit_init_macros): Take docname argument.  Only emit definitions
1728         for hooks matching docname.
1729         (main): Expect additional arguments in all cases.  Pass argument
1730         to emit_init_macros.
1731         * target.def: Move initial macro definitions and comments to
1732         target-hooks-macros.h.
1733         (gcc_targetcm): Move to c-family/c-target.def.
1734         * target.h (targetcm): Move declaration to c-family/c-target.h.
1735         * targhooks.c (default_handle_c_option): Move to
1736         c-family/c-opts.c.
1737         * targhooks.h (default_handle_c_option): Move declaration to
1738         c-family/c-common.h.
1739         * target-hooks-macros.h: New file.
1740         * config.gcc (target_has_targetcm): Define and use to add to
1741         c_target_objs and cxx_target_objs.
1742         * config/default-c.c: New file.
1743         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1744         of target.h and target-def.h.
1745         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1746         (darwin_objc_construct_string, darwin_cfstring_ref_p,
1747         darwin_check_cfstring_format_arg): Make static.
1748         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1749         TARGET_STRING_OBJECT_REF_TYPE_P,
1750         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1751         * config/darwin-protos.h (darwin_objc_construct_string,
1752         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1753         declare.
1754         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1755         TARGET_STRING_OBJECT_REF_TYPE_P,
1756         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1757         * config/t-darwin (darwin-c.o): Update dependencies.
1758         * system.h (TARGET_HAS_TARGETCM): Poison.
1759         * Makefile.in (TARGET_H): Update.
1760         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1761         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1762         (default-c.o): New target.
1763         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1764         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1765         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
1766         c-target.def.
1767         (build/genhooks.o): Update dependencies.
1768
1769 2011-04-06  Richard Guenther  <rguenther@suse.de>
1770
1771         * ipa-inline.c (enum inlining_mode): Remove.
1772         (cgraph_flatten): Use some other token.
1773         (cgraph_edge_early_inlinable_p): New function, split out from ...
1774         (cgraph_perform_always_inlining): New function, split out from ...
1775         (cgraph_decide_inlining_incrementally): ... here.
1776         (cgraph_mark_inline_edge): Adjust.
1777         (cgraph_early_inlining): Re-structure.
1778         (pass_early_inline): Require SSA form.
1779
1780 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
1781             Julian Brown  <julian@codesourcery.com>
1782             Mark Shinwell  <shinwell@codesourcery.com>
1783
1784         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1785         LO_REGS only for Thumb-1.
1786         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1787         be used in short instructions when optimising for size on Thumb-2.
1788
1789 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1790
1791         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1792         associated with user returns to be preserved.
1793
1794 2011-04-06  Tristan Gingold  <gingold@adacore.com>
1795
1796         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1797         symbol_queue_size, DBXOUT_DECR_NESTING,
1798         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1799         if XCOFF_DEBUGGING_INFO.
1800
1801 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1802
1803         * config/i386/i386.md (attribute isa): New.
1804         (attribute enabled): New.
1805         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1806         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1807         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1808         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1809         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1810         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1811         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1812         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1813
1814         * config/i386/sse.md (VF): New mode iterator.
1815         (VF1): Ditto.
1816         (VF2): Ditto.
1817         (VF_128): Ditto.
1818         (SSEMODEF4): Remove.
1819         (attribute sse): Handle V8SF and V4DF modes.
1820         (<absneg:code><mode>2): Use VF mode iterator.
1821         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
1822         mode iterator.
1823         (<plusminus_insn><mode>3): Use VF mode iterator.
1824         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1825         Use VF mode iterator.
1826         (<sse>_vm<plusminus_insn><mode>3): Merge with
1827         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
1828         (mul<mode>3): Use VF mode iterator.
1829         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
1830         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
1831         mode iterator.
1832         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1833         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1834         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
1835         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
1836         mode iterator.
1837         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1838         Use VF1 mode iterator.
1839         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1840         (sqrt<VF2:mode>2): New expander.
1841         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1842         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1843         and sqrtv2df2.  Use VF mode iterator.
1844         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
1845         mode iterator.
1846         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1847         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1848         Use VF1 mode iterator.
1849         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1850         (<smaxmin:code><mode>3): Use VF mode iterator.
1851         (*<smaxmin:code><mode>3_finite): Merge with
1852         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
1853         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1854         (<sse>_vm<smaxmin:code><mode>2): Merge with
1855         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
1856         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
1857         mode iterator.
1858         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
1859         mode iterator.
1860         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1861         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1862         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1863         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1864         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
1865         VF mode iterator.
1866         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1867         Use VF_128 mode iterator.
1868         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
1869         mode iterator.
1870         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
1871         VF_128 mode iterator.
1872         (vcond<mode>): Use VF mode iterator.
1873         * config/i386/predicates.md (sse_comparison_operator): Merge with
1874         avx_comparison_float_operator.  Do not declare as special_predicate.
1875         * config/i386/i386.c (struct builtin_description): Update for renamed
1876         compare patterns.
1877         (ix86_expand_args_builtin): Ditto.
1878         (ix86_expand_sse_compare_mask): Ditto.
1879
1880 2011-04-06  Richard Guenther  <rguenther@suse.de>
1881
1882         * tree-inline.c (estimate_num_insns): For calls simply account
1883         for all passed arguments and a used return value.
1884
1885 2011-04-06  Richard Guenther  <rguenther@suse.de>
1886
1887         PR tree-optimization/47663
1888         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1889         call_stmt_time fields.
1890         (cgraph_edge_inlinable_p): Declare.
1891         (cgraph_edge_recursive_p): New inline function.
1892         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1893         (cgraph_clone_edge): Copy it.
1894         * ipa-inline.c (cgraph_estimate_edge_time): New function.
1895         Account for call stmt time.
1896         (cgraph_estimate_time_after_inlining): Take edge argument.
1897         (cgraph_estimate_edge_growth): Account call stmt size.
1898         (cgraph_estimate_size_after_inlining): Take edge argument.
1899         (cgraph_mark_inline_edge): Adjust.
1900         (cgraph_check_inline_limits): Likewise.
1901         (cgraph_recursive_inlining_p): Remove.
1902         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1903         (cgraph_decide_recursive_inlining): Take edge argument and
1904         adjust.
1905         (cgraph_decide_inlining_of_small_functions): Do not avoid
1906         diags for recursive inlining here.
1907         (cgraph_flatten): Adjust.
1908         (cgraph_decide_inlining_incrementally): Likewise.
1909         (estimate_function_body_sizes): Remove call cost handling.
1910         (compute_inline_parameters): Initialize caller edge call costs.
1911         (cgraph_estimate_edge_growth): New function.
1912         (cgraph_estimate_growth): Use it.
1913         (cgraph_edge_badness): Likewise.
1914         (cgraph_check_inline_limits): Take an edge argument.
1915         (cgraph_decide_inlining_of_small_functions): Adjust.
1916         (cgraph_decide_inlining): Likewise.
1917         * tree-inline.c (estimate_num_insns): Only account for call
1918         return value if it is used.
1919         (expand_call_inline): Avoid diagnostics on recursive inline
1920         functions here.
1921         * lto-cgraph.c (lto_output_edge): Output edge call costs.
1922         (input_edge): Input edge call costs.
1923
1924 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1925
1926         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1927
1928 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1929
1930         * doc/invoke.texi (Spec Files): Fix typo.
1931
1932 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1933
1934         * profile.c (branch_prob): Move declaration of local variable.  Remove
1935         obsolete ??? comment.  Expand the location explicitly instead of using
1936         the LOCATION_FILE and LOCATION_LINE macros.
1937
1938 2011-04-06  Wei Guozhi  <carrot@google.com>
1939
1940         PR target/47855
1941         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1942         (arm_cond_branch): Likewise.
1943         (arm_cond_branch_reversed): Likewise.
1944         (arm_jump): Likewise.
1945         (push_multi): Likewise.
1946         * config/arm/constraints.md (Py): New constraint.
1947
1948 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1949
1950         PR bootstrap/48471
1951         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
1952         Move these...
1953         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
1954         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
1955         #ifdef DBX_DEBUGGING_INFO.
1956
1957 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
1958
1959         PR bootstrap/48403
1960         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
1961         if old and new states differ.
1962
1963 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
1964
1965         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
1966         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
1967         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1968         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
1969         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
1970         mcfv4e): Use Alias.
1971         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
1972         ColdFire options to -mcpu= options.
1973
1974 2011-04-05  Jeff Law  <law@redhat.com>
1975
1976         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
1977         check if BB is a successor of LOOP->header and return
1978         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
1979
1980 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1981
1982         * cprop.c (struct reg_use): Remove.
1983         (reg_use_table): Make an array of RTX.
1984         (find_used_regs, constprop_register, local_cprop_pass,
1985         bypass_block): Simplify users of reg_use_table.
1986         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
1987         on one of the uses found by find_used_regs.
1988
1989 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1990
1991         PR bootstrap/48469
1992         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
1993         declaration.
1994
1995 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1996
1997         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
1998         as an rtx.
1999         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2000
2001 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2002
2003         PR middle-end/48441
2004         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2005
2006 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2007
2008         * combine.c: Include obstack.h.
2009         (struct insn_link): Define.
2010         (uid_log_links): Adjust type.
2011         (FOR_EACH_LOG_LINK): New macro.
2012         (insn_link_obstack): Declare.
2013         (alloc_insn_link): Define.
2014         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2015         type of link variables.
2016         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2017         (try_combine, record_promoted_values, distribute_notes): Likewise.
2018         (distribute_links): Likewise.  Tweak prototype.
2019         (clear_log_links): Delete.
2020         (adjust_for_new_dest): Call alloc_insn_link.
2021         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2022
2023 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2024
2025         * gcse.c (modify_mem_list): Convert to an array of VECs.
2026         (canon_modify_mem_list, compute_transp): Tweak formatting.
2027         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2028         (load_killed_in_block_p): Likewise.
2029         (record_last_mem_set_info): Likewise.
2030         (clear_modify_mem_tables): Likewise.
2031
2032 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2033
2034         PR middle-end/48461
2035         * function.c (emit_use_return_register_into_block): Only define if
2036         HAVE_return.
2037
2038 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2039
2040         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2041
2042 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2043
2044         * config/rx/rx-opts.h: New.
2045         * config/rx/rx.c (rx_cpu_type): Remove.
2046         (rx_handle_option): Don't assert that global structures are in
2047         use.  Access variables via opts pointer.  Defer most handling of
2048         OPT_mint_register_.  Use error_at.
2049         (rx_option_override): Handle deferred OPT_mint_register_ here.
2050         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2051         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2052         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2053         (rx_cpu_types): New Enum and EnumValue entries.
2054         (mint-register=): Use Defer and use Var accordingly.
2055
2056 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2057
2058         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2059         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2060         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2061         Move these...
2062         (debug_free_queue, debug_nesting, symbol_queue_index):
2063         ...and these...
2064         * dbxout.c: ...to here.  Make static.
2065
2066 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2067
2068         * gcse.c (modify_pair): Define.  Define a VEC of it.
2069         (canon_modify_mem_list): Convert to an array of VECs.
2070         (free_insn_expr_list_list): Delete.
2071         (clear_modify_mem_tables): Call VEC_free instead.
2072         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2073         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2074         (canon_list_insert, compute_transp): Likewise.
2075
2076 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2077
2078         PR target/43920
2079         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2080         for size.
2081
2082 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2083
2084         PR target/43920
2085         * function.c (emit_use_return_register_into_block): New function.
2086         (thread_prologue_and_epilogue_insns): Use
2087         emit_use_return_register_into_block.
2088
2089 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2090
2091         PR target/43920
2092         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2093         insn.
2094
2095 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2096
2097         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2098
2099 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2100
2101         * config/arm/arm.md (define_constants for unspec): Replace with
2102         define_c_enum.
2103         (define_constants for unspecv): Replace with define_c_enum.
2104         * config/arm/neon.md (define_constants for unspec): Replace with
2105         define_c_enum.
2106
2107 2011-04-04  Richard Henderson  <rth@redhat.com>
2108
2109         PR bootstrap/48400
2110         * dwarf2out.c (output_line_info): Always emit line info from
2111         at least one section.
2112         (dwarf2out_init): Create text_section_line_info here ...
2113         (set_cur_line_info_table): ... not here.
2114
2115 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2116
2117         PR target/48380
2118         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2119         not called.
2120
2121         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2122
2123 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2124
2125         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2126         (expr_equiv_p): Remove.
2127         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2128         (hash_scan_set): Update call to insert_set_in_table.
2129         (dump_hash_table): Dump <dest, src> pair.
2130         (lookup_set): Simplify.  Lookup <dest, src> pair.
2131         (compute_transp): Remove, fold heavily simplified code into...
2132         (compute_local_properties): ...here.  Expect COMP and TRANSP
2133         unconditionally.
2134         (find_avail_set): Take set directly from struct expr.
2135         (find_bypass-set): Likewise.
2136         (bypass_block): Likewise.
2137         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2138
2139         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2140         checks on form of COND from find_implicit_sets to here.
2141         (find_implicit_sets): Cleanup control flow. Split critical edges
2142         if it exposes implicit sets.  Allocate/resize implicit_sets as
2143         necessary.
2144         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2145         changed something.  Run df_analyze after find_implicit_sets if any
2146         edges were split.  Do not allocate implicit_sets here.
2147
2148         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2149         (gcse_obstack): Renamed to cprop_obstack.
2150         (GNEW, GNEWVEC, GNEWVAR): Remove.
2151         (gmalloc): Remove.
2152         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2153         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2154         (gcse_alloc): Likewise, and rename to cprop_alloc.
2155         (alloc_gcse_men, free_gcse_mem): Remove.
2156         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2157         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2158         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2159
2160         * cprop.c (oprs_not_set_p): Remove.
2161         (mark_set, mark_clobber): Remove.
2162         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2163         (reg_not_set_p): New function.
2164         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2165         (cprop_insn): Likewise.
2166         (cprop_jump): Use FOR_EACH_EDGE.
2167
2168 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2169
2170         PR bootstrap/48403
2171         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2172         (rank_for_schedule): Use scheduled_insns vector instead of
2173         last_scheduled_insn.
2174         (ok_for_early_queue_removal): Likewise.
2175         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2176         we have a dbg_cnt.
2177         (choose_ready): Likewise.
2178         (commit_schedule): Use VEC_iterate.
2179         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2180         a dbg_cnt, use it and ensure the first insn is in the ready list.
2181         (haifa_sched_init): Allocate scheduled_insns.
2182         (sched_extend_ready_list): Don't allocate it; reserve space.
2183         (haifa_sched_finish): Free it.
2184
2185 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * optc-gen.awk: Always remove type from Variable entry before
2188         recording in var_seen.
2189
2190 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2191
2192         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2193         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2194         call to tidy_fallthru_edges.
2195
2196 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2197
2198         * doc/options.texi (ToLower): Document.
2199         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2200         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2201         * opts.h (cl_option): Add cl_tolower field.
2202         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2203         arguments with lowercase strings.
2204         * config/rx/rx.opt (mcpu=): Add ToLower.
2205         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2206         argument.
2207
2208 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2209
2210         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2211
2212 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2213
2214         * config/vax/vax.c: Include reload.h.
2215
2216 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2217
2218         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2219         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2220         (sparc_preferred_reload_class): New function.
2221
2222 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2223
2224         PR debug/48401
2225         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2226         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2227
2228 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2229
2230         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2231         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2232
2233 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2234
2235         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2236         (ASM_OUTPUT_ALIGNED_BSS): Define.
2237
2238 2011-04-03  Michael Matz  <matz@suse.de>
2239
2240         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2241         and next_slot members.
2242         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2243         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2244         (lto_streamer_cache_append): Declare.
2245         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2246         unsigned index, remove offset parameter, ensure that we append
2247         or update existing entries.
2248         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2249         parameter, update next_slot for append.
2250         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2251         parameter.
2252         (lto_streamer_cache_insert_at): Likewise.
2253         (lto_streamer_cache_append): New function.
2254         (lto_streamer_cache_lookup): Use unsigned index.
2255         (lto_streamer_cache_get): Likewise.
2256         (lto_record_common_node): Don't test tree_node_can_be_shared.
2257         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2258         (lto_streamer_cache_delete): Don't free offsets member.
2259         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2260         (lto_output_string_with_length): Use lto_output_data_stream.
2261         (lto_output_tree_header): Remove ix parameter, don't write it.
2262         (lto_output_builtin_tree): Likewise.
2263         (lto_write_tree): Adjust callers to above, don't track and write
2264         offset, write unsigned index.
2265         (output_unreferenced_globals): Don't emit all global vars.
2266         (write_global_references): Use unsigned indices.
2267         (lto_output_decl_state_refs): Likewise.
2268         (write_symbol): Likewise.
2269         * lto-streamer-in.c (lto_input_chain): Move earlier.
2270         (input_function): Use unsigned index.
2271         (input_alias_pairs): Don't read and then ignore all global vars.
2272         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2273         don't pass it back, use lto_streamer_cache_append.
2274         (lto_register_var_decl_in_symtab): Use unsigned index.
2275         (lto_register_function_decl_in_symtab): Likewise.
2276         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2277         index.
2278         (lto_get_builtin_tree): Don't read index, use
2279         lto_streamer_cache_append.
2280         (lto_read_tree): Adjust call to lto_materialize_tree.
2281
2282         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2283         don't use function calls in arguments to MIN.
2284
2285         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2286         twice.
2287
2288         * gimple.c (gimple_type_leader_entry): Mark deletable.
2289
2290 2011-04-03  Alan Modra  <amodra@gmail.com>
2291
2292         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2293
2294 2011-04-03  Michael Matz  <matz@suse.de>
2295
2296         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2297         an integer.
2298         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2299
2300 2011-04-03  Michael Matz  <matz@suse.de>
2301
2302         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2303         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2304         without function context.
2305         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2306         current_function_decl and cfun.
2307
2308 2011-04-03  Michael Matz  <matz@suse.de>
2309
2310         * tree.c (decl_init_priority_insert): Don't create entry for
2311         default priority.
2312         (decl_fini_priority_insert): Ditto.
2313         (fields_compatible_p, find_compatible_field): Remove.
2314         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2315         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2316
2317 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2318
2319         * combine.c (try_combine): Remove useless local variable.
2320
2321 2011-04-03  Richard Guenther  <rguenther@suse.de>
2322             Ira Rosen  <ira.rosen@linaro.org>
2323
2324         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2325         non-variable offsets and compare the remaining bases of the two
2326         accesses instead of looking for exact same data-ref.
2327
2328 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2329
2330         PR target/48416
2331         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2332
2333         * i386.c (ix86_is_msabi_thiscall): New helper function.
2334         (ix86_is_type_thiscall): New helper function.
2335         (ix86_comp_type_attributes): Handle thiscall for method-functions
2336         special.
2337         (init_cumulative_args): Likewise.
2338         (find_drap_reg): Likewise.
2339         (ix86_static_chain): Likewise.
2340         (x86_this_parameter): Likewise.
2341         (x86_output_mi_thunk): Likewise.
2342
2343 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2344             Nicolas Setton  <setton@adacore.com>
2345             Eric Botcazou  <ebotcazou@adacore.com>
2346
2347         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2348         (add_gnat_descriptive_type_attribute): New function.
2349         (gen_array_type_die): Call it.
2350         (gen_enumeration_type_die): Likewise.
2351         (gen_struct_or_union_type_die): Likewise.
2352         (modified_type_die): Likewise.
2353         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2354         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2355         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2356
2357 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2358
2359         PR bootstrap/48148
2360         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2361         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2362
2363         Revert:
2364         2011-03-17  Richard Guenther  <rguenther@suse.de>
2365
2366         PR bootstrap/48148
2367         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2368         origin for decls in other ltrans units.
2369         (input_varpool_node): Likewise.
2370
2371 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2372
2373         PR middle-end/48335
2374         * expr.c (expand_assignment): Handle all possibilities
2375         if TO_RTX is CONCAT.
2376         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2377         (store_split_bit_field): If SUBREG_REG (op0) or
2378         op0 itself has smaller mode than word, return it
2379         for offset 0 and const0_rtx for out-of-bounds stores.
2380         If word is const0_rtx, skip it.
2381
2382 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2383
2384         * config/h8300/h8300.c (print_operand_address): Rename to...
2385         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2386         Call h8300_print_operand and h8300_print_operand_address instead of
2387         print_operand and print_operand_address. Declare.
2388         (print_operand): Renake to...
2389         (h8300_print_operand): ...this. Make static. Adjust comments.
2390         Call h8300_print_operand instead of print_operand. Declare.
2391         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2392         (h8300_register_move_cost): Likewise.
2393         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2394         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2395         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2396         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2397         * config/h8300/h8300-protos.h (print_operand): Delete.
2398         (print_operand_address): Delete.
2399
2400 2011-04-01  Richard Henderson  <rth@redhat.com>
2401
2402         PR 48400
2403         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2404         in strict mode before dwarf4.  Re-order tests to early out
2405         before switching sections.
2406
2407 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2408
2409         * config/h8300/constraints.md: New file.
2410         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2411         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2412         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2413         * config/h8300/predicates.md (bit_operand): Likewise.
2414         (incdec_operand): Use satisfies_constraint_M and
2415         satisfies_constraint_O.  Don't use C code block.
2416         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2417         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2418         (compute_mov_length): Use satisfies_constraint_G.
2419         (fix_bit_operand): Use satisfies_constraint_U.
2420         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2421         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2422         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2423         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2424         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2425         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2426         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2427         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2428         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2429         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2430         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2431         (EXTRA_MEMORY_CONSTRAINT): Delete.
2432
2433 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2434             Michael Meissner  <meissner@linux.vnet.ibm.com>
2435
2436         PR target/48262
2437         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2438         operands, as per the specifications.
2439
2440         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2441         (vec_extract_evenv4sf): Ditto.
2442         (vec_extract_evenv8hi): Ditto.
2443         (vec_extract_evenv16qi): Ditto.
2444         (vec_extract_oddv4si): Ditto.
2445
2446 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2447
2448         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2449         high_pc attribute if the CU has no associated code. Only output
2450         DW_AT_entry_pc for CU if not generating strict dwarf and
2451         dwarf_version < 4.
2452
2453 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2454
2455         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2456         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2457         out of ...
2458         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2459         * final.c (final_start_function): Call the new function rather
2460         than using a NULL argument for dwarf2out_frame_debug.
2461
2462         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2463         that contains the prologue.
2464
2465         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2466         changed.  Print it in debugging output.
2467
2468         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2469
2470         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2471         Split most of the code into...
2472         (begin_move_insn): ... here.  New function.
2473         (ebb_sched_info): Add a pointer to it.
2474         * haifa-sched.c (scheduled_insns): New static variable.
2475         (sched_extend_ready_list): Allocate it.
2476         (schedule_block): Use it to record the order of scheduled insns.
2477         Perform RTL changes to move insns only after all scheduling
2478         decisions have been made.
2479         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2480         begin_move_insn field.
2481         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2482         * sched-int.h (struct haifa_sched_info): Remove second argument
2483         from begin_schedule_ready hook.  Add new member begin_move_insn.
2484         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2485         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2486
2487         * haifa-sched.c (prune_ready_list): New function, broken out of
2488         schedule_block.
2489         (schedule_block): Use it.
2490
2491 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2492
2493         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2494
2495 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2496
2497         * config.gcc (*-*-mingw*): Allow as option the
2498         posix threading model.
2499         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2500         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2501         definition.
2502         (CPP_SPEC): Add pthread/no-pthread handling.
2503         (LIB_SPEC): Likewise.
2504         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2505         (LIB_SPEC): Likewise.
2506         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2507         flag to pass -pthread option for shared libgcc build.
2508         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2509         for shared libgcc build.
2510         * config/i386/t-mingw-pthread: New file.
2511         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2512         New define to enable use of library pthread by default.
2513         * config/i386/mingw.opt (pthread): New driver option.
2514         (no-pthread): New driver option.
2515         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2516         * config/i386/mingw-w64.opt: Likewise.
2517
2518 2011-04-01  Gary Funck <gary@intrepid.com>
2519
2520         * c-decl.c (grokdeclarator): Fix formatting.
2521
2522 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2523
2524         * expr.c (emit_block_move_via_movmem): Use n_generator_args
2525         instead of n_operands.
2526         (set_storage_via_setmem): Likewise.
2527         * optabs.c (maybe_gen_insn): Likewise.
2528         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2529         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2530         (mips_expand_builtin_direct): Likewise.
2531         * config/spu/spu.c (expand_builtin_args): Likewise.
2532
2533 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2534
2535         * recog.h (insn_data_d): Add n_generator_args.
2536         * genoutput.c (data): Likewise.
2537         (output_insn_data): Print it.
2538         (max_opno, num_dups): Delete.
2539         (scan_operands): Just fill in "d->operand[...]".
2540         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2541
2542 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2543
2544         * gensupport.h (pattern_stats): New structure.
2545         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2546         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2547         (max_operand_1, max_operand_vec): Delete.
2548         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2549
2550 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
2551
2552         * emit-rtl.c (emit_pattern_after_setloc): New function.
2553         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2554         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2555         (emit_pattern_after): New function.
2556         (emit_insn_after, emit_jump_insn_after): Call it.
2557         (emit_call_insn_after, emit_debug_insn_after): Likewise.
2558         (emit_pattern_before_setloc): New function.
2559         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2560         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2561         Likewise.
2562         (emit_pattern_before): New function.
2563         (emit_insn_before, emit_jump_insn_before): Call it.
2564         (emit_call_insn_before, emit_debug_insn_before): Likewise.
2565
2566 2011-03-31  Richard Henderson  <rth@redhat.com>
2567
2568         * dwarf2out.c (dw_separate_line_info_ref): Remove.
2569         (dw_separate_line_info_entry): Remove.
2570         (enum dw_line_info_opcode): New.
2571         (dw_line_info_entry): Use it.
2572         (dw_line_info_table, dw_line_info_table_p): New.
2573         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2574         (line_info_table, line_info_label_num): Remove.
2575         (line_info_table_in_use): Remove.
2576         (separate_line_info_table): Remove.
2577         (separate_line_info_table_allocated): Remove.
2578         (separate_line_info_table_in_use): Remove.
2579         (LINE_INFO_TABLE_INCREMENT): Remove.
2580         (line_info_label_num): New.
2581         (cur_line_info_table): New.
2582         (text_section_line_info, cold_text_section_line_info): New.
2583         (separate_line_info): New.
2584         (SEPARATE_LINE_CODE_LABEL): Remove.
2585         (print_dwarf_line_table): Remove.
2586         (debug_dwarf): Don't dump it.
2587         (output_one_line_info_table): New.
2588         (output_line_info): Use it.
2589         (new_line_info_table): New.
2590         (set_cur_line_info_table): New.
2591         (dwarf2out_switch_text_section): Use it.
2592         (dwarf2out_begin_function): Likewise.
2593         (push_dw_line_info_entry): New.
2594         (dwarf2out_source_line): Rewrite for new line info tables.
2595         (dwarf2out_init): Remove dead initailizations.
2596
2597 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2598
2599         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2600         various flags.
2601         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2602         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2603         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2604         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2605         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2606         * opt-functions.awk (flag_init, switch_bit_fields): New.
2607         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2608         generate CL_MISSING_OK or CL_SAVE.
2609         * optc-gen.awk: Update to generate bit-field output as well as
2610         flags field.
2611         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2612         bit-field instead of CL_REJECT_DRIVER flag.
2613         * opts-common.c (generate_canonical_option,
2614         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2615         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2616         instead of CL_REJECT_NEGATIVE flag.
2617         * toplev.c (print_switch_values): Use cl_report bit-field instead
2618         of CL_REPORT flag.
2619
2620 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2621
2622         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2623         a zero minimum index only if it is redundant.
2624
2625 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2626
2627         PR rtl-optimization/48381
2628         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2629         instead of ira_class_hard_reg_index for calculating conflicting
2630         hard registers.
2631
2632 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2633
2634         * cprop.c: Clean up hash table building.
2635         (reg_avail_info): Remove.
2636         (oprs_available_p): Remove.
2637         (record_last_reg_set_info): Remove.
2638         (record_last_set_info): Remove.
2639         (reg_available_p): New function.
2640         (gcse_constant_p): Do not treat unfolded conditions as constants.
2641         (make_set_regs_unavailable): New function.
2642         (hash_scan_set): Simplify with new reg_available_p.
2643         (compute_hash_table_work): Traverse insns stream only once.
2644         Do not compute reg_avail_info. Traverse insns in reverse order.
2645         Record implicit sets after recording explicit sets from the block.
2646
2647 2011-03-31  Michael Matz  <matz@suse.de>
2648
2649         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2650
2651 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2652
2653         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2654         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2655         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2656         (h8300_mode_dependent_address_p): New function.
2657         (h8300_get_index): Make static.
2658
2659 2011-03-31  Jeff Law  <law@redhat.com>
2660
2661         * reload1.c (elimination_effects): Fix typo in recent change.
2662
2663         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2664         typo potentially leading to null pointer dereference.
2665
2666         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2667         (setup_save_areas): Corresponding changes to avoid useless
2668         assignments.
2669
2670         * jump.c (reversed_comparison_code_parts): Avoid successive return
2671         statements when REVERSE_CONDITION is defined.
2672
2673         * expr.c (expand_assignment): Avoid useless assignments.
2674         (expand_expr_real_1): Likewise.
2675         (expand_expr_real_2): Avoid useless statements.
2676
2677         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2678
2679         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2680
2681         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2682         statements.
2683
2684         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2685
2686 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2687
2688         PR target/47109
2689         * doc/tm.texi.in (TARGET_VERSION): Remove.
2690         * doc/tm.texi: Regenerate.
2691         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2692         * collect2.c (main): Don't use TARGET_VERSION.
2693         * mips-tdump.c (main): Don't use TARGET_VERSION.
2694         * mips-tfile.c (main): Don't use TARGET_VERSION.
2695         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2696         * config/rs6000/vxworksae.h: Remove.
2697         * config/alpha/alpha.h (TARGET_VERSION): Remove.
2698         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2699         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2700         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2701         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2702         * config/arm/arm.h (TARGET_VERSION): Remove.
2703         * config/arm/coff.h (TARGET_VERSION): Remove.
2704         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2705         * config/arm/elf.h (TARGET_VERSION): Remove.
2706         * config/arm/freebsd.h (TARGET_VERSION): Remove.
2707         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2708         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2709         * config/arm/pe.h (TARGET_VERSION): Remove.
2710         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2711         * config/arm/semi.h (TARGET_VERSION): Remove.
2712         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2713         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2714         * config/arm/vxworks.h (TARGET_VERSION): Remove.
2715         * config/avr/avr.h (TARGET_VERSION): Remove.
2716         * config/bfin/bfin.h (TARGET_VERSION): Remove.
2717         * config/fr30/fr30.h (TARGET_VERSION): Remove.
2718         * config/frv/frv.h (TARGET_VERSION): Remove.
2719         * config/h8300/h8300.h (TARGET_VERSION): Remove.
2720         * config/i386/cygwin.h (TARGET_VERSION): Remove.
2721         * config/i386/darwin.h (TARGET_VERSION): Remove.
2722         * config/i386/darwin64.h (TARGET_VERSION): Remove.
2723         * config/i386/djgpp.h (TARGET_VERSION): Remove.
2724         * config/i386/freebsd.h (TARGET_VERSION): Remove.
2725         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2726         * config/i386/gnu.h (TARGET_VERSION): Remove.
2727         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2728         * config/i386/i386elf.h (TARGET_VERSION): Remove.
2729         * config/i386/linux.h (TARGET_VERSION): Remove.
2730         * config/i386/linux64.h (TARGET_VERSION): Remove.
2731         * config/i386/lynx.h (TARGET_VERSION): Remove.
2732         * config/i386/mingw32.h (TARGET_VERSION): Remove.
2733         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2734         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2735         * config/i386/netware.h (TARGET_VERSION): Remove.
2736         * config/i386/nto.h (TARGET_VERSION): Remove.
2737         * config/i386/openbsd.h (TARGET_VERSION): Remove.
2738         * config/i386/vxworks.h (TARGET_VERSION): Remove.
2739         * config/ia64/elf.h (TARGET_VERSION): Remove.
2740         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2741         * config/ia64/hpux.h (TARGET_VERSION): Remove.
2742         * config/ia64/linux.h (TARGET_VERSION): Remove.
2743         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2744         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2745         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2746         * config/lm32/lm32.h (TARGET_VERSION): Remove.
2747         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2748         * config/m32c/m32c.h (TARGET_VERSION): Remove.
2749         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2750         * config/m32r/m32r.h (TARGET_VERSION): Remove.
2751         * config/m68k/linux.h (TARGET_VERSION): Remove.
2752         * config/m68k/m68k.h (TARGET_VERSION): Remove.
2753         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2754         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2755         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2756         * config/mep/mep.h (TARGET_VERSION): Remove.
2757         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2758         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2759         * config/mips/iris6.h (MACHINE_TYPE): Remove.
2760         * config/mips/linux.h (TARGET_VERSION): Remove.
2761         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2762         * config/mips/vxworks.h (TARGET_VERSION): Remove.
2763         * config/mmix/mmix.h (TARGET_VERSION): Remove.
2764         * config/mn10300/linux.h (TARGET_VERSION): Remove.
2765         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2766         * config/pa/pa.h (TARGET_VERSION): Remove.
2767         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2768         * config/picochip/picochip.h (TARGET_VERSION): Remove.
2769         * config/rs6000/aix.h (TARGET_VERSION): Remove.
2770         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2771         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2772         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2773         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2774         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2775         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2776         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2777         * config/rs6000/linux.h (TARGET_VERSION): Remove.
2778         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2779         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2780         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2781         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2782         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2783         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2784         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2785         * config/s390/linux.h (TARGET_VERSION): Remove.
2786         * config/s390/s390.h (TARGET_VERSION): Remove.
2787         * config/s390/tpf.h (TARGET_VERSION): Remove.
2788         * config/score/score.h (TARGET_VERSION): Remove.
2789         * config/sh/linux.h (TARGET_VERSION): Remove.
2790         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2791         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2792         * config/sh/sh.h (TARGET_VERSION): Remove.
2793         * config/sh/sh64.h (TARGET_VERSION): Remove.
2794         * config/sh/superh.h (TARGET_VERSION): Remove.
2795         * config/sh/vxworks.h (TARGET_VERSION): Remove.
2796         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2797         * config/sparc/linux.h (TARGET_VERSION): Remove.
2798         * config/sparc/linux64.h (TARGET_VERSION): Remove.
2799         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2800         TARGET_NAME32, TARGET_NAME): Remove.
2801         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2802         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2803         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2804         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2805         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2806         * config/spu/spu.h (TARGET_VERSION): Remove.
2807         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2808         * config/v850/v850.h (TARGET_VERSION): Remove.
2809         * config/vax/linux.h (TARGET_VERSION): Remove.
2810         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2811         * config/xtensa/elf.h (TARGET_VERSION): Remove.
2812         * config/xtensa/linux.h (TARGET_VERSION): Remove.
2813
2814 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2815
2816         PR target/48142
2817         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2818         frame-related from frame-unrelated adjustments to the stack pointer.
2819
2820 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
2821
2822         * common.opt (fdebug-types-section): Move earlier.
2823         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2824
2825 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
2826
2827         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2828         var.
2829
2830 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
2831
2832         * tree.h (CASE_CHAIN): Define.
2833         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2834         (gimple_redirect_edge_and_branch): Likewise.
2835
2836 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2837
2838         PR middle-end/48367
2839         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2840         calculation.
2841
2842 2011-03-30  Jeff Law  <law@redhat.com>
2843
2844         * PR bootstrap/48371
2845         * reload1.c (reload): Fix botch in last change.
2846
2847         * reload.h (struct reload): Fix typo introduced in last change.
2848
2849 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2850
2851         * config/arm/arm.opt (mhard-float, msoft-float): Mark
2852         Undocumented.  Remove help text.
2853         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2854         -mhard-float.
2855
2856 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2857
2858         * doc/options.texi (NegativeAlias): Document.
2859         (Alias): Mention NegativeAlias.
2860         * opt-functions.awk: Handle NegativeAlias.
2861         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2862         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2863         * opts.h (CL_NEGATIVE_ALIAS): Define.
2864         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2865         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2866         OPT_mspe_.
2867         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2868         Alias entries.
2869         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2870         mno-spe and mno-isel instead of mspe=no and -misel=no.
2871
2872 2011-03-29  Mark Wielaard  <mjw@redhat.com>
2873
2874         * common.opt (fdebug-types-section): New flag.
2875         * doc/invoke.texi: Document new -fno-debug-types-section flag.
2876         * dwarf2out.c (use_debug_types): New define.
2877         (struct die_struct): Mark die_id with GTY desc use_debug_types.
2878         (print_die): Guard output of type unit signatures using
2879         use_debug_types.
2880         (build_abbrev_table): Replace assert of dwarf_version >= 4
2881         with assert on use_debug_types.
2882         (size_of_die): Likewise.
2883         (unmark_dies): Likewise.
2884         (value_format): Decide AT_ref_external form on use_debug_types.
2885         (output_die): Replace dwarf_version version check guard with
2886         use_debug_types where appropriate.
2887         (modified_type_die): Likewise.
2888         (gen_reference_type_die): Likewise.
2889         (dwarf2out_start_source_file): Likewise.
2890         (dwarf2out_end_source_file): Likewise.
2891         (prune_unused_types_walk_attribs): Likewise.
2892         (dwarf2out_finish): Likewise.
2893
2894 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2895
2896         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2897
2898 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2899
2900         PR rtl-optimization/48332
2901         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2902         mode of input operand N and modeN to its actual mode.
2903
2904 2011-03-30  Jeff Law  <law@redhat.com>
2905
2906         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2907         define accessor macro.
2908         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2909         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2910         (reg_equiv_init): Likewise.
2911         (reg_equivs_size): New variable.
2912         (reg_equiv_init_size): Remove.
2913         (allocate_initial_values): Move prototype to here from....
2914         * integrate.h (allocate_initial_values): Remove prototype.
2915         * integrate.c: Include reload.h.
2916         (allocate_initial_values): Corresponding changes.
2917         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2918         (fix_reg_equiv_init, no_equiv): Corresponding changes.
2919         (update_equiv_regs): Corresponding changes.
2920         (ira): Corresponding changes.
2921         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2922         (push_secondary_reload): Corresponding changes.
2923         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2924         (make_memloc, find_reloads_address): Corresponding changes.
2925         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2926         (find_reloads_address_1): Corresponding changes.
2927         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2928         (refers_to_regno_for_reload_p): Corresponding changes.
2929         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2930         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2931         * reload1.c: Include ggc.h.
2932         (grow_reg_equivs): New function.
2933         (replace_pseudos_in, reload): Corresponding changes.
2934         (calculate_needs_all_insns, alter_regs): Corresponding changes.
2935         (eliminate_regs_1, elimination_effects): Corresponding changes.
2936         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2937         (delete_output_reload): Likewise.
2938         * caller-save.c (mark_referenced_regs): Corresponding changes.
2939         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2940         * frv/predicates.md (frv_load_operand): Corresponding changes.
2941         * microblaze/microblaze.c (double_memory_operand): Corresponding
2942         changes.
2943         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2944         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2945         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2946         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2947         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
2948         changes.
2949         * pa/pa.c (emit_move_sequence): Corresponding changes.
2950         * vax/vax.c (nonindexed_address_p): Corresponding changes.
2951
2952 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2953
2954         PR target/47551
2955         * config/arm/arm.c (coproc_secondary_reload_class): Handle
2956         structure modes.  Don't check neon_vector_mem_operand for
2957         vector or structure modes.
2958
2959 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2960             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2961
2962         PR target/43590
2963         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
2964         operand 1 and reshuffle the operands to match.
2965         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
2966
2967 2011-03-30  Christian Schüler  <cschueler@gmx.de>
2968
2969         PR driver/48208
2970         * config/c.opt (F): Added 'Driver' to -F option.
2971
2972         PR driver/48260
2973         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
2974           handler function.
2975         * config/darwin.opt: Added '-arch' option.
2976
2977 2011-03-30  Nick Clifton  <nickc@redhat.com>
2978
2979         * config/rx/rx.md: Add peepholes and patterns to combine
2980         extending loads and simple arithmetic instructions.
2981         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
2982         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
2983         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
2984         modes to use pre-decrement and post-increment addressing.
2985         (rx_is_restricted_memory_address): Add range checking of REG+INT
2986         addresses.
2987         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
2988         (rx_memory_move_cost): Adjust cost of stores.
2989         (rx_adjust_insn_length): New function.
2990
2991 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
2992
2993         PR c/48305
2994         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2995         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
2996         matching arg00/arg01 types.
2997
2998 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
2999
3000         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3001         last_location to UNKNOWN_LOCATION.
3002
3003 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3004
3005         PR target/48349
3006         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3007         FLOAT_SSE_REGS.
3008
3009 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3010             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3011
3012         PR bootstrap/48337
3013         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3014         Init(PROCESSOR_V7).
3015         (sparc_cpu): Likewise.
3016         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3017         PROCESSOR_V7.
3018
3019 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3020
3021         PR target/48336
3022         PR middle-end/48342
3023         PR rtl-optimization/48345
3024         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3025         hard regs for given mode from profitable regs when doing secondary
3026         allocation.
3027
3028 2011-03-29  Jeff Law  <law@redhat.com>
3029
3030         PR bootstrap/48327
3031         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3032         do_not_duplicate field.
3033         (lookup_redirection_data): Corresponding changes.
3034         (create_duplicates): Always create a template block.
3035         (redirect_edges): Remove code which reused the original block
3036         when it was going to become unreachable code.
3037         (thread_block): Don't set do_not_duplicate field.
3038
3039 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3040
3041         * lto-opts.c (register_user_option_p, lto_register_user_option):
3042         Make type argument unsigned.
3043         * lto-streamer.h (lto_register_user_option): Make type argument
3044         unsigned.
3045         * opth-gen.awk: Make CL_* macros unsigned.
3046         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3047         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3048         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3049         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3050         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3051         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3052         (find_opt): Make lang_mask argument unsigned.
3053
3054 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3055
3056         PR rtl-optimization/48331
3057         PR rtl-optimization/48334
3058         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3059         for any used algorithm.
3060
3061 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3062
3063         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3064         to parent_max.
3065
3066 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3067
3068         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3069         (alpha_option_override): Don't set alpha_sr_alias_set.
3070         (emit_frame_store_1): Use gen_frame_mem rather than calling
3071         set_mem_alias_set.
3072         (alpha_expand_epilogue): Ditto.
3073
3074 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3075
3076         PR tree-optimization/48290
3077         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3078         vectorization, check that relevant phis in the basic block after
3079         the inner loop are really inner loop's exit phis.
3080
3081 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3082
3083         PR debug/48190
3084         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3085         (cached_dw_loc_list_def): New structure.
3086         (cached_dw_loc_list): New typedef.
3087         (cached_dw_loc_list_table): New variable.
3088         (cached_dw_loc_list_table_hash): New function.
3089         (cached_dw_loc_list_table_eq): Likewise.
3090         (add_location_or_const_value_attribute): Take a bool cache_p.
3091         Cache the list when the parameter is true.
3092         (gen_formal_parameter_die): Update caller.
3093         (gen_variable_die): Likewise.
3094         (dwarf2out_finish): Likewise.
3095         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3096         while generating debug info for the decl.
3097         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3098         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3099         (resolve_addr): Cache the result of resolving a chain of
3100         location lists.
3101
3102 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3103
3104         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3105         conflict object hard regset nodes have intersecting hard reg sets.
3106
3107         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3108         after regstat_init_n_sets_and_refs.
3109
3110         * ira.c: Add more comments at the top.
3111         (setup_stack_reg_pressure_class, setup_pressure_classes):
3112         Add comments how we compute the register pressure classes.
3113         (setup_allocno_and_important_classes): Add more comments.
3114         (setup_class_translate_array, reorder_important_classes)
3115         (setup_reg_class_relations): Add comments.
3116
3117         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3118         start of the file.
3119
3120         * ira-color.c: Add 2011 to the Copyright line.
3121         (assign_hard_reg):  Add more comments.
3122         (improve_allocation): Ditto.
3123
3124         * ira-costs.c: Add 2011 to the Copyright line.
3125         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3126         comments.
3127         (setup_regno_cost_classes_by_mode): Ditto.
3128
3129         Initial patches from ira-improv branch:
3130
3131         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3132
3133         * ira-build.c: (ira_create_object): Remove initialization of
3134         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3135         (ira_create_allocno): Remove initialization of
3136         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3137         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3138         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3139         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3140         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3141         Initialize ALLOCNO_ADD_DATA.
3142         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3143         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3144         ALLOCNO_REG.
3145         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3146         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3147
3148         * ira.c (ira_reallocate): Remove.
3149         (setup_pressure_classes): Call
3150         ira_init_register_move_cost_if_necessary.  Use
3151         ira_register_move_cost instead of ira_get_register_move_cost.
3152         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3153         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3154
3155         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3156         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3157         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3158         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3159         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3160         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3161         Fix formatting.
3162         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3163         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3164         (struct allocno_color_data): New.
3165         (allocno_color_data_t): New typedef.
3166         (allocno_color_data): New definition.
3167         (ALLOCNO_COLOR_DATA): New macro.
3168         (struct object_color_data): New.
3169         (object_color_data_t): New typedef.
3170         (object_color_data): New definition.
3171         (OBJECT_COLOR_DATA): New macro.
3172         (update_copy_costs, calculate_allocno_spill_cost): Call
3173         ira_init_register_move_cost_if_necessary.  Use
3174         ira_register_move_cost instead of ira_get_register_move_cost.
3175         (move_spill_restore, update_curr_costs): Ditto.
3176         (allocno_spill_priority): Make it inline.
3177         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3178         (struct coalesce_data, coalesce_data_t): New.
3179         (allocno_coalesce_data): New definition.
3180         (ALLOCNO_COALESCE_DATA): New macro.
3181         (merge_allocnos, coalesced_allocno_conflict_p): Use
3182         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3183         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3184         (coalesce_allocnos): Ditto.
3185         (setup_coalesced_allocno_costs_and_nums): Ditto.
3186         (collect_spilled_coalesced_allocnos): Ditto.
3187         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3188         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3189         (coalesce_spill_slots): Ditto.
3190         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3191         free allocno_coalesce_data.
3192
3193         * ira-conflicts.c: Fix formatting.
3194         (process_regs_for_copy): Call
3195         ira_init_register_move_cost_if_necessary.  Use
3196         ira_register_move_cost instead of ira_get_register_move_cost.
3197         (build_object_conflicts): Optimize.
3198
3199         * ira-costs.c (record_reg_classes): Optimize.  Call
3200         ira_init_register_move_cost_if_necessary.  Use
3201         ira_register_move_cost, ira_may_move_in_cost, and
3202         ira_may_move_out_cost instead of ira_get_register_move_cost and
3203         ira_get_may_move_cost.
3204         (record_address_regs): Ditto.
3205         (scan_one_insn): Optimize.
3206         (find_costs_and_classes): Optimize.
3207         (process_bb_node_for_hard_reg_moves): Call
3208         ira_init_register_move_cost_if_necessary.  Use
3209         ira_register_move_cost instead of ira_get_register_move_cost.
3210
3211         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3212         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3213         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3214         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3215         definitions.
3216         (ira_initiate_emit_data, ira_finish_emit_data)
3217         (create_new_allocno): New functions.
3218         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3219         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3220         Use ira_register_move_cost instead of ira_get_register_move_cost.
3221
3222         * ira-int.h: Fix some comments.
3223         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3224         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3225         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3226         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3227         add_data.
3228         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3229         bitfield after mode.  Make hard_regno a short int.  Make
3230         hard_regno short.  Remove first_coalesced_allocno and
3231         next_coalesced_allocno.  Move mem_optimized_dest_p,
3232         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3233         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3234         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3235         temp, colorable_p.  Add new member add_data.
3236         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3237         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3238         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3239         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3240         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3241         (ALLOCNO_ADD_DATA): New macro.
3242         (ira_emit_data_t): New typedef.
3243         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3244         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3245         from struct ira_allocno.
3246         (ALLOCNO_EMIT_DATA): New macro.
3247         (ira_allocno_emit_data, allocno_emit_reg): New.
3248         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3249         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3250         (OBJECT_ADD_DATA): New macro.
3251         (ira_reallocate): Remove.
3252         (ira_initiate_emit_data, ira_finish_emit_data): New.
3253         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3254         (ira_init_register_move_cost_if_necessary): New.
3255         (ira_object_conflict_iter_next): Merge into
3256         ira_object_conflict_iter_cond.
3257         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3258
3259         * ira-live.c: (process_single_reg_class_operands): Call
3260         ira_init_register_move_cost_if_necessary.  Use
3261         ira_register_move_cost instead of ira_get_register_move_cost.
3262
3263         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3264
3265         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3266
3267         * ira-costs.c: Fix formatting.
3268         (cost_classes, cost_classes_num): Remove.
3269         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3270         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3271         (cost_classes_del, cost_classes_htab): New.
3272         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3273         (initiate_regno_cost_classes, setup_cost_classes): New.
3274         (setup_regno_cost_classes_by_aclass): New.
3275         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3276         (record_reg_classes): Use regno_cost_classes instead of
3277         cost_classes.  Move checking opposite operand up.
3278         (record_address_regs): Use regno_cost_classes
3279         instead of cost_classes.
3280         (scan_one_insn): Ditto.  Use always general register.
3281         (print_allocno_costs): Use regno_cost_classes instead of
3282         cost_classes.
3283         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3284         (find_costs_and_classes): Set up cost classes for each registers.
3285         Use also their mode for this.  Use regno_cost_classes instead of
3286         cost_classes.
3287         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3288         cost_classes.
3289         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3290         (ira_costs, ira_set_pseudo_classes): Call
3291         initiate_regno_cost_classes and finish_regno_cost_classes.
3292
3293         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3294
3295         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3296
3297         * target.def (ira_cover_classes): Remove.
3298
3299         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3300
3301         * doc/tm.texi.in: Ditto.
3302
3303         * ira-conflicts.c: Remove mentioning cover classes from the file.
3304         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3305         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3306
3307         * targhooks.c (default_ira_cover_classes): Remove.
3308
3309         * targhooks.h (default_ira_cover_classes): Ditto.
3310
3311         * haifa-sched.c: Remove mentioning cover classes from the file.
3312         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3313         ira_pressure_classes and ira_pressure_classes_num instead of
3314         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3315         sched_regno_pressure_class instead of sched_regno_cover_class.
3316         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3317         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3318
3319         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3320         classes from the file.
3321         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3322         (struct object_hard_regs, struct object_hard_regs_node): New.
3323         (struct ira_object): New members profitable_hard_regs,
3324         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3325         (struct ira_allocno): Rename cover_class to aclass.  Rename
3326         cover_class_cost and updated_cover_class_cost to class_cost and
3327         updated_class_cost.  Remove splay_removed_p and
3328         left_conflict_size.  Add new members colorable_p.
3329         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3330         (ALLOCNO_COLORABLE_P): New macro.
3331         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3332         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3333         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3334         (OBJECT_...): Rename parameter C to O.
3335         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3336         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3337         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3338         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3339         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3340         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3341         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3342         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3343         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3344         x_ira_reg_class_subunion.
3345         (ira_max_memory_move_cost, ira_max_register_move_cost)
3346         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3347         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3348         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3349         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3350         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3351         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3352         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3353         (ira_tune_allocno_costs_and_cover_classes): Rename to
3354         ira_tune_allocno_costs.
3355         (ira_debug_hard_regs_forest): New.
3356         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3357         (ira_object_conflict_iter_next): Fix comments.
3358         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3359         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3360         cover_class to aclass.
3361         (ira_allocate_and_accumulate_costs): Ditto.
3362         (ira_allocate_and_set_or_copy_costs): Ditto.
3363
3364         * opts.c (decode_options): Remove ira_cover_class check.
3365
3366         * ira-color.c: Remove mentioning cover classes from the file.  Use
3367         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3368         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3369         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3370         (splay-tree.h): Remove include.
3371         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3372         before copy_freq_compare_func.
3373         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3374         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3375         New definitions.
3376         (hard_regs_roots, hard_regs_node_vec): Ditto.
3377         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3378         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3379         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3380         (create_new_object_hard_regs_node): Ditto.
3381         (add_new_object_hard_regs_node_to_forest): Ditto.
3382         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3383         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3384         Ditto.
3385         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3386         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3387         (remove_unused_object_hard_regs_nodes): Ditto.
3388         (enumerate_object_hard_regs_nodes): Ditto.
3389         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3390         (object_hard_regs_subnode_t): Ditto.
3391         (struct object_hard_regs_subnode): Ditto.
3392         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3393         (setup_object_hard_regs_subnode_index): Ditto.
3394         (get_object_hard_regs_subnodes_num): Ditto.
3395         (form_object_hard_regs_nodes_forest): Ditto.
3396         (finish_object_hard_regs_nodes_tree): Ditto.
3397         (finish_object_hard_regs_nodes_forest): Ditto.
3398         (allocnos_have_intersected_live_ranges_p): Rename to
3399         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3400         (pseudos_have_intersected_live_ranges_p): Rename to
3401         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3402         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3403         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3404         (update_copy_costs): Remove assert.  Skip cost update if the hard
3405         reg does not belong the class.
3406         (assign_hard_reg): Process only profitable hard regs.
3407         (uncolorable_allocnos_num): Make it scalar.
3408         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3409         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3410         and ira_reg_class_max_nregs.
3411         (bucket_allocno_compare_func): Check frequency first.
3412         (sort_bucket): Add compare function as a parameter.
3413         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3414         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3415         (push_allocno_to_stack): Rewrite for checking new allocno
3416         colorability.
3417         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3418         (push_only_colorable): Pass new parameter to sort_bucket.
3419         (push_allocno_to_spill): Remove.
3420         (allocno_spill_priority_compare): Make it inline and rewrite.
3421         (splay_tree_allocate, splay_tree_free): Remove.
3422         (allocno_spill_sort_compare): New function.
3423         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3424         build and use splay tree.  Choose first allocno in uncolorable
3425         allocno bucket to spill.  Remove setting spill cost.
3426         (all_conflicting_hard_regs): Remove.
3427         (setup_allocno_available_regs_num): Check only profitable hard
3428         regs.  Print info about hard regs nodes.
3429         (setup_allocno_left_conflicts_size): Remove.
3430         (put_allocno_into_bucket): Don't call
3431         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3432         (improve_allocation): New.
3433         (color_allocnos): Call setup_profitable_hard_regs,
3434         form_object_hard_regs_nodes_forest, improve_allocation,
3435         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3436         (print_loop_title): Use pressure classes.
3437         (color_allocnso): Ditto.
3438         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3439         and allocnos_for_spilling.
3440         (ira_sort_regnos_for_alter_reg): Don't setup members
3441         {first,next}_coalesced_allocno.
3442         (color): Remove allocating and freeing removed_splay_allocno_vec.
3443         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3444         prohibited_class_mode_regs.
3445
3446         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3447         formatting.
3448         (update_allocno_pressure_excess_length): Use pressure classes.
3449         (inc_register_pressure, dec_register_pressure): Check for pressure
3450         class.
3451         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3452         pressure class.  Use ira_reg_class_nregs instead of
3453         ira_reg_class_max_nregs.
3454         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3455         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3456         (single_reg_class): Use ira_reg_class_nregs instead of
3457         ira_reg_class_max_nregs.
3458         (process_bb_node_lives): Use pressure classes.
3459
3460         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3461         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3462         (change_loop): Use pressure classes.
3463         (modify_move_list): Call ira_set_allocno_class instead of
3464         ira_set_allocno_cover_class.
3465
3466         * ira-build.c: Remove mentioning cover classes from the file.  Use
3467         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3468         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3469         ALLOCNO_UPDATED_CLASS_COST instead of
3470         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3471         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3472         (ira_create_allocno): Remove initialization of
3473         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3474         ALLOCNO_COLORABLE_P.
3475         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3476         Update conflict regs for the objects.
3477         (create_cap_allocno): Remove assert.  Don't propagate
3478         ALLOCNO_AVAILABLE_REGS_NUM.
3479         (ira_free_allocno_costs): New function.
3480         (finish_allocno): Change a part of code into call of
3481         ira_free_allocno_costs.
3482         (low_pressure_loop_node_p): Use pressure classes.
3483         (object_range_compare_func): Don't compare classes.
3484         (setup_min_max_conflict_allocno_ids): Ditto.
3485
3486         * loop-invariant.c: Remove mentioning cover classes from the file.
3487         Use ira_pressure_classes and ira_pressure_classes_num instead of
3488         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3489         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3490         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3491         Use reg_allocno_class instead of reg_cover_class.
3492         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3493         STACK_REG_COVER_CLASS.
3494         (get_regno_cover_class): Rename to get_regno_pressure_class.
3495         (move_loop_invariants): Initialize and finalize regstat.
3496
3497         * ira.c: Remove mentioning cover classes from the file.  Add
3498         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3499         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3500         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3501         setup_class_subset_and_memory_move_costs.
3502         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3503         (setup_cover_and_important_classes): Rename to
3504         setup_allocno_and_important_classes.
3505         (setup_class_translate_array): New.
3506         (setup_class_translate): Call it for allocno and pressure classes.
3507         (cover_class_order): Rename to allocno_class_order.
3508         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3509         of ira_class_translate.
3510         (reorder_important_classes): Set up ira_important_class_nums.
3511         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3512         (print_class_cover): Rename to print_classes.  Add parameter.
3513         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3514         Print pressure classes too.
3515         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3516         setup_reg_subclasses.
3517         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3518         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3519         (setup_prohibited_class_mode_regs): Use
3520         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3521         (clarify_prohibited_class_mode_regs): New function.
3522         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3523         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3524         (ira_init_once): Initialize them.
3525         (free_register_move_costs): Process them.
3526         (ira_init): Move calls of find_reg_classes and
3527         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3528         Call clarify_prohibited_class_mode_regs.
3529         (ira_no_alloc_reg): Remove.
3530         (too_high_register_pressure_p): Use pressure classes.
3531
3532         * sched-deps.c: Remove mentioning cover classes from the file.
3533         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3534         ira_pressure_classes and ira_pressure_classes_num instead of
3535         ira_reg_class_cover_size and ira_reg_class_cover.
3536         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3537         sched_regno_pressure_class instead of sched_regno_cover_class.
3538         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
3539         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3540
3541         * ira.h: Add 2010 to Copyright.
3542         (ira_no_alloc_reg): Remove external.
3543         (struct target_ira): Rename x_ira_hard_regno_cover_class,
3544         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3545         x_ira_class_translate to x_ira_hard_regno_allocno_class,
3546         x_ira_allocno_classes_num, x_ira_allocno_classes, and
3547         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
3548         x_ira_pressure_classes, x_ira_pressure_class_translate, and
3549         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
3550         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
3551         x_ira_no_alloc_regs.
3552         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3553         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3554         ira_allocno_classes_num and ira_allocno_classes.
3555         (ira_class_translate): Rename to ira_allocno_class_translate.
3556         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3557         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3558         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3559         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3560         (ira_no_alloc_regs): New.
3561
3562         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
3563         classes from the file.  Use ALLOCNO_CLASS instead of
3564         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
3565         ALLOCNO_COVER_CLASS_COST.
3566         (regno_cover_class): Rename to regno_aclass.
3567         (record_reg_classes): Use ira_reg_class_subunion instead of
3568         ira_reg_class_union.
3569         (record_address_regs): Check overflow.
3570         (scan_one_insn): Ditto.
3571         (print_allocno_costs): Print total mem cost fore regional allocation.
3572         (print_pseudo_costs): Use REG_N_REFS.
3573         (find_costs_and_classes): Use classes intersected with them on the
3574         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
3575         ira_reg_class_union.  Use ira_allocno_class_translate and
3576         regno_aclass instead of ira_class_translate and regno_cover_class.
3577         Modify code for finding regno_aclass.  Setup preferred classes for
3578         the next pass.
3579         (setup_allocno_cover_class_and_costs): Rename to
3580         setup_allocno_class_and_costs.  Use regno_aclass instead of
3581         regno_cover_class.  Use ira_set_allocno_class instead of
3582         ira_set_allocno_cover_class.
3583         (init_costs, finish_costs): Use regno_aclass instead of
3584         regno_cover_class.
3585         (ira_costs): Use setup_allocno_class_and_costs instead of
3586         setup_allocno_cover_class_and_costs.
3587         (ira_tune_allocno_costs_and_cover_classes): Rename to
3588         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
3589         by processing objects.  Use ira_reg_class_max_nregs instead of
3590         ira_reg_class_nregs.
3591
3592         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3593
3594         * sched-int.h: Remove mentioning cover classes from the file.
3595         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3596
3597         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3598         classes from the file.
3599         (struct reg_pref): Rename coverclass into allocnoclass.
3600         (reg_cover_class): Rename to reg_allocno_class.
3601
3602         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3603
3604         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3605
3606         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3607
3608         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3609
3610         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3611
3612         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3613
3614         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3615
3616         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3617
3618         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3619
3620         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3621
3622         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3623         (i386_ira_cover_classes): Ditto.
3624
3625         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3626
3627         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3628
3629         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3630
3631         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3632
3633         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3634
3635         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3636
3637         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3638         (mips_ira_cover_classes): Ditto.
3639
3640         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3641
3642         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3643
3644         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3645
3646         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3647
3648         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3649
3650         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3651         (IRA_COVER_CLASSES_VSX): Ditto.
3652
3653         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3654         (rs6000_ira_cover_classes): Ditto.
3655
3656         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3657
3658         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3659
3660         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3661
3662         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3663
3664         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3665
3666         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3667
3668         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3669
3670         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3671
3672         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3673
3674         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3675
3676 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3677
3678         PR debug/48253
3679         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3680         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3681         dw_fde_unlikely_section_end_label, cold_in_std_section,
3682         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3683         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3684         fields.
3685         (output_fde): Use dw_fde_second_{begin,end} if second is
3686         true, otherwise dw_fde_{begin,end}.
3687         (output_call_frame_info): Test dw_fde_second_begin != NULL
3688         instead of dw_fde_switched_sections.
3689         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3690         fields, initialize new fields.  Initialize in_std_section
3691         unconditionally from the first partition.
3692         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3693         dw_fde_second_begin is non-NULL.
3694         (dwarf2out_switch_text_section): Stop initializing removed
3695         dw_fde_struct fields, initialize new fields, initialize
3696         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3697         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
3698         (struct var_loc_list_def): Add last_before_switch field.
3699         (arange_table, arange_table_allocated, arange_table_in_use,
3700         ARANGE_TABLE_INCREMENT, add_arange): Removed.
3701         (size_of_aranges): Count !in_std_section and !second_in_std_section
3702         hunks in fdes, instead of looking at arange_table_in_use.
3703         (output_aranges): Add aranges_length argument, don't call
3704         size_of_aranges here.  Instead of using aranges_table*
3705         emit ranges for fdes when !in_std_section resp.
3706         !second_in_std_section.
3707         (dw_loc_list): Break ranges crossing section switch.
3708         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
3709         use dw_fde_second_end instead of dw_fde_end as end of last range.
3710         (gen_subprogram_die): Don't call add_arange.  Use
3711         dw_fde_{begin,end} for first partition and if switched
3712         section dw_fde_second_{begin,end} for the second.
3713         (var_location_switch_text_section_1,
3714         var_location_switch_text_section): New functions.
3715         (dwarf2out_begin_function): Initialize cold_text_section even
3716         when function_section () isn't text_section.
3717         (prune_unused_types): Don't walk arange_table.
3718         (dwarf2out_finish): Don't needlessly test
3719         flag_reorder_blocks_and_partition when testing cold_text_section_used.
3720         If info_section_emitted, call size_of_aranges and if it indicates
3721         non-empty .debug_aranges, call output_aranges with the computed
3722         size.  Stop using removed dw_fde_struct fields, use
3723         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3724         for second.
3725
3726         PR debug/48203
3727         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3728         create ENTRY_VALUE if incoming or address of incoming's MEM
3729         is a hard REG.
3730         * dwarf2out.c (mem_loc_descriptor): Don't emit
3731         DW_OP_GNU_entry_value of DW_OP_fbreg.
3732         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3733         on ENTRY_VALUE is able to find the canonical parameter VALUE.
3734         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3735         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3736         ENTRY_VALUE_EXPs.
3737         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3738         is a REG_P or MEM_P with REG_P address, compute hash directly
3739         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3740         (preserve_only_constants): Don't clear VALUES forwaring
3741         ENTRY_VALUE to some other VALUE.
3742
3743 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3744
3745         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3746         instead of GEN_INT.
3747
3748 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3749
3750         * cfgexpand.c (expand_gimple_cond): Always set the source location and
3751         block before expanding the statement.
3752         (expand_gimple_stmt_1): Likewise.  Set them here...
3753         (expand_gimple_stmt): ...and not here.  Tidy.
3754         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3755         unknown.
3756
3757 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3758
3759         * Makefile.in: New rule for cprop.o.
3760         * gcse.c: Move constant/copy propagation to cprop.c.
3761         (compute_local_properties): Only handle expression tables.
3762         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3763         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3764         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3765         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3766         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3767         compute_cprop_data, find_used_regs, try_replace_reg,
3768         find_avail_set, cprop_jump, constprop_register, cprop_insn,
3769         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3770         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3771         find_bypass_set, reg_killed_on_edge, bypass_block,
3772         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3773         execute_rtl_cprop, pass_rtl_cprop): Move to...
3774         * cprop.c: ...here.  New file, constant/copy propagation for RTL
3775         moved from gcse.c to here with minor cleanups in duplicated code.
3776
3777 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3778
3779         * config/i386/i386.c (flag_opts): Fix a typo in
3780         -mavx256-split-unaligned-store.
3781
3782 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3783
3784         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3785         LIBCALL_VALUE): Remove macros.
3786         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3787         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3788         (h8300_function_value, h8300_libcall_value,
3789         h8300_function_value_regno_p): New functions.
3790
3791 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3792
3793         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3794
3795 2011-03-28  Jeff Law  <law@redhat.com>
3796
3797         * tree-ssa-threadupdate.c (redirect_edges): Call
3798         create_edge_and_update_destination_phis as needed.
3799         (create_edge_and_update_destination_phis): Accept new BB argument.
3800         All callers updated.
3801         (thread_block): Do not update the profile when threading around
3802         intermediate blocks.
3803         (thread_single_edge): Likewise.
3804         (determine_bb_domination_status): If BB is not a successor of the
3805         loop header, return NONDOMINATING.
3806         (register_jump_thread): Note when we register a jump thread around
3807         an intermediate block.
3808         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3809         (thread_across_edge): Use it.
3810
3811 2011-03-28  Tristan Gingold  <gingold@adacore.com>
3812
3813         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3814         when for_return is 2.
3815
3816 2011-03-28  Jeff Law  <law@redhat.com>
3817
3818         * var-tracking.c (canonicalize_values_mark): Delete unused
3819         lhs assignment.
3820         (canonicalize_values_star, set_variable_part): Likewise.
3821         (clobber_variable_part, delete_variable_part): Likewise.
3822
3823 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3824
3825         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3826
3827 2011-03-28  Martin Jambor  <mjambor@suse.cz>
3828
3829         * tree-inline.c (expand_call_inline): Do not check that destination
3830         node is analyzed.
3831         (optimize_inline_calls): Assert that destination node is analyzed.
3832         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3833         not call tree_lowering_passes.
3834         * cgraph.h (cgraph_analyze_function): Declare.
3835         * cgraphunit.c (cgraph_analyze_function): Make public.
3836
3837 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
3838
3839         * config/sparc/sparc-opts.h: New.
3840         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3841         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3842         (sparc_option_override): Store processor_type enumeration rather
3843         than string in cpu_default.  Remove name and enumeration from
3844         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
3845         without using sparc_select.  Use target_flags_explicit instead of
3846         fpu_option_set.
3847         * config/sparc/sparc.h (enum processor_type): Move to
3848         sparc-opts.h.
3849         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3850         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3851         HeaderInclude entry.
3852         (mcpu=, mtune=): Use Var and Enum.
3853         (sparc_processor_type): New Enum and EnumValue entries.
3854
3855 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3856             Iain Sandoe  <iains@gcc.gnu.org>
3857
3858         PR target/48245
3859         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3860
3861 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3862
3863         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3864         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3865         Insert new statements at it in lieu of STMT.
3866         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3867         * tree-vect-stmts.c (vectorizable_store): Likewise.
3868         (vectorizable_load): Likewise.
3869
3870 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
3871
3872         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3873         (divtf3): Ditto.
3874         (multf3): Ditto.
3875         (subtf3): Ditto.
3876
3877 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3878
3879         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3880         unaligned 256bit load/store.
3881         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3882         (*avx_movdqu<avxmodesuffix>): Likewise.
3883
3884 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3885
3886         PR target/48288
3887         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3888         * config/pa/pa.md (iordi3): Use new predicate in expander.
3889         (iorsi3): Likewise.
3890
3891 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
3892
3893         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3894         FUNCTION_VALUE_REGNO_P): Remove macros.
3895         * config/mips/mips-protos.h (mips_function_value): Remove.
3896         * config/mips/mips.c (mips_function_value): Rename to...
3897         (mips_function_value_1): ... this. Make static.  Handle receiving
3898         the function type in 'fn_decl_or_type' argument.
3899         (mips_function_value, mips_libcall_value,
3900         mips_function_value_regno_p): New function.
3901         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3902         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3903
3904 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3905
3906         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3907         and -mavx256-split-unaligned-store.
3908         (ix86_option_override_internal): Split 32-byte AVX unaligned
3909         load/store by default.
3910         (ix86_avx256_split_vector_move_misalign): New.
3911         (ix86_expand_vector_move_misalign): Use it.
3912
3913         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3914         -mavx256-split-unaligned-store.
3915
3916         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3917         256bit load/store.  Generate unaligned store on misaligned memory
3918         operand.
3919         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3920         256bit load/store.
3921         (*avx_movdqu<avxmodesuffix>): Likewise.
3922
3923         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3924         -mavx256-split-unaligned-store.
3925
3926 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3927
3928         PR target/38598
3929         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3930         Update commentary.
3931
3932 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3933
3934         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3935         opno arguments with an expand_operand.  Use create_input_operand.
3936         (mips_prepare_builtin_target): Delete.
3937         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3938         functions.
3939         (mips_expand_builtin_direct): Use create_output_operand and
3940         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
3941         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
3942         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3943
3944 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
3945
3946         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3947         function.
3948         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3949
3950 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
3951
3952         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
3953         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
3954         basic blocks and call commit_edge_insertions directly.
3955         (fixup_abnormal_edges): Move from here to...
3956         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
3957         on the edges and return whether some have actually been inserted.
3958         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
3959         compensation code.
3960
3961 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
3962
3963         PR rtl-optimization/48144
3964         * sel-sched-ir.c (merge_history_vect): Factor out from ...
3965         (merge_expr_data): ... here.
3966         (av_set_intersect): Rename to av_set_code_motion_filter.
3967         Update all callers.  Call merge_history_vect when an expression
3968         is found in both sets.
3969         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
3970
3971 2011-03-26  Alan Modra  <amodra@gmail.com>
3972
3973         * config/rs6000/predicates.md (word_offset_memref_op): Handle
3974         cmodel medium addresses.
3975         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
3976         64-bit gpr loads and stores.
3977         (rs6000_secondary_reload_ppc64): New function.
3978         * config/rs6000/rs6000-protos.h: Declare it.
3979         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
3980
3981 2011-03-26  Alan Modra  <amodra@gmail.com>
3982
3983         PR target/47487
3984         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
3985         GNU Go in traceback table.
3986
3987 2011-03-25  Richard Henderson  <rth@redhat.com>
3988
3989         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
3990         if there are exactly 6 operands.
3991         (set_storage_via_setmem): Similarly.
3992
3993 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3994
3995         * collect2.c (write_c_file_stat): Handle backslash
3996         as right-hand directory separator.
3997         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
3998         checking just for slash.
3999         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4000         instead of checking for trailing slash.
4001         * gcc.c (record_temp_file): Use filename_cmp instead
4002         of strcmp.
4003         (do_spec_1): Likewise.
4004         (replace_outfile_spec_function): Likewise.
4005         (is_directory): Use filename_ncmp instead of strncmp.
4006         (print_multilib_info): Likewise.
4007         * gcov.c (find_source): Use filename_cmp instead
4008         instead of strcmp.
4009         (make_gcov_file_name): Fix order of slash/backslash
4010         checks.
4011         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4012         (add_standard_paths): Likewise.
4013         * mips-tfile.c (saber_stop): Handle backslash.
4014         * prefix.c (update_path): Use filename_ncmp instead of
4015         strncmp.
4016         * profile.c (output_location): Use filename_cmp instead
4017         of strcmp.
4018         * read-md.c (handle_toplevel_file): Handle backslash.
4019         * tlink.c (frob_extension):  Likewise.
4020         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4021         strcmp.
4022         * tree-dump.c (dequeue_and_dump): Handle backslash.
4023         * tree.c (get_file_function_name): Likewise.
4024         * gengtype.c (read_input_list): Likewise.
4025         (get_file_realbasename): Likewise.
4026         (get_output_file_with_visibility): Use filename_cmp
4027         instead of strcmp.
4028
4029 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4030
4031         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4032         case to VFPv1.
4033
4034 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4035
4036         * fold-const.c (expr_location_or): New function.
4037         (fold_truth_not_expr): Call it.
4038
4039 2011-03-25  Jeff Law  <law@redhat.com>
4040
4041         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4042         va_end.
4043         * c-family/c-common.c (def_fn_type): Likewise.
4044         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4045         * emit-rtl.c (gen_rtvec): Likewise.
4046         * lto/lto-lang.c (def_fn_type): Likewise.
4047
4048 2011-03-25  Richard Guenther  <rguenther@suse.de>
4049
4050         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4051         also generate copies.
4052         (fini_copy_prop): Handle constant values properly.
4053
4054 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4055
4056         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4057         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4058         (hash_loc_operands, compare_loc_operands): Handle
4059         DW_OP_GNU_entry_value.
4060
4061 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4062
4063         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4064         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4065         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4066         comment and use macro TARGET_64BIT_MS_ABI instead.
4067         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4068         and change default behavior for 32-bit MS_ABI.
4069         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4070         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4071         32-bit, too.
4072         (ix86_cfun_abi): Likewise.
4073         (ix86_maybe_switch_abi): Adjust comment.
4074         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4075         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4076         instead of checking for SYSV_ABI.
4077         (ix86_nsaved_sseregs): Likewise.
4078         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4079         to 16 bytes.
4080         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4081         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4082         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4083         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4084         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4085
4086 2011-03-25  Richard Guenther  <rguenther@suse.de>
4087
4088         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4089         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4090         (verify_gimple): Remove.
4091         * tree-cfg.c (verify_gimple_call): Merge verification
4092         from verify_stmts.
4093         (verify_gimple_phi): Merge verification from verify_stmts.
4094         (verify_gimple_label): New function.
4095         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4096         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4097         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4098         (verify_stmts): Rename to verify_gimple_in_cfg.
4099         (verify_gimple_in_cfg): New function.
4100         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4101         * tree-ssa.c (verify_ssa): Likewise.
4102         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4103
4104 2011-03-25  Richard Guenther  <rguenther@suse.de>
4105
4106         * passes.c (init_optimization_passes): Add FRE pass after
4107         early SRA.
4108
4109 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4110             Andrew Stubbs  <ams@codesourcery.com>
4111
4112         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4113         for Cortex-A8.
4114         (arm_movdi_vfp_cortexa8): New pattern.
4115         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4116         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4117         instructions when tuning for Cortex-A8.  Set attribute "arch".
4118         * config/arm/arm.md: Move include arm-tune.md up a bit.
4119         (define_attr "arch"): Add "onlya8" and "nota8" values.
4120         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4121
4122 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4123
4124         PR bootstrap/48282
4125         Revert:
4126         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4127
4128         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4129         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4130         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4131         * passes.c (init_optimization_passes): Move
4132         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4133
4134 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4135
4136         * c-typeck.c (comptypes_internal): Replace target
4137         hook call of comp_type_attributes by version in tree.c file.
4138         * gimple.c (gimple_types_compatible_p_1): Likewise.
4139         * tree-ssa.c (useless_type_conversion_p): Likewise.
4140         * tree.c (build_type_attribute_qual_variant): Likewise.
4141         (attribute_value_equal): New static helper function.
4142         (comp_type_attributes): New function.
4143         (merge_attributes): Use attribute_value_equal for comparison.
4144         (attribute_list_contained): Likewise.
4145         * tree.h (comp_type_attributes): New prototype.
4146
4147 2011-03-25  Richard Guenther  <rguenther@suse.de>
4148
4149         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4150         of complex types at -O0.
4151         (verify_gimple_assign_binary): Likewise.
4152         (verify_gimple_assign_ternary): Likewise.
4153
4154 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4155
4156         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4157         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4158
4159 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4160
4161         PR debug/48041
4162         * dwarf2out.c (output_abbrev_section): Only write table when
4163         abbrev_die_table_in_use > 1.
4164
4165 2011-02-24  Richard Henderson  <rth@redhat.com>
4166
4167         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4168         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4169         (alpha_expand_unaligned_load_words): Use extql.
4170         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4171         (emit_insxl): Handle all modes for consistency.
4172
4173 2011-02-24  Richard Henderson  <rth@redhat.com>
4174
4175         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4176         (alpha_expand_unaligned_load): Likewise.
4177         (alpha_expand_unaligned_store): Likewise.
4178         (alpha_expand_unaligned_load_words): Likewise.
4179         (alpha_expand_unaligned_store_words): Likewise.
4180         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4181         (alpha_split_lock_test_and_set_12): Likewise.
4182         (print_operand, alpha_fold_builtin_extxx): Likewise.
4183         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4184         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4185         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4186         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4187         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4188         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4189         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4190         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4191         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4192         (extwl, extll, extql): Similarly.
4193         (inswh, inslh, insqh): Similarly.
4194         (mskbl, mskwl, mskll, mskql): Similarly.
4195         (mskwh, msklh, mskqh): Similarly.
4196
4197 2011-02-24  Richard Henderson  <rth@redhat.com>
4198
4199         * config/alpha/alpha.md (attribute isa): Add er, ner.
4200         (attribute enabled): Handle them.
4201         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4202
4203 2011-02-24  Richard Henderson  <rth@redhat.com>
4204
4205         * config/alpha/alpha.md (attribute isa): Add vms.
4206         (attribute enabled): Handle it.
4207         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4208         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4209         (*movtf): Rename from *movtf_internal for consistency.
4210         (*movsi): Merge with *movsi_nt_vms.
4211         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4212         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4213         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4214         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4215
4216 2011-02-24  Richard Henderson  <rth@redhat.com>
4217
4218         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4219         (extendqisi2, extendhisi2): Likewise.
4220         (extendqidi2): Simplify BWX/non-BWX expansions.
4221         (extendhidi2): Similarly.
4222
4223 2011-02-24  Richard Henderson  <rth@redhat.com>
4224
4225         * config/alpha/alpha.md (attribute isa): New.
4226         (attribute enabled): New.
4227         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4228         (zero_extendqisi2, zero_extendqidi2): Similarly.
4229         (zero_extendhisi2, zero_extendhidi2): Similarly.
4230         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4231
4232 2011-02-24  Richard Henderson  <rth@redhat.com>
4233
4234         * config/alpha/predicates.md (input_operand): Revert last change;
4235         update comment to mention 32-bit VMS rather than Windows.
4236
4237 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4238
4239         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4240         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4241         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4242         * passes.c (init_optimization_passes): Move
4243         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4244
4245 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4246
4247         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4248
4249 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4250
4251         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4252         correctly.
4253
4254 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4255
4256         PR debug/48204
4257         * simplify-rtx.c (simplify_const_unary_operation): Call
4258         real_convert when changing mode class with FLOAT_EXTEND.
4259
4260 2011-03-24  Nick Clifton  <nickc@redhat.com>
4261
4262         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4263         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4264         * config/rx/rx.c (rx_option_override): Set align_jumps,
4265         align_loops and align_labels if not set by the user.
4266         (rx_align_for_label): New function.
4267         (rx_max_skip_for_label): New function.
4268         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4269         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4270         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4271         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4272         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4273
4274 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4275
4276         PR rtl-optimization/48263
4277         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4278         and original commutative_p handling.  Use maybe_gen_insn.
4279
4280 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4281
4282         * reload.c (find_reloads_subreg_address): Add address_reloaded
4283         parameter and return true there if the full address has been
4284         reloaded.
4285         (find_reloads_toplev): Pass address_reloaded flag.
4286         (find_reloads_address_1): Don't use address_reloaded parameter.
4287
4288 2011-03-24  Jeff Law  <law@redhat.com>
4289
4290         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4291         unused variable "ann".
4292         (remove_unused_locals): Likewise.
4293
4294         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4295         statement.
4296
4297         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4298         after it is freed.
4299
4300 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4301
4302         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4303         for invalid symbolic addresses.
4304         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4305         larl operands.
4306
4307 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4308
4309         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4310         the argument in calls to fold_truth_not_expr.
4311
4312 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4313
4314         * tree.c (record_node_allocation_statistics): New function.
4315         (make_node_stat, copy_node_stat, build_string): Call it.
4316         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4317         (build1_stat, build_omp_clause): Likewise.
4318
4319 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4320
4321         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4322         last commit.
4323
4324 2011-03-24  Richard Guenther  <rguenther@suse.de>
4325
4326         PR tree-optimization/48271
4327         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4328         blocks that still exist.
4329
4330 2011-03-24  Richard Guenther  <rguenther@suse.de>
4331
4332         PR tree-optimization/48270
4333         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4334         not free datarefs before ddrs.
4335
4336 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4337
4338         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4339         from the address built for a reference with variable offset.
4340
4341 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4342
4343         PR target/48237
4344         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4345         alternatives that can be handled with movq or movabsq insn.
4346         (*movdf_internal): Disable for !TARGET_64BIT.
4347         (*movdf_internal_nointeger): Ditto.
4348         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4349
4350 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4351
4352         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4353         (FUNCTION_ARG_ADVANCE): Likewise.
4354         * tm.texi.in: Change references to them to hook references.
4355         * tm.texi: Regenerate.
4356         * targhooks.c (default_function_arg): Eliminate check for target macro.
4357         (default_function_incoming_arg): Likewise.
4358         (default_function_arg_advance): Likewise.
4359         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4360         (function_arg_advance): Likewise.
4361         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4362
4363 2011-03-24  Richard Guenther  <rguenther@suse.de>
4364
4365         PR middle-end/48269
4366         * tree-object-size.c (addr_object_size): Do not double-account
4367         for MEM_REF offsets.
4368
4369 2011-03-24  Diego Novillo  <dnovillo@google.com>
4370
4371         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4372         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4373         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4374         Update all users.
4375         (lto_input_string): Rename from input_string.  Make extern.
4376         Update all users.
4377         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4378         output_string_with_length.
4379         Output 0 to indicate a non-NULL string.  Update all callers to
4380         not emit 0.
4381         (lto_output_string): Rename from output_string.  Make extern.
4382         Update all users.
4383         (lto_output_decl_state_streams): Make extern.
4384         (lto_output_decl_state_refs): Make extern.
4385         * lto-streamer.h (lto_input_string): Declare.
4386         (lto_input_data_block): Declare.
4387         (lto_output_string): Declare.
4388         (lto_output_string_with_length): Declare.
4389         (lto_output_decl_state_streams): Declare.
4390         (lto_output_decl_state_refs): Declare.
4391
4392 2011-03-24  Richard Guenther  <rguenther@suse.de>
4393
4394         PR tree-optimization/46562
4395         * tree.c (build_invariant_address): New function.
4396         * tree.h (build_invariant_address): Declare.
4397         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4398         a renamed function moved ...
4399         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4400         Take valueization callback parameter.
4401         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4402         * gimple-fold.h: New file.
4403         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4404         (ccp_fold, fold_const_aggregate_ref,
4405         fold_ctor_reference, fold_nonarray_ctor_reference,
4406         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4407         get_base_constructor): Move ...
4408         * gimple-fold.c: ... here.
4409         (gimple_fold_stmt_to_constant_1): New function
4410         split out from ccp_fold.  Take a valueization callback parameter.
4411         Valueize all operands.
4412         (gimple_fold_stmt_to_constant): New wrapper function.
4413         (fold_const_aggregate_ref_1): New function split out from
4414         fold_const_aggregate_ref.  Take a valueization callback parameter.
4415         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4416         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4417         invariant POINTER_PLUS_EXPRs to invariant form.
4418         (vn_valueize): New function.
4419         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4420         * tree-vrp.c (vrp_valueize): New function.
4421         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4422         to fold statements to constants.
4423         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4424         function declarations.
4425         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4426         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4427
4428 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4429
4430         * config/h8300/predicates.md (jump_address_operand): Fix register
4431         mode check.
4432
4433 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4434
4435         * doc/invoke.texi (max-stores-to-sink): Document.
4436         * params.h (MAX_STORES_TO_SINK): Define.
4437         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4438         if either vectorization or if-conversion is disabled.
4439         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4440         tree-vect-data-refs.c vect_equal_offsets.
4441         (dr_equal_offsets_p): New function.
4442         (find_data_references_in_bb): Remove static.
4443         * tree-data-ref.h (find_data_references_in_bb): Declare.
4444         (dr_equal_offsets_p): Likewise.
4445         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4446         (vect_drs_dependent_in_basic_block): Update calls to
4447         vect_equal_offsets.
4448         (vect_check_interleaving): Likewise.
4449         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4450         (cond_if_else_store_replacement): Rename to...
4451         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4452         documentation.
4453         (cond_if_else_store_replacement): New function.
4454         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4455         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4456
4457 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4458
4459         PR target/46934
4460         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4461         to subtract lower bound instead of GEN_INT().
4462
4463 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4464
4465         PR other/48179
4466         PR other/48221
4467         PR other/48234
4468         * doc/extend.texi (Alignment): Move section to match order in TOC.
4469         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4470         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4471
4472 2011-03-23  Jeff Law  <law@redhat.com>
4473
4474         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4475         before removing the edge.
4476
4477         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4478         it may have been freed by redirect_branch_edge or
4479         redirect_edge_succ_nodup.
4480
4481 2011-03-23  Richard Guenther  <rguenther@suse.de>
4482
4483         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4484         (check_va_list_escapes): Likewise.
4485         (check_all_va_list_escapes): Likewise.
4486
4487 2011-03-23  Richard Guenther  <rguenther@suse.de>
4488
4489         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4490         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4491         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4492         (alias.o): Likewise.
4493         (ipa-type-escape.o): Remove.
4494         (ipa-struct-reorg.o): Likewise.
4495         (GTFILES): Remove ipa-struct-reorg.c.
4496         * alias.c: Do not include ipa-type-escape.h.
4497         * tree-ssa-alias.c: Likewise.
4498         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4499         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4500         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4501         and ipa-type-escape passes.
4502         * tree-pass.h (pass_ipa_type_escape): Remove.
4503         (pass_ipa_struct_reorg): Likewise.
4504         * ipa-struct-reorg.h: Remove.
4505         * ipa-struct-reorg.c: Likewise.
4506         * ipa-type-escape.h: Likewise.
4507         * ipa-type-escape.c: Likewise.
4508         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4509         (--param struct-reorg-cold-struct-ratio): Likewise.
4510         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4511         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4512         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4513
4514 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4515
4516         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4517         cpu attribute value.
4518         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4519         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4520         * config/s390/s390.c (processor_flags_table): New constant array.
4521         (s390_handle_arch_option): Remove.
4522         (s390_handle_option): Remove s390_handle_arch_option invocations
4523         and OPT_mwarn_framesize_ handling.
4524         (s390_option_override): Remove s390_handle_arch_option invocation.
4525         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4526         warnings.
4527         * config/s390/s390.md (cpu attribute): Add z9_ec value.
4528         * config/s390/s390.opt (s390_tune, s390_arch)
4529         (march=): Replace s390_arch_option enum and values with
4530         processor_type.  Set variable name to s390_arch.  Set
4531         initialization value.
4532         (mtune=): Replace s390_arch_option with processor_type.  Set
4533         variable name to s390_tune.  Set initialization value.
4534
4535 2011-03-23  Julian Brown  <julian@codesourcery.com>
4536
4537         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4538         accesses which are not naturally aligned.
4539
4540 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4541
4542         PR target/47553
4543         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4544
4545 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4546
4547         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4548         parameter from "int" to "enum insn_code".
4549         (expand_operand_type): New enum.
4550         (expand_operand): New structure.
4551         (create_expand_operand): New function.
4552         (create_fixed_operand, create_output_operand): Likewise
4553         (create_input_operand, create_convert_operand_to): Likewise.
4554         (create_convert_operand_from, create_address_operand): Likewise.
4555         (create_integer_operand): Likewise.
4556         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4557         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4558         (expand_insn, expand_jump_insn): Likewise.
4559         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4560         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4561         (expand_movstr, expand_builtin___clear_cache): Likewise.
4562         (expand_builtin_lock_release): Likewise.
4563         * explow.c (allocate_dynamic_stack_space): Likewise.
4564         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
4565         and use the default handling in that case.
4566         * expmed.c (check_predicate_volatile_ok): Delete.
4567         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4568         (emit_cstore): Likewise.
4569         * expr.c (emit_block_move_via_movmem): Likewise.
4570         (set_storage_via_setmem, expand_assignment): Likewise.
4571         (emit_storent_insn, try_casesi): Likewise.
4572         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
4573         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4574         (expand_vec_shift_expr, expand_binop_directly): Likewise.
4575         (expand_twoval_unop, expand_twoval_binop): Likewise.
4576         (expand_unop_direct, emit_indirect_jump): Likewise.
4577         (emit_conditional_move, vector_compare_rtx): Likewise.
4578         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4579         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4580         (expand_sync_lock_test_and_set): Likewise.
4581         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
4582         (emit_unop_insn): Likewise.
4583         (expand_copysign_absneg): Change icode to an insn_code.
4584         (create_convert_operand_from_type): New function.
4585         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4586         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4587         (expand_insn, expand_jump_insn): Likewise.
4588         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4589         than const_int_operand for operand 2.
4590
4591 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4592
4593         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4594         if possible.
4595
4596 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4597
4598         * emit-rtl.c (emit_pattern_before_noloc): New function.
4599         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4600         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4601         (emit_pattern_after_noloc): New function.
4602         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4603         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4604
4605 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4606
4607         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4608         (__ffsDI2): Likewise.
4609
4610 2011-03-22  Richard Henderson  <rth@redhat.com>
4611
4612         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4613         of !TARGET_ABI_OPEN_VMS.
4614         (alpha_trampoline_init, alpha_start_function): Likewise.
4615         (alpha_expand_epilogue, alpha_file_start): Likewise.
4616         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4617         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4618         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4619         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4620         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4621
4622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4623
4624         * config/s390/s390-opts.h: New.
4625         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4626         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4627         s390_stack_guard): Remove.
4628         (s390_handle_arch_option): Return void.  Take enum
4629         s390_arch_option value instead of string and searching array.
4630         (s390_handle_option): Don't assert that global structures are in
4631         use.  Access variables via opts pointer.  Use error_at.  Don't use
4632         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4633         s390_handle_arch_option.
4634         (s390_option_override): Update call to s390_handle_arch_option.
4635         (s390_emit_prologue): Use %d format for s390_stack_size in
4636         diagnostic.  Use %wd for HOST_WIDE_INT.
4637         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4638         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4639         * config/s390/s390.opt (config/s390/s390-opts.h): New
4640         HeaderInclude entry.
4641         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4642         s390_arch_flags, s390_warn_framesize): New Variable entries.
4643         (s390_arch_option): New Enum and EnumValue entries.
4644         (march=): Use Enum instead of Var.
4645         (mstack-guard=, mstack-size=): Use UInteger and Var.
4646         (mtune=): Use Enum.
4647
4648 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4649
4650         * config/score/score.c (score_handle_option): Don't assert that
4651         global structures are in use.  Access target_flags via opts
4652         pointer.  Use value of -march= option to determine target_flags
4653         settings.
4654         * config/score/score.opt (march=): Use Enum.
4655         (score_arch): New Enum and EnumValue entries.
4656
4657 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4658
4659         * config/mep/mep.c (option_mtiny_specified): Remove.
4660         (mep_option_override): Move register handling for -mivc2 from
4661         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4662         instead of option_mtiny_specified.
4663         (mep_handle_option): Access target_flags via opts pointer.  Don't
4664         assert that global structures are in use.  Defer part of -mivc2
4665         handling and move it to mep_option_override.
4666         * config/mep/mep.opt (IVC2): New Mask entry.
4667         (mivc2): Use Var and Defer instead of Mask.
4668
4669 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4670
4671         * config/v850/v850-opts.h: New.
4672         * config/v850/v850.c (small_memory): Replace with
4673         small_memory_physical_max array.  Make that array static const.
4674         (v850_handle_memory_option): Take integer value of argument.  Take
4675         gcc_options pointer, option text and location.  Return void.
4676         Update for changes to small memory structures.
4677         (v850_handle_option): Access target_flags via opts pointer.  Don't
4678         assert that global structures are in use.  Update calls to
4679         v850_handle_memory_option.
4680         (v850_encode_data_area): Update references to small memory settings.
4681         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4682         (enum small_memory_type): Move to v850-opts.h.
4683         * config/v850/v850.opt (config/v850/v850-opts.h): New
4684         HeaderInclude entry.
4685         (small_memory_max): New Variable entry.
4686         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4687         (mtda, mzda): Likewise.
4688
4689 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4690
4691         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4692         pointer.  Don't assert that global structures are in use.
4693
4694 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4695
4696         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4697         via opts pointer.  Don't assert that global structures are in use.
4698
4699 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4700
4701         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4702         (munix=93): Use Var.
4703         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4704         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4705         * config/pa/pa-opts.h: New.
4706         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4707         (pa_handle_option): Don't assert that global structures are in
4708         use.  Access target_flags via opts pointer.  Don't handle
4709         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4710         OPT_munix_98 here.
4711         (pa_option_override): Handle deferred OPT_mfixed_range_.
4712
4713 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4714
4715         * config/mn10300/mn10300-opts.h: New.
4716         * config/mn10300/mn10300.c (mn10300_processor,
4717         mn10300_tune_string): Remove.
4718         (mn10300_handle_option): Don't assert that global structures are
4719         in use.  Access mn10300_processor via opts pointer.  Don't handle
4720         OPT_mtune_ here.
4721         * config/mn10300/mn10300.h (enum processor_type): Move to
4722         mn10300-opts.h.
4723         (mn10300_processor): Remove.
4724         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4725         HeaderInclude entry.
4726         (mn10300_processor): New Variable entry.
4727         (mtune=): Use Var.
4728
4729 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4730
4731         * config/microblaze/microblaze.c: Don't include opts.h.
4732         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4733         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4734         (mno-clearbss): Use Var and Warn.
4735
4736 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4737
4738         * config/m32r/m32r-opts.h: New.
4739         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4740         (m32r_handle_option): Don't assert that global structures are in
4741         use.  Access target_flags and m32r_cache_flush_func via opts
4742         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
4743         OPT_mno_flush_trap here.
4744         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4745         include of m32r-opts.h.
4746         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4747         HeaderInclude entry.
4748         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4749         (mmodel=): Use Enum and Var.
4750         (m32r_model): New Enum and EnumValue entries.
4751         (mno-flush-trap): Use Var.
4752         (msdata=): Use Enum and Var.
4753         (m32r_sdata): New Enum and EnumValue entries.
4754
4755 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4756
4757         * config/m32c/m32c.c: Don't include opts.h.
4758         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4759         m32c_handle_option): Remove.
4760         (m32c_option_override): Check global_options_set.x_target_memregs
4761         instead of target_memregs_set.
4762         * config/m32c/m32c.h (target_memregs): Remove.
4763         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4764         variable.
4765
4766 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4767
4768         * config/iq2000/iq2000-opts.h: New.
4769         * config/iq2000/iq2000.c: Don't include opts.h.
4770         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4771         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4772         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4773         HeaderInclude entry.
4774         (iq2000_tune): New Variable entry.
4775         (march=): Add comment.  Use Enum.
4776         (iq2000_arch): New Enum and EnumValue entries.
4777         (mcpu=): Use Enum and Var.
4778         (iq2000_tune): New Enum and EnumValue entries.
4779
4780 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4781
4782         * config/ia64/ia64-opts.h: New.
4783         * config/ia64/ia64.c (ia64_tune): Remove.
4784         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4785         here.  Use error_at.
4786         (ia64_option_override): Handle deferred OPT_mfixed_range_.
4787         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4788         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4789         HeaderInclude entry.
4790         (ia64_tune): New Variable entry.
4791         (mfixed-range=): Use Defer and Var.
4792         (mtune=): Use Enum and Var.
4793         (ia64_tune): New Enum and EnumValue entries.
4794
4795 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4796
4797         * config/frv/frv-opts.h: New.
4798         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4799         frv-opts.h.
4800         (frv_cpu_type): Remove.
4801         * config/frv/frv.c: Don't include opts.h.
4802         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4803         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4804         (frv_cpu_type): New Variable entry.
4805         (frv_cpu): New Enum and EnumValue entries.
4806
4807 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4808
4809         * config/cris/cris.c (cris_handle_option): Access target_flags via
4810         opts pointer.  Don't assert that global structures are in use.
4811         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4812         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4813
4814 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4815
4816         * config/bfin/bfin-opts.h: New.
4817         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4818         bfin_si_revision, bfin_workarounds): Remove.
4819         (bfin_cpus): Make static const.
4820         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4821         not bfin_lib_id_given.
4822         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
4823         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4824         pointer. Use error_at.  Don't assert that global structures are in use.
4825         * config/bfin/bfin.h: Include bfin-opts.h.
4826         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4827         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4828         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4829         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4830         entries.
4831
4832 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4833
4834         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4835         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4836         or -msoft-float here.
4837         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4838         -msoft-float and -mhard-float.
4839         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4840         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4841         msoft-float.
4842         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4843         -msoft-float.
4844         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4845         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4846         not mhard-float.
4847         (LIBGCC_SPEC): Don't handle -msoft-float.
4848         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4849         -mhard-float.
4850         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4851         msoft-float.
4852         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4853         -mfloat-abi=*, not -msoft-float and -mhard-float.
4854         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4855         -msoft-float.
4856         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4857         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4858         mhard-float and msoft-float.
4859         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4860         mfloat-abi=soft in comments, not mhard-float and msoft-float.
4861         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4862         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4863         mhard-float.
4864         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4865         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4866         msoft-float.
4867         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4868         not mhard-float.
4869         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4870         not msoft-float.
4871
4872 2011-03-22  Richard Henderson  <rth@redhat.com>
4873
4874         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4875         TARGET_ABI_WINDOWS_NT.
4876         (alpha_output_function_end_prologue): Likewise.
4877         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4878         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4879         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4880         (trap, *movsi_nt_vms): Likewise.
4881         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4882         (*tablejump_osf_nt_internal): Remove.
4883         * config/alpha/predicates.md (input_operand): Only test Pmode.
4884
4885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4886
4887         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4888         via opts pointer.  Use error_at.  Don't assert that global
4889         structures are in use.
4890
4891 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4892
4893         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4894         (ix86_handle_option): Access ix86_isa_flags and
4895         ix86_isa_flags_explicit via opts pointer.  Don't assert that
4896         global structures are in use.
4897         (ix86_function_specific_save, ix86_function_specific_restore):
4898         Update ix86_isa_flags_explicit field name.
4899         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4900         (ix86_isa_flags_explicit): Rename TargetSave entry to
4901         x_ix86_isa_flags_explicit.
4902
4903 2011-03-22  Richard Henderson  <rth@redhat.com>
4904
4905         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4906         (alpha_option_override, direct_return): Likewise.
4907         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4908         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4909         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4910         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4911         (alpha_expand_epilogue, alpha_end_function): Likewise.
4912         (alpha_init_libfuncs): Likewise.
4913         (struct machine_function): Remove unicosmk members.
4914         (print_operand) ['t']: Remove.
4915         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4916         unicosmk_output_module_name, unicosmk_output_common,
4917         current_section_align, unicosmk_output_text_section_asm_op,
4918         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4919         unicosmk_section_type_flags, unicosmk_unique_section,
4920         unicosmk_asm_named_section, unicosmk_insert_attributes,
4921         unicosmk_output_align, unicosmk_defer_case_vector,
4922         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4923         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4924         unicosmk_output_ssib, unicosmk_add_call_info_word,
4925         unicosmk_extern_head, unicosmk_output_default_externs,
4926         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4927         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4928         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4929         * config/alpha/alpha-protos.h: Update.
4930         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4931         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4932         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4933         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4934         (*mulsi_se, mulvsi3): Likewise.
4935         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4936         (*divmodsi_internal, call, call_value, realign): Likewise.
4937         (moddi3, umoddi3): Likewise; remove duplicate expander.
4938         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4939         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4940         (*movdi_nofix): Remove r/U alternative.
4941         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4942         * config/alpha/constraints.md ("U"): Remove.
4943         * config/alpha/predicates.md (call_operand"): Don't test
4944         TARGET_ABI_UNICOSMK.
4945
4946 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4947
4948         * target.def (handle_option): Take gcc_options and
4949         cl_decoded_option pointers and location_t.
4950         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
4951         * doc/tm.texi: Regenerate.
4952         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
4953         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
4954         * lto-opts.c (lto_reissue_options): Generate option structure for
4955         targetm.handle_option call.
4956         * opts.c (target_handle_option): Update call to
4957         targetm.handle_option.  Remove assertions about values now passed
4958         down to hook.
4959         * targhooks.c (default_target_handle_option): New.
4960         * targhooks.h (default_target_handle_option): Declare.
4961         * config/alpha/alpha.c: Include opts.h.
4962         (alpha_handle_option): Update to new hook interface.
4963         * config/arm/arm.c: Include opts.h.
4964         (arm_handle_option): Update to new hook interface.
4965         * config/arm/t-arm (arm.o): Update dependencies.
4966         * config/bfin/bfin.c: Include opts.h.
4967         (bfin_handle_option): Update to new hook interface.
4968         * config/cris/cris.c: Include opts.h.
4969         (cris_handle_option): Update to new hook interface.
4970         * config/frv/frv.c: Include opts.h.
4971         (frv_handle_option): Update to new hook interface.
4972         * config/i386/i386.c: Include opts.h.
4973         (ix86_handle_option): Update to new hook interface.
4974         (ix86_valid_target_attribute_inner_p): Generate option structure
4975         for call to ix86_handle_option.
4976         * config/i386/t-i386 (i386.o): Update dependencies.
4977         * config/ia64/ia64.c: Include opts.h.
4978         (ia64_handle_option): Update to new hook interface.
4979         * config/ia64/t-ia64 (ia64.o): Update dependencies.
4980         * config/iq2000/iq2000.c: Include opts.h.
4981         (iq2000_handle_option): Update to new hook interface.
4982         * config/m32c/m32c.c: Include opts.h.
4983         (m32c_handle_option): Update to new hook interface.
4984         * config/m32r/m32r.c: Include opts.h.
4985         (m32r_handle_option): Update to new hook interface.
4986         * config/m68k/m68k.c: Include opts.h.
4987         (m68k_handle_option): Update to new hook interface.
4988         * config/mep/mep.c: Include opts.h.
4989         (mep_handle_option): Update to new hook interface.
4990         * config/microblaze/microblaze.c: Include opts.h.
4991         (microblaze_handle_option): Update to new hook interface.
4992         * config/mips/mips.c: Include opts.h.
4993         (mips_handle_option): Update to new hook interface.
4994         * config/mn10300/mn10300.c: Include opts.h.
4995         (mn10300_handle_option): Update to new hook interface.
4996         * config/pa/pa.c: Include opts.h.
4997         (pa_handle_option): Update to new hook interface.
4998         * config/pdp11/pdp11.c: Include opts.h.
4999         (pdp11_handle_option): Update to new hook interface.
5000         * config/rs6000/rs6000.c: Include opts.h.
5001         (rs6000_handle_option): Update to new hook interface.
5002         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5003         * config/rx/rx.c: Include opts.h.
5004         (rx_handle_option): Update to new hook interface.
5005         * config/s390/s390.c: Include opts.h.
5006         (s390_handle_option): Update to new hook interface.
5007         * config/score/score.c: Include opts.h.
5008         (score_handle_option): Update to new hook interface.
5009         * config/sh/sh.c: Include opts.h.
5010         (sh_handle_option): Update to new hook interface.
5011         * config/sparc/sparc.c: Include opts.h.
5012         (sparc_handle_option): Update to new hook interface.
5013         * config/v850/v850.c: Include opts.h.
5014         (v850_handle_option): Update to new hook interface.
5015
5016 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5017
5018         * gcc.c (driver_unknown_option_callback): Only permit and save
5019         unknown -Wno- options.
5020         (driver_wrong_lang_callback): Save options directly instead of via
5021         driver_unknown_option_callback.
5022
5023 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5024
5025         * combine.c (simplify_set): Try harder to find the best CC mode when
5026         simplifying a nested COMPARE on the RHS.
5027
5028 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5029
5030         * config/alpha/gnu.h: Remove.
5031         * config/arc: Remove directory.
5032         * config/arm/netbsd.h: Remove.
5033         * config/arm/t-pe: Remove.
5034         * config/crx: Remove directory.
5035         * config/i386/netbsd.h: Remove.
5036         * config/m68hc11: Remove directory.
5037         * config/m68k/uclinux-oldabi.h: Remove.
5038         * config/mcore/mcore-pe.h: Remove.
5039         * config/mcore/t-mcore-pe: Remove.
5040         * config/netbsd-aout.h: Remove.
5041         * config/rs6000/gnu.h: Remove.
5042         * config/sh/sh-symbian.h: Remove.
5043         * config/sh/symbian-base.c: Remove.
5044         * config/sh/symbian-c.c: Remove.
5045         * config/sh/symbian-cxx.c: Remove.
5046         * config/sh/symbian-post.h: Remove.
5047         * config/sh/symbian-pre.h: Remove.
5048         * config/sh/t-symbian: Remove.
5049         * config/svr3.h: Remove.
5050         * config/vax/netbsd.h: Remove.
5051         * config.build: Don't handle i[34567]86-*-pe.
5052         * config.gcc: Remove handling of deprecations for most deprecated
5053         targets.
5054         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5055         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5056         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5057         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5058         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5059         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5060         Remove cases.
5061         * config.host: Don't handle i[34567]86-*-pe.
5062         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5063         (ASM_SPEC32): Don't handle -mcall-gnu.
5064         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5065         -mcall-gnu.
5066         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5067         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5068         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5069         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5070         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5071         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5072         conditional on SYMBIAN.
5073         * configure.ac: Don't handle powerpc*-*-gnu*.
5074         * configure: Regenerate.
5075         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5076         * doc/install-old.texi (m6811, m6812): Don't mention.
5077         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5078         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5079         (m68k-uclinuxoldabi): Don't mention.
5080         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5081         Remove.
5082         (-mcall-gnu): Remove.
5083         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5084         families): Remove constraint documentation.
5085
5086 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5087
5088         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5089         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5090         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5091
5092 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5093
5094         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5095         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5096         * config/avr/avr.c (init_cumulative_args)
5097         (avr_function_arg_advance): Use it.
5098         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5099         sibcall epilogues.
5100         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5101         (avr_function_ok_for_sibcall): ...this new function.
5102         (avr_lookup_function_attribute1): New static Function.
5103         (avr_naked_function_p, interrupt_function_p)
5104         (signal_function_p, avr_OS_task_function_p)
5105         (avr_OS_main_function_p): Use it.
5106         * config/avr/avr.md ("sibcall", "sibcall_value")
5107         ("sibcall_epilogue"): New expander.
5108         ("*call_insn", "*call_value_insn"): New insn.
5109         ("call_insn", "call_value_insn"): Remove
5110         ("call", "call_value", "epilogue"): Change expander to handle
5111         sibling calls.
5112
5113 2011-03-21  Nick Clifton  <nickc@redhat.com>
5114
5115         * doc/invoke.texi (Overall Options): Move closing brace to end of
5116         options list.
5117         (Optimization Options): Add missing @gol.
5118         (Directory Options): Likewise.
5119         (i386 and x86-64 Options): Likewise.
5120         (RS6000 and PowerPC Options): Likewise.
5121         (i386 and x86-64 Windows Options): Likewise.
5122         (V850 Options): Add text missing from descriptions.
5123
5124 2011-03-22  Richard Henderson  <rth@redhat.com>
5125
5126         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5127         (avr_incoming_return_addr_rtx): New.
5128         (emit_push_byte): New.
5129         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5130         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5131         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5132         (emit_pop_byte): New.
5133         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5134         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5135         (INCOMING_RETURN_ADDR_RTX): New.
5136         (INCOMING_FRAME_SP_OFFSET): New.
5137         (ARG_POINTER_CFA_OFFSET): New.
5138         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5139         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5140         (pophi): Remove.
5141
5142         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5143
5144 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5145
5146         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5147         (FUNCTION_ARG_ADVANCE): Likewise.
5148         * tm.texi.in: Change references to them to hook references.
5149         * tm.texi: Regenerate.
5150         * targhooks.c (default_function_arg): Eliminate check for target
5151         macro.
5152         (default_function_incoming_arg): Likewise.
5153         (default_function_arg_advance): Likewise.
5154         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5155         (function_arg_advance): Likewise.
5156         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5157
5158 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5159
5160         * tree.c (build_call_1): New function.
5161         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5162
5163 2011-03-22  Richard Guenther  <rguenther@suse.de>
5164
5165         PR tree-optimization/48228
5166         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5167         for single-arg PHIs.
5168
5169 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5170
5171         PR rtl-optimization/48143
5172         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5173         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5174         sse2_cvtps2pd): Likewise.
5175
5176 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5177
5178         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5179
5180 2011-03-22  Richard Guenther  <rguenther@suse.de>
5181
5182         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5183         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5184         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5185         and REALIGN_LOAD_EXPR.
5186         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5187         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5188         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5189         DOT_PROD_EXPR case ...
5190         (expand_expr_real_2): ... here.
5191         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5192         and REALIGN_LOAD_EXPR.
5193         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5194         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5195         (vect_create_epilog_for_reduction): Likewise.
5196         (vectorizable_reduction): Likewise.
5197         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5198         * tree-vect-stmts.c (vectorizable_load): Likewise.
5199
5200 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5201
5202         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5203
5204 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5205
5206         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5207         handling for PLTOFF/GOTOFF.
5208
5209 2011-03-22  Nick Clifton  <nickc@redhat.com>
5210
5211         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5212         trailing backslash from the end of the macro definition.
5213
5214 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5215
5216         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5217         and PLT unspecs.
5218
5219 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5220
5221         * expr.h (prepare_operand): Move to...
5222         * optabs.h (prepare_operand): ...here and change the insn code
5223         parameter from "int" to "enum insn_code".
5224         (insn_operand_matches): Declare.
5225         * expr.c (init_expr_target): Use insn_operand_matches.
5226         (compress_float_constant): Likewise.
5227         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5228         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5229         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5230         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5231         Likewise.
5232         (gen_cond_trap): Likewise.
5233         (prepare_operand): Likewise.  Change icode to an insn_code.
5234         (insn_operand_matches): New function.
5235         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5236         * reload1.c (gen_reload): Likewise.
5237         * targhooks.c (default_secondary_reload): Likewise.
5238
5239 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5240
5241         * config/alpha/alpha.md (unspec): New define_c_enum.
5242         (unspecv): Ditto.
5243
5244 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5245
5246         PR debug/48214
5247         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5248         between a call and its CALL_ARG_LOCATION note.
5249
5250 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5251
5252         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5253
5254 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5255
5256         PR c/42544
5257         PR c/48197
5258         * c-common.c (shorten_compare): If primopN is first sign-extended
5259         to opN and then zero-extended to result type, set primopN to opN.
5260
5261 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5262
5263         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5264         for barrier handlers.
5265
5266 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5267
5268         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5269         UNSPEC constants to be in the unspec enumeration, and redefine
5270         all UNSPECV constants to be in the unspecv enumeration, so that
5271         dumps print which unspec/unspec_volatile this is.
5272         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5273         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5274         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5275         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5276         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5277
5278         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5279         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5280         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5281         * config/rs6000/sync.md (isync, lwsync): Ditto.
5282
5283 2011-03-21  Richard Guenther  <rguenther@suse.de>
5284
5285         * params.def (lto-min-partition): Fix typo.
5286
5287 2011-03-21  Richard Guenther  <rguenther@suse.de>
5288
5289         PR c/47939
5290         * c-decl.c (grokdeclarator): Drop to the main variant only
5291         for array types.  Drop flag_gen_aux_info check.
5292
5293 2011-03-21  Richard Guenther  <rguenther@suse.de>
5294
5295         PR translation/47911
5296         * params.def (lto-partitions): Fix typo.
5297         (lto-min-partition): Fix wording.
5298
5299 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5300
5301         * config/rs6000/t-freebsd: Remove duplication from file.
5302
5303 2011-03-21  Richard Guenther  <rguenther@suse.de>
5304
5305         PR middle-end/47661
5306         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5307
5308 2011-03-21  Richard Guenther  <rguenther@suse.de>
5309
5310         PR lto/48210
5311         * params.def (lto-partitions): Require at least 1 partition.
5312
5313 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5314
5315         * gthr-solaris.h: Remove.
5316         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5317         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5318         (LIB_SPEC): Likewise.
5319         * config/sol2.opt (threads): Remove.
5320         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5321         (sparc*-*-solaris2*): Likewise.
5322         * configure.ac (enable_threads): Enable solaris support.
5323         * configure: Regenerate.
5324         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5325         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5326         solaris.
5327
5328 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5329
5330         * config.gcc: Obsolete *-*-solaris2.8*.
5331         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5332
5333 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5334
5335         PR bootstrap/48135
5336         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5337         reference.  Solaris 8 perl works.
5338
5339 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5340
5341         PR bootstrap/48135
5342         * doc/install.texi (Prerequisites): Move jar etc. up.
5343         Explain support library version requirements.
5344
5345 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5346
5347         PR bootstrap/48135
5348         * doc/install.texi (Prerequisites): Move Perl to build
5349         requirements.  Always necessary on Solaris 2 with Sun ld.
5350
5351 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5352
5353         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5354         binutils 2.21.
5355         (Specific, i?86-*-solaris2.[89]): Likewise.
5356         (Specific, i?86-*-solaris2.10): Likewise.
5357         (Specific, mips-sgi-irix6): Likewise.
5358         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5359         Update for binutils 2.21.
5360
5361 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5362
5363         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5364         Allow -fuse-linker-plugin for non-default plugin linker.
5365         * configure: Regenerate.
5366
5367 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5368
5369         PR bootstrap/48167
5370         * gengtype.c (files_rules): Added rule for cp/parser.h.
5371
5372 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5373
5374         PR target/48213
5375         * config/s390/s390.c (s390_delegitimize_address): Don't call
5376         lowpart_subreg if orig_x has BLKmode.
5377
5378 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5379
5380         PR target/12171
5381         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5382         * tree.h (attribute_spec): Add new member affects_type_identity.
5383         * attribs.c (empty_attribute_table): Adjust attribute_spec
5384         initializers.
5385         * config/alpha/alpha.c: Likewise.
5386         * config/arc/arc.c: Likewise.
5387         * config/arm/arm.c: Likewise.
5388         * config/avr/avr.c: Likewise.
5389         * config/bfin/bfin.c: Likewise.
5390         * config/crx/crx.c: Likewise.
5391         * config/darwin.h: Likewise.
5392         * config/h8300/h8300.c: Likewise.
5393         * config/i386/cygming.h: Likewise.
5394         * config/i386/i386.c: Likewise.
5395         * config/ia64/ia64.c: Likewise.
5396         * config/m32c/m32c.c: Likewise.
5397         * config/m32r/m32r.c: Likewise.
5398         * config/m68hc11/m68hc11.c: Likewise.
5399         * config/m68k/m68k.c: Likewise.
5400         * config/mcore/mcore.c: Likewise.
5401         * config/mep/mep.c: Likewise.
5402         * config/microblaze/microblaze.c: Likewise.
5403         * config/mips/mips.c: Likewise.
5404         * config/rs6000/rs6000.c: Likewise.
5405         * config/rx/rx.c: Likewise.
5406         * config/sh/sh.c: Likewise.
5407         * config/sol2.h: Likewise.
5408         * config/sparc/sparc.c: Likewise.
5409         * config/spu/spu.c: Likewise.
5410         * config/stormy16/stormy16.c: Likewise.
5411         * config/v850/v850.c: Likewise.
5412
5413 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5414
5415         * simplify-rtx.c (simplify_binary_operation_1): Handle
5416         (xor (and A B) C) case when B and C are both constants.
5417
5418 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5419
5420         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5421
5422 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5423
5424         PR bootstrap/48168
5425         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5426
5427 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5428
5429         PR rtl-optimization/48156
5430         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5431         assume df and df_lr are not NULL.
5432
5433 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5434
5435         PR debug/48023
5436         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5437         between a call and its CALL_ARG_LOCATION note.
5438
5439 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5440
5441         PR debug/48178
5442         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5443         between a call and its corresponding CALL_ARG_LOCATION note.
5444
5445 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5446
5447         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5448         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5449         * haifa-sched.c (setup_ref_regs): Ditto.
5450         * caller-save.c (add_used_regs_1): Ditto.
5451         * dse.c (look_for_hardregs): Ditto.
5452         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5453         * sched-rgn.c (check_live_1): Ditto.
5454
5455 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5456
5457         * c-decl.c (diagnose_mismatched_decls): Give an error for
5458         redefining a typedef with variably modified type.
5459
5460 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5461
5462         * c-decl.c (grokfield): Don't allow typedefs for structures or
5463         unions with no tag by default.
5464         * doc/extend.texi (Unnamed Fields): Update.
5465
5466 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5467
5468         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5469         Rewrite using indirect functions.
5470         (lwp_slwpcb): Ditto.
5471         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5472         (avx_vinsertf128<mode>): Ditto.
5473
5474 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5475
5476         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5477         unspecs.
5478
5479 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5480
5481         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5482         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5483
5484 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5485
5486         PR rtl-optimization/48170
5487         * gcse.c (hoist_code): Remove bogus asserts.
5488
5489 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5490
5491         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5492         computation for prologue/epilogue.
5493
5494 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5495
5496         * Makefile.in (check-consistency): Remove.
5497
5498 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5499
5500         PR debug/48176
5501         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5502         arange_table_in_use is 0, but either text_section_used or
5503         cold_text_section_used is true.  Don't call it if
5504         !info_section_emitted.
5505
5506 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5507
5508         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5509         FUNCTION_VALUE_REGNO_P): Remove.
5510         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5511         Remove.
5512         * config/avr/avr.c (avr_ret_register): Make static inline.
5513         (avr_function_value_regno_p): New function.
5514         (avr_libcall_value): Make static. Add 'func' argument.
5515         (avr_function_value): Make static. Rename 'func' argument to
5516         'fn_decl_or_type', forward it to avr_libcall_value. Call
5517         avr_ret_register function instead of RET_REGISTER macro.
5518         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5519
5520 2011-03-18  Jason Merrill  <jason@redhat.com>
5521
5522         PR c++/23372
5523         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5524
5525 2011-03-18  Richard Guenther  <rguenther@suse.de>
5526
5527         * doc/install.texi (--enable-gold): Remove.
5528         (--with-plugin-ld): Document.
5529         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5530
5531 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
5532
5533         PR middle-end/47790
5534         * expr.c (optimize_bitfield_assignment_op): Revamp to work
5535         again after expansion changes.
5536
5537 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
5538
5539         * combine.c (try_combine): Do simplification only call of
5540         subst() on i2 even when i1 is present. Update comments.
5541
5542 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5543
5544         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5545         and UNSPEC_PCREL_SYMOFF.
5546
5547 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5548
5549         * config/s390/s390.md: Use define_c_enum for the unspec constant
5550         definitions.
5551
5552 2011-03-18  Richard Henderson  <rth@redhat.com>
5553             Jakub Jelinek  <jakub@redhat.com>
5554
5555         PR bootstrap/48161
5556         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5557         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5558
5559 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5560
5561         PR middle-end/47725
5562         * combine.c (cant_combine_insn_p): Don't check zero/sign
5563         extended hard registers.
5564
5565 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5566
5567         PR middle-end/47725
5568         * combine.c (cant_combine_insn_p): Check zero/sign extended
5569         hard registers.
5570
5571 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
5572
5573         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5574         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5575         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5576         Change return type to bool.
5577         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5578
5579 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5580
5581         PR debug/48163
5582         * var-tracking.c (prepare_call_arguments): If CALL target
5583         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5584         pc instead of looking it up using cselib_lookup and use
5585         Pmode for it if x has VOIDmode.
5586         * dwarf2out.c (gen_subprogram_die): If also both first and
5587         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5588
5589         PR debug/48163
5590         * function.c (assign_parms): For data.passed_pointer parms
5591         use MEM of data.entry_parm instead of data.entry_parm itself
5592         as DECL_INCOMING_RTL.
5593         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5594         also when passed and declared mode is the same, DECL_RTL
5595         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5596         a MEM too.
5597
5598 2011-03-16  Jeff Law  <law@redhat.com>
5599
5600         PR rtl-optimization/37273
5601         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5602         handle them like argument loads from stack slots.  Do not double
5603         count memory for memory constants and argument loads from stack slots.
5604
5605 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5606
5607         PR debug/48160
5608         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5609
5610 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5611
5612         PR target/48171
5613         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5614
5615 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5616
5617         PR bootstrap/48153
5618         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5619         if dwarf_strict.
5620         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5621         Clear call_arg_locations and call_arg_loc_last always.
5622
5623         PR middle-end/48152
5624         * var-tracking.c (prepare_call_arguments): If argument needs to be
5625         passed by reference, adjust argtype and mode.
5626
5627 2011-03-17  Richard Guenther  <rguenther@suse.de>
5628
5629         PR middle-end/48134
5630         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5631         a value make sure to fold the statement.
5632
5633 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5634
5635         PR target/43872
5636         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5637         return condition with !cfun->calls_alloca.
5638
5639 2011-03-17  Richard Guenther  <rguenther@suse.de>
5640
5641         PR bootstrap/48148
5642         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5643         origin for decls in other ltrans units.
5644         (input_varpool_node): Likewise.
5645
5646 2011-03-17  Richard Guenther  <rguenther@suse.de>
5647
5648         PR middle-end/48165
5649         * tree-object-size.c (compute_object_offset): Properly return
5650         the offset operand of MEM_REFs as sizetype.
5651
5652 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5653
5654         PR rtl-optimization/48141
5655         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5656         * dse.c: Include params.h.
5657         (active_local_stores_len): New variable.
5658         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5659         to NULL.
5660         (record_store, check_mem_read_rtx): Decrease it when removing
5661         from the chain.
5662         (scan_insn): Likewise.  Increase it when adding to chain, if it
5663         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5664         set active_local_stores to NULL before the addition.
5665         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5666
5667         PR rtl-optimization/48141
5668         * dse.c (record_store): If no positions are needed in an insn
5669         that cannot be deleted, at least unchain it from active_local_stores.
5670
5671 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5672
5673         PR debug/47510
5674         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5675         (lookup_type_die_strip_naming_typedef): ... here.
5676         (get_context_die): Use it.
5677         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5678         the anonymous struct named by the naming typedef.
5679
5680 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5681
5682         PR target/48154
5683         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5684         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5685
5686 2011-03-16  Jeff Law  <law@redhat.com>
5687
5688         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5689         check for operands of conditional.  Allow type to be a pointer.
5690
5691 2011-03-16  Richard Guenther  <rguenther@suse.de>
5692
5693         PR tree-optimization/48149
5694         * fold-const.c (fold_binary_loc): Fold
5695         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5696
5697 2011-03-16  Richard Guenther  <rguenther@suse.de>
5698
5699         PR tree-optimization/26134
5700         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5701         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5702         (non_rewritable_mem_ref_base): Handle complex type component
5703         accesses, constrain offsets for vector and complex extracts
5704         more properly.
5705
5706 2011-03-16  Richard Guenther  <rguenther@suse.de>
5707
5708         PR tree-optimization/48146
5709         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5710         operands avoiding the need for renaming.
5711
5712 2011-03-16  Richard Guenther  <rguenther@suse.de>
5713
5714         * gimple-fold.c (maybe_fold_reference): Open-code relevant
5715         constant folding.  Move MEM_REF canonicalization first.
5716         Rely on fold_const_aggregate_ref for initializer folding.
5717         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5718
5719 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5720
5721         PR middle-end/48136
5722         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5723         arg0/arg1 or their arguments are always fold converted to matching
5724         types.
5725
5726         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5727         to nargs.
5728
5729 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5730
5731         PR lto/46944
5732         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5733         Handle in-tree gold.
5734         (ld_vers): Extract binutils version for gold.
5735         (gcc_cv_ld_hidden): Handle gold here.
5736         (gcc_cv_lto_plugin): Determine level of linker plugin support.
5737         * configure: Regenerate.
5738         * config.in: Regenerate.
5739         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5740         -fuse-linker-plugin otherwise.
5741         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
5742         (LINK_COMMAND_SPEC): Use it.
5743         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5744
5745 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5746
5747         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5748         * calls.c: Remove debug.h include.
5749         (emit_call_1): Don't call virtual_call_token debug hook.
5750         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5751         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5752         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5753         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5754         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5755         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5756         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5757         dwarf2out_virtual_call): Remove.
5758         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5759         copy_call_info and virtual_call hooks.
5760         (dwarf2out_init): Don't initialize vcall_insn_table,
5761         debug_dcall_section and debug_vcall_section.
5762         (prune_unused_types): Don't mark nodes from dcall_table.
5763         (dwarf2out_finish): Don't output dcall or vcall tables.
5764         * final.c (final_scan_insn): Don't call direct_call or
5765         virtual_call debug hooks.
5766         * debug.h (struct gcc_debug_hooks): Remove direct_call,
5767         virtual_call_token, copy_call_info and virtual_call hooks.
5768         (debug_nothing_uid): Remove prototype.
5769         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5770         copy_call_info and virtual_call hooks.
5771         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5772         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5773         * debug.c (do_nothing_debug_hooks): Likewise.
5774         (debug_nothing_uid): Remove.
5775         * doc/invoke.texi (-fenable-icf-debug): Remove.
5776         * common.opt (-fenable-icf-debug): Likewise.
5777
5778         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5779         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5780         call's MEM.  Handle functions returning aggregate through a hidden
5781         first pointer.  For virtual calls add clobbered pc to call arguments
5782         chain.
5783         * dwarf2out.c (gen_subprogram_die): Emit
5784         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5785         can't be emitted.
5786
5787         PR debug/45882
5788         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5789         * rtl.h (ENTRY_VALUE_EXP): Define.
5790         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5791         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5792         * print-rtl.c (print_rtx): Likewise.
5793         * gengtype.c (adjust_field_rtx_def): Likewise.
5794         * var-tracking.c (vt_add_function_parameter): Adjust
5795         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5796         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5797         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5798         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5799         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5800
5801         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5802         Call var_location debug hook even on CALL_INSNs.
5803         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5804         * rtl.def (ENTRY_VALUE): New.
5805         * dwarf2out.c: Include cfglayout.h.
5806         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5807         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5808         (struct call_arg_loc_node): New type.
5809         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5810         tail_call_site_count): New variables.
5811         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5812         DW_TAG_GNU_call_site_parameter.
5813         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5814         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5815         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5816         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5817         and DW_AT_GNU_all_source_call_sites.
5818         (mem_loc_descriptor): Handle ENTRY_VALUE.
5819         (add_src_coords_attributes): Don't add enything if
5820         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5821         (dwarf2out_abstract_function): Save and clear call_arg_location,
5822         call_site_count and tail_call_site_count around dwarf2out_decl call.
5823         (gen_call_site_die): New function.
5824         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5825         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5826         (dwarf2out_function_decl): Clear call_arg_locations,
5827         call_arg_loc_last, set call_site_count and tail_call_site_count
5828         to -1 and free block_map.
5829         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5830         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
5831         followed by any real instructions.
5832         (dwarf2out_begin_function): Set call_site_count and
5833         tail_call_site_count to 0.
5834         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5835         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5836         attempt to force a DIE for it and worst case remove the attribute.
5837         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5838         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5839         the decl itself.
5840         * var-tracking.c: Include tm_p.h.
5841         (vt_stack_adjustments): For calls call note_register_arguments.
5842         (argument_reg_set): New variable.
5843         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5844         ensure the VALUE is resolved.
5845         (call_arguments): New variable.
5846         (prepare_call_arguments): New function.
5847         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5848         (struct expand_loc_callback_data): Add ignore_cur_loc field.
5849         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5850         always use the best expression.
5851         (vt_expand_loc): Add ignore_cur_loc argument.
5852         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5853         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5854         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5855         note for all calls.
5856         (vt_add_function_parameter): Use cselib_lookup_from_insn.
5857         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5858         argument.  Don't call cselib_preserve_only_values and
5859         cselib_reset_table.
5860         (note_register_arguments): New function.
5861         (vt_initialize): Compute argument_reg_set.  Call
5862         vt_add_function_parameters before processing basic blocks instead of
5863         afterwards.  For calls call prepare_call_arguments before calling
5864         cselib_process_insn.
5865         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5866         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5867         (var-tracking.o): Depend on $(TM_P_H).
5868         * cfglayout.h (insn_scope): New prototype.
5869         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5870         * cfglayout.c (insn_scope): No longer static.
5871         * insn-notes.def (CALL_ARG_LOCATION): New.
5872         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5873         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5874         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5875         nothing for DECL_EXTERNAL BLOCK_VARS.
5876
5877 2011-03-16  Alan Modra  <amodra@gmail.com>
5878
5879         PR target/45844
5880         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5881         create invalid offset address for vsx splat insn.
5882         * config/rs6000/predicates.md (splat_input_operand): New.
5883         * config/rs6000/vsx.md (vsx_splat_*): Use it.
5884
5885 2011-03-15  Xinliang David Li  <davidxl@google.com>
5886
5887         PR c/47837
5888         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5889         (normalize_preds): New function.
5890         (is_use_properly_guarded): Normalize def predicates.
5891
5892 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5893
5894         PR target/46788
5895         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5896         in the output template.
5897
5898 2011-03-15  Richard Guenther  <rguenther@suse.de>
5899
5900         PR middle-end/47650
5901         * tree-pretty-print.c (dump_function_declaration): Properly
5902         dump unprototyped and varargs function types.
5903
5904 2011-03-15  Richard Guenther  <rguenther@suse.de>
5905
5906         PR tree-optimization/13954
5907         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5908         and friends.
5909
5910 2011-03-15  Richard Guenther  <rguenther@suse.de>
5911
5912         PR tree-optimization/48037
5913         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5914         selects into BIT_FIELD_REFs.
5915         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5916         vector select.
5917
5918 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
5919
5920         PR tree-optimization/48129
5921         * builtins.c (fold_builtin_snprintf): Convert to type of
5922         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5923         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5924
5925 2011-03-15  Richard Guenther  <rguenther@suse.de>
5926
5927         PR tree-optimization/41490
5928         * tree-ssa-dce.c (propagate_necessity): Handle returns without
5929         value but with VUSE.
5930         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5931         return statements.
5932         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5933         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5934         * tree-tailcall.c (find_tail_calls): Ignore returns.
5935
5936 2011-03-15  Richard Guenther  <rguenther@suse.de>
5937
5938         PR middle-end/48031
5939         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5940         or variable-indexed array accesses when in gimple form.
5941
5942 2011-03-15  Richard Guenther  <rguenther@suse.de>
5943
5944         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5945
5946 2011-03-15  Alan Modra  <amodra@gmail.com>
5947
5948         PR target/48032
5949         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
5950         presume symbol_refs without a symbol_ref_decl are suitably
5951         aligned, nor other trees we may see here.  Handle anchor symbols.
5952         (legitimate_constant_pool_address_p): Comment.  Add mode param.
5953         Check cmodel=medium addresses.  Adjust all calls.
5954         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
5955         creating cmodel=medium optimized access to locals.
5956         * config/rs6000/constraints.md (R): Pass QImode to
5957         legitimate_constant_pool_address_p.
5958         * config/rs6000/predicates.md (input_operand): Pass mode to
5959         legitimate_constant_pool_address_p.
5960         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
5961         Update prototype.
5962
5963 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5964
5965         PR target/48053
5966         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
5967         64-bit constants being loaded into registers other than GPRs such
5968         as loading 0 into a VSX register.
5969
5970 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5971
5972         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
5973
5974 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
5975
5976         PR middle-end/47917
5977         * builtins.c (fold_builtin_snprintf): New function.
5978         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
5979         (fold_builtin_4): Likewise.
5980
5981         PR middle-end/38878
5982         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
5983         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
5984         and C - X == X also strip nops from +/-/p+ operand.
5985         When optimizing -X == C, fold C to arg0's type.
5986
5987         PR debug/47946
5988         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
5989         emit it as add_AT_int instead of add_AT_unsigned.
5990
5991 2011-03-14  Tom Tromey  <tromey@redhat.com>
5992
5993         * unwind-dw2.c: Include sys/sdt.h if it exists.
5994         (_Unwind_DebugHook): Use STAP_PROBE2.
5995         * config.in, configure: Rebuild.
5996         * configure.ac: Check for sys/sdt.h.
5997
5998 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
5999
6000         * config/i386/i386.md (ROUND_FLOOR): New constant.
6001         (ROUND_CEIL): Ditto.
6002         (ROUND_TRUNC): Ditto.
6003         (ROUND_MXCSR): Ditto.
6004         (ROUND_NO_EXC): Ditto.
6005         (rint<mode>2): Use new defines instead of numerical constants.
6006         (floor<mode>2): Ditto.
6007         (ceil<mode>2): Ditto.
6008         (btrunc<mode>2): Ditto.
6009         * config/i386/i386-builtin-types.def: Define ROUND function type
6010         aliases.
6011         * config/i386/i386.c (enum ix86_builtins): Add
6012         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6013         (struct builtin_description): Add
6014         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6015         (ix86_expand_sse_round): New static function.
6016         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6017         function types.
6018         (ix86_builtin_vectorized_function): Handle
6019         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6020
6021 2011-03-14  Tom Tromey  <tromey@redhat.com>
6022
6023         * c-parser.c (c_parser_asm_string_literal): Clear
6024         warn_overlength_strings.
6025
6026 2011-03-14  Tom Tromey  <tromey@redhat.com>
6027
6028         * c-parser.c (disable_extension_diagnostics): Save
6029         warn_overlength_strings.
6030         (restore_extension_diagnostics): Restore warn_overlength_strings.
6031
6032 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6033
6034         * BASE-VER: Change to 4.7.0.
6035
6036 2011-03-14  Richard Guenther  <rguenther@suse.de>
6037
6038         PR middle-end/48098
6039         * tree.c (build_vector_from_val): Adjust assert to requirements
6040         and reality.
6041
6042 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6043
6044         PR bootstrap/48102
6045         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6046
6047 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6048
6049         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
6050         terms of target_flags_explicit. Adjust copyright year.
6051
6052         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6053         * config/rs6000/t-freebsd: New file. Add override for
6054         LIB2FUNCS_EXTRA.
6055
6056 2011-03-13  Chris Demetriou  <cgd@google.com>
6057
6058         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6059         (-fno-diagnostics-show-option): this, to reflect current default.
6060         (-Werror=): Update text about -fno-diagnostics-show-option.
6061
6062 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6063
6064         PR target/48053
6065         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6066         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6067         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6068         mode is not V2DImode or V2DFmode.
6069         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6070         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6071         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6072         registers to 0.
6073         (movdi_internal64): Likewise.
6074
6075 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6076
6077         PR tree-optimization/47127
6078         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6079         parameter.
6080         (set_cloog_options): Same.
6081         (scop_to_clast): Same.
6082         (print_clast_stmt): Do not call cloog_state_malloc and
6083         cloog_state_free.
6084         (print_generated_program): Same.
6085         (gloog): Same.
6086         * graphite-clast-to-gimple.h (cloog_state): Declared.
6087         (scop_to_clast): Adjust declaration.
6088         * graphite.c (cloog_state): Defined here.
6089         (graphite_initialize): Call cloog_state_malloc.
6090         (graphite_finalize): Call cloog_state_free.
6091
6092 2011-03-11  Jason Merrill  <jason@redhat.com>
6093
6094         * attribs.c (lookup_attribute_spec): Take const_tree.
6095         * tree.h: Adjust.
6096
6097 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6098
6099         * config/sparc/sparc.c (sparc_option_override): Use
6100         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6101
6102 2011-03-11  Richard Guenther  <rguenther@suse.de>
6103
6104         PR tree-optimization/48067
6105         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6106         multiplication result will be only used once on the target
6107         stmt.
6108
6109 2011-03-11  Richard Guenther  <rguenther@suse.de>
6110
6111         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6112
6113 2011-03-11  Richard Guenther  <rguenther@suse.de>
6114
6115         PR lto/48073
6116         * tree.c (find_decls_types_r): Do not walk types only reachable
6117         from IDENTIFIER_NODEs.
6118
6119 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6120
6121         PR middle-end/48044
6122         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6123         all vnode->force_output nodes as needed.
6124
6125 2011-03-11  Jason Merrill  <jason@redhat.com>
6126
6127         PR c++/48069
6128         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6129         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6130
6131 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6132
6133         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6134         cgraph_node.
6135
6136 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6137
6138         PR tree-optimization/48063
6139         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6140         inline functions called once if !tree_can_inline_p (node->callers).
6141
6142 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6143
6144         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6145         extra_objs.
6146         * config/score/score3.c: Delete.
6147         * config/score/score3.h: Delete.
6148         * config/score/mul-div.S: Delete.
6149         * config/score/sfp-machine.h: Add new file.
6150         * config/score/constraints.md: Add new file.
6151         * config/score/t-score-softfp: Add new file.
6152         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6153         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6154         (score7_extra_constraint): Delete.
6155         (score7_option_override): Remove unused code.
6156         * config/score/score.c: Remove score3 and score5 define and code.
6157         * config/score/score.h: Remove score3 and score5 define and code.
6158         * config/score/score.md: Remove score3 template and unusual insn.
6159         * config/score/score.opt: Remove score3 and score5 options.
6160
6161 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6162
6163         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6164         when _HPUX_SOURCE is defined.
6165         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6166
6167 2011-03-10  Jason Merrill  <jason@redhat.com>
6168
6169         PR c++/48029
6170         * stor-layout.c (layout_type): Don't set structural equality
6171         on arrays of incomplete type.
6172         * tree.c (type_hash_eq): Handle comparing them properly.
6173
6174 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6175
6176         PR debug/48043
6177         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6178         result mode matches original rtl mode.
6179
6180 2011-03-10  Nick Clifton  <nickc@redhat.com>
6181
6182         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6183         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6184
6185 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6186
6187         PR rtl-optimization/47866
6188         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6189         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6190         if target wasn't scalar.
6191         * function.c (assign_stack_temp_for_type): Assert that neither
6192         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6193         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6194         macro.
6195         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6196
6197 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6198
6199         * config/s390/s390-protos.h (s390_label_align): New prototype.
6200         * config/s390/s390.c (s390_label_align): New function.
6201         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6202
6203 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6204
6205         PR target/47755
6206         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6207         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6208         (output_vec_const_move): Ditto.
6209
6210 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6211
6212         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6213         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6214         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6215         Change 'rclass' argument and result type to reg_class_t.
6216         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6217
6218 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6219
6220         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6221         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6222         (TARGET_MEMORY_MOVE_COST): Define.
6223         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6224
6225 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6226
6227         PR debug/47881
6228         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6229         removed anything.
6230
6231         PR tree-optimization/48022
6232         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6233         for EQ/NE_EXPR.
6234
6235 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6236
6237         PR debug/47991
6238         * var-tracking.c (find_use_val): Return NULL for
6239         cui->sets && cui->store_p BLKmode MEMs.
6240
6241 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6242
6243         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6244         Remove.
6245         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6246         xstormy16_print_operand_address): Remove.
6247         * config/stormy16/stormy16.c (xstormy16_print_operand,
6248         xstormy16_print_operand_address): Make static.
6249         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6250
6251 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6252
6253         PR target/47862
6254         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6255         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6256         before definition.
6257
6258 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6259
6260         PR bootstrap/48000
6261         * cfgloopmanip.c (fix_bb_placements): Return immediately
6262         if FROM is BASE_LOOP's header.
6263
6264 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6265
6266         * gimplify.c (gimplify_function_tree): Fix building calls
6267         to __builtin_return_address.
6268
6269 2011-03-07  Alan Modra  <amodra@gmail.com>
6270
6271         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6272         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6273         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6274         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6275         return_mode args.
6276         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6277         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6278         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6279         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6280         * config/rs6000/rs6000.c
6281         (rs6000_elf_end_indicate_exec_stack): Rename to..
6282         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6283         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6284         (rs6000_file_start): ..here.
6285         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6286         file scope variables.
6287         (call_ABI_of_interest): New function.
6288         (init_cumulative_args): Set above vars when function return value
6289         is a float, vector, or small struct.
6290         (rs6000_function_arg_advance_1): Likewise for function args.
6291         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6292         references float args.
6293
6294 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6295
6296         * doc/cfg.texi: Remove "See" before @ref.
6297         * doc/invoke.texi: Likewise.
6298
6299 2011-03-05  Jason Merrill  <jason@redhat.com>
6300
6301         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6302
6303 2011-03-05  Anthony Green  <green@moxielogic.com>
6304
6305         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6306
6307 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6308
6309         PR rtl-optimization/47899
6310         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6311         to flow_loop_nested_p when moving the loop upward.
6312
6313 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6314
6315         PR target/47719
6316         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6317
6318 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6319
6320         PR tree-optimization/47967
6321         * ipa-cp.c (build_const_val): Return NULL instead of creating
6322         VIEW_CONVERT_EXPR for mismatching sizes.
6323         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6324         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6325         give up on versioning.
6326
6327 2011-03-05  Alan Modra  <amodra@gmail.com>
6328
6329         PR target/47986
6330         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6331         full cmodel medium/large lo_sum + high addresses.
6332
6333 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6334
6335         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6336         pool references in UNSPEC_LTREL_OFFSET.
6337
6338 2011-03-04  Jan Hubicka  <jh@suse.cz>
6339
6340         PR lto/47497
6341         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6342         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6343         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6344         Add node pointers.
6345         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6346         cgraph_add_thunk): Add node pointers.
6347         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6348         associated to right node.
6349         (input_node): Update use of cgraph_same_body_alias
6350         and cgraph_add_thunk.
6351
6352 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6353
6354         * config/i386/i386.opt (mprefer-avx128): New flag.
6355         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6356         modes when the flag -mprefer-avx128 is on.
6357
6358 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6359
6360         * dwarf2out.c (compare_loc_operands): Fix address handling.
6361
6362 2011-03-04  Alan Modra  <amodra@gmail.com>
6363
6364         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6365
6366 2011-03-04  Richard Guenther  <rguenther@suse.de>
6367
6368         PR middle-end/47968
6369         * expmed.c (extract_bit_field_1): Prefer vector modes that
6370         vec_extract patterns can handle.
6371
6372 2011-03-04  Richard Guenther  <rguenther@suse.de>
6373
6374         PR middle-end/47975
6375         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6376
6377 2011-03-04  Richard Henderson  <rth@redhat.com>
6378
6379         * explow.c (emit_stack_save): Remove 'after' parameter.
6380         (emit_stack_restore): Likewise.
6381         * expr.h: Update to match.
6382         * builtins.c, calls.c, stmt.c: Likewise.
6383         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6384         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6385         * function.c (expand_function_end): Insert the emit_stack_save
6386         sequence before parm_birth_insn instead of after.
6387
6388 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6389
6390         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6391         (ssse3_pmaddubsw128): Ditto.
6392         (ssse3_pmaddubsw): Ditto.
6393
6394 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6395
6396         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6397
6398 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6399
6400         PR c/47963
6401         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6402         on TYPE_SIZE_UNIT if it is a DECL.
6403
6404         PR debug/47283
6405         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6406         first operand is not is_gimple_mem_ref_addr, try to fold it.
6407         If the operand still isn't is_gimple_mem_ref_addr, clear
6408         MEM_EXPR on op0.
6409
6410 2011-03-03  Richard Guenther  <rguenther@suse.de>
6411
6412         PR middle-end/47283
6413         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6414         match comment.
6415         (refs_may_alias_p_1): For release branches return true if
6416         we are confused by our input.
6417
6418 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6419
6420         * config/s390/s390.c (s390_function_value): Rename to ...
6421         (s390_function_and_libcall_value): ... this.
6422         (s390_function_value): New function.
6423         (s390_libcall_value): New function.
6424         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6425         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6426         target macro definitions.
6427         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6428
6429 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6430
6431         * config/i386/freebsd64.h (CC1_SPEC): Define.
6432         * config/i386/linux64.h (CC1_SPEC): Define.
6433         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6434
6435 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6436
6437         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6438         Remove.
6439         * config/stormy16/stormy16.c: Include reload.h.
6440         (xstormy16_memory_move_cost): New function.
6441         (TARGET_MEMORY_MOVE_COST): Define.
6442
6443 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6444
6445         PR rtl-optimization/47925
6446         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6447         with side effects.  Remove the more-specific check for volatile asms.
6448
6449 2011-03-02  Alan Modra  <amodra@gmail.com>
6450
6451         PR target/47935
6452         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6453         toc relative addresses for valid offsets.
6454
6455 2011-03-01  Richard Guenther  <rguenther@suse.de>
6456
6457         PR tree-optimization/47890
6458         * tree-vect-loop.c (get_initial_def_for_induction): Set
6459         related stmt properly.
6460
6461 2011-03-01  Richard Guenther  <rguenther@suse.de>
6462
6463         PR lto/47924
6464         * lto-streamer.c (lto_record_common_node): Also register
6465         the canonical type.
6466
6467 2011-03-01  Richard Guenther  <rguenther@suse.de>
6468
6469         PR lto/46911
6470         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6471         Do not stream DECL_ABSTRACT_ORIGIN.
6472         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6473         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6474         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6475         Do not stream DECL_ABSTRACT_ORIGIN.
6476         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6477         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6478
6479 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6480
6481         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6482         FUNCTION_VALUE_REGNO_P): Remove.
6483         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6484         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6485         Add 'outgoing' argument.
6486         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6487         function.
6488         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6489         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6490
6491 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6492
6493         PR debug/28047
6494         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6495         (lookup_filename): Likewise.
6496         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6497
6498 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6499             Jakub Jelinek  <jakub@redhat.com>
6500
6501         PR middle-end/47893
6502         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6503         (assign_stack_local_1): Change last argument type to int.
6504         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6505         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6506         don't record padding space into frame_space_list nor use those areas.
6507         (assign_stack_local): Adjust caller.
6508         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6509         of assign_stack_local, pass 0 as last argument.
6510         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6511         callers.
6512
6513 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6514
6515         PR debug/47283
6516         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6517         Use target address_mode and pointer_mode hooks instead of hardcoded
6518         Pmode and ptr_mode.  Handle some simple cases of extending if
6519         POINTERS_EXTEND_UNSIGNED < 0.
6520         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6521         Call convert_debug_memory_address.
6522         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6523         convert_debug_memory_address.
6524
6525         PR middle-end/46790
6526         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6527         * configure: Regenerated.
6528         * config.in: Regenerated.
6529         * varasm.c (default_function_section): Return NULL
6530         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6531
6532 2011-02-28  Martin Jambor  <mjambor@suse.cz>
6533
6534         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6535         the description to match the printed values.
6536
6537 2011-02-28  Richard Guenther  <rguenther@suse.de>
6538
6539         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6540         of the copied scope tree.
6541
6542 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6543
6544         * doc/extend.texi (Function Attributes): Avoid deeply (and
6545         wrongly) nested tables.
6546
6547 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
6548
6549         PR middle-end/47903
6550         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6551         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6552         r isn't op0 nor op1.
6553
6554 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6555
6556         * config/avr/avr.md: Remove magic comment for emacs.
6557
6558 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6559
6560         PR target/45261
6561         * config/avr/avr.c (avr_option_override): Use error on bad options.
6562         (avr_help): New function.
6563         (TARGET_HELP): Define.
6564
6565 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
6566
6567         PR target/42240
6568         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6569         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6570
6571 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6572
6573         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6574         (ARM Options): Ditto.
6575         (i386 and x86-64 Options): Ditto.
6576         (RX Options): Ditto.
6577         (SPARC Options): Ditto.
6578
6579 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
6580
6581         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6582         FreeBSD 6 and later.  Generally use cpu generic.
6583
6584 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6585
6586         * doc/cpp.texi: Update copyright years.
6587
6588 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6589
6590         PR target/46898
6591         * config/lm32/lm32.md (ashrsi3): Added needed variable.
6592
6593 2011-02-25  Jon Beniston  <jon@beniston.com>
6594
6595         PR target/46898
6596         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6597         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6598         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6599         (lm32_block_move_inline): Add type cast to remove warning.
6600         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6601         (gen_int_relational): Move declarations to start of function.
6602
6603 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6604
6605         PR tree-optimization/45470
6606         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6607         can throw internally only.
6608         * tree-vect-stmts.c (vectorizable_call): Likewise.
6609
6610 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6611
6612         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6613         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6614         * config/stormy16/stormy16-protos.h
6615         (xstormy16_preferred_reload_class): Remove.
6616         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6617         static. Change 'rclass' argument and return type to reg_class_t.
6618         (TARGET_PREFERRED_RELOAD_CLASS,
6619         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6620
6621 2011-02-24  Richard Guenther  <rguenther@suse.de>
6622
6623         * lto-streamer-in.c (input_bb): Do not find referenced vars
6624         in debug statements.
6625
6626 2011-02-23  Jason Merrill  <jason@redhat.com>
6627
6628         * common.opt (fabi-version): Document v5 and v6.
6629
6630 2011-02-23  Richard Guenther  <rguenther@suse.de>
6631
6632         PR tree-optimization/47849
6633         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6634
6635 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6636
6637         * opts-common.c (decode_cmdline_option): Print empty string
6638         argument as "" in decoded->orig_option_with_args_text.
6639         * gcc.c (execute): Print empty string argument as ""
6640         in the verbose output.
6641         (do_spec_1): Keep empty string argument.
6642
6643 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6644
6645         * config.gcc: Declare score-* and crx-* obsolete.
6646
6647 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6648
6649         PR rtl-optimization/47763
6650         * web.c (web_main): Ignore naked clobber when replacing register.
6651
6652 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6653
6654         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6655         Remove.
6656
6657 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6658
6659         PR doc/47848
6660         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6661
6662 2011-02-22  Mike Stump  <mikestump@comcast.net>
6663
6664         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6665         assembler.
6666         * configure: Regenerate.
6667
6668 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6669
6670         PR rtl-optimization/46002
6671         * ira-color.c (update_copy_costs): Change class intersection
6672         test to reg_class_contents[] test of 'hard_regno'.
6673
6674 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6675
6676         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6677         than Driver option.
6678         * config/hpux11.opt (mt): Likewise.
6679         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6680         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6681         * config/vax/elf.opt (mno-asm-pic): Likewise.
6682         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6683
6684 2011-02-21  Mike Stump  <mikestump@comcast.net>
6685
6686         PR target/47822
6687         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6688         tree so we can get save the type.
6689         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6690         for CFString instead of trying to use past the end of the builtins.
6691         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6692         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6693         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6694         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6695         Rename to darwin_builtin_cfstring.
6696         (darwin_init_cfstring_builtins): Return the built type.
6697
6698 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
6699
6700         PR target/47840
6701         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6702         (_mm256_insert_epi64): Use _mm_insert_epi64.
6703
6704 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
6705
6706         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6707         * config/stormy16/stormy16-protos.h
6708         (xstormy16_mode_dependent_address_p): Remove.
6709         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6710         Make static. Change return type to bool. Change argument type to
6711         const_rtx. Remove dead code.
6712         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6713
6714 2011-02-21  Richard Guenther  <rguenther@suse.de>
6715
6716         PR lto/47820
6717         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6718         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6719         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6720         TUs context.
6721         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6722         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6723
6724 2011-02-20  Richard Guenther  <rguenther@suse.de>
6725
6726         PR lto/47822
6727         * tree.c (free_lang_data_in_decl): Clean builtins from
6728         the TU decl BLOCK_VARS.
6729
6730 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
6731
6732         PR debug/47620
6733         PR debug/47630
6734         * haifa-sched.c (fix_tick_ready): Skip tick computation
6735         for debug insns.
6736
6737 2011-02-19  Richard Guenther  <rguenther@suse.de>
6738
6739         PR lto/47647
6740         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6741         Remove lazy BLOCK_VARS streaming.
6742         (lto_input_ts_block_tree_pointers): Likewise.
6743         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6744
6745 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6746
6747         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6748
6749 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6750
6751         * config/i386/biarch32.h, config/i386/mach.h,
6752         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6753
6754 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
6755
6756         PR target/47800
6757         * config/i386/i386.md (peephole2 for shift and plus): Use
6758         operands[1] original mode in the first insn.
6759
6760 2011-02-18  Mike Stump  <mikestump@comcast.net>
6761
6762         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6763
6764 2011-02-18  Jan Hubicka  <jh@suse.cz>
6765
6766         PR middle-end/47788
6767         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6768         to zero when the function is not inlinable at all.
6769
6770 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6771
6772         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6773         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6774         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6775         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6776         * config/pa/t-pa64: Likewise.
6777         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6778
6779 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6780
6781         PR driver/47787
6782         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6783
6784 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6785
6786         PR target/47792
6787         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6788
6789 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
6790
6791         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6792         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6793         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6794         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6795         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6796         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6797         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6798         m32r_load_postinc_p, m32r_store_preinc_predec_p,
6799         m32r_legitimate_address_p): New functions.
6800         * config/m32r/constraints.md (constraint "S"): Don't use
6801         STORE_PREINC_PREDEC_P.
6802         (constraint "U"): Don't use LOAD_POSTINC_P.
6803
6804 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
6805
6806         PR rtl-optimization/46178
6807         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6808         compute ira_hard_regno_cover_class[].
6809
6810 2011-02-18  Richard Guenther  <rguenther@suse.de>
6811
6812         PR lto/47798
6813         * lto-streamer.h (lto_global_var_decls): Declare.
6814         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6815         statics for global var processing.
6816
6817 2011-02-18  Richard Guenther  <rguenther@suse.de>
6818
6819         PR tree-optimization/47737
6820         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6821         edge dominance check.
6822
6823 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6824
6825         PR debug/47780
6826         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6827         avoid invalid rtx sharing.
6828
6829 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
6830
6831         * doc/cpp.texi (Obsolete Features): Add background on the
6832         origin of assertions.
6833
6834 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
6835
6836         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6837         objc_abi == 2.
6838         * config/darwin.c (output_objc_section_asm_op): Added support for
6839         ABI v1 and v2.
6840         (is_objc_metadata): New.
6841         (darwin_objc2_section): New.
6842         (darwin_objc1_section): New.
6843         (machopic_select_section): Added support for ABI v1 and v2.
6844         (darwin_emit_objc_zeroed): New.
6845         (darwin_output_aligned_bss): Detect objc metadata and treat it
6846         appropriately.
6847         (darwin_asm_output_aligned_decl_common): Same.
6848         (darwin_asm_output_aligned_decl_local): Same.
6849         * config/darwin-sections.def: Updated for ABI v1 and v2.
6850         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6851         compiling Objective-C code for the NeXT runtime, default to using
6852         ABI version 0 for 32-bit, and version 2 for 64-bit.
6853
6854 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6855
6856         * common.opt (optimize_fast): New Variable.
6857         * opts.c (default_options_optimization): Use opts->x_optimize_fast
6858         instead of local variable ofast.
6859
6860 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6861
6862         * doc/invoke.texi (fobjc-abi-version): Documented.
6863         (fobjc-nilcheck): Documented.
6864         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6865         version.
6866
6867 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6868
6869         PR driver/47390
6870         * common.opt (export-dynamic): New Driver option.
6871         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6872
6873 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6874
6875         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6876
6877 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
6878             Jan Hubicka  <jh@suse.cz>
6879
6880         PR debug/47106
6881         PR debug/47402
6882         * cfgexpand.c (account_used_vars_for_block): Remove.
6883         (estimated_stack_frame_size): Use referenced vars.
6884         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6885         that were referenced in the original function.  Test src_fn
6886         rather than cfun.  Drop redundant get_var_ann.
6887         (setup_one_parameter): Drop redundant get_var_ann.
6888         (declare_return_variable): Likewise.
6889         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6890         (copy_arguments_for_versioning): Drop redundant get_var_ann.
6891         * ipa-inline.c (compute_inline_parameters): Do not compute
6892         disregard_inline_limits here.
6893         (compute_inlinable_for_current, pass_inlinable): New.
6894         (pass_inline_parameters): Require PROP_referenced_vars.
6895         * cgraphunit.c (cgraph_process_new_functions): Don't run
6896         compute_inline_parameters explicitly unless function is in SSA form.
6897         (cgraph_analyze_function): Set .disregard_inline_limits.
6898         * tree-sra.c (convert_callers): Compute inliner parameters
6899         only for functions already in SSA form.
6900
6901 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6902
6903         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6904         -mlittle-endian-data.
6905
6906 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6907
6908         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6909         -mno-fpu, not -fpu and -no-fpu.
6910         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6911         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6912
6913 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
6914
6915         PR target/43653
6916         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6917         input reload with PLUS RTX.
6918
6919 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6920
6921         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6922         of InverseVar(MDMX).
6923
6924 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6925
6926         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6927         --m4-340.
6928
6929 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6930
6931         * config/mn10300/mn10300.opt (mno-crt0): New.
6932
6933 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6934
6935         * config/m68k/uclinux.opt (static-libc): New Driver option.
6936
6937 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6940
6941 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6942
6943         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6944         %{muser-extend-enabled}.
6945
6946 2011-02-16  Richard Guenther  <rguenther@suse.de>
6947
6948         PR tree-optimization/47738
6949         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
6950         the TODO from tree_predictive_commoning.
6951
6952 2011-02-15  Jeff Law  <law@redhat.com>
6953
6954         Revert
6955         2011-01-25  Jeff Law  <law@redhat.com>
6956
6957         PR rtl-optimization/37273
6958         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6959         handle them like argument loads from stack slots.  Do not double
6960         count memory for memory constants and argument loads from stack slots.
6961
6962 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
6963
6964         PR middle-end/47725
6965         * combine.c (cant_combine_insn_p): Revert the last change.
6966
6967 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6968
6969         PR target/47755
6970         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
6971         mode for vector constants.  Remove code that checks for TImode.
6972
6973 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6974
6975         PR debug/47106
6976         PR debug/47402
6977         * cgraph.h (compute_inline_parameters): Return void.
6978         * ipa-inline.c (compute_inline_parameters): Adjust.
6979
6980 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6981
6982         PR debug/47106
6983         PR debug/47402
6984         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
6985         rather than decl.
6986         * cfgexpand.c (estimated_stack_frame_size): Likewise.
6987         * ipa-inline.c (compute_inline_parameters): Adjust.
6988
6989 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6990
6991         PR debug/47106
6992         PR debug/47402
6993         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
6994         Adjust all users.  Pass FN to...
6995         * tree-flow-inline.h (first_referenced_var): ... this.  Add
6996         fn argument.
6997         * ipa-struct-reorg.c: Adjust.
6998         * tree-dfa.c: Adjust.
6999         * tree-into-ssa.c: Adjust.
7000         * tree-sra.c: Adjust.
7001         * tree-ssa-alias.c: Adjust.
7002         * tree-ssa-live.c: Adjust.
7003         * tree-ssa.c: Adjust.
7004         * tree-ssanames.c: Adjust.
7005         * tree-tailcall.c: Adjust.
7006
7007 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7008
7009         PR debug/47106
7010         PR debug/47402
7011         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7012         Adjust all callers.
7013         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7014         * tree-flow-inline.h: Adjust.
7015         * gimple-pretty-print.c: Adjust.
7016         * tree-into-ssa.c: Adjust.
7017         * tree-ssa.c: Adjust.
7018         * cfgexpand.c: Adjust.
7019
7020 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7021
7022         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7023         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7024         (EXTRA_CONSTRAINT): Delete.
7025         * config/iq2000/constraints.md: New file.
7026         * config/iq2000/iq2000.md: Include it.
7027         (define_insn ""): Delete.
7028         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7029         unsupported constraint letters from patterns.
7030         (call_value, call_value_internal1): Likewise.
7031         (call_value_multiple_internal1): Likewise.
7032
7033 2011-02-15  Nick Clifton  <nickc@redhat.com>
7034
7035         * config/mn10300/mn10300.c: Include tm-constrs.h.
7036         (struct liw_data): New data structure describing an LIW candidate
7037         instruction.
7038         (extract_bundle): Use struct liw_data.  Allow small integer
7039         operands for some instructions.
7040         (check_liw_constraints): Use struct liw_data.  Remove swapped
7041         parameter.  Add comments describing the checks.  Fix bug when
7042         assigning the source of liw1 to the source of liw2.
7043         (liw_candidate): Delete.  Code moved into extract_bundle.
7044         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7045         before swapping.
7046         * config/mn10300/predicates.md (liw_operand): New predicate.
7047         Allows registers and small integer constants.
7048         * config/mn10300/constraints.md (O): New constraint.  Accetps
7049         integers in the range -8 to +7 inclusive.
7050         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7051         for moving a small integer into a register.  Give this alternative
7052         LIW attributes.
7053         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7054         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7055         using the J,K,L and M constraints,
7056         (liw): Remove SI mode on second operands to allow for HI and QI
7057         mode values.
7058         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7059         instruction.
7060
7061 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7062
7063         PR middle-end/47725
7064         * combine.c (cant_combine_insn_p): Check zero/sign extended
7065         hard registers.
7066
7067 2011-02-15  Richard Guenther  <rguenther@suse.de>
7068
7069         PR tree-optimization/47743
7070         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7071         for a non-type-compatible VN lookup bail out.
7072
7073 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7074
7075         * config/fr30/constraints.md: New file.
7076         * config/fr30/fr30.md: Include it.
7077         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7078         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7079         (EXTRA_CONSTRAINT): Delete.
7080
7081 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7082
7083         * config/frv/constraints.md: New file.
7084         * config/frv/predicates.md: Include it.
7085         * config/frv/frv.c (reg_class_from_letter): Delete.
7086         (frv_option_override): Don't initialize it.
7087         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7088         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7089         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7090         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7091         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7092         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7093         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7094         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7095         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7096         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7097         (REG_CLASS_FROM_CONSTRAINT): Delete.
7098
7099 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7100
7101         PR middle-end/47581
7102         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7103         if frame size is 0 in a leaf function.
7104
7105 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7106
7107         PR pch/14940
7108         * config/alpha/host-osf.c: New file.
7109         * config/alpha/x-osf: New file.
7110         * config.host (alpha*-dec-osf*): Use it.
7111
7112 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7113
7114         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7115         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7116         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7117         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7118         type to const_rtx.
7119         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7120
7121 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7122
7123         * config/stormy16/constraints.md: New file.
7124         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7125         Use satisfies_constraint_Q and satisfies_constraint_R.
7126         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7127         Delete.
7128         (xstormy16_legitiamte_address_p): Declare.
7129         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7130         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7131         (EXTRA_CONSTRAINT): Delete.
7132         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7133         Un-staticize.
7134         (xstormy16_extra_constraint_p): Delete.
7135
7136 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7137
7138         PR tree-optimization/46494
7139         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7140         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7141         (pass_rtl_loop_done): Add TODO_verify_flow.
7142         * fwprop.c (pass_rtl_fwprop): Likewise.
7143         * modulo-sched.c (pass_sms): Likewise.
7144         * tree-ssa-dom.c (pass_dominator): Likewise.
7145         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7146         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7147         (pass_tree_loop_done): Likewise.
7148         * tree-ssa-pre.c (execute_pre): Likewise.
7149         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7150         * tree-ssa-sink.c (pass_sink_code): Likewise.
7151         * tree-vrp.c (pass_vrp): Likewise.
7152
7153 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7154
7155         * config/v850/constraints.md: New file.
7156         * config/v850/v850.md: Include it.
7157         * config/v850/predicates.md (reg_or_0_operand): Use
7158         satisfies_constraint_G.
7159         (special_symbolref_operand): Use satisfies_constraint_K.
7160         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7161         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7162         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7163         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7164         (EXTRA_CONSTRAINT): Delete.
7165         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7166         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7167         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7168
7169 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7170
7171         PR target/47696
7172         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7173         description.
7174
7175 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7176
7177         * config/mcore/constraints.md: New file.
7178         * config/mcore/mcore.md: Include it.
7179         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7180         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7181         (REG_CLASS_FROM_LETTER): Delete.
7182         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7183         insn_const_int_ok_for_constraint.
7184         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7185         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7186         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7187         (EXTRA_CONSTRAINT): Delete.
7188
7189 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7190
7191         PR ada/41929
7192         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7193         (IS_SIGHANDLER): Define.
7194         (sparc64_is_sighandler): New function, split off from
7195         sparc64_fallback_frame_state.
7196         (sparc_is_sighandler): New function, split off from
7197         sparc_fallback_frame_state.
7198         (sparc64_fallback_frame_state): Merge with ...
7199         (sparc_fallback_frame_state): ... this into ...
7200         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7201         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7202         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7203         stack instead of hardcoded offsets.
7204
7205 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7206
7207         PR target/45808
7208         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7209
7210 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7211
7212         * configure: Regenerate.
7213
7214 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7215
7216         PR driver/45731
7217         * gcc.c (asm_options): Correct spec matching --target-help.
7218
7219 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7220
7221         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7222         to gimple call error.
7223
7224 2011-02-12  Mike Stump  <mikestump@comcast.net>
7225
7226         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7227         comments in backslash regions.
7228
7229 2011-02-12  Mike Stump  <mikestump@comcast.net>
7230             Jakub Jelinek  <jakub@redhat.com>
7231             Iain Sandoe  <iains@gcc.gnu.org>
7232
7233         PR target/47324
7234         * dwarf2out.c (output_cfa_loc): When required, apply the
7235         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7236         (output_loc_sequence): Likewise.
7237         (output_loc_operands_raw): Likewise.
7238         (output_loc_sequence_raw): Likewise.
7239         (output_cfa_loc): Likewise.
7240         (output_loc_list): Suppress register number adjustment when
7241         calling output_loc_sequence()
7242         (output_die): Likewise.
7243
7244 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7245
7246         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7247         Remove macros.
7248         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7249         xtensa_memory_move_cost): New functions.
7250         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7251
7252 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7253
7254         PR lto/47225
7255         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7256         in the current directory.
7257         * configure: Rebuilt.
7258
7259 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7260
7261         * config/darwin.c (darwin_override_options): Add a hunk missed
7262         from the commit of r168571.  Trim comment line lengths and
7263         correct indents of the preceding block.
7264
7265 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7266
7267         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7268         the switch.
7269
7270 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7271
7272         * common.opt (nostartfiles): New Driver option.
7273
7274 2011-02-11  Xinliang David Li  <davidxl@google.com>
7275
7276         PR tree-optimization/47707
7277         * tree-chrec.c (convert_affine_scev): Keep type precision.
7278
7279 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7280
7281         PR tree-optimization/47420
7282         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7283
7284 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7285
7286         PR rtl-optimization/47614
7287         * rtl.h (check_for_inc_dec): Declare.
7288         * dse.c (check_for_inc_dec): Externalize...
7289         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7290         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7291
7292 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7293
7294         PR driver/47678
7295         * gcc.c (main): Do not compile inputs if there were errors in
7296         option handling.
7297         * opts-common.c (read_cmdline_option): Check for wrong language
7298         after other error checks.
7299
7300 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7301
7302         * cgraph.c: Fix comment typos.
7303         * cgraph.h: Likewise.
7304         * cgraphunit.c: Likewise.
7305         * ipa-cp.c: Likewise.
7306         * ipa-inline.c: Likewise.
7307         * ipa-prop.c: Likewise.
7308         * ipa-pure-const.c: Likewise.
7309         * ipa-ref.c: Likewise.
7310         * ipa-reference.c: Likewise.
7311
7312 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7313
7314         PR debug/47684
7315         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7316
7317 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7318
7319         PR testsuite/47400
7320         * doc/sourcebuild.texi (Require Support): Document
7321         dg-require-ascii-locale.
7322
7323 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7324
7325         * doc/lto.texi (Write summary): Fix missing parentheses.
7326
7327 2011-02-10  DJ Delorie  <dj@redhat.com>
7328
7329         * config/m32c/m32c.c (m32c_option_override): Disable
7330         -fcombine-stack-adjustments until flag value tracking and compare
7331         optimization can be rewritten.
7332
7333 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7334
7335         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7336         PROCESSOR_POWER7.
7337         (PROCESSOR_DEFAULT64): Likewise.
7338
7339 2011-02-10  Richard Henderson  <rth@redhat.com>
7340
7341         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7342         change from 2011-02-03.
7343         * config/rx/rx.c (flags_from_code): Likewise.
7344         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7345         is valid, n/pz otherwise.
7346         (rx_select_cc_mode): Return CCmode if Y is not zero.
7347
7348 2011-02-10  Richard Guenther  <rguenther@suse.de>
7349
7350         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7351
7352 2011-02-10  Richard Guenther  <rguenther@suse.de>
7353
7354         PR tree-optimization/47677
7355         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7356
7357 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7358
7359         PR target/47665
7360         * combine.c (make_compound_operation): Only change shifts into
7361         multiplication for SCALAR_INT_MODE_P.
7362
7363 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7364
7365         PR testsuite/47622
7366         Revert
7367         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7368         PR debug/42631
7369         * web.c (entry_register): Don't clobber the number of the
7370         first uninitialized reference in used[].
7371
7372 2011-02-09  Richard Guenther  <rguenther@suse.de>
7373
7374         PR tree-optimization/47664
7375         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7376         all edges again.
7377
7378 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7379
7380         PR target/46481
7381         PR target/47032
7382         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7383         PROCESSOR_POWER7.
7384         (PROCESSOR_DEFAULT64): Same.
7385         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7386
7387 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7388
7389         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7390
7391 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7392
7393         PR middle-end/45505
7394         * tree-sra.c (struct access): New flags grp_scalar_read and
7395         grp_scalar_write.  Changed description of assignment read and write
7396         flags.
7397         (dump_access): Dump new flags, reorder all of them.
7398         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7399         to detect multiple scalar reads.
7400         (analyze_access_subtree): Use the new scalar read write flags instead
7401         of the old flags.  Adjusted comments.
7402
7403 2011-02-08  DJ Delorie  <dj@redhat.com>
7404
7405         PR target/47548
7406         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7407         patterns.
7408
7409 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7410
7411         * config/m68k/uclinux.opt: New.
7412         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7413
7414 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7415
7416         * config/cris/elf.opt (sim): New Driver option.
7417
7418 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7419
7420         * config/xtensa/elf.opt: New.
7421         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7422
7423 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7424
7425         * config/vax/elf.opt: New.
7426         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7427
7428 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7429
7430         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7431
7432 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7433
7434         * config/gnu-user.opt: New.
7435         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7436         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7437         *-*-uclinux*): Use gnu-user.opt.
7438
7439 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7440
7441         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7442         * config/i386/gnu.h (CPP_SPEC): Likewise.
7443
7444 2011-02-08  Ian Lance Taylor  <iant@google.com>
7445
7446         * common.opt (fcx-limited-range): Add SetByCombined flag.
7447         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7448         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7449         (fassociative-math, freciprocal-math): Likewise.
7450         (funsafe-math-optimizations): Likewise.
7451         * opth-gen.awk: Handle SetByCombined.
7452         * optc-gen.awk: Likewise.
7453         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7454         (set_unsafe_math_optimizations_flags): Likewise.
7455         * doc/options.texi (Option properties): Document SetByCombined.
7456
7457 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7458
7459         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7460         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7461         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7462         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7463         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7464
7465 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7466
7467         PR tree-optimization/46834
7468         PR tree-optimization/46994
7469         PR tree-optimization/46995
7470         * graphite-sese-to-poly.c (used_outside_reduction): New.
7471         (detect_commutative_reduction): Call used_outside_reduction.
7472         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7473         translate_scalar_reduction_to_array only when at least one
7474         loop-phi/close-phi tuple has been detected.
7475
7476 2011-02-08  Richard Guenther  <rguenther@suse.de>
7477
7478         PR middle-end/47639
7479         * tree-vect-generic.c (expand_vector_operations_1): Update
7480         stmts here ...
7481         (expand_vector_operations): ... not here.  Cleanup EH info
7482         and the CFG if required.
7483
7484 2011-02-08  Richard Guenther  <rguenther@suse.de>
7485
7486         PR tree-optimization/47641
7487         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7488         require type compatibility.
7489
7490 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7491
7492         * gimple-low.c (lower_function_body): Don't remove the location of
7493         the return statement here.
7494         (lower_gimple_return): Do it here instead but only if the return
7495         statement is actually used twice.
7496
7497 2011-02-08  Richard Guenther  <rguenther@suse.de>
7498
7499         PR tree-optimization/47632
7500         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7501         unused up_to_stmt parameter, return whether cfg-cleanup is
7502         necessary, remove EH info properly.
7503         (forward_propagate_into_gimple_cond): Adjust caller.
7504         (forward_propagate_into_cond): Likewise.
7505         (forward_propagate_comparison): Likewise.
7506         (tree_ssa_forward_propagate_single_use_vars): Make
7507         forward_propagate_comparison case similar to the two others.
7508
7509 2011-02-08  Nick Clifton  <nickc@redhat.com>
7510
7511         * config/mn10300/mn10300.opt (mliw): New command line option.
7512         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7513         (liw_bundling): New automaton.
7514         (liw): New attribute.
7515         (liw_op): New attribute.
7516         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7517         (movsi_internal): Add LIW attributes.
7518         (andsi3): Likewise.
7519         (iorsi3): Likewise.
7520         (xorsi3): Likewise.
7521         (addsi3): Separate register and immediate alternatives.
7522         Add LIW attributes.
7523         (subsi3): Likewise.
7524         (cmpsi): Likewise.
7525         (aslsi3): Likewise.
7526         (lshrsi3): Likewise.
7527         (ashrsi3): Likewise.
7528         (liw): New pattern.
7529         * config/mn10300/mn10300.c (liw_op_names): New
7530         (mn10300_print_operand): Handle 'W' operand descriptor.
7531         (extract_bundle): New function.
7532         (check_liw_constraints): New function.
7533         (liw_candidate): New function.
7534         (mn10300_bundle_liw): New function.
7535         (mn10300_reorg): New function.
7536         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7537         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7538         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7539         __LIW__ or __NO_LIW__.
7540         * doc/invoke.texi: Describe the -mliw command line option.
7541
7542 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7543
7544         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7545         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7546         pthread_mutex_unlock): Remove.
7547         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7548         * config/pa/t-pa64: Likewise.
7549         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7550         shared libc if not linking against libpthread.
7551         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7552
7553 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
7554
7555         PR target/47558
7556         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7557         on 10.6 and later to ensure that we always use the unwinder from
7558         the system.  Only add -no_compact_unwind when tarteting darwin
7559         10.6 or later.
7560
7561 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
7562
7563         PR target/46997
7564         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7565         (vec_interleave_lowv2sf): Ditto.
7566         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7567         (vec_extract_oddv2sf): Ditto.
7568
7569 2011-02-07  Mike Stump  <mikestump@comcast.net>
7570
7571         PR target/42333
7572         Add __ieee_divdc3 entry point.
7573         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7574         entry point.
7575         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7576         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7577         * config/darwin.c (darwin_rename_builtins): Add.
7578         * config/darwin-protos.h (darwin_rename_builtins): Add.
7579
7580 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7581
7582         PR target/47636
7583         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7584         for the condition.
7585
7586 2011-02-07  Mike Stump  <mikestump@comcast.net>
7587
7588         * config/darwin.opt (mmacosx-version-min): Update default OS version.
7589
7590 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
7591
7592         PR target/47534
7593         * config/avr/libgcc.S (exit): Move .endfunc
7594
7595 2011-02-07  Richard Guenther  <rguenther@suse.de>
7596
7597         PR tree-optimization/47615
7598         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7599         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7600         (run_scc_vn): Initialize it.
7601         (visit_reference_op_load): Use it.
7602         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7603
7604 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7605
7606         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7607         DImode trapping arithmetic libfuncs.
7608
7609 2011-02-07  Richard Guenther  <rguenther@suse.de>
7610
7611         PR tree-optimization/47621
7612         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7613         two duplicates ...
7614         (execute_update_addresses_taken): ... here.  Make it more
7615         conservative in what we accept.
7616
7617 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7618
7619         * config/sparc/freebsd.h (ASM_SPEC): Define.
7620         * config/sparc/vxworks.h (ASM_SPEC): Define.
7621
7622 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7623
7624         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7625
7626 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7627
7628         * doc/invoke.texi: Remove reference to compiler internals from
7629         user documentation.
7630
7631         * reg-notes.def: Remove REG_VALUE_PROFILE.
7632         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7633
7634 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7635
7636         PR middle-end/47610
7637         * varasm.c (default_section_type_flags): If decl is NULL,
7638         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7639
7640 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7641
7642         PR debug/42631
7643         * web.c (entry_register): Don't clobber the number of the
7644         first uninitialized reference in used[].
7645
7646 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7647
7648         PR tree-optimization/46194
7649         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7650         (build_classic_dist_vector_1): Do not represent classic distance
7651         vectors when the access functions are variating in different loops.
7652
7653 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7654
7655         * config/mips/iris6.opt: New.
7656         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7657
7658 2011-02-04  Richard Henderson  <rth@redhat.com>
7659             Steve Ellcey  <sje@cup.hp.com>
7660
7661         PR target/46997
7662         * config/ia64/predicates.md (mux1_brcst_element): New.
7663         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7664         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7665         (ia64_unpack_sign): New.
7666         (ia64_expand_unpack): Rewrite using new routines.
7667         (ia64_expand_widen_sum): Ditto.
7668         (ia64_expand_dot_prod_v8qi): Ditto.
7669         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7670         routines, add endian check.
7671         (pmpy2_even): Rename from pmpy2_r, add endian check.
7672         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7673         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7674         (vec_widen_smult_hi_v4hi): Ditto.
7675         (vec_widen_umult_lo_v4hi): Ditto.
7676         (vec_widen_umult_hi_v4hi): Ditto.
7677         (mulv2si3): Change endian checks.
7678         (sdot_prodv4hi): Rewrite with new calls.
7679         (udot_prodv4hi): New.
7680         (vec_pack_ssat_v4hi): Add endian check.
7681         (vec_pack_usat_v4hi): Ditto.
7682         (vec_pack_ssat_v2si): Ditto.
7683         (max1_even): Rename from max1_r, add endian check.
7684         (max1_odd): Rename from max1_l, add endian check.
7685         (*mux1_rev): Format change.
7686         (*mux1_mix): Ditto.
7687         (*mux1_shuf): Ditto.
7688         (*mux1_alt): Ditto.
7689         (*mux1_brcst_v8qi): Use new predicate.
7690         (vec_extract_evenv8qi): Remove endian check.
7691         (vec_extract_oddv8qi): Ditto.
7692         (vec_interleave_lowv4hi): Format change.
7693         (vec_interleave_highv4hi): Ditto.
7694         (mix2_even): Rename from mix2_r, add endian check.
7695         (mix2_odd): Rename from mux2_l, add endian check.
7696         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7697         (vec_extract_evenodd_helper): Format change.
7698         (vec_extract_evenv4hi): Remove endian check.
7699         (vec_extract_oddv4hi): Remove endian check.
7700         (vec_interleave_lowv2si): Format change.
7701         (vec_interleave_highv2si): Format change.
7702         (vec_initv2si): Remove endian check.
7703         (vecinit_v2si): Add endian check.
7704         (reduc_splus_v2sf): Add endian check.
7705         (reduc_smax_v2sf): Ditto.
7706         (reduc_smin_v2sf): Ditto.
7707         (vec_initv2sf): Remove endian check.
7708         (fpack): Add endian check.
7709         (fswap): Add endian check.
7710         (vec_interleave_highv2sf): Add endian check.
7711         (vec_interleave_lowv2sf): Add endian check.
7712         (fmix_lr): Add endian check.
7713         (vec_setv2sf): Format change.
7714         (*vec_extractv2sf_0_be): Use shift to extract operand.
7715         (*vec_extractv2sf_1_be): New.
7716         (vec_pack_trunc_v4hi): Add endian check.
7717         (vec_pack_trunc_v2si): Format change.
7718
7719 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
7720
7721         PR inline-asm/23200
7722         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
7723         do bb, locus and block comparison and disallow loads if it is not set.
7724         (stmt_is_replaceable_p): New function.
7725         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7726         callers.
7727         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7728         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7729         SSA_NAME_DEF_STMT.
7730         * tree-flow.h (stmt_is_replaceable_p): New prototype.
7731
7732 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7733
7734         * config/rs6000/xilinx.opt: New.
7735         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7736
7737 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7738
7739         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7740
7741 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
7742
7743         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7744         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7745         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7746         secondary_reload_info, xtensa_secondary_reload): Remove.
7747         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7748         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7749         (xtensa_preferred_reload_class): Make static. Change return and
7750         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7751         Use CONST_DOUBLE_P predicate.
7752         (xtensa_preferred_output_reload_class): New function.
7753         (xtensa_secondary_reload): Make static.
7754
7755 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
7756
7757         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7758         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7759         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7760
7761 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7762
7763         PR middle-end/31490
7764         * output.h (SECTION_RELRO): Define.
7765         (SECTION_MACH_DEP): Adjust.
7766         (get_variable_section): New prototype.
7767         * varpool.c (varpool_finalize_named_section_flags): New function.
7768         (varpool_assemble_pending_decls): Call it.
7769         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7770         * cgraphunit.c (cgraph_output_in_order): Call
7771         varpool_finalize_named_section_flags.
7772         * varasm.c (get_section): Allow section flags conflicts between
7773         relro and read-only sections if the section hasn't been declared yet.
7774         Set SECTION_OVERRIDE after diagnosing section type conflict.
7775         (get_variable_section): No longer static.
7776         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7777         readonly sections that need relocations.
7778         (decl_readonly_section_1): New function.
7779         (decl_readonly_section): Use it.
7780
7781         Revert:
7782         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
7783                     Steve Ellcey  <sje@cup.hp.com>
7784
7785         PR middle-end/31490
7786         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7787         if section attribute used.
7788
7789 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7790
7791         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7792         * config/darwin.c (SECTION_NO_ANCHOR): Define.
7793         (darwin_init_sections): Remove assertion.
7794
7795 2011-02-03  Nick Clifton  <nickc@redhat.com>
7796
7797         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7798         lt and ge.
7799         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7800         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7801         instead of "n" and "pz".
7802         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7803         CC_FLAG_S.
7804
7805 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7806
7807         PR target/47312
7808         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7809         fma, expand FMA_EXPR as fma{,f,l} call.
7810
7811         PR lto/47274
7812         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7813         copy them into a unsigned char variable and pass address of it to
7814         lto_output_data_stream.
7815
7816         PR target/47564
7817         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7818         around backend_init_target and lang_dependent_init_target calls.
7819         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7820         (verify_cgraph_node): Don't call set_cfun here.  Use
7821         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7822         Set error_found for incorrectly represented calls to thunks.
7823
7824 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7825
7826         PR debug/43092
7827         PR rtl-optimization/43494
7828         * rtl.h (for_each_inc_dec_fn): New type.
7829         (for_each_inc_dec): Declare.
7830         * rtlanal.c (struct for_each_inc_dec_ops): New type.
7831         (for_each_inc_dec_find_inc_dec): New fn.
7832         (for_each_inc_dec_find_mem): New fn.
7833         (for_each_inc_dec): New fn.
7834         * dse.c (struct insn_size): Remove.
7835         (replace_inc_dec, replace_inc_dec_mem): Remove.
7836         (emit_inc_dec_insn_before): New fn.
7837         (check_for_inc_dec): Use it, along with for_each_inc_dec.
7838         (canon_address): Pass mem modes to cselib_lookup.
7839         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
7840         (cselib_lookup_from_insn): Likewise.
7841         (cselib_subst_to_values): Likewise.
7842         * cselib.c (find_slot_memmode): New var.
7843         (cselib_find_slot): New fn.  Use it instead of
7844         htab_find_slot_with_hash everywhere.
7845         (entry_and_rtx_equal_p): Use find_slot_memmode.
7846         (autoinc_split): New fn.
7847         (rtx_equal_for_cselib_p): Rename and implement in terms of...
7848         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
7849         Deal with autoinc.  Special-case recursion into MEMs.
7850         (cselib_hash_rtx): Likewise.
7851         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
7852         address and MEM modes.
7853         (cselib_subst_to_values): Add memmode, pass it on.
7854         Deal with autoinc.
7855         (cselib_lookup): Add memmode argument, pass it on.
7856         (cselib_lookup_from_insn): Add memmode.
7857         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7858         (struct cselib_record_autoinc_data): New.
7859         (cselib_record_autoinc_cb): New fn.
7860         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
7861         mode to cselib_lookup.  Reset autoinced REGs here instead of...
7862         (cselib_process_insn): ... here.
7863         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7864         to cselib_lookup.
7865         (add_uses): Likewise, also to cselib_subst_to_values.
7866         (add_stores): Likewise.
7867         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
7868         cselib_subst_to_values.
7869         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
7870         * gcse.c (do_local_cprop): Adjusted.
7871         * postreload.c (reload_cse_simplify_set): Adjusted.
7872         (reload_cse_simplify_operands): Adjusted.
7873         * sel-sched-dump (debug_mem_addr_value): Pass mode.
7874
7875 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7876
7877         PR tree-optimization/45122
7878         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7879         unsafe assumptions when there's more than one loop exit.
7880
7881 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7882
7883         PR target/47272
7884         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7885         Document using vector double with the load/store builtins, and
7886         that the load/store builtins always use Altivec instructions.
7887
7888         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7889         to use altivec memory instructions, even on VSX.
7890         (vector_altivec_store_<mode>): Ditto.
7891
7892         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7893         function.
7894
7895         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7896         V2DF, V2DI support to load/store overloaded builtins.
7897
7898         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7899         altivec load/store builtins for V2DF/V2DI types.
7900
7901         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7902         set avoid indexed addresses on power6 if -maltivec.
7903         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7904         vector_altivec_load/vector_altivec_store builtins.
7905         (altivec_expand_st_builtin): Ditto.
7906         (altivec_expand_builtin): Add VSX memory builtins.
7907         (rs6000_init_builtins): Add V2DI types to internal types.
7908         (altivec_init_builtins): Add support for V2DF/V2DI altivec
7909         load/store builtins.
7910         (rs6000_address_for_altivec): Insure memory address is appropriate
7911         for Altivec.
7912
7913         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7914         vec_vsx_ld and vec_vsx_st.
7915         (vsx_store_<mode>): Ditto.
7916
7917         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7918         variables to hold long long types for VSX vector memory builtins.
7919         (RS6000_BTI_unsigned_long_long): Ditto.
7920         (long_long_integer_type_internal_node): Ditti.
7921         (long_long_unsigned_type_internal_node): Ditti.
7922
7923         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7924         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7925         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7926
7927         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7928         short cuts.
7929         (vec_vsx_st): Ditto.
7930
7931 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7932
7933         * config/pa/pa-hpux10.opt: New.
7934         * config/hpux11.opt (pthread): New Driver option.
7935         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7936         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7937
7938 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7939
7940         * config/ia64/vms.opt: New.
7941         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7942
7943 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7944
7945         PR target/47580
7946         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7947         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
7948         generator functions.
7949         (vsx_floatuns<VSi><mode>2): Ditto.
7950         (vsx_fix_trunc<mode><VSi>2): Ditto.
7951         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
7952
7953 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7954
7955         * config/i386/djgpp.opt (posix): New Driver option.
7956
7957 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
7958
7959         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
7960         Move to the unsupported targets list.
7961
7962 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
7963
7964         PR rtl-optimization/47525
7965         * df-scan.c: Update copyright years.
7966         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
7967         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
7968
7969 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7970
7971         * config/i386/sysv4.h (TARGET_VERSION): Remove.
7972         (SUBTARGET_RETURN_IN_MEMORY): Remove.
7973         (ASM_OUTPUT_ASCII): Remove.
7974         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
7975
7976 2011-02-02  Jeff Law  <law@redhat.com>
7977
7978         PR middle-end/47543
7979         * reload.c (find_reloads_address): Handle reg+d address where both
7980         components are invalid by reloading the entire address.
7981
7982 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
7983             Richard Guenther  <rguenther@suse.de>
7984
7985         PR tree-optimization/40979
7986         PR bootstrap/47044
7987         * passes.c (init_optimization_passes): After LIM call copy_prop
7988         and DCE to clean up.
7989         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
7990
7991 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
7992
7993         PR tree-optimization/47576
7994         PR tree-optimization/47555
7995         * doc/invoke.texi (scev-max-expr-complexity): Documented.
7996         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7997         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
7998         * tree-scalar-evolution.c (follow_ssa_edge): Use
7999         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8000
8001 2011-02-02  Richard Guenther  <rguenther@suse.de>
8002
8003         PR tree-optimization/47566
8004         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8005
8006 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8007
8008         PR debug/47106
8009         PR debug/47402
8010         * tree-inline.c (declare_return_variable): Remove unused caller
8011         variable.
8012
8013         PR debug/47106
8014         PR debug/47402
8015         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8016         * cfgexpand.c (account_used_vars_for_block): Use them.
8017         * tree-nrv.c (tree_nrv): Likewise.
8018         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8019         (dump_scope_block): Likewise.
8020         (remove_unused_locals): Likewise.
8021
8022         PR debug/47106
8023         PR debug/47402
8024         * tree-inline.c (declare_return_variable): Add result decl to
8025         local decls only once.
8026         * gimple-low.c (record_vars_into): Mark newly-created variables
8027         as referenced.
8028
8029 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8030
8031         PR debug/47498
8032         PR debug/47501
8033         PR debug/45136
8034         PR debug/45130
8035         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8036         debug insns.
8037         (no_real_insns_p, schedule_block, set_priorities): Drop special
8038         treatment of boundary debug insns.
8039         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8040         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8041         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8042         (BOUNDARY_DEBUG_INSN_P): Likewise.
8043         (SCHEDULE_DEBUG_INSN_P): Likewise.
8044         * sched-rgn.c (init_ready_list): Drop special treatment of
8045         boundary debug insns.
8046         * final.c (rest_of_clean_state): Clear notes' BB.
8047
8048 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8049
8050         * config/openbsd.opt (assert=): New Driver option.
8051
8052 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8053
8054         * config/i386/nto.opt: New.
8055         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8056
8057 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8058
8059         * config/i386/netware.opt: New.
8060         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8061
8062 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8063
8064         * config/interix.opt (posix): New Driver option.
8065
8066 2011-02-01  DJ Delorie  <dj@redhat.com>
8067
8068         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8069
8070         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8071         class for A0/A1.
8072
8073 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8074
8075         PR tree-optimization/47561
8076         * toplev.c (process_options): Print the Graphite flags.  Add
8077         flag_loop_flatten to the list of options requiring Graphite.
8078
8079 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8080
8081         * config/i386/cygming.opt (posix): New Driver option.
8082
8083 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8084
8085         * config/arm/vxworks.opt: New.
8086         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8087
8088 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8089
8090         * config/alpha/elf.opt: New.
8091         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8092         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8093
8094 2011-02-01  Richard Guenther  <rguenther@suse.de>
8095
8096         PR tree-optimization/47559
8097         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8098         store-motion on references that can throw.
8099
8100 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8101
8102         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8103         * tree-pass.h (TDF_CSELIB): New macro.
8104         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8105         cselib_lookup): Check for it rather than for TDF_DETAILS.
8106
8107 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8108
8109         PR driver/47547
8110         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8111         is HOST_BIT_BUCKET.
8112
8113         * opts.c (finish_options): Don't add x_aux_base_name if it is
8114         HOST_BIT_BUCKET.
8115
8116 2011-02-01  Richard Guenther  <rguenther@suse.de>
8117
8118         PR tree-optimization/47555
8119         Revert
8120         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8121
8122         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8123
8124 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8125
8126         PR gcc/46692
8127         * config/lm32/t-lm32: Add multilib for all CPU options.
8128
8129 2011-02-01  Richard Guenther  <rguenther@suse.de>
8130
8131         PR tree-optimization/47541
8132         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8133         sure to have a field at offset zero.
8134
8135 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8136
8137         * config/arc/arc.opt (EB, EL): New Driver options.
8138
8139 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8140
8141         * config/alpha/osf5.opt: New.
8142         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8143
8144 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8145
8146         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8147
8148 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8149
8150         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8151         -floop-interchange.
8152         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8153         is an alias of -floop-interchange and that it requires the
8154         Graphite infrastructure.
8155         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8156         flag_loop_interchange based on the value of flag_tree_loop_linear.
8157
8158 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8159             Richard Guenther  <rguenther@suse.de>
8160
8161         PR tree-optimization/47538
8162         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8163         type instead of r1type, except for comparisons.  For right
8164         shifts and comparisons punt if there are mismatches in
8165         sizetype vs. non-sizetype types.
8166
8167 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8168
8169         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8170         avx_runtime.
8171
8172 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8173
8174         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8175         version number.
8176         * configure: Regenerate.
8177
8178 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8179
8180         * configure.ac (gcc_cv_ld_static_option): Define.
8181         (gcc_cv_ld_dynamic_option): Define.
8182         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8183         instead.
8184         (HAVE_LD_STATIC_DYNAMIC): Update message.
8185         (LD_STATIC_OPTION): Define.
8186         (LD_DYNAMIC_OPTION): Define.
8187         * configure: Regenerate.
8188         * config.in: Regenerate.
8189         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8190         HAVE_LD_STATIC_DYNAMIC]: Use them.
8191
8192 2011-01-31  Nick Clifton  <nickc@redhat.com>
8193
8194         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8195         registers inside interrupt handlers if the handler is not a leaf
8196         function.
8197
8198 2011-01-31  Nick Clifton  <nickc@redhat.com>
8199
8200         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8201         reg_renumber returning an INVALID_REGNUM.
8202
8203 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8204
8205         PR libgcj/44341
8206         * doc/install.texi: Document host options discarded when cross
8207         configuring target libraries.
8208
8209 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8210
8211         Reverted:
8212         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8213         PR debug/45136
8214         PR debug/45130
8215         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8216         debug insns.
8217         (no_real_insns_p, schedule_block, set_priorities): Drop special
8218         treatment of boundary debug insns.
8219         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8220         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8221         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8222         (BOUNDARY_DEBUG_INSN_P): Likewise.
8223         (SCHEDULE_DEBUG_INSN_P): Likewise.
8224         * sched-rgn.c (init_ready_list): Drop special treatment of
8225         boundary debug insns.
8226         * final.c (rest_of_clean-state): Clear notes' BB.
8227
8228 2011-01-31  Alan Modra  <amodra@gmail.com>
8229
8230         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8231         toc relative expressions as we do in print_operand_address.
8232
8233 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8234
8235         * doc/extend.texi: Follow spelling conventions.
8236         * doc/invoke.texi: Fix a typo.
8237
8238 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8239
8240         * config/hpux11.opt: New.
8241         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8242         ia64*-*-hpux*): Use hpux11.opt.
8243
8244 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8245
8246         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8247         to tmake_file.
8248
8249 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8250
8251         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8252         support sites.
8253
8254 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8255
8256         * doc/install.texi (Binaries): Remove outdated reference for
8257         Motorola 68HC11/68HC12 downloads.
8258
8259 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8260
8261         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8262         Drepper's paper.
8263
8264 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8265
8266         PR bootstrap/47147
8267         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8268         used by NetBSD.
8269
8270 2011-01-28  Ahmad Sharif  <asharif@google.com>
8271
8272         * value-prof.c (check_counter): Corrected error message.
8273
8274 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8275
8276         * config/arm/arm.c (arm_legitimize_reload_address): New.
8277         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8278         arm_legitimize_reload_address.
8279         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8280
8281 2011-01-28  Ian Lance Taylor  <iant@google.com>
8282
8283         * godump.c (go_define): Ignore macros whose definitions include
8284         two adjacent operands.
8285
8286 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8287
8288         PR target/42894
8289         * varasm.c (force_const_mem): Store copy of x in desc->constant
8290         instead of x itself.
8291         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8292         itself into REG_EQUAL note.
8293
8294 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8295
8296         * config/freebsd.opt (posix, rdynamic): New Driver options.
8297
8298 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8299
8300         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8301         -Bstatic/-Bdynamic.
8302         * configure: Regenerate.
8303
8304 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8307         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8308
8309 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8310
8311         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8312         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8313         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8314         (s390_preferred_reload_class): Make static. Change return and
8315         'rclass' argument type to reg_class_t.
8316
8317 2011-01-27  Jan Hubicka  <jh@suse.cz>
8318
8319         PR middle-end/46949
8320         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8321         (process_function_and_variable_attributes): Check defined weakrefs.
8322
8323 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8324
8325         PR tree-optimization/47228
8326         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8327         build_ref_for_offset.
8328
8329 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8330
8331         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8332
8333 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8334
8335         PR rtl-optimization/46856
8336         * postreload.c (reload_combine_recognize_const_pattern): Do not
8337         separate cc0 setter and user on cc0 targets.
8338
8339 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8340
8341         PR c/43082
8342         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8343         passed a VOID_TYPE expression, immediately emit an error and
8344         return error_mark_node.
8345
8346 2011-01-26  Jeff Law  <law@redhat.com>
8347
8348         PR rtl-optimization/47464
8349         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8350         rather than may_trap_p as needed.
8351
8352 2011-01-26  DJ Delorie  <dj@redhat.com>
8353
8354         PR rtl-optimization/46878
8355         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8356         setter/user dependency as well.
8357
8358 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8359
8360         PR rtl-optimization/44469
8361         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8362         after removing trivially dead basic blocks.
8363
8364 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8365
8366         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8367         * config/frv/frv.h (LINK_SPEC): Likewise.
8368         * config/i386/netware.h (LINK_SPEC): Likewise.
8369         * config/m68k/linux.h (ASM_SPEC): Likewise.
8370         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8371         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8372         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8373         * config/sparc/linux.h (ASM_SPEC): Likewise.
8374         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8375         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8376
8377 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8378
8379         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8380         * config/frv/frv.h (ASM_SPEC): Likewise.
8381         * config/m68k/linux.h (ASM_SPEC): Likewise.
8382         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8383         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8384         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8385         * config/sparc/linux.h (ASM_SPEC): Likewise.
8386         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8387         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8388
8389 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8390
8391         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8392         * config/frv/frv.h (LINK_SPEC): Likewise.
8393         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8394
8395 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8396
8397         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8398         * config/frv/frv.h (ASM_SPEC): Likewise.
8399         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8400         * config/m68k/linux.h (ASM_SPEC): Likewise.
8401         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8402         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8403         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8404         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8405         * config/sparc/linux.h (ASM_SPEC): Likewise.
8406         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8407         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8408         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8409
8410 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8411
8412         PR target/46997
8413         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8414         (*mux2): Ditto.
8415         (vec_extract_evenodd_help): Ditto.
8416         (vec_extract_evenv4hi): Ditto.
8417         (vec_extract_oddv4hi): Ditto.
8418         (vec_interleave_lowv2si): Ditto.
8419         (vec_interleave_highv2si): Ditto.
8420         (vec_extract_evenv2si): Ditto.
8421         (vec_extract_oddv2si: Ditto.
8422         (vec_pack_trunc_v2si): Ditto.
8423
8424 2011-01-22  Jan Hubicka  <jh@suse.cz>
8425
8426         PR target/47237
8427         * cgraph.h (cgraph_local_info): New field can_change_signature.
8428         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8429         signature can change.
8430         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8431         can change.
8432         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8433         (cgraph_function_versioning): We can not change signature of functions
8434         that don't allow that.
8435         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8436         (lto_input_node): Likewise.
8437         * ipa-inline.c (compute_inline_parameters): Compute
8438         local.can_change_signature.
8439         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8440         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8441         functions that can not change signature.
8442         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8443         init_cumulative_args): Do not use local calling conventions
8444         for functions that can not change signature.
8445
8446 2011-01-22  Jan Hubicka  <jh@suse.cz>
8447
8448         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8449
8450 2011-01-26  Richard Guenther  <rguenther@suse.de>
8451
8452         PR tree-optimization/47190
8453         * cgraphunit.c (process_common_attributes): New function.
8454         (process_function_and_variable_attributes): Use it.
8455
8456 2011-01-26  Richard Guenther  <rguenther@suse.de>
8457
8458         PR lto/47423
8459         * cgraphbuild.c (record_eh_tables): Record reference to personality
8460         function.
8461
8462 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8463
8464         PR debug/45454
8465         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8466         non-debug insns from moving up.
8467
8468 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8469
8470         PR target/40125
8471         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8472         t-dlldir{,-x} fragment for build and add it to tmake_file.
8473         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8474         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8475         * config/i386/t-dlldir: New file.
8476         (SHLIB_DLLDIR): Define.
8477         * config/i386/t-dlldir-x: New file.
8478         (SHLIB_DLLDIR): Define.
8479         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8480         (SHLIB_INSTALL): Use it.
8481
8482 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8483
8484         PR target/47246
8485         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8486         lower bound of the allowed Thumb-2 coprocessor load/store
8487         index range to -256. Add explaining comment.
8488
8489 2011-01-25  Ian Lance Taylor  <iant@google.com>
8490
8491         * godump.c (go_define): Improve lexing of macro expansion to only
8492         accept expressions which match Go spec.
8493
8494 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8495
8496         PR c++/43601
8497         * tree.c (handle_dll_attribute): Handle it.
8498         * doc/extend.texi (@item dllexport): Mention it.
8499         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8500
8501 2011-01-25  Ian Lance Taylor  <iant@google.com>
8502
8503         PR tree-optimization/26854
8504         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8505         (decl_jump_unsafe): Move higher in file, with no other change.
8506         (bind): Set has_jump_unsafe_decl if appropriate.
8507         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8508         (check_earlier_gotos): Likewise.
8509         (c_check_switch_jump_warnings): Likewise.
8510
8511 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8512
8513         * doc/invoke.texi (Warning Options): Add missing hyphen.
8514         (-fprofile-dir): Minor grammatical fixes.
8515         (-fbranch-probabilities): Likewise.
8516
8517 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8518
8519         PR debug/45136
8520         PR debug/45130
8521         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8522         debug insns.
8523         (no_real_insns_p, schedule_block, set_priorities): Drop special
8524         treatment of boundary debug insns.
8525         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8526         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8527         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8528         (BOUNDARY_DEBUG_INSN_P): Likewise.
8529         (SCHEDULE_DEBUG_INSN_P): Likewise.
8530         * sched-rgn.c (init_ready_list): Drop special treatment of
8531         boundary debug insns.
8532         * final.c (rest_of_clean-state): Clear notes' BB.
8533
8534 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8535
8536         * Makefile.in (LAMBDA_H): Removed.
8537         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8538         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8539         lambda-trans.o, and tree-loop-linear.o.
8540         (lto-symtab.o): Remove dependence on LAMBDA_H.
8541         (tree-loop-linear.o): Remove rule.
8542         (lambda-mat.o): Same.
8543         (lambda-trans.o): Same.
8544         (lambda-code.o): Same.
8545         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8546         (tree-vect-slp.o): Same.
8547         * hwint.h (gcd): Moved here.
8548         (least_common_multiple): Same.
8549         * lambda-code.c: Removed.
8550         * lambda-mat.c: Removed.
8551         * lambda-trans.c: Removed.
8552         * lambda.h: Removed.
8553         * tree-loop-linear.c: Removed.
8554         * lto-symtab.c: Do not include lambda.h.
8555         * omega.c (gcd): Removed.
8556         * passes.c (init_optimization_passes): Remove pass_linear_transform.
8557         * tree-data-ref.c (print_lambda_vector): Moved here.
8558         (lambda_vector_copy): Same.
8559         (lambda_matrix_copy): Same.
8560         (lambda_matrix_id): Same.
8561         (lambda_vector_first_nz): Same.
8562         (lambda_matrix_row_add): Same.
8563         (lambda_matrix_row_exchange): Same.
8564         (lambda_vector_mult_const): Same.
8565         (lambda_vector_negate): Same.
8566         (lambda_matrix_row_negate): Same.
8567         (lambda_vector_equal): Same.
8568         (lambda_matrix_right_hermite): Same.
8569         * tree-data-ref.h: Do not include lambda.h.
8570         (lambda_vector): Moved here.
8571         (lambda_matrix): Same.
8572         (dependence_level): Same.
8573         (lambda_transform_legal_p): Removed declaration.
8574         (lambda_collect_parameters): Same.
8575         (lambda_compute_access_matrices): Same.
8576         (lambda_vector_gcd): Same.
8577         (lambda_vector_new): Same.
8578         (lambda_vector_clear): Same.
8579         (lambda_vector_lexico_pos): Same.
8580         (lambda_vector_zerop): Same.
8581         (lambda_matrix_new): Same.
8582         * tree-flow.h (least_common_multiple): Removed declaration.
8583         * tree-parloops.c (lambda_trans_matrix): Moved here.
8584         (LTM_MATRIX): Same.
8585         (LTM_ROWSIZE): Same.
8586         (LTM_COLSIZE): Same.
8587         (LTM_DENOMINATOR): Same.
8588         (lambda_trans_matrix_new): Same.
8589         (lambda_matrix_vector_mult): Same.
8590         (lambda_transform_legal_p): Same.
8591         * tree-pass.h (pass_linear_transform): Removed declaration.
8592         * tree-ssa-loop.c (tree_linear_transform): Removed.
8593         (gate_tree_linear_transform): Removed.
8594         (pass_linear_transform): Removed.
8595         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8596         flag_loop_interchange.
8597
8598 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8599
8600         PR tree-optimization/47265
8601         PR tree-optimization/47443
8602         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8603         if name still has some uses.
8604
8605 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8606
8607         PR tree-optimization/47382
8608         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8609         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8610
8611 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8612
8613         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8614         sjlj_except_unwind_info.
8615
8616 2011-01-25  Richard Guenther  <rguenther@suse.de>
8617
8618         PR tree-optimization/47426
8619         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8620         visible functions results escape.
8621
8622 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8623
8624         PR target/45701
8625         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8626         (arm_get_frame_offsets): Use it.
8627
8628 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8629             Jakub Jelinek  <jakub@redhat.com>
8630
8631         PR tree-optimization/47271
8632         * tree-if-conv.c (bb_postdominates_preds): New.
8633         (if_convertible_bb_p): Call bb_postdominates_preds.
8634         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8635         (predicate_scalar_phi): Call bb_postdominates_preds.
8636
8637 2011-01-25  Nick Clifton  <nickc@redhat.com>
8638
8639         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8640         * config/rx/rx.c (rx_function_value): Likewise.
8641         (rx_promote_function_mode): Likewise.
8642         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8643         in order to make it legitimate.
8644         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8645         make sure that the first operand is the same as the result register.
8646         (addsi3_unspec): Delete.
8647         (subdi3): Do not accept immediate operands.
8648         (subdi3_internal): Likewise.
8649
8650 2011-01-25  Jeff Law  <law@redhat.com>
8651
8652         PR rtl-optimization/37273
8653         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8654         handle them like argument loads from stack slots.  Do not double
8655         count memory for memory constants and argument loads from stack slots.
8656
8657 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8658
8659         PR tree-optimization/47427
8660         PR tree-optimization/47428
8661         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8662         coalesce if the new root var would be TREE_READONLY.
8663
8664 2011-01-25  Richard Guenther  <rguenther@suse.de>
8665
8666         PR middle-end/47414
8667         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8668         correct type for TBAA.
8669
8670 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8671
8672         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8673         (close_phi_written_to_memory): Call for_each_index with
8674         dr_indices_valid_in_loop.
8675
8676 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8677
8678         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8679         when it is initialized.
8680
8681 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8682
8683         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8684         call to graphite_find_data_references_in_stmt.
8685         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8686         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8687         call to graphite_find_data_references_in_stmt.
8688         (analyze_drs_in_stmts): Same.
8689         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8690         in which the scalar analysis of indices is performed.
8691         (create_data_ref): Same.  Update call to dr_analyze_indices.
8692         (find_data_references_in_stmt): Update call to create_data_ref.
8693         (graphite_find_data_references_in_stmt): Same.
8694         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8695         declaration.
8696         (create_data_ref): Same.
8697         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8698         call to create_data_ref.
8699
8700 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8701
8702         * graphite-sese-to-poly.c (build_poly_scop): Move
8703         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8704
8705 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8706
8707         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8708         VAR_DECL, PARM_DECL, and RESULT_DECL.
8709
8710 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8711
8712         * graphite-dependences.c (reduction_dr_1): Allow several reductions
8713         in a reduction PBB.
8714         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8715         that have already been marked as PBB_IS_REDUCTION.
8716
8717 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8718
8719         * graphite-scop-detection.c (same_close_phi_node): New.
8720         (remove_duplicate_close_phi): New.
8721         (make_close_phi_nodes_unique): New.
8722         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8723
8724 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8725
8726         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8727         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8728         of both data references to be the same.
8729
8730 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8731
8732         * graphite-dependences.c (build_lexicographical_constraint): Remove
8733         the gdim parameter.
8734         (build_lexicographical_constraint): Adjust call to
8735         ppl_powerset_is_empty.
8736         (dependence_polyhedron): Same.
8737         (graphite_legal_transform_dr): Same.
8738         (graphite_carried_dependence_level_k): Same.
8739         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8740         parameter.
8741         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8742
8743 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8744
8745         * graphite-sese-to-poly.c
8746         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8747         (close_phi_written_to_memory): New.
8748         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8749         and unshare_expr.
8750
8751 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8752
8753         * doc/install.texi: Update the expected version number of PPL to 0.11.
8754         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8755         #if PPL_VERSION_MINOR < 11.
8756
8757 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8758
8759         * graphite-dependences.c: Include graphite-cloog-util.h.
8760         (new_poly_ddr): Inlined into dependence_polyhedron.
8761         (free_poly_ddr): Moved close by new_poly_ddr.
8762         (dependence_polyhedron_1): Renamed dependence_polyhedron.
8763         Early return NULL when ppl_powerset_is_empty returns true.
8764         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
8765         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
8766         (graphite_legal_transform_dr): Call new_poly_ddr.
8767         (graphite_carried_dependence_level_k): Same.
8768         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
8769         (dot_transformed_deps_stmt_1): Removed.
8770         (dot_deps_stmt_1): Call dot_deps_stmt_2.
8771         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
8772         (dot_deps_1): Call dot_deps_2.
8773         * Makefile.in (graphite-dependences.o): Add missing dependence on
8774         graphite-cloog-util.h.
8775
8776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8777
8778         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8779         (build_lexicographical_constraint): Same.
8780         (dependence_polyhedron_1): Same.
8781         (graphite_legal_transform_dr): Same.
8782         (graphite_carried_dependence_level_k): Same.
8783         * graphite-ppl.c (ppl_powerset_is_empty): New.
8784         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8785         * tree-data-ref.c (dump_data_reference): Print the basic block index.
8786
8787 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8788
8789         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8790         the "a followed by b" relation and document it.
8791
8792 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8793
8794         * graphite-dependences.c (build_lexicographical_constraint): Stop the
8795         iteration when the bag of constraints is empty.
8796
8797 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8798
8799         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8800
8801 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8802
8803         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8804         nest and two loop depths as parameters.
8805         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8806         lst_perfect_nestify.
8807
8808 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8809
8810         * graphite-dependences.c (print_pddr): Call
8811         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8812
8813 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8814
8815         * graphite-ppl.c (debug_gmp_value): New.
8816         * graphite-ppl.h (debug_gmp_value): Declared.
8817
8818 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
8819
8820         * doc/install.texi: Document availability of cloog-0.16.
8821
8822 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
8823
8824         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8825         invalid postdominance info.
8826
8827 2011-01-24  Jan Hubicka  <jh@suse.cz>
8828
8829         PR c/21659
8830         * doc/extend.texi (weak pragma): Drop claim that it must
8831         appear before definition.
8832         * varasm.c (merge_weak, declare_weak): Only sanity check
8833         that DECL is not output at a time it is declared weak.
8834
8835 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
8836
8837         * machmode.def: Fixed comments.
8838
8839 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
8840
8841         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8842
8843 2011-01-24  Paul Koning  <ni1d@arrl.net>
8844
8845         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8846         WORDS_BIG_ENDIAN.
8847
8848 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8849
8850         PR target/46519
8851         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8852         (block_info): Add scanned and prev.
8853         (move_or_delete_vzeroupper_2): Return if the basic block
8854         has been scanned and the upper 128bit state is unchanged
8855         from the last scan.
8856         (move_or_delete_vzeroupper_1): Return true if the exit
8857         state is changed.
8858         (move_or_delete_vzeroupper): Visit basic blocks using the
8859         work-list based algorithm based on vt_find_locations in
8860         var-tracking.c.
8861
8862         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8863
8864 2011-01-24  Nick Clifton  <nickc@redhat.com>
8865
8866         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8867         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8868         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
8869         then define __v850e1__.
8870         * doc/invoke.texi: Document -mv850es.
8871
8872 2011-01-24  Richard Henderson  <rth@redhat.com>
8873
8874         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8875         compound unordered comparisons.
8876         * config/rx/rx.c (rx_split_fp_compare): Remove.
8877         * config/rx/rx-protos.h: Update.
8878         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8879         (cbranchsf4): Don't call rx_split_fp_compare.
8880         (*cbranchsf4): Use rx_split_cbranch.
8881         (*cmpsf): Don't accept "i" constraint.
8882         (*conditional_branch): Only valid after reload.
8883         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
8884
8885 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8886
8887         PR target/47385
8888         * config/rs6000/altivec.md (vector constant splitters): Add
8889         support for creating vector single precision constants if -mvsx is
8890         used and we would create the constant using Altivec primitives.
8891
8892 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
8893             Richard Sandiford  <rdsandiford@googlemail.com>
8894
8895         PR rtl-optimization/47166
8896         * reload1.c (emit_reload_insns): Disable the spill_reg_store
8897         mechanism for PRE_MODIFY and POST_MODIFY.
8898         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8899         reloadreg.
8900
8901 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
8902
8903         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8904
8905 2011-01-22  Jan Hubicka  <jh@suse.cz>
8906
8907         PR lto/47333
8908         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8909
8910 2011-01-22  Jan Hubicka  <jh@suse.cz>
8911
8912         PR tree-optimization/43884
8913         PR lto/44334
8914         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8915         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8916
8917 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
8918
8919         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8920         * config/s390/s390.c (s390_register_move_cost,
8921         s390_memory_move_cost): New.
8922         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8923
8924 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8925
8926         PR middle-end/47401
8927         * except.c (sjlj_assign_call_site_values): Move setting the
8928         crtl->uses_eh_lsda flag to ...
8929         (sjlj_mark_call_sites): ... here.
8930         (sjlj_emit_function_enter): Support NULL dispatch label.
8931         (sjlj_build_landing_pads): In a function with no landing pads
8932         that still has must-not-throw regions, generate code to register
8933         a personality function with empty LSDA.
8934
8935 2011-01-21  Richard Henderson  <rth@redhat.com>
8936
8937         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8938
8939         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8940
8941         * compare-elim.c: New file.
8942         * Makefile.in (OBJS-common): Add it.
8943         (compare-elim.o): New.
8944         * common.opt (fcompare-elim): New.
8945         * opts.c (default_options_table): Add OPT_fcompare_elim.
8946         * tree-pass.h (pass_compare_elim_after_reload): New.
8947         * passes.c (init_optimization_passes): Add it.
8948         * recog.h: Protect against re-inclusion.
8949         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
8950         * doc/invoke.texi (-fcompare-elim): Document it.
8951         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
8952         * doc/tm.texi: Rebuild.
8953
8954 2011-01-22  Nick Clifton  <nickc@redhat.com>
8955
8956         * config/rx/rx.md (cstoresf4): Pass comparison operator to
8957         rx_split_fp_compare.
8958
8959 2011-01-22  Nick Clifton  <nickc@redhat.com>
8960
8961         * config/rx/rx.md (UNSPEC_CONST): New.
8962         (deallocate_and_return): Wrap the amount popped off the stack in
8963         an UNSPEC_CONST in order to stop it being rejected by
8964         -mmax-constant-size.
8965         (pop_and_return): Add a "(return)" rtx.
8966         (call): Drop the immediate operand.
8967         (call_internal): Likewise.
8968         (call_value): Likewise.
8969         (call_value_internal): Likewise.
8970         (sibcall_internal): Likewise.
8971         (sibcall_value_internal): Likewise.
8972         (sibcall): Likewise.  Generate an explicit call using
8973         sibcall_internal.
8974         (sibcall_value): Likewise.
8975         (mov<>): FAIL if a constant operand is not legitimate.
8976         (addsi3_unpsec): New pattern.
8977
8978         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
8979         (ok_for_max_constant): New function.
8980         (gen_safe_add): New function.
8981         (rx_expand_prologue): Use gen_safe_add.
8982         (rx_expand_epilogue): Likewise.
8983         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
8984         UNSPEC CONSTs.
8985
8986 2011-01-21  Jeff Law  <law@redhat.com>
8987
8988         PR tree-optimization/47053
8989         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
8990         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
8991         statements are deleted.
8992         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
8993         is nonempty, then purge dead edges and cleanup the CFG.
8994
8995 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
8996
8997         PR debug/47402
8998         Temporarily revert:
8999         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9000         PR debug/47106
9001         * tree-dfa.c (create_var_ann): Mark variable as used.
9002
9003 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9004
9005         PR middle-end/45566
9006         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9007         notes from other section in hot/cold partitioning even if
9008         last_action is -3.  Increment call_site_base.
9009
9010         PR rtl-optimization/47366
9011         * fwprop.c (forward_propagate_into): Return bool.  If
9012         any changes are made, -fnon-call-exceptions is used and
9013         REG_EH_REGION note is present, call purge_dead_edges
9014         and return true if it purged anything.
9015         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9016         any EH edges were purged.
9017
9018 2011-01-21  Jeff Law  <law@redhat.com>
9019
9020         PR rtl-optimization/41619
9021         * caller-save.c (setup_save_areas): Break out code to determine
9022         which hard regs are live across calls by examining the reload chains
9023         so that it is always used.
9024         Eliminate code which checked REG_N_CALLS_CROSSED.
9025
9026 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9027
9028         PR tree-optimization/47355
9029         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9030         NOP has non-debug uses beyond PHIs in new_bb.
9031
9032 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9033
9034         PR debug/47106
9035         * cfgexpand.c (account_used_vars_for_block): Only account vars
9036         that are annotated as used.
9037         (estimated_stack_frame_size): Don't set TREE_USED.
9038         * tree-dfa.c (create_var_ann): Mark variable as used.
9039
9040 2011-01-21  Richard Guenther  <rguenther@suse.de>
9041
9042         PR middle-end/47395
9043         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9044
9045 2011-01-21  Richard Guenther  <rguenther@suse.de>
9046
9047         PR tree-optimization/47365
9048         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9049         (vn_reference_lookup_pieces): Adjust.
9050         (vn_reference_lookup): Likewise.
9051         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9052         (vn_reference_lookup_3): Only look through kills if in
9053         VN_WALKREWRITE mode.
9054         (vn_reference_lookup_pieces): Adjust.
9055         (vn_reference_lookup): Likewise.
9056         (visit_reference_op_load): Likewise.
9057         (visit_reference_op_store): Likewise.
9058         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9059         (compute_avail): Likewise.
9060         (eliminate): Likewise.
9061
9062 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9063
9064         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9065         DECL_IGNORED_P non-reg vars if they are used.
9066
9067         PR tree-optimization/47391
9068         * varpool.c (const_value_known_p): Return false if
9069         decl is volatile.
9070
9071 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9072
9073         PR bootstrap/47215
9074         * config/i386/i386.c (ix86_local_alignment): Handle
9075         case for va_list_type_node is nil.
9076         (ix86_canonical_va_list_type): Likewise.
9077
9078 2011-01-21  Alan Modra  <amodra@gmail.com>
9079
9080         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9081         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9082
9083 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9084
9085         * config/arm/arm.md (define_attr type): Rename f_load
9086         and f_store to f_fpa_load and f_fpa_store. Update.
9087         (write_conflict): Deal with rename fallout.
9088         (*push_fp_multi): Likewise.
9089         * config/arm/fpa.md (f_load): Use f_fpa_load.
9090         (f_store): Use f_fpa_store.
9091         (*movsf_fpa): Likewise.
9092         (*movdf_fpa): Likewise.
9093         (*movxf_fpa): Likewise.
9094         (*thumb2_movsf_fpa): Likewise.
9095         (*thumb2_movdf_fpa): Likewise.
9096         (*thumb2_movxf_fpa): Likewise.
9097         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9098         f_loadd and f_stored.
9099         (*thumb2_movdi_vfp): Likewise.
9100         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9101         (*thumb2_movsi_vfp): Likewise.
9102         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9103         Use f_loads instead of f_load.
9104         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9105
9106 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9107
9108         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9109         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9110         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9111         (xtensa_mode_dependent_address_p): New function.
9112         (constantpool_address_p): Make static. Change return type to bool.
9113         Change argument type to const_rtx. Use CONST_INT_P predicate.
9114
9115 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9116
9117         PR debug/46583
9118         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9119
9120 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9121
9122         PR debug/47283
9123         * cfgexpand.c (expand_debug_expr): Instead of generating
9124         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9125         etc. handling.
9126
9127 2011-01-20  Richard Guenther  <rguenther@suse.de>
9128
9129         PR middle-end/47370
9130         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9131         the pointer operand of MEM_REFs.
9132
9133 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9134
9135         PR tree-optimization/46130
9136         * ipa-split.c (consider_split): If return_bb contains non-virtual
9137         PHIs other than for retval or if split_function would not adjust it,
9138         refuse to split.
9139
9140 2011-01-20  Richard Guenther  <rguenther@suse.de>
9141
9142         PR tree-optimization/47167
9143         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9144         Revert previous change, only avoid enumeral type changes.
9145
9146 2011-01-19  Mike Stump  <mikestump@comcast.net>
9147
9148         * doc/tm.texi.in (BRANCH_COST): Englishify.
9149         * doc/tm.texi (BRANCH_COST): Likewise.
9150
9151 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9152
9153         PR c++/47291
9154         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9155         (gen_scheduled_generic_parms_dies): New functions.
9156         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9157         generation for the end of CU compilation.
9158         (dwarf2out_finish): Generate template parameters DIEs here.
9159
9160 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9161
9162         PR debug/46240
9163         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9164         debug bind stmt on merge edges.
9165
9166 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9167
9168         PR debug/47079
9169         PR debug/46724
9170         * function.c (instantiate_expr): Instantiate incoming rtl of
9171         implicit arguments, and recurse on VALUE_EXPRs.
9172         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9173         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9174
9175 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9176
9177         * c-parser.c (c_parser_for_statement): Initialize
9178         collection_expression.
9179
9180 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9181
9182         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9183
9184 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9185
9186         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9187         (LINK_SHLIB_SPEC): Don't use %(link_path).
9188         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9189
9190 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9191
9192         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9193         (NO_SHARED_LIB_SUPPORT): Remove.
9194         (LINK_SHLIB_SPEC): Remove one conditional definition.
9195
9196 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9197
9198         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9199         %{call_shared}.
9200         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9201         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9202         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9203         %{call_shared} and conditionals on these options not being passed.
9204         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9205         %{call_shared}.
9206
9207 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9208
9209         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9210         simplify.
9211
9212         * ipa-split.c: Spelling fixes.
9213
9214 2011-01-19  Richard Henderson  <rth@redhat.com>
9215
9216         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9217         (*mulsi3): Likewise.
9218
9219         * longlong.h [__mn10300__] (count_leading_zeros): New.
9220         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9221         [__mn10300__] (add_ssaaaa, subddmmss): New.
9222         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9223         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9224
9225 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9226
9227         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9228
9229 2011-01-19  Richard Henderson  <rth@redhat.com>
9230
9231         * config/mn10300/mn10300.md (addsi3_flags): New.
9232         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9233         (subsi3_flags, subc_internal, subdi3): New.
9234         (subdi3_internal, *subdi3_degenerate): New.
9235         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9236
9237         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9238         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9239         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9240         * config/mn10300/mn10300-protos.h: Update.
9241         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9242         (return_ret): Likewise.  Rename from return_internal_regs.
9243         (return_internal): Remove.
9244
9245         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9246         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9247         (mn10300_legitimate_constant_p): Likewise.
9248         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9249         (mn10300_frame_size): New.
9250         (mn10300_expand_prologue): Use it.
9251         (mn10300_expand_epilogue): Likewise.
9252         (mn10300_initial_offset): Likewise.
9253         * config/mn10300/mn10300-protos.h: Update.
9254         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9255         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9256         (prologue, epilogue, return_internal): Tidy output code.
9257         (mn10300_store_multiple_operation, return): Likewise.
9258         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9259         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9260         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9261         (load_pic, am33_load_pic): New.
9262         (mn10300_load_pic0, mn10300_load_pic1): New.
9263
9264         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9265         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9266         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9267         (cc_flags_for_mode, cc_flags_for_code): New.
9268         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9269         overflow flag is not valid.  Validate that the flags we need
9270         for the comparison are valid.
9271         (mn10300_output_cmp): Remove.
9272         (mn10300_output_add): New.
9273         (mn10300_select_cc_mode): Use cc_flags_for_code.
9274         (mn10300_split_cbranch): New.
9275         (mn10300_match_ccmode): New.
9276         (mn10300_split_and_operand_count): New.
9277         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9278         to the function.
9279         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9280         (addsi3): ... here.  Use mn10300_output_add.
9281         (*addsi3_flags): New.
9282         (*am33_subsi3, *mn10300_subsi3): Merge...
9283         (subsi3): ... here.  Use attribute isa.
9284         (*subsi3_flags): New.
9285         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9286         when possible.
9287         (*am33_andsi3, *mn10300_andsi3): Merge...
9288         (andsi3): ... here.
9289         (*andsi3_flags): New.
9290         (andsi3 splitters): New.
9291         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9292         (iorsi3): ... here.
9293         (*iorsi3_flags): New.
9294         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9295         (xorsi3): ... here.
9296         (*xorsi3_flags): New.
9297         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9298         (one_cmplsi2): ... here.
9299         (*one_cmplsi2_flags): New.
9300         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9301         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9302         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9303         use matching constraints to eliminate a self-comparison.
9304         (*integer_conditional_branch): Rename from integer_conditional_branch.
9305         Use int_mode_flags to match CC_REG.
9306         (*cbranchsi4_btst, *btstsi): New.
9307         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9308         mn10300_split_cbranch.
9309         (*am33_cmpsf): Rename from am33_cmpsf.
9310         (*float_conditional_branch): Rename from float_conditional_branch.
9311         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9312         (zero_extendqisi2): ... here.
9313         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9314         (zero_extendhisi2): ... here.
9315         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9316         (extendqisi2): ... here.
9317         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9318         (extendhisi2): ... here.
9319         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9320         (ashlsi3): ... here.
9321         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9322         (lshrsi3): ... here.
9323         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9324         (ashrsi3): ... here.
9325         (consecutive add peephole): Remove.
9326         * config/mn10300/predicates.md (label_ref_operand): New.
9327         (int_mode_flags): New.
9328         (CCZN_comparison_operator): New.
9329
9330         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9331         (throughput_42_latency_43): New reservation.
9332         (mulsidi3, umulsidi3): New expanders.
9333         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9334         the MDR register to allocation; separately allocate the low and
9335         high parts of the DImode result.
9336         (umulsidi3_internal): Similarly.
9337         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9338         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9339         (udivsi3, umodsi3): Remove.
9340         (udivmodsi4, divmodsi4): New expanders.
9341         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9342         (*divmodsi4): Simiarly.
9343         (ext_internal): New.
9344
9345         * config/mn10300/constraints.md ("z"): New constraint.
9346         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9347         (FIXED_REGISTERS): Don't fix MDR.
9348         (CALL_USED_REGSITERS): Reformat nicely.
9349         (REG_ALLOC_ORDER): Add MDR.
9350         (enum regclass): Add MDR_REGS.
9351         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9352         (IRA_COVER_CLASSES): Add MDR_REGS.
9353         (REGNO_REG_CLASS): Handle MDR_REG.
9354         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9355         (mn10300_register_move_cost): Likewise.
9356         * config/mn10300/mn10300.md (MDR_REG): New.
9357         (*movsi_internal): Handle moves to/from MDR_REGS.
9358
9359         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9360         POST_MODIFY.
9361         (mn10300_secondary_reload): Tidy combination reload classes.
9362         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9363         addresses for AM33.  Allow symbolic offsets for reg+imm.
9364         (mn10300_regno_in_class_p): New.
9365         (mn10300_legitimize_reload_address): New.
9366         * config/mn10300/mn10300.h (enum reg_class): Remove
9367         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9368         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9369         SP_OR_GENERAL_REGS.
9370         (REG_CLASS_NAMES): Update to match.
9371         (REG_CLASS_CONTENTS): Likewise.
9372         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9373         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9374         (REGNO_IN_RANGE_P): Remove.
9375         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9376         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9377         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9378         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9379         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9380         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9381         (REGNO_GENERAL_P): New.
9382         (HAVE_POST_MODIFY_DISP): New.
9383         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9384         (LEGITIMIZE_RELOAD_ADDRESS): New.
9385         * config/mn10300/mn10300-protos.h: Update.
9386
9387         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9388         DATA_REGS for AM33 stack-pointer destination.
9389         (mn10300_preferred_output_reload_class): Likewise.
9390         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9391         into a form appropriate for ...
9392         (TARGET_SECONDARY_RELOAD): New.
9393         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9394         * config/mn10300/mn10300-protos.h: Update.
9395         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9396         reload_insi; use the "A" constraint for the scratch; handle AM33
9397         moves of sp to non-address registers.
9398
9399         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9400         (*movqi_internal): ... here.
9401         (*am33_movhi, *mn10300_movhi): Merge into...
9402         (*movhi_internal): ... here.
9403         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9404         as the source/destination of moves from/to SP.
9405         (movsf): Only allow for AM33-2.
9406         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9407         any integer constant constraint.  Only allow for AM33-2.  Tidy
9408         all of the alternative outputs.
9409         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9410         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9411         for MN103.
9412         (udivsi3, umodsi3): New patterns for MN103 only.
9413
9414 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9415
9416         * doc/tm.texi.in: Spell out that a lack of register class unions
9417         can lead to ICEs.
9418         * doc/tm.texi: Regenerate.
9419
9420 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9421
9422         PR rtl-optimization/47337
9423         * dce.c (check_argument_store): New function.
9424         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9425
9426         PR tree-optimization/47290
9427         * tree-eh.c (infinite_empty_loop_p): New function.
9428         (cleanup_empty_eh): Use it.
9429
9430 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9431
9432         PR target/46997
9433         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9434         (a64_expand_widen_sum): Ditto.
9435         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9436         (vec_extract_evenodd_help): Ditto.
9437         (vec_extract_evenv4hi): Ditto.
9438         (vec_extract_oddv4hi): Ditto.
9439         (vec_extract_evenv2si): Ditto.
9440         (vec_extract_oddv2si): Ditto.
9441         (vec_extract_evenv2sf): Ditto.
9442         (vec_extract_oddv2sf): Ditto.
9443         (vec_pack_trunc_v4hi: Ditto.
9444         (vec_pack_trunc_v2si): Ditto.
9445         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9446         (vec_interleave_highv8qi): Ditto.
9447         (mix1_r): Ditto.
9448         (vec_extract_oddv8qi): Ditto.
9449         (vec_interleave_lowv4hi): Ditto.
9450         (vec_interleave_highv4hi): Ditto.
9451         (vec_interleave_lowv2si): Ditto.
9452         (vec_interleave_highv2si): Ditto.
9453
9454 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9455
9456         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9457         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9458         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9459         (pa_c_mode_for_suffix): New.
9460         (TARGET_EXPAND_BUILTIN): Define.
9461         (TARGET_C_MODE_FOR_SUFFIX): Define.
9462         (pa_builtins): Define.
9463         (pa_init_builtins): Register __float128 type and init new support
9464         builtins.
9465         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9466         * config/pa/quadlib.c (_U_Qfcopysign): New.
9467
9468 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9469
9470         PR middle-end/46894
9471         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9472         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9473         are defined.
9474
9475 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9476
9477         PR tree-optimization/47179
9478         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9479         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9480
9481 2011-01-18  Richard Guenther  <rguenther@suse.de>
9482
9483         PR rtl-optimization/47216
9484         * emit-rtl.c: Include tree-flow.h.
9485         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9486         of replicating it with different semantics.
9487         * Makefile.in (emit-rtl.o): Adjust.
9488
9489 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9490
9491         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9492         (cortex_a9_dp): Handle neon types correctly.
9493
9494 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9495
9496         PR rtl-optimization/47299
9497         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9498         subtarget.  Use normal multiplication if both operands are constants.
9499         * expmed.c (expand_widening_mult): Don't try to optimize constant
9500         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9501         before using it.
9502
9503 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9504
9505         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9506         spacing after 'e.g.', typos, comma, hyphenation.
9507
9508 2011-01-17  Richard Henderson  <rth@redhat.com>
9509
9510         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9511         (rx_restricted_mem_operand): New.
9512         (rx_shift_operand): Use register_operand.
9513         (rx_source_operand, rx_compare_operand): Likewise.
9514         * config/rx/rx.md (addsi3_flags): New expander.
9515         (adddi3): Rewrite as expander.
9516         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9517         (subsi3_flags): New expander.
9518         (subdi3): Rewrite as expander.
9519         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9520
9521         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9522         (rx_init_builtins): Remove sat builtin.
9523         (rx_expand_builtin): Likewise.
9524         * config/rx/rx.md (ssaddsi3): New.
9525         (*sat): Rename from sat.  Represent the CC_REG input.
9526
9527         * config/rx/predicates.md (rshift_operator): New.
9528         * config/rx/rx.c (rx_expand_insv): Remove.
9529         * config/rx/rx-protos.h: Update.
9530         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
9531         operand to the canonical position.
9532         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9533         (*bitclr, *bitclr_in_memory): Similarly.
9534         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9535         (insv): Retain the zero_extract in the expansion.
9536
9537         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9538         (bswaphi2, bitinvert, revw): Likewise.
9539
9540         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9541         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9542         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9543         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9544         (bitset, bitset_in_memory): Likewise.
9545         (bitinvert, bitinvert_in_memory): Likewise.
9546         (bitclr, bitclr_in_memory): Likewise.
9547         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9548         (rx_strend, rx_cmpstrn): Likewise.
9549         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
9550         (bitop peep2 patterns): Remove.
9551
9552         * config/rx/rx.c (rx_match_ccmode): New.
9553         * config/rx/rx-protos.h: Update.
9554         * config/rx/rx.md (abssi2): Clobber, don't set flags.
9555         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9556         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9557         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9558         (fix_truncsfsi2, floatsisf2): Likewise.
9559         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9560         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9561         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9562         (*subsi3_flags, *xorsi3_flags): New.
9563
9564         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9565
9566         * config/rx/rx.c (rx_print_operand): Remove workaround for
9567         unsplit comparison operations.
9568
9569         * config/rx/rx.md (movsicc): Split after reload.
9570         (*movsicc): Merge *movsieq and *movsine via match_operator.
9571         (*stcc): New pattern.
9572
9573         * config/rx/rx.c (rx_float_compare_mode): Remove.
9574         * config/rx/rx.h (rx_float_compare_mode): Remove.
9575         * config/rx/rx.md (cstoresi4): Split after reload.
9576         (*sccc): New pattern.
9577
9578         * config/rx/predicates.md (label_ref_operand): New.
9579         (rx_z_comparison_operator): New.
9580         (rx_zs_comparison_operator): New.
9581         (rx_fp_comparison_operator): New.
9582         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9583         Validate that the flags are set properly for the comparison.
9584         (rx_gen_cond_branch_template): Remove.
9585         (rx_cc_modes_compatible): Remove.
9586         (mode_from_flags): New.
9587         (flags_from_code): Rename from flags_needed_for_conditional.
9588         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9589         (rx_select_cc_mode): Likewise.
9590         (rx_split_fp_compare): New.
9591         (rx_split_cbranch): New.
9592         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9593         (*cbranchsi4): Use match_operator and rx_split_cbranch.
9594         (*cbranchsf4): Similarly.
9595         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9596         match_operator and rx_split_cbranch.
9597         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9598         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9599         (*cmpsi): Rename from cmpsi.
9600         (*tstsi): Rename from tstsi.
9601         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9602         (*conditional_branch): Rename from conditional_branch.
9603         (*reveresed_conditional_branch): Remove.
9604         (b<code>): Remove expander.
9605         * config/rx/rx-protos.h: Update.
9606
9607         * config/rx/rx.c (rx_compare_redundant): Remove.
9608         * config/rx/rx.md (cmpsi): Don't use it.
9609         * config/rx/rx-protos.h: Update.
9610
9611         * config/rx/rx-modes.def (CC_F): New mode.
9612         * config/rx/rx.c (rx_select_cc_mode): New.
9613         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9614         * config/rx/rx-protos.h: Update.
9615
9616 2011-01-17  Richard Henderson  <rth@redhat.com>
9617
9618         * except.c (dump_eh_tree): Fix stray ; after for statement.
9619
9620 2011-01-17  Richard Guenther  <rguenther@suse.de>
9621
9622         PR tree-optimization/47313
9623         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9624         handling before copying the body.  Properly deal with
9625         by-reference result in SSA form.
9626
9627 2011-01-17  Ian Lance Taylor  <iant@google.com>
9628
9629         PR target/47219
9630         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9631         (struct_value_alias_set): Don't define.
9632         (sparc_option_override): Don't set sparc_sr_alias_set and
9633         struct_value_alias_set.
9634         (save_or_restore_regs): Use gen_frame_mem rather than calling
9635         set_mem_alias_set.
9636         (sparc_struct_value_rtx): Likewise.
9637
9638 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9639
9640         PR target/47318
9641         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9642         (_mm_maskstore_pd): Likewise.
9643         (_mm_maskload_ps): Likewise.
9644         (_mm_maskstore_ps): Likewise.
9645         (_mm256_maskload_pd): Change mask to __m256i.
9646         (_mm256_maskstore_pd): Likewise.
9647         (_mm256_maskload_ps): Likewise.
9648         (_mm256_maskstore_ps): Likewise.
9649
9650         * config/i386/i386-builtin-types.def: Updated.
9651         (ix86_expand_special_args_builtin): Likewise.
9652
9653         * config/i386/i386.c (bdesc_special_args): Update
9654         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9655         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9656         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9657         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9658
9659         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9660         Use <avxpermvecmode> on mask register.
9661         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9662
9663 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9664             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9665             Eric Botcazou  <ebotcazou@adacore.com>
9666
9667         PR target/46655
9668         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9669         if <= USHRT_MAX in 32-bit mode.
9670
9671 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9672
9673         * doc/install.texi (Configuration, Specific): Wrap long
9674         lines in examples.  Allow line wrapping in long options
9675         and URLs where beneficial for PDF output.
9676
9677 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9678
9679         * config/mips/mips.c (mips_classify_symbol): Don't return
9680         SYMBOL_PC_RELATIVE for nonlocal labels.
9681
9682 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9683
9684         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9685
9686 2011-01-15  Jan Hubicka  <jh@suse.cz>
9687
9688         PR tree-optimization/47276
9689         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9690         declarations as needed.
9691
9692 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9693
9694         * common.opt (fdevirtualize): New flag.
9695         * doc/invoke.texi (Option Summary): Document it.
9696         * opts.c (default_options_table): Add devirtualize flag.
9697         * ipa-prop.c (detect_type_change): Return immediately if
9698         devirtualize flag is not set.
9699         (detect_type_change_ssa): Likewise.
9700         (compute_known_type_jump_func): Likewise.
9701         (ipa_analyze_virtual_call_uses): Likewise.
9702
9703 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9704
9705         PR tree-optimization/45934
9706         PR tree-optimization/46302
9707         * ipa-prop.c (type_change_info): New type.
9708         (stmt_may_be_vtbl_ptr_store): New function.
9709         (check_stmt_for_type_change): Likewise.
9710         (detect_type_change): Likewise.
9711         (detect_type_change_ssa): Likewise.
9712         (compute_complex_assign_jump_func): Check for dynamic type change.
9713         (compute_complex_ancestor_jump_func): Likewise.
9714         (compute_known_type_jump_func): Likewise.
9715         (compute_scalar_jump_functions): Likewise.
9716         (ipa_analyze_virtual_call_uses): Likewise.
9717         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9718
9719 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9720
9721         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9722         * config/i386/i386.opt (msse5): New Alias.
9723
9724 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9725
9726         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9727         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9728         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9729         * config/sparc/sparc.h (CC1_SPEC): Likewise.
9730
9731 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9732
9733         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9734         -mcpu options.
9735         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9736         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9737         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9738         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9739         Likewise.
9740         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9741
9742 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9743
9744         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9745
9746 2011-01-14  Mike Stump  <mikestump@comcast.net>
9747
9748         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9749         * config/fr30/fr30.md: Likweise
9750         (movsi_push): Likewise.
9751         (movsi_pop): Likewise.
9752         (enter_func): Likewise.
9753         * config/moxie/moxie.md (movsi_push): Likewise.
9754         (movsi_pop): Likewise.
9755
9756 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9757
9758         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9759         %{no_archive} %{exact_version}.
9760         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9761         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9762         %{no_archive} %{exact_version}.
9763         * config/mips/openbsd.h (LINK_SPEC): Likewise.
9764         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9765         * config/mips/vxworks.h: Likewise.
9766
9767 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9768
9769         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9770
9771 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9772
9773         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9774         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9775
9776 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9777
9778         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9779         -nodefaultlib.
9780
9781 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9782
9783         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9784         for mcpu not cpu.
9785         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9786         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9787         not cpu.
9788         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9789         Don't handle -shlib.
9790
9791 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9792
9793         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9794         (CC1_SPEC): Don't handle -profile.
9795
9796 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9797
9798         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9799         * config/mips/mips.h (CC1_SPEC): Likewise.
9800
9801 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9802
9803         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9804         * config/mips/mips.h (CC1_SPEC): Likewise.
9805
9806 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9807
9808         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9809         * config/m32r/linux.h (LINK_SPEC): Likewise.
9810         * config/mips/linux.h (LINK_SPEC): Likewise.
9811         * config/mips/linux64.h (LINK_SPEC): Likewise.
9812         * config/sparc/linux.h (LINK_SPEC): Likewise.
9813         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9814         LINK_SPEC): Likewise.
9815         * config/xtensa/linux.h (LINK_SPEC): Likewise.
9816
9817 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9818
9819         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9820         %{version:-v}.
9821         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9822
9823 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9824
9825         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9826         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9827
9828 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9829
9830         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9831
9832 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9833
9834         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9835         supports -Bstatic/-Bdynamic.
9836         * configure: Regenerate.
9837
9838 2011-01-14  Jan Hubicka  <jh@suse.cz>
9839             Jack Howarth  <howarth@bromo.med.uc.edu>
9840
9841         PR target/46037
9842         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9843         when checking debug_info_level. Test write_symbols instead of
9844         debug_hooks->var_location when setting flag_var_tracking_uninit.
9845
9846 2011-01-14  Richard Guenther  <rguenther@suse.de>
9847
9848         PR tree-optimization/47179
9849         * target.def (ref_may_alias_errno): New target hook.
9850         * targhooks.h (default_ref_may_alias_errno): Declare.
9851         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9852         (default_ref_may_alias_errno): New function.
9853         * target.h (struct ao_ref_s): Declare.
9854         * tree-ssa-alias.c: Include target.h.
9855         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9856         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9857         (targhooks.o): Likewise.
9858         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9859         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9860
9861 2011-01-14  Richard Guenther  <rguenther@suse.de>
9862
9863         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
9864
9865 2011-01-14  Richard Guenther  <rguenther@suse.de>
9866
9867         PR tree-optimization/47280
9868         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9869         return CFG changes.
9870         (tree_ssa_forward_propagate_single_use_vars): Deal with
9871         CFG changes from associate_plusminus.
9872
9873 2011-01-14  Richard Guenther  <rguenther@suse.de>
9874
9875         PR middle-end/47281
9876         Revert
9877         2011-01-11  Richard Guenther  <rguenther@suse.de>
9878
9879         PR tree-optimization/46076
9880         * tree-ssa.c (useless_type_conversion_p): Conversions from
9881         unprototyped to empty argument list function types are useless.
9882
9883 2011-01-14  Richard Guenther  <rguenther@suse.de>
9884
9885         PR tree-optimization/47286
9886         * tree-ssa-structalias.c (new_var_info): Register variables are global.
9887
9888 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9889
9890         PR middle-end/46823
9891         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9892
9893 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
9894
9895         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9896         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9897         * config/xtensa/xtensa.c (xtensa_libcall_value,
9898         xtensa_function_value_regno_p): New functions.
9899         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9900
9901 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
9902
9903         PR c++/47213
9904         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9905         PE specific hook.
9906         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9907         New function prototype.
9908         * config/i386/winnt.c (i386_pe_assemble_visibility):
9909         Warn only if attribute was specified by user.
9910
9911 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9912
9913         PR target/47251
9914         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9915         floating point.
9916         (floatunsdidf2_fcfidu): Ditto.
9917
9918 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9919
9920         * config/s390/s390.c (print_operand_address): Replace 'error' with
9921         'output_operand_lossage'.
9922         (print_operand): Likewise.
9923
9924 2011-01-13  Jeff Law  <law@redhat.com>
9925
9926         PR rtl-optimization/39077
9927         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9928         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9929         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9930         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9931         * gcse.c (prune_insertions_deletions): New function.
9932         (compute_pre_data): Use it.
9933
9934 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
9935
9936         PR debug/PR46973
9937         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9938         static function.
9939         (prune_unused_types_mark): Use it.
9940
9941 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
9942
9943         PR rtl-optimization/45352
9944         * sel-sched.c: Update copyright years.
9945         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9946         in the advancing loop when we have issued issue_rate insns.
9947
9948 2011-01-12  Richard Henderson  <rth@redhat.com>
9949
9950         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
9951         (TARGET_MD_ASM_CLOBBERS): New.
9952
9953         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
9954         (TARGET_DELEGITIMIZE_ADDRESS): New.
9955
9956         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
9957         (clzsi2, *bsch): New patterns.
9958
9959         * config/mn10300/mn10300.md (INT): New mode iterator.
9960         (*mov<INT>_clr): New pattern, and peep2 to generate it.
9961
9962         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
9963         flag_split_wide_types.
9964
9965         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
9966         (mn10300_trampoline_init): Rewrite without a template, an immediate
9967         load and a direct branch.
9968         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
9969
9970 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
9971
9972         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9973         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
9974         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
9975         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9976
9977 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
9978
9979         PR debug/47209
9980         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
9981         of type.
9982
9983 2011-01-12  Jan Hubicka  <jh@suse.cz>
9984
9985         PR driver/47244
9986         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
9987         (PLUGIN_COND_CLOSE): New macro.
9988         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
9989
9990 2011-01-12  Richard Guenther  <rguenther@suse.de>
9991
9992         PR lto/47259
9993         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
9994         register variables in a MEM_REF.
9995
9996 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
9997
9998         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
9999         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10000         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10001         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10002         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10003         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10004         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10005         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10006         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10007         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10008         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10009         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10010         * config/gnu-user.h: New.  Copied from linux.h.
10011         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10012         GNU_USER_TARGET_STARTFILE_SPEC.
10013         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10014         GNU_USER_TARGET_ENDFILE_SPEC.
10015         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10016         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10017         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10018         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10019         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10020         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10021         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10022         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10023         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10024         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10025         * config/arm/linux-eabi.h (CC1_SPEC): Use
10026         GNU_USER_TARGET_CC1_SPEC.
10027         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10028         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10029         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10030         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10031         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10032         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10033         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10034         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10035
10036 2011-01-12  Richard Guenther  <rguenther@suse.de>
10037
10038         PR other/46946
10039         * doc/invoke.texi (ffast-math): Document it is turned on
10040         with -Ofast.
10041
10042 2011-01-12  Jan Hubicka  <jh@suse.cz>
10043
10044         PR tree-optimization/47233
10045         * opts.c (common_handle_option): Disable ipa-reference with profile
10046         feedback.
10047
10048 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10049
10050         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10051         error message.
10052
10053 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10054
10055         * c-parser.c (c_lex_one_token): Updated and reindented some
10056         comments.  No changes in code.
10057
10058 2011-01-11  Ian Lance Taylor  <iant@google.com>
10059
10060         * godump.c (go_output_var): Don't output the variable if there is
10061         already a type with the same name.
10062
10063 2011-01-11  Ian Lance Taylor  <iant@google.com>
10064
10065         * godump.c (go_format_type): Don't generate float80.
10066
10067 2011-01-11  Richard Henderson  <rth@redhat.com>
10068
10069         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10070         declaration.  Rewrite for both speed and size.
10071         (mn10300_address_cost_1): Remove.
10072         (mn10300_register_move_cost): New.
10073         (mn10300_memory_move_cost): New.
10074         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10075         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10076         extensions, shifts, BSWAP, CLZ.
10077         (mn10300_wide_const_load_uses_clr): Remove.
10078         (TARGET_REGISTER_MOVE_COST): New.
10079         (TARGET_MEMORY_MOVE_COST): New.
10080         * config/mn10300/mn10300-protos.h: Update.
10081         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10082
10083         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10084         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10085         * config/mn10300/mn10300-protos.h: Update.
10086         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10087         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10088         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10089         (*test_int_bitfield, *test_byte_bitfield): Remove.
10090         (*bit_test, *subreg_bit_test): Remove.
10091         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10092
10093         * config/mn10300/constraints.md ("c"): Rename from "A".
10094         ("A", "D"): New constraint letters.
10095         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10096         (fmssf4, fnmasf4, fnmssf4): Likewise.
10097
10098         * config/mn10300/mn10300.md (isa): New attribute.
10099         (enabled): New attribute.
10100
10101         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10102         (abssf2, negsf2): Define only for hardware fp.
10103         (sqrtsf2): Reformat.
10104         (addsf3, subsf3, mulsf3): Merge expander and insn.
10105
10106         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10107         (DEBUGGER_AUTO_OFFSET): Remove.
10108         (DEBUGGER_ARG_OFFSET): Remove.
10109
10110         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10111         Emit register stores with the same offsets as the hardware.
10112         (mn10300_store_multiple_operation): Don't check that the register
10113         save offsets are monotonic.
10114         * config/mn10300/mn10300-protos.h: Update.
10115
10116         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10117
10118         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10119         in terms of the value on the stack, not the MDR register.
10120
10121 2011-01-11  Jan Hubicka  <jh@suse.cz>
10122
10123         PR lto/45721
10124         PR lto/45375
10125         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10126         (symbol_alias_set_destroy, symbol_alias_set_contains,
10127         propagate_aliases_backward): Declare.
10128         * lto-streamer-out.c (struct sets): New sturcture.
10129         (trivally_defined_alias): New function.
10130         (output_alias_pair_p): Rewrite.
10131         (output_unreferenced_globals): Fix output of alias pairs.
10132         (produce_symtab): Likewise.
10133         * ipa.c (function_and_variable_visibility): Set weak alias destination
10134         as needed in lto.
10135         * varasm.c (symbol_alias_set_t): Remove.
10136         (symbol_alias_set_destroy): Export.
10137         (propagate_aliases_forward, propagate_aliases_backward): New functions
10138         based on ...
10139         (compute_visible_aliases): ... this one; remove.
10140         (trivially_visible_alias): New
10141         (trivially_defined_alias): New.
10142         (remove_unreachable_alias_pairs): Rewrite.
10143         (finish_aliases_1): Reorganize code checking if alias is defined.
10144         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10145         in LTO mode.
10146
10147 2011-01-11  Richard Guenther  <rguenther@suse.de>
10148
10149         PR tree-optimization/46076
10150         * tree-ssa.c (useless_type_conversion_p): Conversions from
10151         unprototyped to empty argument list function types are useless.
10152
10153 2011-01-11  Richard Guenther  <rguenther@suse.de>
10154
10155         PR middle-end/45235
10156         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10157         volatile MEMs as MEM_READONLY_P.
10158
10159 2011-01-11  Richard Guenther  <rguenther@suse.de>
10160
10161         PR tree-optimization/47239
10162         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10163
10164 2011-01-11  Jeff Law  <law@redhat.com>
10165
10166         PR tree-optimization/47086
10167         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10168         IVs from statements that might throw.
10169
10170 2011-01-10  Jan Hubicka  <jh@suse.cz>
10171
10172         PR lto/45375
10173         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10174
10175 2011-01-10  Jan Hubicka  <jh@suse.cz>
10176
10177         PR lto/45375
10178         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10179         when correcting profile.
10180
10181 2011-01-10  Jan Hubicka  <jh@suse.cz>
10182
10183         PR lto/46083
10184         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10185         DECL_FINI_PRIORITY.
10186         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10187         Restore DECL_FINI_PRIORITY.
10188
10189 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10190
10191         * doc/gimple.texi: Fix quoting of multi-word return values in
10192         @deftypefn statements.  Ensure presence of return value.  Wrap
10193         overlong @deftypefn lines.
10194         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10195         descriptions of removed functions.
10196         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10197         of multi-word return value in @deftypefn statement.
10198
10199 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10200
10201         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10202         (Conditional Expressions, Logical Operators)
10203         (Statement and operand traversals): Do not indent smallexample
10204         code.  Fix duplicate function argument in example.
10205
10206 2011-01-10  Jeff Law  <law@redhat.com>
10207
10208         PR tree-optimization/47141
10209         * ipa-split.c (split_function): Handle case where we are
10210         returning a value and the return block has a virtual operand phi.
10211
10212 2011-01-10  Jan Hubicka  <jh@suse.cz>
10213
10214         PR tree-optimization/47234
10215         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10216         (pass_feedback_split_functions): Declare.
10217         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10218         tree-profile.
10219         * ipa-split.c (gate_split_functions): Update comments; disable
10220         split-functions for profile_arc_flag and branch_probabilities.
10221         (gate_feedback_split_functions): New function.
10222         (execute_feedback_split_functions): New function.
10223         (pass_feedback_split_functions): New global var.
10224
10225 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10226
10227         PR lto/46760
10228         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10229         calling gimple_call_set_cannot_inline.
10230
10231 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10232
10233         * config/darwin-sections.def: Remove unused section.
10234
10235 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10236
10237         PR c++/47218
10238         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10239
10240 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10241
10242         PR objc/47232
10243         * c-parser.c (c_parser_declaration_or_fndef): Improved
10244         error message.
10245
10246 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10247
10248         * config/i386/winnt.c (i386_pe_start_function): Make sure
10249         to switch back to function's section.
10250
10251 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10252
10253         PR gcc/46902
10254         PR testsuite/46912
10255         * plugin.c: Move include of dlfcn.h from here...
10256         * system.h: ... to here.
10257
10258 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10259
10260         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10261         file name.
10262         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10263         two extra empty pages in PDF output.
10264
10265 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10266
10267         PR objc/47078
10268         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10269         for error recovery purposes behave as if it was not specified so
10270         that the default type is usd.
10271
10272 2011-01-07  Jan Hubicka  <jh@suse.cz>
10273
10274         PR tree-optmization/46469
10275         * ipa.c (function_and_variable_visibility): Clear needed flags on
10276         nodes with external decls; handle weakrefs merging correctly.
10277
10278 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10279
10280         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10281         not false.
10282
10283 2011-01-07  Jan Hubicka  <jh@suse.cz>
10284
10285         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
10286         and no longer claim that gold is required for linker plugin.
10287         * configure: Regenerate.
10288         * gcc.c (PLUGIN_COND): New macro.
10289         (LINK_COMMAND_SPEC): Use it.
10290         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10291         * config.in (HAVE_LTO_PLUGIN): New.
10292         * configure.ac (--with-lto-plugin): New parameter; autodetect
10293         HAVE_LTO_PLUGIN.
10294
10295 2011-01-07  Jan Hubicka  <jh@suse.cz>
10296
10297         PR tree-optimization/46367
10298         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10299         when we can update original.
10300         (cgraph_mark_inline_edge): Sanity check.
10301         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10302
10303 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10304
10305         * config/spu/spu.h (ASM_COMMENT_START): Define.
10306
10307 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10308
10309         PR driver/42445
10310         * gcc.c (%>S): New.
10311         (SWITCH_KEEP_FOR_GCC): Likewise.
10312         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10313         (do_spec_1): Handle "%>".
10314
10315         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10316
10317 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10318
10319         PR target/47201
10320         * config/i386/i386.c (ix86_delegitimize_address): If
10321         simplify_gen_subreg fails, return orig_x.
10322
10323         PR bootstrap/47187
10324         * value-prof.c (gimple_stringop_fixed_value): Handle
10325         lhs of the call properly.
10326
10327 2011-01-07  Jan Hubicka  <jh@suse.cz>
10328
10329         PR lto/45375
10330         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10331
10332 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10333
10334         * target.def (function_switched_text_sections): New hook.
10335         * doc/tm.texi: Regenerated.
10336         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10337         * final.c (default_function_switched_text_sections): New.
10338         (final_scan_insn): Call function_switched_text_sections when a
10339         mid-function section change occurs.
10340         * output.h (default_function_switched_text_sections): Declare.
10341         * config/darwin-protos.h (darwin_function_switched_text_sections):
10342         Likewise.
10343         * config/darwin.c (darwin_function_switched_text_sections): New.
10344         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10345
10346 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10347
10348         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10349         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10350         the secondary code fragment when outputting for DWARF == 2.
10351
10352 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10353
10354         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10355         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10356         Remove.
10357         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10358         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10359
10360 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10361
10362         PR debug/46704
10363         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10364         when it is not empty.
10365
10366 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10367
10368         Bobcat Enablement
10369         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10370         (case ${target}): Add btver1.
10371         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10372         -march=native recognize btver1 processors.
10373         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10374         btver1 def_and_undef
10375         * config/i386/i386.c (struct processor_costs btver1_cost): New
10376         btver1 cost table.
10377         (m_BTVER1): New definition.
10378         (m_AMD_MULTIPLE): Includes m_BTVER1.
10379         (initial_ix86_tune_features): Add btver1 tune.
10380         (processor_target_table): Add btver1 entry.
10381         (static const char *const cpu_names): Add btver1 entry.
10382         (software_prefetching_beneficial_p): Add btver1.
10383         (ix86_option_override_internal): Add btver1 instruction sets.
10384         (ix86_issue_rate): Add btver1.
10385         (ix86_adjust_cost): Add btver1.
10386         * config/i386/i386.h (TARGET_BTVER1): New definition.
10387         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10388         (enum processor_type): Add PROCESSOR_BTVER1.
10389         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10390
10391 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10392
10393         PR target/43309
10394         * config/i386/i386.c (legitimize_tls_address)
10395         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10396         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10397         (tls_initial_exec_64_sun): New pattern.
10398
10399 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10400
10401         * doc/invoke.texi (Overall Options): Improve wording and markup
10402         of the description of -wrapper.
10403
10404 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10405
10406         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10407         rdynamic, threads): New Driver options.
10408
10409 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10410
10411         PR target/38118
10412         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10413         if coming from .tdata.
10414         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10415
10416 2011-01-06  Jan Hubicka  <jh@suse.cz>
10417
10418         PR lto/47188
10419         * collect2.c (main): Do not enable LTOmode when plugin is active.
10420
10421 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10422
10423         PR other/45915
10424         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10425         --version output if supported.
10426         * configure: Regenerate.
10427
10428 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10429
10430         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10431         Driver options.
10432
10433 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10434
10435         PR c/47150
10436         * c-convert.c (convert): When converting a complex expression
10437         other than COMPLEX_EXPR to a different complex type, ensure
10438         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10439         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10440         when converting COMPLEX_TYPE.
10441
10442 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10443
10444         PR tree-optimization/47139
10445         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10446         only the last reduction value is used outside the loop.  Update
10447         documentation.
10448
10449 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10450
10451         * config/rtems.opt: New.
10452         * config.gcc (*-*-rtems*): Use rtems.opt.
10453
10454 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10455
10456         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10457         processors do not support 3DNow instructions.
10458
10459 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10460
10461         * config/spu/spu.c (spu_option_override): Set parameter
10462         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10463
10464 2011-01-05  Jan Hubicka  <jh@suse.cz>
10465
10466         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10467         at the command line.
10468
10469 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10470
10471         PR lto/47162
10472         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10473         deltas on streamed outgoing edges.
10474         (output_node_opt_summary): Output info for outgoing edges only when
10475         the node is in new parameter set.
10476         (output_cgraph_opt_summary): New parameter set, passed to the two
10477         aforementioned functions.  Update its forward declaration and its
10478         callee too.
10479
10480 2011-01-05  Tom Tromey  <tromey@redhat.com>
10481
10482         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10483         operator to c_finish_omp_atomic.
10484         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10485         (build_unary_op): Update.
10486         (build_modify_expr): Update.
10487         (build_asm_expr): Update.
10488
10489 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10490
10491         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10492         newly inserted insns.
10493         (pad_bb): Likewise.
10494         (spu_emit_branch_hint): Likewise.
10495         (insert_hbrp_for_ilb_runout): Likewise.
10496         (spu_machine_dependent_reorg): Call df_finish_pass after
10497         schedule_insns returns.
10498
10499 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10500
10501         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10502
10503 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10504
10505         PR tree-optimization/47005
10506         * tree-sra.c (struct access): Add 'non_addressable' bit.
10507         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10508         (decide_one_param_reduction): Return 0 if the parameter is passed by
10509         reference and one of the accesses in the group is non_addressable.
10510
10511 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10512
10513         PR tree-optimization/47056
10514         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10515         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10516         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10517
10518 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10519
10520         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10521         initializer.  Skip view conversions from aggregate types.
10522
10523 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
10524
10525         PR bootstrap/47055
10526         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10527
10528 2011-01-04  Philipp Thomas  <pth@suse.de>
10529
10530         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10531         obvious typo.
10532
10533 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10534
10535         * function.c (thread_prologue_and_epilogue_insns): Do not crash
10536         on empty epilogue sequences.
10537
10538 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
10539
10540         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10541         non-static): New Driver options.
10542
10543 2011-01-04  Jie Zhang  <jie@codesourcery.com>
10544
10545         PR driver/47137
10546         * gcc.c (default_compilers[]): Set combinable field to 0
10547         for all assembly languages.
10548
10549 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
10550
10551         * config/mips/loongson3a.md: New file.
10552         * config/mips/mips.md: Include loongson3a.md.
10553         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10554         TUNE_LOONGSON_3A.
10555
10556 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10557
10558         PR middle-end/47017
10559         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10560         instead of convert_memory_address_addr_space on the base expression.
10561
10562 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10563
10564         * config/spu/spu.c (spu_option_override): Update error text
10565         for bad -march= / -mtune= values.
10566
10567 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10568
10569         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10570         if branch-hint optimization will be performed.
10571
10572 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10573
10574         PR tree-optimization/47148
10575         * ipa-split.c (split_function): Convert arguments to
10576         DECL_ARG_TYPE if possible.
10577
10578         PR tree-optimization/47155
10579         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10580         when computing uns.
10581
10582         PR rtl-optimization/47157
10583         * combine.c (try_combine): If undobuf.other_insn becomes
10584         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10585         and set *new_direct_jump_p too.
10586
10587 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10588
10589         PR tree-optimization/47021
10590         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10591
10592 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10593
10594         * gcc.c (process_command): Update copyright notice dates.
10595         * gcov.c (print_version): Likewise.
10596         * gcov-dump.c (print_version): Likewise.
10597         * mips-tfile.c (main): Likewise.
10598         * mips-tdump.c (main): Likewise.
10599
10600 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10601
10602         PR tree-optimization/46801
10603         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10604         aggregate fields start at byte boundary instead of the bit-field flag.
10605
10606 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10607
10608         PR driver/47137
10609         * gcc.c (main): Revert revision 168407.
10610
10611 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10612
10613         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10614
10615 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10616
10617         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10618         vector optab to expand vector/scalar shift, update gimple to vector.
10619
10620 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10621
10622         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10623         a thunk.
10624
10625 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10626
10627         PR tree-optimization/46984
10628         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10629         HOST_WIDE_INT.
10630         (cgraph_create_indirect_edge): Fixed line length.
10631         (cgraph_indirect_call_info): Declare.
10632         (cgraph_make_edge_direct) Update declaration.
10633         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10634         (cgraph_create_indirect_edge): Use it.
10635         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10636         callees.
10637         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10638         the new thunk_delta representation.
10639         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10640         HOST_WIDE_INT.
10641         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10642         (ipa_read_indirect_edge_info): Likewise.
10643         * lto-cgraph.c (output_edge_opt_summary): New function.
10644         (output_node_opt_summary): Call it on all outgoing edges.
10645         (input_edge_opt_summary): New function.
10646         (input_node_opt_summary): Call it on all outgoing edges.
10647
10648 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10649
10650         PR driver/47137
10651         * gcc.c (main): Don't check have_o when settting combine_inputs.
10652
10653 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10654
10655         * regrename.c: Add general comment describing the pass.
10656         (struct du_head): Remove 'length' field.
10657         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10658         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10659         Force renaming to the preferred class (if any) in the first pass and do
10660         not consider registers that belong to it in the second pass.
10661         (create_new_chain): Do not set 'length' field.
10662         (scan_rtx_reg): Likewise.
10663
10664 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10665
10666         PR tree-optimization/47140
10667         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10668         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10669         to bit_value_binop.
10670
10671         PR rtl-optimization/47028
10672         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10673         parm_birth_insn instead of at the beginning of first bb.
10674
10675 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10676
10677         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10678         Remove the word "see" before "@pxref".
10679         * doc/rtl.texi: Remove the word "see" before "@pxref".
10680
10681 2011-01-01  Jan Hubicka  <jh@suse.cz>
10682
10683         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10684         memory.
10685
10686 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10687
10688         PR target/38662
10689         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10690
10691 \f
10692 Copyright (C) 2011 Free Software Foundation, Inc.
10693
10694 Copying and distribution of this file, with or without modification,
10695 are permitted in any medium without royalty provided the copyright
10696 notice and this notice are preserved.