OSDN Git Service

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