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