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