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