OSDN Git Service

3f346fc8dd8ae5fc4fcd02f43267b0bdfe5482c0
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2
3         * target.def (cannot_force_const_mem): Add a mode argument.
4         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5         * doc/tm.texi: Regenerate.
6         * hooks.h (hook_bool_mode_rtx_false): Declare.
7         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8         (hook_bool_mode_const_rtx_true): Likewise.
9         (hook_bool_mode_rtx_false): New function.
10         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11         to be non-VOID.  Update call to cannot_force_const_mem.
12         (find_reloads): Update accordingly.
13         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
15         argument.
16         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
21         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
22         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
23         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
24         (m68k_cannot_force_const_mem): ...this new function.
25         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
26         argument.
27         (mips_const_insns, mips_legitimize_const_move): Update calls.
28         (mips_secondary_reload_class): Likewise.
29         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
30         (pa_cannot_force_const_mem): ...this new function.
31         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine
32         to...
33         (rs6000_cannot_force_const_mem): ...this new function.
34         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
35         argument.
36         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
37         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
38         to...
39         (xtensa_cannot_force_const_mem): ...this new function.
40
41 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
42
43         * config/mips/mips.c (mips16_build_function_stub): Call
44         build_function_type_list instead of build_function_type.
45         (mips16_build_call_stub): Likewise.
46
47 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
48
49         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
50         instead of build_function_type.
51
52 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
53
54         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
55         instead of build_function_type.
56
57 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
58
59         PR target/48678
60         * config/i386/i386.md (insv): Change operand 0 constraint to
61         "register_operand".  Change operand 1 and 2 constraint to
62         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
63         * config/i386/sse.md (sse4_1_pinsrb): Export.
64         (sse2_pinsrw): Ditto.
65         (sse4_1_pinsrd): Ditto.
66         (sse4_1_pinsrq): Ditto.
67         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
68         * config/i386/i386.c (ix86_expand_pinsr): New.
69
70 2011-04-20  Easwaran Raman  <eraman@google.com>
71
72         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
73         containing union type only with -fstrict-aliasing.
74
75 2011-04-20  Jim Meyering  <meyering@redhat.com>
76
77         Remove useless if-before-free tests.
78         * calls.c (expand_call, save_area): Likewise.
79         * cfgcleanup.c (try_forward_edges): Likewise.
80         * collect2.c (collect_execute): Likewise.
81         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
82         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
83         * coverage.c (coverage_checksum_string): Likewise.
84         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
85         * cselib.c (cselib_init): Likewise.
86         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
87         (df_set_clean_cfg): Likewise.
88         * function.c (free_after_compilation): Likewise.
89         * gcc.c (do_spec_1, main): Likewise.
90         * gcov.c (create_file_names): Likewise.
91         * gensupport.c (identify_predicable_attribute): Likewise.
92         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
93         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
94         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
95         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
96         * ipa-pure-const.c (local_pure_const): Likewise.
97         * ipa-reference.c (propagate): Likewise.
98         * ira-costs.c (free_ira_costs): Likewise.
99         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
100         * matrix-reorg.c (mat_free): Likewise.
101         * prefix.c (get_key_value): Likewise.
102         * profile.c (compute_value_histograms): Likewise.
103         * reload1.c (free_reg_equiv): Likewise.
104         * sched-deps.c (free_deps): Likewise.
105         * sel-sched-ir.c (fence_clear): Likewise.
106         * sese.c (set_rename, if_region_set_false_region): Likewise.
107         * tree-data-ref.c (free_rdg): Likewise.
108         * tree-eh.c (lower_try_finally): Likewise.
109         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
110         * tree-ssa-live.c (delete_var_map): Likewise.
111         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
112         * tree-ssa-pre.c (phi_trans_add): Likewise.
113
114 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
115
116         PR tree-optimization/48611
117         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
118         beyond ERT_MUST_NOT_THROW region.
119
120 2011-04-20  Catherine Moore  <clm@codesourcery.com>
121
122         * config/mips/mips.opt (mfix-24k): New.
123         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
124         * config/mips/mips.md (length): Increase by 4 for stores if
125         fixing 24K errata.
126         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
127         all noreorder if fixing 24K errata.
128         * doc/invoke.texi: Document mfix-24k.
129
130 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
131
132         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
133         quad-word modes, reduce to 9-bit index range when above 1016
134         limit.
135
136 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
137
138         * config/arm/arm.c (arm_gen_constant): Move movw support ....
139         (const_ok_for_op): ... to here.
140
141 2011-04-20  Kai Tietz  <ktietz@redhat.com>
142
143         * fold-const.c (fold_binary_loc): Add handling for
144         (X & ~Y) | (~X & Y) and (X && !Y) | (!X && Y) optimization to (X ^ Y).
145
146 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
147
148         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
149
150 2011-04-20  Richard Guenther  <rguenther@suse.de>
151
152         PR tree-optimization/47892
153         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
154         are if-convertible.
155
156 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
157
158         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
159
160 2011-04-20  Tristan Gingold  <gingold@adacore.com>
161
162         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
163
164 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
165
166         PR target/18145
167
168         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
169         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
170         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
171         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
172         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
173
174         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
175         New prototype.
176
177         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
178         (avr_asm_named_section, avr_asm_output_aligned_common,
179         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
180         New functions to update...
181         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
182         (avr_asm_init_sections): Overwrite section callbacks for
183         data_section, bss_section.
184         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
185         from here to...
186         (avr_file_end): ...here.
187
188 2011-04-20  Richard Guenther  <rguenther@suse.de>
189
190         PR middle-end/48695
191         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
192         objects and types here.  Adjust for their offset before
193         comparing.
194
195 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
196
197         * tree-vect-stmts.c (vectorizable_store): Only chain one related
198         statement per copy.
199
200 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
201
202         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
203         (GIMPLE_H): Include $(INTERNAL_FN_H).
204         (OBJS-common): Add internal-fn.o.
205         (internal-fn.o): New rule.
206         * internal-fn.def: New file.
207         * internal-fn.h: Likewise.
208         * internal-fn.c: Likewise.
209         * gimple.h: Include internal-fn.h.
210         (GF_CALL_INTERNAL): New gf_mask.
211         (gimple_statement_call): Put fntype into a union with a new
212         internal_fn field.
213         (gimple_build_call_internal): Declare.
214         (gimple_build_call_internal_vec): Likewise.
215         (gimple_call_same_target_p): Likewise.
216         (gimple_call_internal_p): New function.
217         (gimple_call_internal_fn): Likewise.
218         (gimple_call_fntype): Return null for internal calls.
219         (gimple_call_set_fntype): Assert that the function is not internal.
220         (gimple_call_set_fn): Likewise.
221         (gimple_call_set_fndecl): Likewise.
222         (gimple_call_set_internal_fn): New function.
223         (gimple_call_addr_fndecl): Handle null functions.
224         (gimple_call_return_type): Likewise null types.
225         * gimple.c (gimple_build_call_internal_1): New function.
226         (gimple_build_call_internal): Likewise.
227         (gimple_build_call_internal_vec): Likewise.
228         (gimple_call_same_target_p): Likewise.
229         (gimple_call_flags): Handle calls to internal functions.
230         (gimple_call_fnspec): New function.
231         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
232         (gimple_has_side_effects): Handle null functions.
233         (gimple_rhs_has_side_effects): Likewise.
234         (gimple_call_copy_skip_args): Handle calls to internal functions.
235         * cfgexpand.c (expand_call_stmt): Likewise.
236         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
237         * gimple-fold.c (gimple_fold_call): Handle null functions.
238         (gimple_fold_stmt_to_constant_1): Don't fold
239         calls to internal functions.
240         * gimple-low.c (gimple_check_call_args): Handle calls to internal
241         functions.
242         * gimple-pretty-print.c (dump_gimple_call): Likewise.
243         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
244         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
245         (do_warn_unused_result): Likewise.
246         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
247         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
248         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
249         the target of a call.
250         (initialize_hash_element): Update accordingly.
251         (hashable_expr_equal_p): Use gimple_call_same_target_p.
252         (iterative_hash_hashable_expr): Handle calls to internal functions.
253         (print_expr_hash_elt): Likewise.
254         * tree-ssa-pre.c (can_value_number_call): Likewise.
255         (eliminate): Handle null functions.
256         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
257         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
258         (find_func_aliases): Likewise.
259         * value-prof.c (gimple_ic_transform): Likewise.
260         (gimple_indirect_call_to_profile): Likewise.
261         * lto-streamer-in.c (input_gimple_stmt): Likewise.
262         * lto-streamer-out.c (output_gimple_stmt): Likewise.
263
264 2011-04-19  Jan Hubicka  <jh@suse.cz>
265
266         * ipa-inline-transform.c (save_inline_function_body): Add comments.
267         * ipa-inline.c (inline_small_functions): Compute summaries first,
268         populate heap later.
269
270 2011-04-19  Jan Hubicka  <jh@suse.cz>
271
272         * cgraph.h (save_inline_function_body): Remove.
273         * ipa-inline-transform.c: New file, broke out of...
274         * ipa-inline.c: ... this one; Update toplevel comment.
275         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
276         make global.
277         (update_noncloned_frequencies): Move to ipa-inline-transform.c
278         (cgraph_mark_inline_edge): Rename to inline_call; move to
279         ipa-inline-transform.c.
280         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
281         move to ipa-inline-transform.c
282         (recursive_inlining, inline_small_functions, flatten_function,
283         ipa_inline, inline_always_inline_functions,
284         early_inline_small_functions): Update.
285         (inline_transform): Move to ipa-inline-transform.c.
286         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
287         Declare.
288         * Makefile.in (ipa-inline-transform.o): New file.
289         * cgraphunit.c (save_inline_function_body): Move to
290         ipa-inline-transform.c
291
292 2011-04-19  DJ Delorie  <dj@redhat.com>
293
294         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
295         registers if we already know there aren't any.
296         (m32c_emit_epilogue): Don't emit a barrier here.
297         (m32c_emit_eh_epilogue): Likewise.
298         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
299         operands at expand time.
300         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
301         int" wchar type.
302         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
303         duplicates.  Provide aliases instead.
304         * config/m32c/prologue.md (eh_return): Emit a barrier here.
305         (eh_epilogue): Add a "(return)" here as a hint to other parts of
306         the compiler.
307
308 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
309
310         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
311         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
312         (general_or_i64_p, sparc_register_move_cost): New function.
313
314 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
315
316         * doc/install.texi (Configuration, --enable-threads): Remove mach.
317         Add lynx, mipssde.  Sort table.
318
319 2011-04-19  Xinliang David Li  <davidxl@google.com>
320
321         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
322         not negative.
323
324 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
325
326         PR target/48678
327         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
328         is a SUBREG with non-MODE_INT mode inside of it.
329
330 2011-04-19  Martin Jambor  <mjambor@suse.cz>
331
332         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
333         also according to actual contants.
334         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
335         (gimple_fold_call): Use it.
336         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
337
338 2011-04-19  Martin Jambor  <mjambor@suse.cz>
339
340         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
341         non-pointer assignments.
342
343 2011-04-19  Martin Jambor  <mjambor@suse.cz>
344
345         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
346         account anc_offset and otr_type from the indirect edge info.
347         * ipa-prop.c (get_ancestor_addr_info): New function.
348         (compute_complex_ancestor_jump_func): Assignment analysis moved to
349         get_ancestor_addr_info, call it.
350         (ipa_note_param_call): Do not initialize information about polymorphic
351         calls, return the indirect call graph edge.  Remove the last
352         parameter, adjust all callers.
353         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
354         parameters.  Initialize polymorphic information in the indirect edge.
355
356 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
357
358         PR lto/48148
359         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
360         the types if they have different enumeration identifiers.
361
362 2011-04-19  Jan Hubicka  <jh@suse.cz>
363
364         * cgraph.h (cgraph_optimize_for_size_p): Declare.
365         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
366         * predict.c (cgraph_optimize_for_size_p): Break out from ...
367         (optimize_function_for_size_p) ... here.
368
369 2011-04-19  Richard Guenther  <rguenther@suse.de>
370
371         PR lto/48207
372         * tree.c (free_lang_data): Do not reset the decl-assembler-name
373         langhook.
374
375 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
376
377         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
378         if DECL_NO_INLINE_WARNING_P is set on the function.
379
380 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
381
382         PR fortran/47976
383         * reload1.c (inc_for_reload): Return void. All callers changed.
384         (emit_input_reload_insns): Don't try to delete previous output
385         reloads to a register, or record spill_reg_store for autoincs.
386
387 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
388
389         * gengtype.h: Updated copyright year.
390         (struct input_file_st): Add inpisplugin field.
391         (type_fileloc): New function.
392         * gengtype.c
393         (write_typed_struct_alloc_def): Add gcc_assert.
394         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
395         (write_typed_alloc_defns): Don't output for plugin files.
396         (input_file_by_name): Clear inpisplugin field.
397         (main): Set inpisplugin field for plugin files.
398
399 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
400
401         * gengtype-state.c (string_eq): New.
402         (read_state): Use string_eq instead of strcmp when creating the
403         state_ident_tab.
404
405 2011-04-19  Wei Guozhi  <carrot@google.com>
406
407         PR target/47855
408         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
409         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
410         linkage.
411         * config/arm/constraints.md (Uu): New constraint.
412         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
413
414 2011-04-19  Tristan Gingold  <gingold@adacore.com>
415
416         * config.gcc (-*-*-*vms): Added.
417         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
418         definitions moved.
419         * config/vms/vms-ld.c: New file.
420         * config/vms/vms-ar.c: New file.
421         * config/vms/t-vmsnative: New file.
422
423 2011-04-18  Xinliang David Li  <davidxl@google.com>
424
425         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
426
427 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
428
429         PR middle-end/48661
430         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
431         if TREE_TYPE (v) is non-NULL.
432
433         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
434         gimple_get_virt_mehtod_for_binfo.
435         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
436         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
437         callers.
438         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
439
440 2011-04-18  Michael Matz  <matz@suse.de>
441             Steve Ellcey  <sje@cup.hp.com>
442
443         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
444         use its mode as source mode if it isn't VOIDmode.
445
446 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
447
448         * doc/passes.texi: Fill crossref nodes.
449
450 2011-04-18  Jim Meyering  <meyering@redhat.com>
451
452         Fix doubled-word typos in comments and strings
453         * config/alpha/vms-unwind.h: s/for for/for/
454         * config/arm/unwind-arm.h: Likewise.
455         * config/microblaze/microblaze.c: Likewise.
456         * config/sh/constraints.md: s/in in/in/
457         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
458
459 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
460
461         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
462         (AVX_FLOAT_MODE_P): Ditto.
463         (AVX128_VEC_FLOAT_MODE_P): Ditto.
464         (AVX256_VEC_FLOAT_MODE_P): Ditto.
465         (AVX_VEC_FLOAT_MODE_P): Ditto.
466         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
467         (UNSPEC_MASKSTORE): Ditto.
468         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
469         Merge from <sse>_movmsk<ssemodesuffix> and
470         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
471         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
472         iterator.
473         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
474         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
475         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
476
477 2011-04-18  Jan Hubicka  <jh@suse.cz>
478
479         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
480
481         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
482         (want_inline_function_called_once_p): Break out the logic from
483         ipa_inline.
484         (edge_badness): Ensure that profile is not misupdated.
485         (lookup_recursive_calls): Prioritize by call frequencies.
486         (inline_small_functions): Move program size estimates here;
487         actually process whole queue even when unit growth has been
488         met. (to properly compute inline_failed reasons and for the
489         case unit size decrease.) Revisit comments on recursive inlining.
490         (ipa_inline): Remove unit summary code; first inline hot calls
491         of functions called once, cold calls next.
492         (order, nnodes): Remove unused variables.
493         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
494         (GTFILES): Remove ipa-inline.c
495         * sel-sched.c (fill_insns): Silence uninitialized var warning.
496
497 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
498
499         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
500
501 2011-04-18  Jie Zhang  <jie@codesourcery.com>
502             Richard Earnshaw  <rearnsha@arm.com>
503
504         * arm.c (neon_builtin_type_bits): Remove.
505         (typedef enum neon_builtin_mode): New.
506         (T_MAX): Don't define.
507         (typedef enum neon_builtin_datum): Remove bits, codes[],
508         num_vars and base_fcode.  Add mode, code and fcode.
509         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
510         VAR10): Change accordingly.
511         (neon_builtin_data[]): Change accordingly
512         (arm_init_neon_builtins): Change accordingly.
513         (neon_builtin_compare): Remove.
514         (locate_neon_builtin_icode): Remove.
515         (arm_expand_neon_builtin): Change accordingly.
516
517         * arm.h (enum arm_builtins): Move to ...
518         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
519
520         * arm.c (arm_builtin_decl): Declare.
521         (TARGET_BUILTIN_DECL): Define.
522         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
523         (arm_builtin_decls[]): New.
524         (arm_init_neon_builtins): Store builtin declarations in
525         arm_builtin_decls[].
526         (arm_init_tls_builtins): Likewise.
527         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
528         (arm_builtin_decl): New.
529
530 2011-04-18  Richard Guenther  <rguenther@suse.de>
531
532         * tree.c (upper_bound_in_type): Build properly canonicalized
533         INTEGER_CSTs.
534         (lower_bound_in_type): Likewise.
535
536 2011-04-18  Richard Guenther  <rguenther@suse.de>
537
538         * gimple.h (gimple_call_addr_fndecl): New function.
539         (gimple_call_fndecl): Use it.
540         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
541         for direct calls.
542         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
543         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
544
545 2011-04-18  Richard Guenther  <rguenther@suse.de>
546
547         PR middle-end/48650
548         * tree.c (build_string): STRING_CST is now derived from tree_typed.
549
550 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
551
552         PR lto/48492
553         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
554         DECL_IN_CONSTANT_POOL without RTL.
555
556 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
557             Ira Rosen  <ira.rosen@linaro.org>
558
559         PR target/48252
560         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
561         to match neon_vzip/vuzp/vtrn_internal.
562         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
563         outputs explicitly dependent on both inputs.
564         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
565
566 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
567
568         PR tree-optimization/48616
569         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
570         whether the shift is by scalar or vector based on whether all SLP
571         scalar stmts have the same rhs.
572
573 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
574
575         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
576         memory operands.
577
578 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
579
580         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
581         registers.
582
583 2011-04-17  Jan Hubicka  <jh@suse.cz>
584
585         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
586         * cgrpahunit.c (cgraph_finalize_function): Do not set
587         finalized_by_frontend.
588         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
589         finalized_by_frontend.
590
591 2011-04-17  Jan Hubicka  <jh@suse.cz>
592
593         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
594         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
595         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
596         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
597         method.
598         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
599         gimple-fold.c
600         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
601
602 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
603
604         PR lto/48538
605         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
606         is non-null before accessing it.
607         (input_cgraph): Remove trailing spaces.
608
609 2011-04-17  Revital Eres  <revital.eres@linaro.org>
610
611         * params.def (sms-min-sc): New param flag.
612         * modulo-sched.c (sms_schedule): Use it.
613         * doc/invoke.texi (sms-min-sc): Document it.
614
615 2011-04-17  Jan Hubicka  <jh@suse.cz>
616
617         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
618         present, also set gimple_call_set_cannot_inline.
619         * ipa-inline.c: Update toplevel comment.
620         (MAX_TIME): Remove.
621         (cgraph_clone_inlined_nodes): Fix linebreaks.
622         (cgraph_check_inline_limits): Restructure to ...
623         (caller_growth_limits): ... this one; be more tolerant
624         on growth in nested inline chains; add explanatory comment;
625         fix stack accounting thinko introduced by previous patch.
626         (cgraph_default_inline_p): Remove.
627         (report_inline_failed_reason): New function.
628         (can_inline_edge_p): New function.
629         (can_early_inline_edge_p): New function.
630         (leaf_node_p): Move upwards in file.
631         (want_early_inline_function_p): New function.
632         (want_inline_small_function_p): New function.
633         (want_inline_self_recursive_call_p): New function.
634         (cgraph_edge_badness): Rename to ...
635         (edge_badness) ... this one; fix linebreaks.
636         (update_edge_key): Update call of edge_baddness; add
637         detailed dump about queue updates.
638         (update_caller_keys): Use can_inline_edge_p and
639         want_inline_small_function_p.
640         (cgraph_decide_recursive_inlining): Rename to...
641         (recursive_inlining): Use can_inline_edge_p and
642         want_inline_self_recursive_call_p; simplify and remove no longer
643         valid FIXME.
644         (cgraph_set_inline_failed): Remove.
645         (add_new_edges_to_heap): Use can_inline_edge_p and
646         want_inline_small_function_p.
647         (cgraph_decide_inlining_of_small_functions): Rename to ...
648         (inline_small_functions): ... this one; cleanup; use
649         can/want predicates; cleanup debug ouput; work edges till fibheap
650         is exhausted and do not stop once unit growth is reached; remove
651         later loop processing remaining edges.
652         (cgraph_flatten): Rename to ...
653         (flatten_function): ... this one; use can_inline_edge_p
654         and can_early_inline_edge_p predicates.
655         (cgraph_decide_inlining): Rename to ...
656         (ipa_inline): ... this one; remove unreachable nodes before
657         inlining functions called once; simplify the pass.
658         (cgraph_perform_always_inlining): Rename to ...
659         (inline_always_inline_functions): ... this one; use
660         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
661         (cgraph_decide_inlining_incrementally): Rename to ...
662         (early_inline_small_functions): ... this one; simplify
663         using new predicates; cleanup; make dumps prettier.
664         (cgraph_early_inlining): Rename to ...
665         (early_inliner): newer inline regular functions into always-inlines;
666         fix updating of call stmt summaries.
667         (pass_early_inline): Update for new names.
668         (inline_transform): Fix formating.
669         (gate_cgraph_decide_inlining): Rename to ...
670         (pass_ipa_inline): ... this one.
671         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
672         * ipa-inline-analysis.c (dump_inline_summary): Update.
673         (compute_inline_parameters): Do not compute disregard_inline_limits;
674         look for mismatching arguments.
675         (estimate_growth): Fix handlig of non-trivial self recursion.
676         (inline_read_summary): Do not read info->disregard_inline_limits.
677         (inline_write_summary): Do not write info->disregard_inline_limits.
678         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
679         and move all checks into can_inline_edge_p predicate; re-enable code
680         comparing optimization levels.
681         (expand_call_inline): Do not test inline_forbidden_into_p.
682         * Makefile.in (ipa-inline.o): Update arguments.
683
684 2011-04-17  Revital Eres  <revital.eres@linaro.org>
685
686         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
687
688 2011-04-17  Revital Eres  <revital.eres@linaro.org>
689
690         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
691
692 2011-04-17  Michael Matz  <matz@suse.de>
693
694         PR tree-optimization/48622
695         PR lto/48645
696         * ipa-inline-analysis.c (inline_read_summary): Read size/time
697         in same order as they're written.
698
699 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
700
701         * config/pa/predicates.md: Reorganize and simplify predicates.
702         Eliminate duplicate code checks.
703         (arith_operand): Rename to arith14_operand
704         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
705         * config/pa/pa.md: Use renamed operands.
706         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
707         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
708         arith11_operand, adddi3_operand, indexed_memory_operand,
709         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
710         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
711         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
712         move_dest_operand, move_src_operand, prefetch_cc_operand,
713         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
714         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
715         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
716         div_operand, int5_operand, movb_comparison_operator,
717         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
718         arith_double_operand, ireg_operand, lhs_lshift_operand,
719         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
720         integer_store_memory_operand): Likewise.
721         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
722         (integer_store_memory_operand, read_only_operand,
723         function_label_operand, borx_reg_operand,
724         non_hard_reg_operand): Likewise.
725         (eq_neq_comparison_operator): Delete unused operator.
726         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
727         function_label_operand.
728         (emit_move_sequence): Likewise.
729
730 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
731
732         * config/i386/sse.md (sseunpackmode): New mode attribute.
733         (ssepackmode): Ditto.
734         (vec_pack_trunc_<mode>): Macroize expander from
735         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
736         (vec_unpacks_lo_<mode>): Macroize expander from
737         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
738         (vec_unpacks_hi_<mode>): Macroize expander from
739         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
740         (vec_unpacku_lo_<mode>): Macroize expander from
741         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
742         (vec_unpacku_hi_<mode>): Macroize expander from
743         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
744         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
745         ix86_expand_sse4_unpack.
746         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
747
748 2011-04-16  Jan Hubicka  <jh@suse.cz>
749
750         * cgraphbuild.c: Include ipa-inline.h.
751         (reset_inline_failed): Use initialize_inline_failed.
752         * cgraph.c: Include ipa-inline.h.
753         (cgraph_create_node_1): Do not initialize estimated_growth.
754         (initialize_inline_failed): More to ipa-inline-analysis.c
755         (dump_cgraph_node): Do not dump inline flags.
756         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
757         and disregard_inline_limits flags.
758         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
759         time, size, estimated_growth.
760         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
761         Update.
762         * cgraphunit.c (cgraph_decide_is_function_needed): Use
763         DECL_DISREGARD_INLINE_LIMITS.
764         (cgraph_analyze_function): Do not initialize
765         node->local.disregard_inline_limits.
766         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
767         inlinable, versionable and disregard_inline_limits.
768         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
769         cgraph_check_inline_limits, cgraph_default_inline_p,
770         cgraph_edge_badness, update_caller_keys, update_callee_keys,
771         add_new_edges_to_heap): Update.
772         (cgraph_decide_inlining_of_small_function): Update; set
773         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
774         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
775         cgraph_decide_inlining_incrementally): Update.
776         * ipa-inline.h (inline_summary): Add inlinable, versionable,
777         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
778         time, size and estimated_growth parameters.
779         (estimate_edge_growth): Update.
780         (initialize_inline_failed): Declare.
781         * ipa-split.c: Include ipa-inline.h
782         (execute_split_functions): Update.
783         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
784         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
785         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
786         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
787         estimated_growth to INT_MIN.
788         (inline_node_duplication_hook): Likewise.
789         (dump_inline_summary): Dump new fields.
790         (compute_inline_parameters): Update.
791         (estimate_edge_time, estimate_time_after_inlining,
792         estimate_size_after_inlining, estimate_growth, inline_read_summary,
793         inline_write_summary):
794         (initialize_inline_failed): Move here from cgraph.c.
795         * tree-sra.c: Include ipa-inline.h.
796         (ipa_sra_preliminary_function_checks): Update.
797         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
798         ipa-inline.h.
799
800 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
801
802         * config/i386/sse.md (V16): New mode iterator.
803         (VI1, VI8): Ditto.
804         (AVXMODEQI, AVXMODEDI): Remove.
805         (sse2, sse3): New mode attribute.
806         (mov<mode>): Use V16 mode iterator.
807         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
808         (push<mode>1): Use V16 mode iterator.
809         (movmisalign<mode>): Ditto.
810         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
811         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
812         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
813         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
814         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
815         avx_movdqu<avxmodesuffix>.
816         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
817         *avx_movdqu<avxmodesuffix>.
818         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
819         avx_lddqu<avxmodesuffix>.
820         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
821         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
822         avx_movnt<AVXMODEDI:mode>.
823         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
824         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
825
826 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
827
828         PR target/48629
829         * haifa-sched.c (prune_ready_list, schedule_block): Use
830         sched_pressure_p rather than flag_sched_pressure.
831
832 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
833
834         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
835         cgraph_get_node instead of cgraph_get_create_node.
836
837 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
838
839         * cfgexpand.c (expand_debug_expr): Use
840         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
841
842 2011-04-15  Michael Matz  <matz@suse.de>
843
844         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
845         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
846         * function.c (gimplify_parameters): Ditto.
847         * gimplify.c (gimplify_vla_decl): Ditto.
848
849         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
850         (gimple_call_set_alloca_for_var): New inline function.
851         (gimple_call_alloca_for_var_p): Ditto.
852         * gimple.c (gimple_build_call_from_tree): Remember
853         CALL_ALLOCA_FOR_VAR_P state.
854         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
855
856         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
857         calls if they were for VLA objects.
858
859 2011-04-15  Martin Jambor  <mjambor@suse.cz>
860
861         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
862         of ADR_EXPRs.
863
864 2011-04-15  Martin Jambor  <mjambor@suse.cz>
865
866         PR middle-end/48601
867         * tree-emutls.c (lower_emutls_function_body): Call
868         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
869         result is non-NULL.
870
871 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
872
873         * c-decl.c (detect_field_duplicates): Call
874         objc_detect_field_duplicates instead of objc_get_interface_ivars.
875
876 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
877
878         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
879         * gimple.c (gimple_asm_clobbers_memory_p): Define.
880         * ipa-pure-const.c (check_stmt): Call it.
881         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
882
883 2011-04-15  Richard Guenther  <rguenther@suse.de>
884
885         PR tree-optimization/48290
886         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
887         Properly decide inhibiting propagation based on the valueized
888         operand.  Do loop-closed SSA form preserving here ...
889         (init_copy_prop): ... not here.
890
891 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
892
893         PR target/48612
894         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
895         (*ieee_smax<mode>3): Likewise.
896
897 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
898
899         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
900         Replace match_operand with match_dup for the third operand in
901         these expanders.
902
903 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
904
905         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
906         to track processing of conditionals.  Update all callers.
907         (try_combine, simplify_if_then_else): Update.
908
909 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
910
911         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
912         -fsched-pressure.
913
914 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
915
916         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
917         instead of match_operand for operand 3.
918
919 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
920
921         * recog.h (insn_operand_data): Add an "allows_mem" field.
922         * genoutput.c (output_operand_data): Initialize it.
923         * optabs.c (maybe_legitimize_operand_same_code): New function.
924         (maybe_legitimize_operand): Use it when matching the original
925         op->value.
926
927 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
928
929         * gimplify.c: Fix issues in comments throughout.
930         (voidify_wrapper_expr): Fix long line.
931         (build_stack_save_restore): Likewise.
932         (gimplify_loop_expr): Likewise.
933         (gimplify_compound_lval): Likewise.
934         (gimplify_init_ctor_eval): Likewise.
935         (gimplify_modify_expr_rhs): Likewise.
936         (omp_notice_threadprivate_variable): Likewise.
937
938 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
939
940         * cfgexpand.c (expand_call_stmt): Convert the function type to the
941         original one if this is not a builtin function.
942
943 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
944
945         PR target/48605
946         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
947         offset it as needed based on top 2 bits in operands[3], change
948         MEM mode to SFmode and mask those 2 bits away from operands[3].
949
950 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
951
952         * c-parser.c (c_parser_objc_protocol_definition): Updated for
953         change from objc_declare_protocols() to objc_declare_protocol().
954
955 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
956
957         * config/i386/sse.md (sse4_1): New mode attribute.
958         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
959         avx_blend<ssemodesuffix><avxmodesuffix> and
960         sse4_1_blend<ssemodesuffix> using VF mode iterator.
961         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
962         avx_blendv<ssemodesuffix><avxmodesuffix> and
963         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
964         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
965         avx_dp<ssemodesuffix><avxmodesuffix> and
966         sse4_1_dp<ssemodesuffix> using VF mode iterator.
967         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
968         (sse4_1_packusdw): Merge with *avx_packusdw.
969         (sse4_1_pblendvb): Merge with *avx_pblendvb.
970         (sse4_1_pblendw): Merge with *avx_pblendw.
971         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
972         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
973         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
974         VF mode iterator.
975         (sse4_1_round<ssescalarmodesuffix>): Merge with
976         *avx_round<ssescalarmodesuffix>.
977         (aesenc): Merge with *avx_aesenc.
978         (aesenclast): Merge with *avx_aesenclast.
979         (aesdec): Merge with *avx_aesdec.
980         (aesdeclast): Merge with *avx_aesdeclast.
981         (pclmulqdq): Merge with *pclmulqdq.
982         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
983         New predicate.
984         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
985
986 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
987
988         PR middle-end/48608
989         * cfgexpand.c (get_decl_align_unit): Renamed to ...
990         (align_local_variable): This.  Update DECL_ALIGN.
991         (add_stack_var): Updated.
992         (expand_one_stack_var): Likewise.
993
994 2011-04-14  Richard Guenther  <rguenther@suse.de>
995
996         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
997         Remove.
998         (dse_initialize_block_local_data, dse_leave_block,
999         record_voperand_set, get_stmt_uid): Likewise.
1000         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1001         (dse_optimize_stmt): Remove voperand set handling code.
1002         Simplify and improve to handle any kind of killing stmt.
1003         (dse_record_phi): Remove.
1004         (dse_enter_block): Simplify.
1005         (tree_ssa_dse): Likewise.
1006         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1007
1008 2011-04-14  Jan Hubicka  <jh@suse.cz>
1009
1010         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1011         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1012         (cgraph_local_info): Remove inline_summary.
1013         * ipa-cp.c: Include ipa-inline.h.
1014         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1015         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1016         accesor.
1017         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1018         (input_overwrite_node): Do not set inline summary.
1019         (input_node): Do not stream inline summary.
1020         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1021         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1022         growth; we do not have inline parameters computed for that anyway.
1023         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1024         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1025         (inline_summary_t): New type and VECtor.
1026         (debug_inline_summary, dump_inline_summaries): Declare.
1027         (inline_summary): Use VOCtor.
1028         (estimate_edge_growth): Kill hack computing call stmt size directly.
1029         * lto-section-in.c (lto_section_name): Add inline section.
1030         * ipa-inline-analysis.c: Include lto-streamer.h
1031         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1032         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1033         (inline_summary_vec): Define.
1034         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1035         dump_inline_summaries): New functions.
1036         (estimate_function_body_sizes): Properly compute size/time of outgoing
1037         calls.
1038         (compute_inline_parameters): Alloc inline_summary; do not compute
1039         size/time of incomming calls.
1040         (estimate_edge_time): Avoid missing time summary hack.
1041         (inline_read_summary): Read inline summary info.
1042         (inline_write_summary): Write inline summary info.
1043         (inline_free_summary): Free all hooks and inline summary vector.
1044         * lto-streamer.h: Add LTO_section_inline_summary section.
1045         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1046         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1047
1048 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1049
1050         * tree-vectorizer.h (vect_strided_store_supported): Add a
1051         HOST_WIDE_INT argument.
1052         (vect_strided_load_supported): Likewise.
1053         (vect_permute_store_chain): Return void.
1054         (vect_transform_strided_load): Likewise.
1055         (vect_permute_load_chain): Delete.
1056         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1057         count argument.  Check that the count is a power of two.
1058         (vect_strided_load_supported): Likewise.
1059         (vect_permute_store_chain): Return void.  Update after above changes.
1060         Assert that the access is supported.
1061         (vect_permute_load_chain): Likewise.
1062         (vect_transform_strided_load): Return void.
1063         * tree-vect-stmts.c (vectorizable_store): Update calls after
1064         above interface changes.
1065         (vectorizable_load): Likewise.
1066         (vect_analyze_stmt): Don't check for strided powers of two here.
1067
1068 2011-04-14  Richard Guenther  <rguenther@suse.de>
1069
1070         PR tree-optimization/48590
1071         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1072         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1073         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1074         BUILT_IN_STACK_SAVE.
1075         * tree-ssa-dce.c (propagate_necessity): Handle
1076         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1077
1078 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1079
1080         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1081         objc_declare_class.
1082
1083 2011-04-14  Richard Guenther  <rguenther@suse.de>
1084
1085         * tree.h (get_object_alignment_1): Declare.
1086         * builtins.c (get_object_alignment_1): Split out worker from ...
1087         (get_object_alignment): ... here.
1088         * fold-const.c (get_pointer_modulus_and_residue): Use
1089         get_object_alignment_1.
1090
1091 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1092
1093         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1094         type parameter.
1095         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1096         parameter.  Generalise code to handle arrays as well as vectors.
1097         (vect_setup_realignment): Update accordingly.
1098         * tree-vect-stmts.c (vectorizable_store): Likewise.
1099         (vectorizable_load): Likewise.
1100
1101 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1102
1103         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1104         within the per-copy loop.
1105
1106 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1107
1108         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1109         in the dump file.
1110
1111 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1112
1113         * doc/options.texi (Negative): Explicitly mention that the
1114         Negative chain must be circular.
1115
1116 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1117
1118         * function.h (block_chainon): Declare.
1119         * function.c (block_chainon): Define.
1120
1121 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1122             Eric Weddington  <eric.weddington@atmel.com>
1123             Georg-Johann Lay <avr@gjlay.de>
1124
1125         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1126         New Includes
1127         (avr_init_builtins, avr_expand_builtin,
1128         avr_expand_delay_cycles, avr_expand_unop_builtin,
1129         avr_expand_binop_builtin ): New functions.
1130         (avr_builtin_id): New enum
1131         (struct avr_builtin_description): New struct
1132         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1133         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1134
1135         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1136         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1137         UNSPECV_DELAY_CYCLES): new enumeration values
1138         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1139         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1140         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1141         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1142         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1143         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1144         "fmulsu"): New insns
1145
1146         * config/avr/avr-c.c: fix line endings
1147         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1148         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1149         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1150         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1151         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1152
1153         * doc/extend.texi (AVR Built-in Functions): New node
1154         (Target Builtins): Add documentation of AVR
1155         built-in functions.
1156
1157 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1158
1159         PR target/44643
1160         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1161         alone. Error if non-const data has attribute progmem.
1162
1163 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1164
1165         * tree.h (struct tree_constructor): Include tree_typed instead of
1166         tree_common.
1167         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1168         TS_TYPED instead of TS_COMMON.
1169
1170 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1171
1172         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1173         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1174         (sse2_psadbw): Merge with *avx_psadbw.
1175         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1176         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1177         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1178         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1179         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1180         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1181         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1182         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1183         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1184         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1185         (ssse3_palignrti): Merge with *avx_palignrti.
1186
1187 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1188
1189         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1190         * tree-ssanames.c (fini_ssanames): VEC_free it.
1191         (make_ssa_name_fn): Update for VECness of free_ssanames.
1192         (release_ssa_name, release_dead_ssa_names): Likewise.
1193         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1194         tree_common.
1195         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1196         TS_TYPED instead of TS_COMMON.
1197
1198 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1199
1200         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1201         statistics_counter_event.
1202         * tree-ssa-copyrename.c (stats): Define.
1203         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1204         statistics_counter_event.
1205         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1206         (bswap_stats, widen_mul_stats): Define.
1207         (insert_reciprocals): Increment rdivs_inserted.
1208         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1209         rfuncs_inserted.  Add calls to statistics_counter_event.
1210         (execute_cse_sincos_1): Increment inserted.
1211         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1212         statistics_counter_event.
1213         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1214         of bswap_stats.  Add calls to statistics_counter_event.
1215         (convert_mult_to_widen): Increment widen_mults_inserted.
1216         (convert_plusminus_to_widen): Increment maccs_inserted.
1217         (convert_mult_to_fma): Increment fmas_inserted.
1218         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1219         calls to statistics_counter_event.
1220
1221 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1222
1223         PR rtl-optimization/48455
1224         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1225         `temp_costs->mem_cost'.
1226
1227 2011-04-13  Jan Hubicka  <jh@suse.cz>
1228
1229         * ipa-inline.h: New file.
1230         * ipa-inline-analysis.c: New file. Broken out of ...
1231         * ipa-inline.c: ... this file; update toplevel comment;
1232         include ipa-inline.h
1233         (inline_summary): Move to ipa-inline.h
1234         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1235         ipa-inline-analysis.c.
1236         (cgraph_estimate_time_after_inlining): Rename to
1237         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1238         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1239         to estimate_edge_growth.
1240         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1241         rename to estimate_size_after_inlining.
1242         (cgraph_mark_inline_edge): Update for new naming convention.
1243         (cgraph_check_inline_limits): Likewise.
1244         (cgraph_edge_badness): Likewise.
1245         (cgraph_decide_recursive_inlining): Likewise.
1246         (cgraph_decide_inlining_of_small_functions): Likewise.
1247         (cgraph_decide_inlining_incrementally): Likewise.
1248         (cgraph_estimate_growth): Rename to estimate_growth; move to
1249         ipa-inline-analysis.c.
1250         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1251         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1252         (compute_inline_parameters): Likewise.
1253         (compute_inline_parameters_for_current): Likewise.
1254         (pass_inline_parameters): Likewise.
1255         (inline_indirect_intraprocedural_analysis): Likewise.
1256         (analyze_function): Rename to inline_analyze_function; likewise.
1257         (add_new_function): Move to ipa-inline-analysis.c.
1258         (inline_generate_summary): Likewise.
1259         (inline_read_summary): Likewise.
1260         (inline_write_summary): Likewise.
1261         * Makefile.in (ipa-inline-analysis.c): New file.
1262
1263 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1264
1265         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1266         * configure: Regenerate.
1267
1268 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1269
1270         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1271         instead of tree_common.
1272         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1273         Likewise.
1274         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1275         TS_TYPED rather than TS_COMMON.
1276         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1277
1278 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1279
1280         PR target/45263
1281         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1282         r20 around calls of __tablejump_elpm__
1283
1284 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1285
1286         PR middle-end/48591
1287         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1288         NULL.
1289         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1290
1291 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1292
1293         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1294         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1295         (cfi_vec): New typedef.
1296         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1297         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1298         (cie_cfi_vec): New static variable.
1299         (cie_cfi_head): Delete.
1300         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1301         declaration changed. Use vector rather than list operations.
1302         (new_cfi): Don't initialize the dw_cfi_next field.
1303         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1304         rather than list operations.
1305         (lookup_cfa): Use vector rather than list operations.
1306         (output_cfis): New argument upto. Accept a cfi_vec rather than
1307         a dw_cfi_ref list head as argument. All callers changed.
1308         Iterate over the vector using upto as a maximum index.
1309         (output_all_cfis): New static function.
1310         (output_fde): Use vector rather than list operations. Use the
1311         new upto argument for output_cfis rather than manipulating a
1312         list.
1313         (dwarf2out_begin_prologue): Change initializations to match
1314         new struct members.
1315         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1316         from the vector length rather than searching for the end of a list.
1317         Use output_all_cfis.
1318         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1319
1320 2011-04-13  Nick Clifton  <nickc@redhat.com>
1321
1322         * config/rx/rx.md (movmemsi): Do not use this pattern when
1323         volatile pointers are involved.
1324
1325 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1326
1327         * config/i386/sse.md (pinsrbits): Remove.
1328         (sse2_packsswb): Merge with *avx_packsswb.
1329         (sse2_packssdw): Merge with *avx_packssdw.
1330         (sse2_packuswb): Merge with *avx_packuswb.
1331         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1332         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1333         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1334         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1335         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1336         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1337         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1338         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1339         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1340         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1341         (sse2_loadld): Merge with *avx_loadld.
1342         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1343         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1344         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1345         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1346         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1347
1348 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1349
1350         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1351         calling TREE_CHAIN.
1352         * print-tree.c (print_node): Likewise.
1353         * tree-inline.c (copy_tree_r): Likewise.
1354         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1355         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1356         instead of TS_COMMON.
1357         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1358         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1359         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1360         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1361         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1362         ...and these...
1363         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1364         * tree.h: ...here.
1365         (TREE_CHAIN): Check for a TS_COMMON structure.
1366         (TREE_TYPE): Check for a TS_TYPED structure.
1367
1368 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1369
1370         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1371         cgraph_get_create_node instead of cgraph_node.
1372
1373 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1374
1375         * c-parser.c (c_parser_initelt): Updated call to
1376         objc_build_message_expr.
1377         (c_parser_postfix_expression): Likewise.
1378
1379 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1380
1381         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1382         MASK_MS_BITFIELD_LAYOUT bit.
1383
1384 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1385
1386         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1387         assert it is always true.
1388         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1389         moves.
1390
1391 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1392
1393         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1394         compiling Objective-C to be more efficient.
1395
1396 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1397
1398         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1399         argv_copied.
1400
1401 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1402
1403         * recog.h, genoutput.c, optabs.c: Revert last patch.
1404
1405 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1406
1407         PR target/48090
1408         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1409
1410 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1411
1412         * recog.h (insn_operand_data): Add an "allows_mem" field.
1413         * genoutput.c (output_operand_data): Initialize it.
1414         * optabs.c (maybe_legitimize_operand_same_code): New function.
1415         (maybe_legitimize_operand): Use it when matching the original
1416         op->value.
1417
1418 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1419
1420         * genpreds.c (process_define_predicate): Move most processing
1421         to gensupport.c.  Continue to validate the expression.
1422         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1423         (process_define_predicate): Move processing to gensupport.c.
1424         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1425         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1426         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1427         argument.
1428         (valid_predicate_name_p): New function, split out from old
1429         genpreds.c:process_define_predicate.
1430         (process_define_predicate): New function, combining code from
1431         old genpreds.c and genrecog.c functions.
1432         (process_rtx): Call it for DEFINE_PREDICATE and
1433         DEFINE_SPECIAL_PREDICATE.
1434
1435 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1436
1437         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1438         size of a '%A' memory reference.
1439         (T_DREG, T_QREG): New neon_builtin_type_bits.
1440         (arm_init_neon_builtins): Assert that the load and store operands
1441         are neon_struct_operands.
1442         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1443         (NEON_ARG_MEMORY): New builtin_arg.
1444         (neon_dereference_pointer): New function.
1445         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1446         Handle NEON_ARG_MEMORY.
1447         (arm_expand_neon_builtin): Update after above interface changes.
1448         Use NEON_ARG_MEMORY for loads and stores.
1449         * config/arm/predicates.md (neon_struct_operand): New predicate.
1450         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1451         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1452         (V_four_elem): Tweak formatting.
1453         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1454         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1455         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1456         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1457         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1458         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1459         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1460         Use %A in the output template.
1461         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1462         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1463         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1464         the width of the memory access.  Remove post-increment.
1465         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1466
1467 2011-04-12  Nick Clifton  <nickc@redhat.com>
1468
1469         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1470         instruction for interrupt handlers if the target is the basic V850
1471         architecture.
1472         (expand_epilogue): Likewise.
1473
1474 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1475
1476         PR rtl-optimization/48549
1477         * combine.c (propagate_for_debug): Also stop after BB_END of
1478         this_basic_block.  Process LAST and just stop processing after it.
1479         (combine_instructions): If last_combined_insn has been deleted,
1480         set last_combined_insn to its PREV_INSN.
1481
1482 2011-04-12  Richard Guenther  <rguenther@suse.de>
1483
1484         PR tree-optimization/46076
1485         * gimple.h (struct gimple_statement_call): Add fntype field.
1486         (gimple_call_fntype): Adjust.
1487         (gimple_call_set_fntype): New function.
1488         * gimple.c (gimple_build_call_1): Set the call function type.
1489         * gimplify.c (gimplify_call_expr): Preserve the function
1490         type the frontend used for the call.
1491         (gimplify_modify_expr): Likewise.
1492         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1493         function type.
1494         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1495         function type.
1496         * tree-ssa.c (useless_type_conversion_p): Function pointer
1497         conversions are useless.
1498
1499 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1500
1501         * cgraph.h (cgraph_node): Remove function declaration.
1502         (cgraph_create_node): Declare.
1503         (cgraph_get_create_node): Likewise.
1504         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1505         Updated all callers.
1506         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1507         the decl does not already exist.  Call cgraph_get_create_node instead
1508         of cgraph_node.
1509         (cgraph_get_create_node): New function.
1510         (cgraph_same_body_alias): Update comment.
1511         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1512         assert it does not return NULL.
1513         (cgraph_update_edges_for_call_stmt): Likewise.
1514         (cgraph_clone_edge): Likewise.
1515         (cgraph_create_virtual_clone): Likewise.
1516         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1517         instead of cgraph_node.
1518         (cgraph_add_new_function): Call cgraph_create_node or
1519         cgraph_get_create_node instead of cgraph_node.
1520         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1521         instead of cgraph_node.
1522         (record_eh_tables): Likewise.
1523         (mark_address): Likewise.
1524         (mark_load): Likewise.
1525         (build_cgraph_edges): Call cgraph_get_create_node instead
1526         of cgraph_node.
1527         (rebuild_cgraph_edges): Likewise.
1528         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1529         instead of cgraph_node.
1530         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1531         cgraph_node.
1532         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1533         cgraph_create_node instead of cgraph_node.
1534         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1535         of cgraph_node.
1536         * lto-cgraph.c (input_node): Likewise.
1537         * lto-streamer-in.c (input_function): Likewise.
1538         * varasm.c (mark_decl_referenced): Likewise.
1539         (assemble_alias): Likewise.
1540
1541 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1542
1543         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1544         instead of cgraph_node and assert it does not return NULL.
1545         * lto-streamer-in.c (lto_read_body): Likewise.
1546         * omp-low.c (new_omp_context): Likewise.
1547         (create_task_copyfn): Likewise.
1548         * tree-emutls.c (lower_emutls_function_body): Likewise.
1549         * matrix-reorg.c (transform_allocation_sites): Likewise.
1550
1551 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1552
1553         PR c/48552
1554         * c-typeck.c (build_asm_expr): Error out on attempts to use
1555         void type outputs or inputs for constraints that allow reg or
1556         don't allow memory.
1557
1558 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1559             Richard Earnshaw  <rearnsha@arm.com>
1560
1561         PR target/48250
1562         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1563         to use sign-magnitude offsets. Reject unsupported unaligned
1564         cases. Add detailed description in comments.
1565         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1566         condition from TARGET_32BIT to TARGET_ARM.
1567
1568 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1569
1570         * tree.h (struct typed_tree): New.
1571         (struct tree_common): Include it instead of tree_base.
1572         (TREE_TYPE): Update for new location of type field.
1573         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1574         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1575         (union tree_node): Add typed field.
1576         * treestruct.def (TS_TYPED): New.
1577         * lto-streamer.c (check_handled_ts_structures): Handle it.
1578         * tree.c (MARK_TS_TYPED): New macro.
1579         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1580
1581 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1582
1583         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1584         (force_nonfallthru): Do not alter the loop nest if no basic block
1585         was created.
1586
1587 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1588
1589         * config/i386/sse.md (VI): New mode iterator.
1590         (SSEMODEI): Remove.
1591         (AVX256MODEI): Ditto.
1592         (AVXMODEF4P): Ditto.
1593         (avxvecpsmode): Ditto.
1594         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1595         (sse2_andnot<mode>3): New expander.
1596         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1597         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1598         (<any_logic:code><mode>3): Use VI mode iterator.
1599         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1600         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1601         (*andnottf3): Handle AVX three-operand constraints.
1602         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1603
1604 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1605             Robert Millan  <rmh@gnu.org>
1606
1607         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1608         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1609         GNU_USER_DYNAMIC_LINKER64): Define.
1610         (REG_NAME): Don't undefine.
1611         (MD_UNWIND_SUPPORT): Undefine.
1612         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1613         (REG_NAME): Don't undefine.
1614         (MD_UNWIND_SUPPORT): Undefine.
1615         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1616
1617 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1620         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1621
1622 2011-04-11  Xinliang David Li  <davidxl@google.com>
1623
1624         * value-profile.c (check_ic_target): New function.
1625         (gimple_ic_transform): Sanity check indirect call target.
1626         * gimple-low.c (gimple_check_call_args): Interface change.
1627         (gimple_check_call_matching_types): New function.
1628         * tree-inline.c (tree_can_inline_p): Call new function.
1629
1630 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1631
1632         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1633         tree-pretty-print.h & realmpfr.h.
1634
1635 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1636
1637         PR middle-end/48464
1638         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1639         (setup_allocno_and_important_classes): Ditto.
1640
1641 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1642
1643         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1644         GNU_USER_DYNAMIC_LINKER.
1645         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1646         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1647         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1648         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1649         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1650         GNU_USER_TARGET_OS_CPP_BUILTINS.
1651         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1652         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1653         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1654         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1655         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1656         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1657         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1658         GNU_USER_TARGET_OS_CPP_BUILTINS.
1659         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1660         GNU_USER_DYNAMIC_LINKER.
1661         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1662         GNU_USER_TARGET_OS_CPP_BUILTINS.
1663         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1664         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1665         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1666         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1667         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1668         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1669         GNU_USER_DYNAMIC_LINKER64): Remove.
1670         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1671         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1672         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1673         GNU_USER_DYNAMIC_LINKER.
1674         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1675         GNU_USER_TARGET_OS_CPP_BUILTINS.
1676         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1677         GNU_USER_TARGET_OS_CPP_BUILTINS.
1678         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1679         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1680         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1681         GNU_USER_TARGET_OS_CPP_BUILTINS.
1682         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1683         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1684         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1685         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1686         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1687         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1688         GNU_USER_DYNAMIC_LINKER.
1689         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1690         GNU_USER_TARGET_OS_CPP_BUILTINS.
1691         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1692         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1693         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1694         GNU_USER_DYNAMIC_LINKER.
1695         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1696         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1697         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1698         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1699         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1700         GNU_USER_DYNAMIC_LINKER.
1701         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1702         GNU_USER_DYNAMIC_LINKERN32.
1703         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1704         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1705         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1706         GNU_USER_DYNAMIC_LINKER32.
1707         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1708         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1709         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1710         GNU_USER_DYNAMIC_LINKER.
1711         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1712         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1713         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1714         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1715         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1716         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1717         GNU_USER_DYNAMIC_LINKER32.
1718         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1719         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1720         GNU_USER_DYNAMIC_LINKER.
1721         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1722         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1723         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1724         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1725         GNU_USER_DYNAMIC_LINKER64.
1726         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1727         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1728         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1729         GNU_USER_DYNAMIC_LINKER.
1730         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1731         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1732         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1733         GNU_USER_DYNAMIC_LINKER.
1734         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1735         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1736         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1737         GNU_USER_DYNAMIC_LINKER32.
1738         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1739         GNU_USER_DYNAMIC_LINKER64.
1740         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1741         GNU_USER_DYNAMIC_LINKER64.
1742         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1743         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1744         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1745         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1746         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1747
1748 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1749
1750         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1751         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1752         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1753         GNU_USER_DYNAMIC_LINKER.
1754         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1755         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1756         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1757         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1758         GNU_USER_DYNAMIC_LINKER64.
1759         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1760         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1761         GNU_USER_LINK_EMULATION.
1762         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1763         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1764         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1765         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1766         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1767         CPP_SPEC, CC1_SPEC): Remove.
1768         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1769         (GNU_USER_DYNAMIC_LINKER): Define.
1770         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1771         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1772         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1773         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1774         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1775         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1776         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1777         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1778         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1779         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1780         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1781         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1782         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1783         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1784         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1785         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1786         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1787         GNU_USER_DYNAMIC_LINKER.
1788         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1789         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1790         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1791         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1792         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1793         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1794         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1795         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1796         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1797         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1798
1799 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1800
1801         PR target/9601
1802         PR target/11772
1803         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1804         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1805         comment.
1806         (ix86_is_msabi_thiscall): Removed.
1807         (ix86_is_type_thiscall): Likewise.
1808         (ix86_get_callcvt): New function.
1809         (ix86_comp_type_attributes): Simplify check.
1810         (ix86_function_regparm): Use ix86_get_callcvt for calling
1811         convention attribute checks.
1812         (ix86_return_pops_args): Likewise.
1813         (ix86_static_chain): Likewise.
1814         (x86_this_parameter): Likewise.
1815         (x86_output_mi_thunk): Likewise.
1816         (ix86_function_type_abi): Optimize check for types without attributes.
1817         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1818         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1819         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1820         by flag-values.
1821         (IX86_BASE_CALLCVT): Helper macro.
1822         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1823         Use ix86_get_callcvt for calling convention attribute checks and avoid
1824         symbol-decoration for stdcall in TARGET_RTD case.
1825         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1826         Likewise.
1827         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1828         for declaration.
1829
1830 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1831
1832         * config/i386/sse.md (VI_128): New mode iterator.
1833         (VI12_128): Rename from SSEMODE12.
1834         (VI14_128): Rename from SSEMODE14.
1835         (VI124_128): New mode iterator.
1836         (VI24_128): Rename from SSEMODE248.
1837         (VI248_128): Rename from SSEMODE248.
1838         (SSEMODE124C8): Remove.
1839         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1840         (*sse2_<plusminus_insn><mode>3): Merge with
1841         *avx_<plusminus_insn><mode>3.
1842         (*mulv8hi3): Merge with *avx_mulv8hi3.
1843         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1844         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1845         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1846         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1847         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1848         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1849         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1850         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1851         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1852         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1853         (*<smaxmin:code>v8hi3): Ditto.
1854         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1855         (*<smaxmin:code>v16qi3): Ditto.
1856         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1857         (*sse2_eq<mode>3): Ditto.
1858         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1859         (*sse2_gt<mode>3): Ditto.
1860         (vcondv2di): Split out of vcond<mode>.
1861         (vconduv2di): Split out of vcondu<mode>.
1862
1863 2011-04-11  Richard Guenther  <rguenther@suse.de>
1864
1865         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1866         before calling tree_low_cst.
1867
1868 2011-04-11  Richard Guenther  <rguenther@suse.de>
1869
1870         * stor-layout.c (layout_type): Compute all array index size operations
1871         in the original type.
1872         (initialize_sizetypes): Add comment.
1873         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1874
1875 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1876
1877         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1878
1879 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1880
1881         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1882         of cgraph_node, handle NULL return value.
1883         (cgraph_global_info): Likewise.
1884         (cgraph_rtl_info): Likewise.
1885         * tree-inline.c (estimate_num_insns): Likewise.
1886         * gimplify.c (unshare_body): Likewise.
1887         (unvisit_body): Likewise.
1888         (gimplify_body): Likewise.
1889         * predict.c (optimize_function_for_size_p): Likewise.
1890         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1891         (call_may_clobber_ref_p_1): Likewise.
1892         * varasm.c (function_section_1): Likewise.
1893         (assemble_start_function): Likewise.
1894
1895 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1896
1897         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1898         of cgraph_node.
1899         * final.c (rest_of_clean_state): Likewise.
1900         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1901         * passes.c (pass_init_dump_file): Likewise.
1902         (execute_all_ipa_transforms): Likewise.
1903         (function_called_by_processed_nodes_p): Likewise.
1904         * predict.c (maybe_hot_frequency_p): Likewise.
1905         (probably_never_executed_bb_p): Likewise.
1906         (compute_function_frequency): Likewise.
1907         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1908         (unnest_nesting_tree_1): Likewise.
1909         (lower_nested_functions): Likewise.
1910         * tree-optimize.c (execute_fixup_cfg): Likewise.
1911         (tree_rest_of_compilation): Likewise.
1912         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1913         * tree-sra.c (ipa_early_sra): Likewise.
1914         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1915         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1916         * ipa.c (record_cdtor_fn): Likewise.
1917         * ipa-inline.c (cgraph_early_inlining): Likewise.
1918         (compute_inline_parameters_for_current): Likewise.
1919         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1920         * ipa-pure-const.c (local_pure_const): Likewise.
1921         * ipa-split.c (split_function): Likewise.
1922         (execute_split_functions): Likewise.
1923         * cgraphbuild.c (build_cgraph_edges): Likewise.
1924         (rebuild_cgraph_edges): Likewise.
1925         (cgraph_rebuild_references): Likewise.
1926         (remove_cgraph_callee_edges): Likewise.
1927         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1928         (verify_cgraph_node): Likewise.
1929         (cgraph_analyze_functions): Likewise.
1930         (cgraph_preserve_function_body_p): Likewise.
1931         (save_inline_function_body): Likewise.
1932         (save_inline_function_body): Likewise.
1933         * tree-inline.c (copy_bb): Likewise.
1934         (optimize_inline_calls): Likewise.
1935
1936 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1937
1938         PR tree-optimization/48195
1939         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1940         ipa_check_create_edge_args.
1941         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1942         ipa_check_create_edge_args.
1943         * ipa-inline.c (inline_generate_summary): Do not call
1944         ipa_check_create_node_params and ipa_check_create_edge_args.
1945         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1946         ipa_check_create_edge_args.
1947
1948 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1949
1950         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1951         instead of loop.
1952         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1953         * function.c (record_hard_reg_sets): Likewise.
1954         * ira.c (compute_regs_asm_clobbered): Likewise.
1955         * sched-deps.c (sched_analyze_1): Likewise.
1956         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1957
1958 2011-04-09  Xinliang David Li  <davidxl@google.com>
1959
1960         PR tree-optimization/PR48484
1961         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1962         has_valid_pred lazily
1963
1964 2011-04-09  Duncan Sands  <baldrick@free.fr>
1965
1966         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1967
1968 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1969
1970         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1971         cost of I0 to zero at the end, if any.
1972
1973 2011-04-08  Xinliang David Li  <davidxl@google.com>
1974
1975         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1976         to insane profile data.
1977
1978 2011-04-08  Xinliang David Li  <davidxl@google.com>
1979
1980         * ipa-cp.c (ipcp_update_profiling): Correct
1981          negative scale factor due to insane profile data.
1982
1983 2011-04-08  Xinliang David Li  <davidxl@google.com>
1984
1985         * final.c (dump_basic_block_info): New function.
1986         (final): Dump basic block.
1987         (final_scan_insn): Remove old dump.
1988
1989 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1990
1991         PR target/47829
1992         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1993         crtbegin/crtend.
1994
1995 2011-04-08  Michael Matz  <matz@suse.de>
1996
1997         PR middle-end/48389
1998         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1999         functions.
2000         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2001         * rtl.h (rebuild_jump_labels_chain): Declare.
2002         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2003         insns inserted on edges.
2004
2005 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2006
2007         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2008         * config/arm/arm-arches.def: New.
2009         * config/arm/arm-opts.h: New.
2010         * config/arm/genopt.sh: New.
2011         * config/arm/arm-tables.opt: New (generated).
2012         * config/arm/arm.c (arm_handle_option, arm_target_help,
2013         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2014         (all_architectures): Get most table contents from arm-arches.def.
2015         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2016         arm_selected_tune here.
2017         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2018         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2019         (march=, mcpu=, mtune=): Use Enum and Var.
2020         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2021         (arm.o): Update dependencies.
2022
2023 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2024
2025         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2026         of header_file.
2027         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2028         (write_typed_alloc_defns): Likewise.
2029         (main): Calls write_typed_alloc_defns with output_header.
2030
2031 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2032
2033         PR inline-asm/48435
2034         * ira-color.c (setup_profitable_hard_regs): Add comments.
2035         Don't take prohibited hard regs into account.
2036         (setup_conflict_profitable_regs): Rename to
2037         get_conflict_profitable_regs.
2038         (check_hard_reg_p): Check prohibited hard regs.
2039
2040 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2041
2042         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2043         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2044         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2045
2046 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2047
2048         PR target/48366
2049         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2050         move from floating point to shift amount register.
2051         (emit_move_sequence): Remove secondary reload support for floating
2052         point to shift amount amount register copies.
2053         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2054         amount register copies.
2055         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2056         register, return false if mode isn't a scalar integer mode.
2057         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2058
2059 2011-04-08  Richard Guenther  <rguenther@suse.de>
2060
2061         * gimple.c (gimple_call_flags): Remove kludge.
2062
2063 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2064
2065         * sel-sched.c (sel_region_init): Move call to
2066         sel_setup_region_sched_flags after setup_current_loop_nest.
2067
2068 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2069
2070         PR rtl-optimization/48272
2071         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2072         init_insn_reg_pressure_info.  Adjust a caller.
2073         * sched-int.h (init_insn_reg_pressure_info): Declare.
2074         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2075         when sched-pressure is enabled.
2076
2077 2011-04-08  Richard Guenther  <rguenther@suse.de>
2078
2079         * gimple.c (gimple_set_modified): Do not queue calls to
2080         MODIFIED_NORETURN_CALLS here ...
2081         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2082
2083 2011-04-08  Richard Guenther  <rguenther@suse.de>
2084
2085         PR lto/48467
2086         * toplev.c (lang_dependent_init): Do not open asm_out_file
2087         in WPA mode, nor perform debug machinery initialization.
2088         (finalize): Do not unlink asm_out_file in WPA mode.
2089
2090 2011-04-08  Richard Guenther  <rguenther@suse.de>
2091
2092         * gimple.h (gimple_call_fntype): New function.
2093         (gimple_call_return_type): Use it.
2094         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2095         * gimple-low.c (gimple_check_call_args): Likewise.
2096         * gimple.c (gimple_call_flags): Likewise.
2097         (gimple_call_arg_flags): Likewise.
2098         (gimple_call_return_flags): Likewise.
2099         * tree-cfg.c (verify_gimple_call): Likewise.
2100         (do_warn_unused_result): Likewise.
2101         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2102         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2103
2104 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2105
2106         PR rtl-optimization/48235
2107         * sel-sched.c (code_motion_process_successors): Recompute the last
2108         insn in basic block if control flow changed.
2109         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2110         Update condition for ilist_remove.
2111
2112 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2113
2114         PR rtl-optimization/48302
2115         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2116         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2117         it to record added preheader blocks.
2118         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2119         on to sel_add_loop_preheaders.
2120         (sel_region_init): Move call to setup_current_loop_nest after
2121         sel_init_bbs.
2122
2123 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2124
2125         PR target/48273
2126         * cfgloop.h (loop_has_exit_edges): New helper.
2127         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2128         non-clonable.
2129         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2130         that have no exit edges.
2131
2132 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2133
2134         PR rtl-optimization/48442
2135         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2136         all callers.  Adjust assert.
2137
2138 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2139
2140         PR tree-optimization/48377
2141         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2142         is_packed to true even for types with smaller TYPE_ALIGN than
2143         TYPE_SIZE.
2144
2145 2011-04-08  Richard Guenther  <rguenther@suse.de>
2146
2147         PR bootstrap/48513
2148         * doc/tm.texi: Re-generate.
2149
2150 2011-04-08  Wei Guozhi  <carrot@google.com>
2151
2152         PR target/47855
2153         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2154         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2155         * config/arm/arm.md (*push_multi): Change the length computation to
2156         call a C function.
2157
2158 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2159
2160         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2161         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2162         * doc/tm.texi: Regenerate.
2163         * system.h (ASM_OUTPUT_BSS): Poison.
2164         * varasm.c (asm_output_bss): Remove function.
2165         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2166
2167         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2168         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2169         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2170         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2171         Likewise.
2172         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2173         Likewise.
2174         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2175         Likewise.
2176         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2177
2178 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2179
2180         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2181         EnumValue lines.
2182
2183 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2184
2185         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2186         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2187         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2188         OPT_mcpu32.
2189         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2190         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2191         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2192         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2193         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2194         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2195         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2196         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2197         options.  Don't map other m68k options manually.  Don't handle
2198         old-style options as canonical.
2199         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2200         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2201
2202 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2203
2204         * basic-block.h (force_nonfallthru): Move to...
2205         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2206         (force_nonfallthru): ...here.
2207         * cfghooks.c (force_nonfallthru): New function.
2208         * cfgrtl.c (force_nonfallthru): Rename into...
2209         (rtl_force_nonfallthru): ...this.
2210         (commit_one_edge_insertion): Do not set AUX field.
2211         (commit_edge_insertions): Do not discover new basic blocks.
2212         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2213         (cfg_layout_rtl_cfg_hooks): Likewise.
2214         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2215         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2216         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2217
2218 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2219
2220         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2221         Remove macros.
2222
2223 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2224
2225         * config/i386/sse.md: Update copyright year.
2226         (avxcvtvecmode): Remove.
2227         (sse_movhlps): Merge with *avx_movhlps.
2228         (sse_movlhps): Merge with *avx_movlhps.
2229         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2230         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2231         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2232         (sse_loadhps): Merge with *avx_loadhps.
2233         (sse_storelps): Merge with *avx_storelps.
2234         (sse_loadlps): Merge with *avx_loadlps.
2235         (sse_movss): Merge with *avx_movss.
2236         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2237         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2238         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2239         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2240         (vec_set<mode>_0): Ditto.
2241         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2242         (sse4_1_insertps): Merge with *avx_insertps.
2243         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2244         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2245         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2246         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2247         (sse2_storehpd): Merge with *avx_storehpd.
2248         (sse2_loadhpd): Merge with *avx_loadhpd.
2249         (sse2_loadlpd): Merge with *avx_loadlpd.
2250         (sse2_movsd): Merge with *avx_movsd.
2251         (*vec_concatv2df): Merge with *vec_concatv2df.
2252
2253 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2254
2255         PR debug/48343
2256         * combine.c (combine_instructions): Add last_combined_insn,
2257         update it if insn is after it, pass it to all try_combine calls.
2258         (try_combine): Add last_combined_insn parameter, pass it instead of
2259         i3 to propagate_for_debug.
2260
2261 2011-04-07  Nick Clifton  <nickc@redhat.com>
2262
2263         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2264         to handle MDR <-> data register transfers.
2265         (movhi_internal): Likewise.
2266
2267 2011-04-07  Alan Modra  <amodra@gmail.com>
2268
2269         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2270         previous stack info.
2271
2272 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2273
2274         PR target/43920
2275         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2276         flow_find_cross_jump.  Swap variables to implement backward replacement.
2277         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2278
2279 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2280
2281         PR target/43920
2282         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2283         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2284         and bb2.
2285         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2286         src1 or src2.  Redirect edges to the last basic block.  Update
2287         frequency and count on multiple basic blocks in case of fallthru.
2288
2289 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2290
2291         PR target/43920
2292         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2293         function.
2294         (old_insns_match_p): Change return type.  Replace return false/true
2295         with return dir_none/dir_both.  Use can_replace_by.
2296         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2297         direction from dir_p.  Register replacement direction in dir, last_dir
2298         and afterlast_dir.  Handle new return type of old_insns_match_p using
2299         merge_dir.  Return replacement direction in dir_p.
2300         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2301         return type of old_insns_match_p.
2302         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2303         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2304         flow_find_cross_jump.
2305         * basic-block.h (enum replace_direction): New type.
2306         (flow_find_cross_jump): Add parameter to declaration.
2307
2308 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2309
2310         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2311         (AVXMODEDCVTPS2DQ): Ditto.
2312         (VEC_FLOAT_MODE): Ditto.
2313         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2314         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2315         (<any_logic:code><mode>3): Use VF mode iterator.
2316         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2317         Use VF mode iterator.
2318         (copysign<mode>3): Use VF mode iterator.
2319         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2320         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2321         (*<any_logic:code><MODEF:mode>3): Merge with
2322         *avx_<any_logic:code><MODEF:mode>3.
2323         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2324         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2325         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2326         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2327         (sse2_cvtdq2ps): Use %v modifier.
2328         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2329         (avx_cvtps2dq<avxmodesuffix>): Remove.
2330         (sse2_cvtps2dq): Use %v modifier.
2331         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2332         (avx_cvttps2dq<avxmodesuffix>): Remove.
2333         (sse2_cvttps2dq): Use %v modifier.
2334         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2335         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2336         (sse2_cvtsd2siq): Fix insn template.
2337         (sse2_cvtsd2siq_2): Ditto.
2338         (sse2_cvttsd2siq): Ditto.
2339         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2340         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2341
2342 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2343
2344         * gcov-io.c: Use GCC Runtime Library Exception.
2345
2346 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2347
2348         PR debug/48466
2349         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2350         as base_reg whatever register reg has been eliminated to, instead
2351         of hardcoding STACK_POINTER_REGNUM.
2352
2353 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2354
2355         * doc/tm.texi.in: Document C target hooks as separate from general
2356         target hooks.
2357         * doc/tm.texi: Regenerate.
2358         * genhooks.c (struct hook_desc): Add docname field.
2359         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2360         docname field.
2361         (hook_array): Include c-target.def.
2362         (emit_documentation): Use docname field in output.
2363         (emit_init_macros): Take docname argument.  Only emit definitions
2364         for hooks matching docname.
2365         (main): Expect additional arguments in all cases.  Pass argument
2366         to emit_init_macros.
2367         * target.def: Move initial macro definitions and comments to
2368         target-hooks-macros.h.
2369         (gcc_targetcm): Move to c-family/c-target.def.
2370         * target.h (targetcm): Move declaration to c-family/c-target.h.
2371         * targhooks.c (default_handle_c_option): Move to
2372         c-family/c-opts.c.
2373         * targhooks.h (default_handle_c_option): Move declaration to
2374         c-family/c-common.h.
2375         * target-hooks-macros.h: New file.
2376         * config.gcc (target_has_targetcm): Define and use to add to
2377         c_target_objs and cxx_target_objs.
2378         * config/default-c.c: New file.
2379         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2380         of target.h and target-def.h.
2381         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2382         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2383         darwin_check_cfstring_format_arg): Make static.
2384         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2385         TARGET_STRING_OBJECT_REF_TYPE_P,
2386         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2387         * config/darwin-protos.h (darwin_objc_construct_string,
2388         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2389         declare.
2390         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2391         TARGET_STRING_OBJECT_REF_TYPE_P,
2392         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2393         * config/t-darwin (darwin-c.o): Update dependencies.
2394         * system.h (TARGET_HAS_TARGETCM): Poison.
2395         * Makefile.in (TARGET_H): Update.
2396         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2397         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2398         (default-c.o): New target.
2399         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2400         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2401         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2402         c-target.def.
2403         (build/genhooks.o): Update dependencies.
2404
2405 2011-04-06  Richard Guenther  <rguenther@suse.de>
2406
2407         * ipa-inline.c (enum inlining_mode): Remove.
2408         (cgraph_flatten): Use some other token.
2409         (cgraph_edge_early_inlinable_p): New function, split out from ...
2410         (cgraph_perform_always_inlining): New function, split out from ...
2411         (cgraph_decide_inlining_incrementally): ... here.
2412         (cgraph_mark_inline_edge): Adjust.
2413         (cgraph_early_inlining): Re-structure.
2414         (pass_early_inline): Require SSA form.
2415
2416 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2417             Julian Brown  <julian@codesourcery.com>
2418             Mark Shinwell  <shinwell@codesourcery.com>
2419
2420         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2421         LO_REGS only for Thumb-1.
2422         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2423         be used in short instructions when optimising for size on Thumb-2.
2424
2425 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2426
2427         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2428         associated with user returns to be preserved.
2429
2430 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2431
2432         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2433         symbol_queue_size, DBXOUT_DECR_NESTING,
2434         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2435         if XCOFF_DEBUGGING_INFO.
2436
2437 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2438
2439         * config/i386/i386.md (attribute isa): New.
2440         (attribute enabled): New.
2441         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2442         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2443         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2444         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2445         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2446         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2447         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2448         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2449
2450         * config/i386/sse.md (VF): New mode iterator.
2451         (VF1): Ditto.
2452         (VF2): Ditto.
2453         (VF_128): Ditto.
2454         (SSEMODEF4): Remove.
2455         (attribute sse): Handle V8SF and V4DF modes.
2456         (<absneg:code><mode>2): Use VF mode iterator.
2457         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2458         mode iterator.
2459         (<plusminus_insn><mode>3): Use VF mode iterator.
2460         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2461         Use VF mode iterator.
2462         (<sse>_vm<plusminus_insn><mode>3): Merge with
2463         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2464         (mul<mode>3): Use VF mode iterator.
2465         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2466         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2467         mode iterator.
2468         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2469         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2470         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2471         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2472         mode iterator.
2473         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2474         Use VF1 mode iterator.
2475         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2476         (sqrt<VF2:mode>2): New expander.
2477         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2478         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2479         and sqrtv2df2.  Use VF mode iterator.
2480         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2481         mode iterator.
2482         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2483         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2484         Use VF1 mode iterator.
2485         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2486         (<smaxmin:code><mode>3): Use VF mode iterator.
2487         (*<smaxmin:code><mode>3_finite): Merge with
2488         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2489         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2490         (<sse>_vm<smaxmin:code><mode>2): Merge with
2491         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2492         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2493         mode iterator.
2494         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2495         mode iterator.
2496         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2497         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2498         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2499         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2500         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2501         VF mode iterator.
2502         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2503         Use VF_128 mode iterator.
2504         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2505         mode iterator.
2506         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2507         VF_128 mode iterator.
2508         (vcond<mode>): Use VF mode iterator.
2509         * config/i386/predicates.md (sse_comparison_operator): Merge with
2510         avx_comparison_float_operator.  Do not declare as special_predicate.
2511         * config/i386/i386.c (struct builtin_description): Update for renamed
2512         compare patterns.
2513         (ix86_expand_args_builtin): Ditto.
2514         (ix86_expand_sse_compare_mask): Ditto.
2515
2516 2011-04-06  Richard Guenther  <rguenther@suse.de>
2517
2518         * tree-inline.c (estimate_num_insns): For calls simply account
2519         for all passed arguments and a used return value.
2520
2521 2011-04-06  Richard Guenther  <rguenther@suse.de>
2522
2523         PR tree-optimization/47663
2524         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2525         call_stmt_time fields.
2526         (cgraph_edge_inlinable_p): Declare.
2527         (cgraph_edge_recursive_p): New inline function.
2528         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2529         (cgraph_clone_edge): Copy it.
2530         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2531         Account for call stmt time.
2532         (cgraph_estimate_time_after_inlining): Take edge argument.
2533         (cgraph_estimate_edge_growth): Account call stmt size.
2534         (cgraph_estimate_size_after_inlining): Take edge argument.
2535         (cgraph_mark_inline_edge): Adjust.
2536         (cgraph_check_inline_limits): Likewise.
2537         (cgraph_recursive_inlining_p): Remove.
2538         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2539         (cgraph_decide_recursive_inlining): Take edge argument and
2540         adjust.
2541         (cgraph_decide_inlining_of_small_functions): Do not avoid
2542         diags for recursive inlining here.
2543         (cgraph_flatten): Adjust.
2544         (cgraph_decide_inlining_incrementally): Likewise.
2545         (estimate_function_body_sizes): Remove call cost handling.
2546         (compute_inline_parameters): Initialize caller edge call costs.
2547         (cgraph_estimate_edge_growth): New function.
2548         (cgraph_estimate_growth): Use it.
2549         (cgraph_edge_badness): Likewise.
2550         (cgraph_check_inline_limits): Take an edge argument.
2551         (cgraph_decide_inlining_of_small_functions): Adjust.
2552         (cgraph_decide_inlining): Likewise.
2553         * tree-inline.c (estimate_num_insns): Only account for call
2554         return value if it is used.
2555         (expand_call_inline): Avoid diagnostics on recursive inline
2556         functions here.
2557         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2558         (input_edge): Input edge call costs.
2559
2560 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2561
2562         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2563
2564 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2565
2566         * doc/invoke.texi (Spec Files): Fix typo.
2567
2568 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2569
2570         * profile.c (branch_prob): Move declaration of local variable.  Remove
2571         obsolete ??? comment.  Expand the location explicitly instead of using
2572         the LOCATION_FILE and LOCATION_LINE macros.
2573
2574 2011-04-06  Wei Guozhi  <carrot@google.com>
2575
2576         PR target/47855
2577         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2578         (arm_cond_branch): Likewise.
2579         (arm_cond_branch_reversed): Likewise.
2580         (arm_jump): Likewise.
2581         (push_multi): Likewise.
2582         * config/arm/constraints.md (Py): New constraint.
2583
2584 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2585
2586         PR bootstrap/48471
2587         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2588         Move these...
2589         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2590         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2591         #ifdef DBX_DEBUGGING_INFO.
2592
2593 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2594
2595         PR bootstrap/48403
2596         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2597         if old and new states differ.
2598
2599 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2600
2601         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2602         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2603         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2604         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2605         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2606         mcfv4e): Use Alias.
2607         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2608         ColdFire options to -mcpu= options.
2609
2610 2011-04-05  Jeff Law  <law@redhat.com>
2611
2612         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2613         check if BB is a successor of LOOP->header and return
2614         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2615
2616 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2617
2618         * cprop.c (struct reg_use): Remove.
2619         (reg_use_table): Make an array of RTX.
2620         (find_used_regs, constprop_register, local_cprop_pass,
2621         bypass_block): Simplify users of reg_use_table.
2622         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2623         on one of the uses found by find_used_regs.
2624
2625 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2626
2627         PR bootstrap/48469
2628         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2629         declaration.
2630
2631 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2632
2633         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2634         as an rtx.
2635         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2636
2637 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2638
2639         PR middle-end/48441
2640         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2641
2642 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2643
2644         * combine.c: Include obstack.h.
2645         (struct insn_link): Define.
2646         (uid_log_links): Adjust type.
2647         (FOR_EACH_LOG_LINK): New macro.
2648         (insn_link_obstack): Declare.
2649         (alloc_insn_link): Define.
2650         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2651         type of link variables.
2652         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2653         (try_combine, record_promoted_values, distribute_notes): Likewise.
2654         (distribute_links): Likewise.  Tweak prototype.
2655         (clear_log_links): Delete.
2656         (adjust_for_new_dest): Call alloc_insn_link.
2657         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2658
2659 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2660
2661         * gcse.c (modify_mem_list): Convert to an array of VECs.
2662         (canon_modify_mem_list, compute_transp): Tweak formatting.
2663         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2664         (load_killed_in_block_p): Likewise.
2665         (record_last_mem_set_info): Likewise.
2666         (clear_modify_mem_tables): Likewise.
2667
2668 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2669
2670         PR middle-end/48461
2671         * function.c (emit_use_return_register_into_block): Only define if
2672         HAVE_return.
2673
2674 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2675
2676         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2677
2678 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2679
2680         * config/rx/rx-opts.h: New.
2681         * config/rx/rx.c (rx_cpu_type): Remove.
2682         (rx_handle_option): Don't assert that global structures are in
2683         use.  Access variables via opts pointer.  Defer most handling of
2684         OPT_mint_register_.  Use error_at.
2685         (rx_option_override): Handle deferred OPT_mint_register_ here.
2686         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2687         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2688         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2689         (rx_cpu_types): New Enum and EnumValue entries.
2690         (mint-register=): Use Defer and use Var accordingly.
2691
2692 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2693
2694         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2695         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2696         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2697         Move these...
2698         (debug_free_queue, debug_nesting, symbol_queue_index):
2699         ...and these...
2700         * dbxout.c: ...to here.  Make static.
2701
2702 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2703
2704         * gcse.c (modify_pair): Define.  Define a VEC of it.
2705         (canon_modify_mem_list): Convert to an array of VECs.
2706         (free_insn_expr_list_list): Delete.
2707         (clear_modify_mem_tables): Call VEC_free instead.
2708         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2709         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2710         (canon_list_insert, compute_transp): Likewise.
2711
2712 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2713
2714         PR target/43920
2715         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2716         for size.
2717
2718 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2719
2720         PR target/43920
2721         * function.c (emit_use_return_register_into_block): New function.
2722         (thread_prologue_and_epilogue_insns): Use
2723         emit_use_return_register_into_block.
2724
2725 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2726
2727         PR target/43920
2728         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2729         insn.
2730
2731 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2732
2733         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2734
2735 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2736
2737         * config/arm/arm.md (define_constants for unspec): Replace with
2738         define_c_enum.
2739         (define_constants for unspecv): Replace with define_c_enum.
2740         * config/arm/neon.md (define_constants for unspec): Replace with
2741         define_c_enum.
2742
2743 2011-04-04  Richard Henderson  <rth@redhat.com>
2744
2745         PR bootstrap/48400
2746         * dwarf2out.c (output_line_info): Always emit line info from
2747         at least one section.
2748         (dwarf2out_init): Create text_section_line_info here ...
2749         (set_cur_line_info_table): ... not here.
2750
2751 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2752
2753         PR target/48380
2754         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2755         not called.
2756
2757         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2758
2759 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2760
2761         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2762         (expr_equiv_p): Remove.
2763         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2764         (hash_scan_set): Update call to insert_set_in_table.
2765         (dump_hash_table): Dump <dest, src> pair.
2766         (lookup_set): Simplify.  Lookup <dest, src> pair.
2767         (compute_transp): Remove, fold heavily simplified code into...
2768         (compute_local_properties): ...here.  Expect COMP and TRANSP
2769         unconditionally.
2770         (find_avail_set): Take set directly from struct expr.
2771         (find_bypass-set): Likewise.
2772         (bypass_block): Likewise.
2773         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2774
2775         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2776         checks on form of COND from find_implicit_sets to here.
2777         (find_implicit_sets): Cleanup control flow. Split critical edges
2778         if it exposes implicit sets.  Allocate/resize implicit_sets as
2779         necessary.
2780         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2781         changed something.  Run df_analyze after find_implicit_sets if any
2782         edges were split.  Do not allocate implicit_sets here.
2783
2784         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2785         (gcse_obstack): Renamed to cprop_obstack.
2786         (GNEW, GNEWVEC, GNEWVAR): Remove.
2787         (gmalloc): Remove.
2788         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2789         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2790         (gcse_alloc): Likewise, and rename to cprop_alloc.
2791         (alloc_gcse_men, free_gcse_mem): Remove.
2792         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2793         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2794         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2795
2796         * cprop.c (oprs_not_set_p): Remove.
2797         (mark_set, mark_clobber): Remove.
2798         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2799         (reg_not_set_p): New function.
2800         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2801         (cprop_insn): Likewise.
2802         (cprop_jump): Use FOR_EACH_EDGE.
2803
2804 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2805
2806         PR bootstrap/48403
2807         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2808         (rank_for_schedule): Use scheduled_insns vector instead of
2809         last_scheduled_insn.
2810         (ok_for_early_queue_removal): Likewise.
2811         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2812         we have a dbg_cnt.
2813         (choose_ready): Likewise.
2814         (commit_schedule): Use VEC_iterate.
2815         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2816         a dbg_cnt, use it and ensure the first insn is in the ready list.
2817         (haifa_sched_init): Allocate scheduled_insns.
2818         (sched_extend_ready_list): Don't allocate it; reserve space.
2819         (haifa_sched_finish): Free it.
2820
2821 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2822
2823         * optc-gen.awk: Always remove type from Variable entry before
2824         recording in var_seen.
2825
2826 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2827
2828         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2829         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2830         call to tidy_fallthru_edges.
2831
2832 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2833
2834         * doc/options.texi (ToLower): Document.
2835         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2836         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2837         * opts.h (cl_option): Add cl_tolower field.
2838         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2839         arguments with lowercase strings.
2840         * config/rx/rx.opt (mcpu=): Add ToLower.
2841         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2842         argument.
2843
2844 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2845
2846         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2847
2848 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2849
2850         * config/vax/vax.c: Include reload.h.
2851
2852 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2853
2854         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2855         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2856         (sparc_preferred_reload_class): New function.
2857
2858 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2859
2860         PR debug/48401
2861         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2862         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2863
2864 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2865
2866         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2867         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2868
2869 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2870
2871         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2872         (ASM_OUTPUT_ALIGNED_BSS): Define.
2873
2874 2011-04-03  Michael Matz  <matz@suse.de>
2875
2876         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2877         and next_slot members.
2878         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2879         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2880         (lto_streamer_cache_append): Declare.
2881         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2882         unsigned index, remove offset parameter, ensure that we append
2883         or update existing entries.
2884         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2885         parameter, update next_slot for append.
2886         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2887         parameter.
2888         (lto_streamer_cache_insert_at): Likewise.
2889         (lto_streamer_cache_append): New function.
2890         (lto_streamer_cache_lookup): Use unsigned index.
2891         (lto_streamer_cache_get): Likewise.
2892         (lto_record_common_node): Don't test tree_node_can_be_shared.
2893         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2894         (lto_streamer_cache_delete): Don't free offsets member.
2895         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2896         (lto_output_string_with_length): Use lto_output_data_stream.
2897         (lto_output_tree_header): Remove ix parameter, don't write it.
2898         (lto_output_builtin_tree): Likewise.
2899         (lto_write_tree): Adjust callers to above, don't track and write
2900         offset, write unsigned index.
2901         (output_unreferenced_globals): Don't emit all global vars.
2902         (write_global_references): Use unsigned indices.
2903         (lto_output_decl_state_refs): Likewise.
2904         (write_symbol): Likewise.
2905         * lto-streamer-in.c (lto_input_chain): Move earlier.
2906         (input_function): Use unsigned index.
2907         (input_alias_pairs): Don't read and then ignore all global vars.
2908         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2909         don't pass it back, use lto_streamer_cache_append.
2910         (lto_register_var_decl_in_symtab): Use unsigned index.
2911         (lto_register_function_decl_in_symtab): Likewise.
2912         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2913         index.
2914         (lto_get_builtin_tree): Don't read index, use
2915         lto_streamer_cache_append.
2916         (lto_read_tree): Adjust call to lto_materialize_tree.
2917
2918         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2919         don't use function calls in arguments to MIN.
2920
2921         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2922         twice.
2923
2924         * gimple.c (gimple_type_leader_entry): Mark deletable.
2925
2926 2011-04-03  Alan Modra  <amodra@gmail.com>
2927
2928         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2929
2930 2011-04-03  Michael Matz  <matz@suse.de>
2931
2932         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2933         an integer.
2934         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2935
2936 2011-04-03  Michael Matz  <matz@suse.de>
2937
2938         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2939         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2940         without function context.
2941         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2942         current_function_decl and cfun.
2943
2944 2011-04-03  Michael Matz  <matz@suse.de>
2945
2946         * tree.c (decl_init_priority_insert): Don't create entry for
2947         default priority.
2948         (decl_fini_priority_insert): Ditto.
2949         (fields_compatible_p, find_compatible_field): Remove.
2950         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2951         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2952
2953 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2954
2955         * combine.c (try_combine): Remove useless local variable.
2956
2957 2011-04-03  Richard Guenther  <rguenther@suse.de>
2958             Ira Rosen  <ira.rosen@linaro.org>
2959
2960         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2961         non-variable offsets and compare the remaining bases of the two
2962         accesses instead of looking for exact same data-ref.
2963
2964 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2965
2966         PR target/48416
2967         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2968
2969         * i386.c (ix86_is_msabi_thiscall): New helper function.
2970         (ix86_is_type_thiscall): New helper function.
2971         (ix86_comp_type_attributes): Handle thiscall for method-functions
2972         special.
2973         (init_cumulative_args): Likewise.
2974         (find_drap_reg): Likewise.
2975         (ix86_static_chain): Likewise.
2976         (x86_this_parameter): Likewise.
2977         (x86_output_mi_thunk): Likewise.
2978
2979 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2980             Nicolas Setton  <setton@adacore.com>
2981             Eric Botcazou  <ebotcazou@adacore.com>
2982
2983         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2984         (add_gnat_descriptive_type_attribute): New function.
2985         (gen_array_type_die): Call it.
2986         (gen_enumeration_type_die): Likewise.
2987         (gen_struct_or_union_type_die): Likewise.
2988         (modified_type_die): Likewise.
2989         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2990         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2991         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2992
2993 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2994
2995         PR bootstrap/48148
2996         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2997         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2998
2999         Revert:
3000         2011-03-17  Richard Guenther  <rguenther@suse.de>
3001
3002         PR bootstrap/48148
3003         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3004         origin for decls in other ltrans units.
3005         (input_varpool_node): Likewise.
3006
3007 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3008
3009         PR middle-end/48335
3010         * expr.c (expand_assignment): Handle all possibilities
3011         if TO_RTX is CONCAT.
3012         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3013         (store_split_bit_field): If SUBREG_REG (op0) or
3014         op0 itself has smaller mode than word, return it
3015         for offset 0 and const0_rtx for out-of-bounds stores.
3016         If word is const0_rtx, skip it.
3017
3018 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3019
3020         * config/h8300/h8300.c (print_operand_address): Rename to...
3021         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3022         Call h8300_print_operand and h8300_print_operand_address instead of
3023         print_operand and print_operand_address. Declare.
3024         (print_operand): Renake to...
3025         (h8300_print_operand): ...this. Make static. Adjust comments.
3026         Call h8300_print_operand instead of print_operand. Declare.
3027         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3028         (h8300_register_move_cost): Likewise.
3029         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3030         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3031         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3032         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3033         * config/h8300/h8300-protos.h (print_operand): Delete.
3034         (print_operand_address): Delete.
3035
3036 2011-04-01  Richard Henderson  <rth@redhat.com>
3037
3038         PR 48400
3039         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3040         in strict mode before dwarf4.  Re-order tests to early out
3041         before switching sections.
3042
3043 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3044
3045         * config/h8300/constraints.md: New file.
3046         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3047         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3048         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3049         * config/h8300/predicates.md (bit_operand): Likewise.
3050         (incdec_operand): Use satisfies_constraint_M and
3051         satisfies_constraint_O.  Don't use C code block.
3052         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3053         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3054         (compute_mov_length): Use satisfies_constraint_G.
3055         (fix_bit_operand): Use satisfies_constraint_U.
3056         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3057         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3058         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3059         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3060         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3061         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3062         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3063         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3064         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3065         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3066         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3067         (EXTRA_MEMORY_CONSTRAINT): Delete.
3068
3069 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3070             Michael Meissner  <meissner@linux.vnet.ibm.com>
3071
3072         PR target/48262
3073         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3074         operands, as per the specifications.
3075
3076         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3077         (vec_extract_evenv4sf): Ditto.
3078         (vec_extract_evenv8hi): Ditto.
3079         (vec_extract_evenv16qi): Ditto.
3080         (vec_extract_oddv4si): Ditto.
3081
3082 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3083
3084         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3085         high_pc attribute if the CU has no associated code. Only output
3086         DW_AT_entry_pc for CU if not generating strict dwarf and
3087         dwarf_version < 4.
3088
3089 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3090
3091         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3092         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3093         out of ...
3094         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3095         * final.c (final_start_function): Call the new function rather
3096         than using a NULL argument for dwarf2out_frame_debug.
3097
3098         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3099         that contains the prologue.
3100
3101         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3102         changed.  Print it in debugging output.
3103
3104         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3105
3106         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3107         Split most of the code into...
3108         (begin_move_insn): ... here.  New function.
3109         (ebb_sched_info): Add a pointer to it.
3110         * haifa-sched.c (scheduled_insns): New static variable.
3111         (sched_extend_ready_list): Allocate it.
3112         (schedule_block): Use it to record the order of scheduled insns.
3113         Perform RTL changes to move insns only after all scheduling
3114         decisions have been made.
3115         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3116         begin_move_insn field.
3117         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3118         * sched-int.h (struct haifa_sched_info): Remove second argument
3119         from begin_schedule_ready hook.  Add new member begin_move_insn.
3120         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3121         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3122
3123         * haifa-sched.c (prune_ready_list): New function, broken out of
3124         schedule_block.
3125         (schedule_block): Use it.
3126
3127 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3128
3129         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3130
3131 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3132
3133         * config.gcc (*-*-mingw*): Allow as option the
3134         posix threading model.
3135         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3136         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3137         definition.
3138         (CPP_SPEC): Add pthread/no-pthread handling.
3139         (LIB_SPEC): Likewise.
3140         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3141         (LIB_SPEC): Likewise.
3142         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3143         flag to pass -pthread option for shared libgcc build.
3144         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3145         for shared libgcc build.
3146         * config/i386/t-mingw-pthread: New file.
3147         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3148         New define to enable use of library pthread by default.
3149         * config/i386/mingw.opt (pthread): New driver option.
3150         (no-pthread): New driver option.
3151         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3152         * config/i386/mingw-w64.opt: Likewise.
3153
3154 2011-04-01  Gary Funck <gary@intrepid.com>
3155
3156         * c-decl.c (grokdeclarator): Fix formatting.
3157
3158 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3159
3160         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3161         instead of n_operands.
3162         (set_storage_via_setmem): Likewise.
3163         * optabs.c (maybe_gen_insn): Likewise.
3164         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3165         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3166         (mips_expand_builtin_direct): Likewise.
3167         * config/spu/spu.c (expand_builtin_args): Likewise.
3168
3169 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3170
3171         * recog.h (insn_data_d): Add n_generator_args.
3172         * genoutput.c (data): Likewise.
3173         (output_insn_data): Print it.
3174         (max_opno, num_dups): Delete.
3175         (scan_operands): Just fill in "d->operand[...]".
3176         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3177
3178 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3179
3180         * gensupport.h (pattern_stats): New structure.
3181         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3182         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3183         (max_operand_1, max_operand_vec): Delete.
3184         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3185
3186 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3187
3188         * emit-rtl.c (emit_pattern_after_setloc): New function.
3189         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3190         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3191         (emit_pattern_after): New function.
3192         (emit_insn_after, emit_jump_insn_after): Call it.
3193         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3194         (emit_pattern_before_setloc): New function.
3195         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3196         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3197         Likewise.
3198         (emit_pattern_before): New function.
3199         (emit_insn_before, emit_jump_insn_before): Call it.
3200         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3201
3202 2011-03-31  Richard Henderson  <rth@redhat.com>
3203
3204         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3205         (dw_separate_line_info_entry): Remove.
3206         (enum dw_line_info_opcode): New.
3207         (dw_line_info_entry): Use it.
3208         (dw_line_info_table, dw_line_info_table_p): New.
3209         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3210         (line_info_table, line_info_label_num): Remove.
3211         (line_info_table_in_use): Remove.
3212         (separate_line_info_table): Remove.
3213         (separate_line_info_table_allocated): Remove.
3214         (separate_line_info_table_in_use): Remove.
3215         (LINE_INFO_TABLE_INCREMENT): Remove.
3216         (line_info_label_num): New.
3217         (cur_line_info_table): New.
3218         (text_section_line_info, cold_text_section_line_info): New.
3219         (separate_line_info): New.
3220         (SEPARATE_LINE_CODE_LABEL): Remove.
3221         (print_dwarf_line_table): Remove.
3222         (debug_dwarf): Don't dump it.
3223         (output_one_line_info_table): New.
3224         (output_line_info): Use it.
3225         (new_line_info_table): New.
3226         (set_cur_line_info_table): New.
3227         (dwarf2out_switch_text_section): Use it.
3228         (dwarf2out_begin_function): Likewise.
3229         (push_dw_line_info_entry): New.
3230         (dwarf2out_source_line): Rewrite for new line info tables.
3231         (dwarf2out_init): Remove dead initailizations.
3232
3233 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3234
3235         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3236         various flags.
3237         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3238         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3239         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3240         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3241         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3242         * opt-functions.awk (flag_init, switch_bit_fields): New.
3243         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3244         generate CL_MISSING_OK or CL_SAVE.
3245         * optc-gen.awk: Update to generate bit-field output as well as
3246         flags field.
3247         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3248         bit-field instead of CL_REJECT_DRIVER flag.
3249         * opts-common.c (generate_canonical_option,
3250         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3251         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3252         instead of CL_REJECT_NEGATIVE flag.
3253         * toplev.c (print_switch_values): Use cl_report bit-field instead
3254         of CL_REPORT flag.
3255
3256 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3257
3258         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3259         a zero minimum index only if it is redundant.
3260
3261 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3262
3263         PR rtl-optimization/48381
3264         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3265         instead of ira_class_hard_reg_index for calculating conflicting
3266         hard registers.
3267
3268 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3269
3270         * cprop.c: Clean up hash table building.
3271         (reg_avail_info): Remove.
3272         (oprs_available_p): Remove.
3273         (record_last_reg_set_info): Remove.
3274         (record_last_set_info): Remove.
3275         (reg_available_p): New function.
3276         (gcse_constant_p): Do not treat unfolded conditions as constants.
3277         (make_set_regs_unavailable): New function.
3278         (hash_scan_set): Simplify with new reg_available_p.
3279         (compute_hash_table_work): Traverse insns stream only once.
3280         Do not compute reg_avail_info. Traverse insns in reverse order.
3281         Record implicit sets after recording explicit sets from the block.
3282
3283 2011-03-31  Michael Matz  <matz@suse.de>
3284
3285         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3286
3287 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3288
3289         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3290         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3291         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3292         (h8300_mode_dependent_address_p): New function.
3293         (h8300_get_index): Make static.
3294
3295 2011-03-31  Jeff Law  <law@redhat.com>
3296
3297         * reload1.c (elimination_effects): Fix typo in recent change.
3298
3299         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3300         typo potentially leading to null pointer dereference.
3301
3302         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3303         (setup_save_areas): Corresponding changes to avoid useless
3304         assignments.
3305
3306         * jump.c (reversed_comparison_code_parts): Avoid successive return
3307         statements when REVERSE_CONDITION is defined.
3308
3309         * expr.c (expand_assignment): Avoid useless assignments.
3310         (expand_expr_real_1): Likewise.
3311         (expand_expr_real_2): Avoid useless statements.
3312
3313         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3314
3315         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3316
3317         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3318         statements.
3319
3320         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3321
3322 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3323
3324         PR target/47109
3325         * doc/tm.texi.in (TARGET_VERSION): Remove.
3326         * doc/tm.texi: Regenerate.
3327         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3328         * collect2.c (main): Don't use TARGET_VERSION.
3329         * mips-tdump.c (main): Don't use TARGET_VERSION.
3330         * mips-tfile.c (main): Don't use TARGET_VERSION.
3331         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3332         * config/rs6000/vxworksae.h: Remove.
3333         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3334         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3335         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3336         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3337         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3338         * config/arm/arm.h (TARGET_VERSION): Remove.
3339         * config/arm/coff.h (TARGET_VERSION): Remove.
3340         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3341         * config/arm/elf.h (TARGET_VERSION): Remove.
3342         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3343         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3344         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3345         * config/arm/pe.h (TARGET_VERSION): Remove.
3346         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3347         * config/arm/semi.h (TARGET_VERSION): Remove.
3348         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3349         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3350         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3351         * config/avr/avr.h (TARGET_VERSION): Remove.
3352         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3353         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3354         * config/frv/frv.h (TARGET_VERSION): Remove.
3355         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3356         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3357         * config/i386/darwin.h (TARGET_VERSION): Remove.
3358         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3359         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3360         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3361         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3362         * config/i386/gnu.h (TARGET_VERSION): Remove.
3363         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3364         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3365         * config/i386/linux.h (TARGET_VERSION): Remove.
3366         * config/i386/linux64.h (TARGET_VERSION): Remove.
3367         * config/i386/lynx.h (TARGET_VERSION): Remove.
3368         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3369         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3370         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3371         * config/i386/netware.h (TARGET_VERSION): Remove.
3372         * config/i386/nto.h (TARGET_VERSION): Remove.
3373         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3374         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3375         * config/ia64/elf.h (TARGET_VERSION): Remove.
3376         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3377         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3378         * config/ia64/linux.h (TARGET_VERSION): Remove.
3379         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3380         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3381         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3382         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3383         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3384         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3385         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3386         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3387         * config/m68k/linux.h (TARGET_VERSION): Remove.
3388         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3389         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3390         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3391         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3392         * config/mep/mep.h (TARGET_VERSION): Remove.
3393         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3394         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3395         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3396         * config/mips/linux.h (TARGET_VERSION): Remove.
3397         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3398         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3399         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3400         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3401         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3402         * config/pa/pa.h (TARGET_VERSION): Remove.
3403         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3404         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3405         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3406         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3407         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3408         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3409         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3410         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3411         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3412         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3413         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3414         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3415         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3416         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3417         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3418         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3419         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3420         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3421         * config/s390/linux.h (TARGET_VERSION): Remove.
3422         * config/s390/s390.h (TARGET_VERSION): Remove.
3423         * config/s390/tpf.h (TARGET_VERSION): Remove.
3424         * config/score/score.h (TARGET_VERSION): Remove.
3425         * config/sh/linux.h (TARGET_VERSION): Remove.
3426         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3427         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3428         * config/sh/sh.h (TARGET_VERSION): Remove.
3429         * config/sh/sh64.h (TARGET_VERSION): Remove.
3430         * config/sh/superh.h (TARGET_VERSION): Remove.
3431         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3432         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3433         * config/sparc/linux.h (TARGET_VERSION): Remove.
3434         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3435         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3436         TARGET_NAME32, TARGET_NAME): Remove.
3437         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3438         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3439         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3440         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3441         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3442         * config/spu/spu.h (TARGET_VERSION): Remove.
3443         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3444         * config/v850/v850.h (TARGET_VERSION): Remove.
3445         * config/vax/linux.h (TARGET_VERSION): Remove.
3446         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3447         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3448         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3449
3450 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3451
3452         PR target/48142
3453         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3454         frame-related from frame-unrelated adjustments to the stack pointer.
3455
3456 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3457
3458         * common.opt (fdebug-types-section): Move earlier.
3459         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3460
3461 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3462
3463         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3464         var.
3465
3466 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3467
3468         * tree.h (CASE_CHAIN): Define.
3469         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3470         (gimple_redirect_edge_and_branch): Likewise.
3471
3472 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3473
3474         PR middle-end/48367
3475         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3476         calculation.
3477
3478 2011-03-30  Jeff Law  <law@redhat.com>
3479
3480         * PR bootstrap/48371
3481         * reload1.c (reload): Fix botch in last change.
3482
3483         * reload.h (struct reload): Fix typo introduced in last change.
3484
3485 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3486
3487         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3488         Undocumented.  Remove help text.
3489         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3490         -mhard-float.
3491
3492 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3493
3494         * doc/options.texi (NegativeAlias): Document.
3495         (Alias): Mention NegativeAlias.
3496         * opt-functions.awk: Handle NegativeAlias.
3497         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3498         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3499         * opts.h (CL_NEGATIVE_ALIAS): Define.
3500         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3501         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3502         OPT_mspe_.
3503         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3504         Alias entries.
3505         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3506         mno-spe and mno-isel instead of mspe=no and -misel=no.
3507
3508 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3509
3510         * common.opt (fdebug-types-section): New flag.
3511         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3512         * dwarf2out.c (use_debug_types): New define.
3513         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3514         (print_die): Guard output of type unit signatures using
3515         use_debug_types.
3516         (build_abbrev_table): Replace assert of dwarf_version >= 4
3517         with assert on use_debug_types.
3518         (size_of_die): Likewise.
3519         (unmark_dies): Likewise.
3520         (value_format): Decide AT_ref_external form on use_debug_types.
3521         (output_die): Replace dwarf_version version check guard with
3522         use_debug_types where appropriate.
3523         (modified_type_die): Likewise.
3524         (gen_reference_type_die): Likewise.
3525         (dwarf2out_start_source_file): Likewise.
3526         (dwarf2out_end_source_file): Likewise.
3527         (prune_unused_types_walk_attribs): Likewise.
3528         (dwarf2out_finish): Likewise.
3529
3530 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3531
3532         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3533
3534 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3535
3536         PR rtl-optimization/48332
3537         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3538         mode of input operand N and modeN to its actual mode.
3539
3540 2011-03-30  Jeff Law  <law@redhat.com>
3541
3542         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3543         define accessor macro.
3544         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3545         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3546         (reg_equiv_init): Likewise.
3547         (reg_equivs_size): New variable.
3548         (reg_equiv_init_size): Remove.
3549         (allocate_initial_values): Move prototype to here from....
3550         * integrate.h (allocate_initial_values): Remove prototype.
3551         * integrate.c: Include reload.h.
3552         (allocate_initial_values): Corresponding changes.
3553         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3554         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3555         (update_equiv_regs): Corresponding changes.
3556         (ira): Corresponding changes.
3557         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3558         (push_secondary_reload): Corresponding changes.
3559         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3560         (make_memloc, find_reloads_address): Corresponding changes.
3561         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3562         (find_reloads_address_1): Corresponding changes.
3563         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3564         (refers_to_regno_for_reload_p): Corresponding changes.
3565         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3566         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3567         * reload1.c: Include ggc.h.
3568         (grow_reg_equivs): New function.
3569         (replace_pseudos_in, reload): Corresponding changes.
3570         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3571         (eliminate_regs_1, elimination_effects): Corresponding changes.
3572         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3573         (delete_output_reload): Likewise.
3574         * caller-save.c (mark_referenced_regs): Corresponding changes.
3575         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3576         * frv/predicates.md (frv_load_operand): Corresponding changes.
3577         * microblaze/microblaze.c (double_memory_operand): Corresponding
3578         changes.
3579         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3580         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3581         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3582         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3583         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3584         changes.
3585         * pa/pa.c (emit_move_sequence): Corresponding changes.
3586         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3587
3588 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3589
3590         PR target/47551
3591         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3592         structure modes.  Don't check neon_vector_mem_operand for
3593         vector or structure modes.
3594
3595 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3596             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3597
3598         PR target/43590
3599         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3600         operand 1 and reshuffle the operands to match.
3601         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3602
3603 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3604
3605         PR driver/48208
3606         * config/c.opt (F): Added 'Driver' to -F option.
3607
3608         PR driver/48260
3609         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3610           handler function.
3611         * config/darwin.opt: Added '-arch' option.
3612
3613 2011-03-30  Nick Clifton  <nickc@redhat.com>
3614
3615         * config/rx/rx.md: Add peepholes and patterns to combine
3616         extending loads and simple arithmetic instructions.
3617         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3618         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3619         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3620         modes to use pre-decrement and post-increment addressing.
3621         (rx_is_restricted_memory_address): Add range checking of REG+INT
3622         addresses.
3623         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3624         (rx_memory_move_cost): Adjust cost of stores.
3625         (rx_adjust_insn_length): New function.
3626
3627 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3628
3629         PR c/48305
3630         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3631         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3632         matching arg00/arg01 types.
3633
3634 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3635
3636         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3637         last_location to UNKNOWN_LOCATION.
3638
3639 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3640
3641         PR target/48349
3642         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3643         FLOAT_SSE_REGS.
3644
3645 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3646             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3647
3648         PR bootstrap/48337
3649         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3650         Init(PROCESSOR_V7).
3651         (sparc_cpu): Likewise.
3652         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3653         PROCESSOR_V7.
3654
3655 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3656
3657         PR target/48336
3658         PR middle-end/48342
3659         PR rtl-optimization/48345
3660         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3661         hard regs for given mode from profitable regs when doing secondary
3662         allocation.
3663
3664 2011-03-29  Jeff Law  <law@redhat.com>
3665
3666         PR bootstrap/48327
3667         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3668         do_not_duplicate field.
3669         (lookup_redirection_data): Corresponding changes.
3670         (create_duplicates): Always create a template block.
3671         (redirect_edges): Remove code which reused the original block
3672         when it was going to become unreachable code.
3673         (thread_block): Don't set do_not_duplicate field.
3674
3675 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3676
3677         * lto-opts.c (register_user_option_p, lto_register_user_option):
3678         Make type argument unsigned.
3679         * lto-streamer.h (lto_register_user_option): Make type argument
3680         unsigned.
3681         * opth-gen.awk: Make CL_* macros unsigned.
3682         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3683         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3684         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3685         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3686         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3687         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3688         (find_opt): Make lang_mask argument unsigned.
3689
3690 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3691
3692         PR rtl-optimization/48331
3693         PR rtl-optimization/48334
3694         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3695         for any used algorithm.
3696
3697 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3698
3699         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3700         to parent_max.
3701
3702 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3703
3704         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3705         (alpha_option_override): Don't set alpha_sr_alias_set.
3706         (emit_frame_store_1): Use gen_frame_mem rather than calling
3707         set_mem_alias_set.
3708         (alpha_expand_epilogue): Ditto.
3709
3710 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3711
3712         PR tree-optimization/48290
3713         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3714         vectorization, check that relevant phis in the basic block after
3715         the inner loop are really inner loop's exit phis.
3716
3717 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3718
3719         PR debug/48190
3720         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3721         (cached_dw_loc_list_def): New structure.
3722         (cached_dw_loc_list): New typedef.
3723         (cached_dw_loc_list_table): New variable.
3724         (cached_dw_loc_list_table_hash): New function.
3725         (cached_dw_loc_list_table_eq): Likewise.
3726         (add_location_or_const_value_attribute): Take a bool cache_p.
3727         Cache the list when the parameter is true.
3728         (gen_formal_parameter_die): Update caller.
3729         (gen_variable_die): Likewise.
3730         (dwarf2out_finish): Likewise.
3731         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3732         while generating debug info for the decl.
3733         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3734         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3735         (resolve_addr): Cache the result of resolving a chain of
3736         location lists.
3737
3738 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3739
3740         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3741         conflict object hard regset nodes have intersecting hard reg sets.
3742
3743         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3744         after regstat_init_n_sets_and_refs.
3745
3746         * ira.c: Add more comments at the top.
3747         (setup_stack_reg_pressure_class, setup_pressure_classes):
3748         Add comments how we compute the register pressure classes.
3749         (setup_allocno_and_important_classes): Add more comments.
3750         (setup_class_translate_array, reorder_important_classes)
3751         (setup_reg_class_relations): Add comments.
3752
3753         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3754         start of the file.
3755
3756         * ira-color.c: Add 2011 to the Copyright line.
3757         (assign_hard_reg):  Add more comments.
3758         (improve_allocation): Ditto.
3759
3760         * ira-costs.c: Add 2011 to the Copyright line.
3761         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3762         comments.
3763         (setup_regno_cost_classes_by_mode): Ditto.
3764
3765         Initial patches from ira-improv branch:
3766
3767         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3768
3769         * ira-build.c (ira_create_object): Remove initialization of
3770         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3771         (ira_create_allocno): Remove initialization of
3772         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3773         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3774         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3775         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3776         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3777         Initialize ALLOCNO_ADD_DATA.
3778         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3779         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3780         ALLOCNO_REG.
3781         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3782         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3783
3784         * ira.c (ira_reallocate): Remove.
3785         (setup_pressure_classes): Call
3786         ira_init_register_move_cost_if_necessary.  Use
3787         ira_register_move_cost instead of ira_get_register_move_cost.
3788         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3789         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3790
3791         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3792         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3793         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3794         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3795         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3796         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3797         Fix formatting.
3798         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3799         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3800         (struct allocno_color_data): New.
3801         (allocno_color_data_t): New typedef.
3802         (allocno_color_data): New definition.
3803         (ALLOCNO_COLOR_DATA): New macro.
3804         (struct object_color_data): New.
3805         (object_color_data_t): New typedef.
3806         (object_color_data): New definition.
3807         (OBJECT_COLOR_DATA): New macro.
3808         (update_copy_costs, calculate_allocno_spill_cost): Call
3809         ira_init_register_move_cost_if_necessary.  Use
3810         ira_register_move_cost instead of ira_get_register_move_cost.
3811         (move_spill_restore, update_curr_costs): Ditto.
3812         (allocno_spill_priority): Make it inline.
3813         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3814         (struct coalesce_data, coalesce_data_t): New.
3815         (allocno_coalesce_data): New definition.
3816         (ALLOCNO_COALESCE_DATA): New macro.
3817         (merge_allocnos, coalesced_allocno_conflict_p): Use
3818         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3819         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3820         (coalesce_allocnos): Ditto.
3821         (setup_coalesced_allocno_costs_and_nums): Ditto.
3822         (collect_spilled_coalesced_allocnos): Ditto.
3823         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3824         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3825         (coalesce_spill_slots): Ditto.
3826         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3827         free allocno_coalesce_data.
3828
3829         * ira-conflicts.c: Fix formatting.
3830         (process_regs_for_copy): Call
3831         ira_init_register_move_cost_if_necessary.  Use
3832         ira_register_move_cost instead of ira_get_register_move_cost.
3833         (build_object_conflicts): Optimize.
3834
3835         * ira-costs.c (record_reg_classes): Optimize.  Call
3836         ira_init_register_move_cost_if_necessary.  Use
3837         ira_register_move_cost, ira_may_move_in_cost, and
3838         ira_may_move_out_cost instead of ira_get_register_move_cost and
3839         ira_get_may_move_cost.
3840         (record_address_regs): Ditto.
3841         (scan_one_insn): Optimize.
3842         (find_costs_and_classes): Optimize.
3843         (process_bb_node_for_hard_reg_moves): Call
3844         ira_init_register_move_cost_if_necessary.  Use
3845         ira_register_move_cost instead of ira_get_register_move_cost.
3846
3847         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3848         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3849         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3850         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3851         definitions.
3852         (ira_initiate_emit_data, ira_finish_emit_data)
3853         (create_new_allocno): New functions.
3854         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3855         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3856         Use ira_register_move_cost instead of ira_get_register_move_cost.
3857
3858         * ira-int.h: Fix some comments.
3859         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3860         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3861         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3862         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3863         add_data.
3864         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3865         bitfield after mode.  Make hard_regno a short int.  Make
3866         hard_regno short.  Remove first_coalesced_allocno and
3867         next_coalesced_allocno.  Move mem_optimized_dest_p,
3868         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3869         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3870         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3871         temp, colorable_p.  Add new member add_data.
3872         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3873         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3874         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3875         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3876         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3877         (ALLOCNO_ADD_DATA): New macro.
3878         (ira_emit_data_t): New typedef.
3879         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3880         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3881         from struct ira_allocno.
3882         (ALLOCNO_EMIT_DATA): New macro.
3883         (ira_allocno_emit_data, allocno_emit_reg): New.
3884         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3885         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3886         (OBJECT_ADD_DATA): New macro.
3887         (ira_reallocate): Remove.
3888         (ira_initiate_emit_data, ira_finish_emit_data): New.
3889         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3890         (ira_init_register_move_cost_if_necessary): New.
3891         (ira_object_conflict_iter_next): Merge into
3892         ira_object_conflict_iter_cond.
3893         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3894
3895         * ira-live.c (process_single_reg_class_operands): Call
3896         ira_init_register_move_cost_if_necessary.  Use
3897         ira_register_move_cost instead of ira_get_register_move_cost.
3898
3899         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3900
3901         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3902
3903         * ira-costs.c: Fix formatting.
3904         (cost_classes, cost_classes_num): Remove.
3905         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3906         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3907         (cost_classes_del, cost_classes_htab): New.
3908         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3909         (initiate_regno_cost_classes, setup_cost_classes): New.
3910         (setup_regno_cost_classes_by_aclass): New.
3911         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3912         (record_reg_classes): Use regno_cost_classes instead of
3913         cost_classes.  Move checking opposite operand up.
3914         (record_address_regs): Use regno_cost_classes
3915         instead of cost_classes.
3916         (scan_one_insn): Ditto.  Use always general register.
3917         (print_allocno_costs): Use regno_cost_classes instead of
3918         cost_classes.
3919         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3920         (find_costs_and_classes): Set up cost classes for each registers.
3921         Use also their mode for this.  Use regno_cost_classes instead of
3922         cost_classes.
3923         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3924         cost_classes.
3925         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3926         (ira_costs, ira_set_pseudo_classes): Call
3927         initiate_regno_cost_classes and finish_regno_cost_classes.
3928
3929         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3930
3931         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3932
3933         * target.def (ira_cover_classes): Remove.
3934
3935         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3936
3937         * doc/tm.texi.in: Ditto.
3938
3939         * ira-conflicts.c: Remove mentioning cover classes from the file.
3940         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3941         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3942
3943         * targhooks.c (default_ira_cover_classes): Remove.
3944
3945         * targhooks.h (default_ira_cover_classes): Ditto.
3946
3947         * haifa-sched.c: Remove mentioning cover classes from the file.
3948         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3949         ira_pressure_classes and ira_pressure_classes_num instead of
3950         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3951         sched_regno_pressure_class instead of sched_regno_cover_class.
3952         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3953         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3954
3955         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3956         classes from the file.
3957         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3958         (struct object_hard_regs, struct object_hard_regs_node): New.
3959         (struct ira_object): New members profitable_hard_regs,
3960         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3961         (struct ira_allocno): Rename cover_class to aclass.  Rename
3962         cover_class_cost and updated_cover_class_cost to class_cost and
3963         updated_class_cost.  Remove splay_removed_p and
3964         left_conflict_size.  Add new members colorable_p.
3965         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3966         (ALLOCNO_COLORABLE_P): New macro.
3967         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3968         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3969         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3970         (OBJECT_...): Rename parameter C to O.
3971         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3972         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3973         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3974         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3975         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3976         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3977         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3978         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3979         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3980         x_ira_reg_class_subunion.
3981         (ira_max_memory_move_cost, ira_max_register_move_cost)
3982         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3983         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3984         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3985         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3986         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3987         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3988         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3989         (ira_tune_allocno_costs_and_cover_classes): Rename to
3990         ira_tune_allocno_costs.
3991         (ira_debug_hard_regs_forest): New.
3992         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3993         (ira_object_conflict_iter_next): Fix comments.
3994         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3995         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3996         cover_class to aclass.
3997         (ira_allocate_and_accumulate_costs): Ditto.
3998         (ira_allocate_and_set_or_copy_costs): Ditto.
3999
4000         * opts.c (decode_options): Remove ira_cover_class check.
4001
4002         * ira-color.c: Remove mentioning cover classes from the file.  Use
4003         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4004         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4005         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4006         (splay-tree.h): Remove include.
4007         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4008         before copy_freq_compare_func.
4009         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4010         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4011         New definitions.
4012         (hard_regs_roots, hard_regs_node_vec): Ditto.
4013         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4014         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4015         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4016         (create_new_object_hard_regs_node): Ditto.
4017         (add_new_object_hard_regs_node_to_forest): Ditto.
4018         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4019         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4020         Ditto.
4021         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4022         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4023         (remove_unused_object_hard_regs_nodes): Ditto.
4024         (enumerate_object_hard_regs_nodes): Ditto.
4025         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4026         (object_hard_regs_subnode_t): Ditto.
4027         (struct object_hard_regs_subnode): Ditto.
4028         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4029         (setup_object_hard_regs_subnode_index): Ditto.
4030         (get_object_hard_regs_subnodes_num): Ditto.
4031         (form_object_hard_regs_nodes_forest): Ditto.
4032         (finish_object_hard_regs_nodes_tree): Ditto.
4033         (finish_object_hard_regs_nodes_forest): Ditto.
4034         (allocnos_have_intersected_live_ranges_p): Rename to
4035         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4036         (pseudos_have_intersected_live_ranges_p): Rename to
4037         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4038         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4039         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4040         (update_copy_costs): Remove assert.  Skip cost update if the hard
4041         reg does not belong the class.
4042         (assign_hard_reg): Process only profitable hard regs.
4043         (uncolorable_allocnos_num): Make it scalar.
4044         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4045         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4046         and ira_reg_class_max_nregs.
4047         (bucket_allocno_compare_func): Check frequency first.
4048         (sort_bucket): Add compare function as a parameter.
4049         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4050         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4051         (push_allocno_to_stack): Rewrite for checking new allocno
4052         colorability.
4053         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4054         (push_only_colorable): Pass new parameter to sort_bucket.
4055         (push_allocno_to_spill): Remove.
4056         (allocno_spill_priority_compare): Make it inline and rewrite.
4057         (splay_tree_allocate, splay_tree_free): Remove.
4058         (allocno_spill_sort_compare): New function.
4059         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4060         build and use splay tree.  Choose first allocno in uncolorable
4061         allocno bucket to spill.  Remove setting spill cost.
4062         (all_conflicting_hard_regs): Remove.
4063         (setup_allocno_available_regs_num): Check only profitable hard
4064         regs.  Print info about hard regs nodes.
4065         (setup_allocno_left_conflicts_size): Remove.
4066         (put_allocno_into_bucket): Don't call
4067         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4068         (improve_allocation): New.
4069         (color_allocnos): Call setup_profitable_hard_regs,
4070         form_object_hard_regs_nodes_forest, improve_allocation,
4071         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4072         (print_loop_title): Use pressure classes.
4073         (color_allocnso): Ditto.
4074         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4075         and allocnos_for_spilling.
4076         (ira_sort_regnos_for_alter_reg): Don't setup members
4077         {first,next}_coalesced_allocno.
4078         (color): Remove allocating and freeing removed_splay_allocno_vec.
4079         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4080         prohibited_class_mode_regs.
4081
4082         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4083         formatting.
4084         (update_allocno_pressure_excess_length): Use pressure classes.
4085         (inc_register_pressure, dec_register_pressure): Check for pressure
4086         class.
4087         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4088         pressure class.  Use ira_reg_class_nregs instead of
4089         ira_reg_class_max_nregs.
4090         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4091         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4092         (single_reg_class): Use ira_reg_class_nregs instead of
4093         ira_reg_class_max_nregs.
4094         (process_bb_node_lives): Use pressure classes.
4095
4096         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4097         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4098         (change_loop): Use pressure classes.
4099         (modify_move_list): Call ira_set_allocno_class instead of
4100         ira_set_allocno_cover_class.
4101
4102         * ira-build.c: Remove mentioning cover classes from the file.  Use
4103         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4104         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4105         ALLOCNO_UPDATED_CLASS_COST instead of
4106         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4107         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4108         (ira_create_allocno): Remove initialization of
4109         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4110         ALLOCNO_COLORABLE_P.
4111         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4112         Update conflict regs for the objects.
4113         (create_cap_allocno): Remove assert.  Don't propagate
4114         ALLOCNO_AVAILABLE_REGS_NUM.
4115         (ira_free_allocno_costs): New function.
4116         (finish_allocno): Change a part of code into call of
4117         ira_free_allocno_costs.
4118         (low_pressure_loop_node_p): Use pressure classes.
4119         (object_range_compare_func): Don't compare classes.
4120         (setup_min_max_conflict_allocno_ids): Ditto.
4121
4122         * loop-invariant.c: Remove mentioning cover classes from the file.
4123         Use ira_pressure_classes and ira_pressure_classes_num instead of
4124         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4125         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4126         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4127         Use reg_allocno_class instead of reg_cover_class.
4128         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4129         STACK_REG_COVER_CLASS.
4130         (get_regno_cover_class): Rename to get_regno_pressure_class.
4131         (move_loop_invariants): Initialize and finalize regstat.
4132
4133         * ira.c: Remove mentioning cover classes from the file.  Add
4134         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4135         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4136         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4137         setup_class_subset_and_memory_move_costs.
4138         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4139         (setup_cover_and_important_classes): Rename to
4140         setup_allocno_and_important_classes.
4141         (setup_class_translate_array): New.
4142         (setup_class_translate): Call it for allocno and pressure classes.
4143         (cover_class_order): Rename to allocno_class_order.
4144         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4145         of ira_class_translate.
4146         (reorder_important_classes): Set up ira_important_class_nums.
4147         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4148         (print_class_cover): Rename to print_classes.  Add parameter.
4149         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4150         Print pressure classes too.
4151         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4152         setup_reg_subclasses.
4153         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4154         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4155         (setup_prohibited_class_mode_regs): Use
4156         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4157         (clarify_prohibited_class_mode_regs): New function.
4158         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4159         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4160         (ira_init_once): Initialize them.
4161         (free_register_move_costs): Process them.
4162         (ira_init): Move calls of find_reg_classes and
4163         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4164         Call clarify_prohibited_class_mode_regs.
4165         (ira_no_alloc_reg): Remove.
4166         (too_high_register_pressure_p): Use pressure classes.
4167
4168         * sched-deps.c: Remove mentioning cover classes from the file.
4169         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4170         ira_pressure_classes and ira_pressure_classes_num instead of
4171         ira_reg_class_cover_size and ira_reg_class_cover.
4172         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4173         sched_regno_pressure_class instead of sched_regno_cover_class.
4174         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4175         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4176
4177         * ira.h: Add 2010 to Copyright.
4178         (ira_no_alloc_reg): Remove external.
4179         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4180         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4181         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4182         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4183         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4184         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4185         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4186         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4187         x_ira_no_alloc_regs.
4188         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4189         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4190         ira_allocno_classes_num and ira_allocno_classes.
4191         (ira_class_translate): Rename to ira_allocno_class_translate.
4192         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4193         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4194         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4195         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4196         (ira_no_alloc_regs): New.
4197
4198         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4199         classes from the file.  Use ALLOCNO_CLASS instead of
4200         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4201         ALLOCNO_COVER_CLASS_COST.
4202         (regno_cover_class): Rename to regno_aclass.
4203         (record_reg_classes): Use ira_reg_class_subunion instead of
4204         ira_reg_class_union.
4205         (record_address_regs): Check overflow.
4206         (scan_one_insn): Ditto.
4207         (print_allocno_costs): Print total mem cost fore regional allocation.
4208         (print_pseudo_costs): Use REG_N_REFS.
4209         (find_costs_and_classes): Use classes intersected with them on the
4210         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4211         ira_reg_class_union.  Use ira_allocno_class_translate and
4212         regno_aclass instead of ira_class_translate and regno_cover_class.
4213         Modify code for finding regno_aclass.  Setup preferred classes for
4214         the next pass.
4215         (setup_allocno_cover_class_and_costs): Rename to
4216         setup_allocno_class_and_costs.  Use regno_aclass instead of
4217         regno_cover_class.  Use ira_set_allocno_class instead of
4218         ira_set_allocno_cover_class.
4219         (init_costs, finish_costs): Use regno_aclass instead of
4220         regno_cover_class.
4221         (ira_costs): Use setup_allocno_class_and_costs instead of
4222         setup_allocno_cover_class_and_costs.
4223         (ira_tune_allocno_costs_and_cover_classes): Rename to
4224         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4225         by processing objects.  Use ira_reg_class_max_nregs instead of
4226         ira_reg_class_nregs.
4227
4228         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4229
4230         * sched-int.h: Remove mentioning cover classes from the file.
4231         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4232
4233         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4234         classes from the file.
4235         (struct reg_pref): Rename coverclass into allocnoclass.
4236         (reg_cover_class): Rename to reg_allocno_class.
4237
4238         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4239
4240         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4241
4242         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4243
4244         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4245
4246         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4247
4248         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4249
4250         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4251
4252         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4253
4254         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4255
4256         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4257
4258         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4259         (i386_ira_cover_classes): Ditto.
4260
4261         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4262
4263         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4264
4265         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4266
4267         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4268
4269         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4270
4271         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4272
4273         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4274         (mips_ira_cover_classes): Ditto.
4275
4276         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4277
4278         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4279
4280         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4281
4282         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4283
4284         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4285
4286         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4287         (IRA_COVER_CLASSES_VSX): Ditto.
4288
4289         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4290         (rs6000_ira_cover_classes): Ditto.
4291
4292         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4293
4294         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4295
4296         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4297
4298         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4299
4300         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4301
4302         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4303
4304         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4305
4306         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4307
4308         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4309
4310         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4311
4312 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4313
4314         PR debug/48253
4315         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4316         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4317         dw_fde_unlikely_section_end_label, cold_in_std_section,
4318         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4319         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4320         fields.
4321         (output_fde): Use dw_fde_second_{begin,end} if second is
4322         true, otherwise dw_fde_{begin,end}.
4323         (output_call_frame_info): Test dw_fde_second_begin != NULL
4324         instead of dw_fde_switched_sections.
4325         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4326         fields, initialize new fields.  Initialize in_std_section
4327         unconditionally from the first partition.
4328         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4329         dw_fde_second_begin is non-NULL.
4330         (dwarf2out_switch_text_section): Stop initializing removed
4331         dw_fde_struct fields, initialize new fields, initialize
4332         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4333         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4334         (struct var_loc_list_def): Add last_before_switch field.
4335         (arange_table, arange_table_allocated, arange_table_in_use,
4336         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4337         (size_of_aranges): Count !in_std_section and !second_in_std_section
4338         hunks in fdes, instead of looking at arange_table_in_use.
4339         (output_aranges): Add aranges_length argument, don't call
4340         size_of_aranges here.  Instead of using aranges_table*
4341         emit ranges for fdes when !in_std_section resp.
4342         !second_in_std_section.
4343         (dw_loc_list): Break ranges crossing section switch.
4344         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4345         use dw_fde_second_end instead of dw_fde_end as end of last range.
4346         (gen_subprogram_die): Don't call add_arange.  Use
4347         dw_fde_{begin,end} for first partition and if switched
4348         section dw_fde_second_{begin,end} for the second.
4349         (var_location_switch_text_section_1,
4350         var_location_switch_text_section): New functions.
4351         (dwarf2out_begin_function): Initialize cold_text_section even
4352         when function_section () isn't text_section.
4353         (prune_unused_types): Don't walk arange_table.
4354         (dwarf2out_finish): Don't needlessly test
4355         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4356         If info_section_emitted, call size_of_aranges and if it indicates
4357         non-empty .debug_aranges, call output_aranges with the computed
4358         size.  Stop using removed dw_fde_struct fields, use
4359         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4360         for second.
4361
4362         PR debug/48203
4363         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4364         create ENTRY_VALUE if incoming or address of incoming's MEM
4365         is a hard REG.
4366         * dwarf2out.c (mem_loc_descriptor): Don't emit
4367         DW_OP_GNU_entry_value of DW_OP_fbreg.
4368         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4369         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4370         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4371         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4372         ENTRY_VALUE_EXPs.
4373         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4374         is a REG_P or MEM_P with REG_P address, compute hash directly
4375         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4376         (preserve_only_constants): Don't clear VALUES forwaring
4377         ENTRY_VALUE to some other VALUE.
4378
4379 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4380
4381         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4382         instead of GEN_INT.
4383
4384 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4385
4386         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4387         block before expanding the statement.
4388         (expand_gimple_stmt_1): Likewise.  Set them here...
4389         (expand_gimple_stmt): ...and not here.  Tidy.
4390         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4391         unknown.
4392
4393 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4394
4395         * Makefile.in: New rule for cprop.o.
4396         * gcse.c: Move constant/copy propagation to cprop.c.
4397         (compute_local_properties): Only handle expression tables.
4398         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4399         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4400         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4401         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4402         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4403         compute_cprop_data, find_used_regs, try_replace_reg,
4404         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4405         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4406         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4407         find_bypass_set, reg_killed_on_edge, bypass_block,
4408         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4409         execute_rtl_cprop, pass_rtl_cprop): Move to...
4410         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4411         moved from gcse.c to here with minor cleanups in duplicated code.
4412
4413 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4414
4415         * config/i386/i386.c (flag_opts): Fix a typo in
4416         -mavx256-split-unaligned-store.
4417
4418 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4419
4420         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4421         LIBCALL_VALUE): Remove macros.
4422         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4423         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4424         (h8300_function_value, h8300_libcall_value,
4425         h8300_function_value_regno_p): New functions.
4426
4427 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4428
4429         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4430
4431 2011-03-28  Jeff Law  <law@redhat.com>
4432
4433         * tree-ssa-threadupdate.c (redirect_edges): Call
4434         create_edge_and_update_destination_phis as needed.
4435         (create_edge_and_update_destination_phis): Accept new BB argument.
4436         All callers updated.
4437         (thread_block): Do not update the profile when threading around
4438         intermediate blocks.
4439         (thread_single_edge): Likewise.
4440         (determine_bb_domination_status): If BB is not a successor of the
4441         loop header, return NONDOMINATING.
4442         (register_jump_thread): Note when we register a jump thread around
4443         an intermediate block.
4444         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4445         (thread_across_edge): Use it.
4446
4447 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4448
4449         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4450         when for_return is 2.
4451
4452 2011-03-28  Jeff Law  <law@redhat.com>
4453
4454         * var-tracking.c (canonicalize_values_mark): Delete unused
4455         lhs assignment.
4456         (canonicalize_values_star, set_variable_part): Likewise.
4457         (clobber_variable_part, delete_variable_part): Likewise.
4458
4459 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4460
4461         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4462
4463 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4464
4465         * tree-inline.c (expand_call_inline): Do not check that destination
4466         node is analyzed.
4467         (optimize_inline_calls): Assert that destination node is analyzed.
4468         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4469         not call tree_lowering_passes.
4470         * cgraph.h (cgraph_analyze_function): Declare.
4471         * cgraphunit.c (cgraph_analyze_function): Make public.
4472
4473 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4474
4475         * config/sparc/sparc-opts.h: New.
4476         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4477         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4478         (sparc_option_override): Store processor_type enumeration rather
4479         than string in cpu_default.  Remove name and enumeration from
4480         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4481         without using sparc_select.  Use target_flags_explicit instead of
4482         fpu_option_set.
4483         * config/sparc/sparc.h (enum processor_type): Move to
4484         sparc-opts.h.
4485         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4486         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4487         HeaderInclude entry.
4488         (mcpu=, mtune=): Use Var and Enum.
4489         (sparc_processor_type): New Enum and EnumValue entries.
4490
4491 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4492             Iain Sandoe  <iains@gcc.gnu.org>
4493
4494         PR target/48245
4495         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4496
4497 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4498
4499         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4500         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4501         Insert new statements at it in lieu of STMT.
4502         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4503         * tree-vect-stmts.c (vectorizable_store): Likewise.
4504         (vectorizable_load): Likewise.
4505
4506 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4507
4508         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4509         (divtf3): Ditto.
4510         (multf3): Ditto.
4511         (subtf3): Ditto.
4512
4513 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4514
4515         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4516         unaligned 256bit load/store.
4517         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4518         (*avx_movdqu<avxmodesuffix>): Likewise.
4519
4520 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4521
4522         PR target/48288
4523         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4524         * config/pa/pa.md (iordi3): Use new predicate in expander.
4525         (iorsi3): Likewise.
4526
4527 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4528
4529         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4530         FUNCTION_VALUE_REGNO_P): Remove macros.
4531         * config/mips/mips-protos.h (mips_function_value): Remove.
4532         * config/mips/mips.c (mips_function_value): Rename to...
4533         (mips_function_value_1): ... this. Make static.  Handle receiving
4534         the function type in 'fn_decl_or_type' argument.
4535         (mips_function_value, mips_libcall_value,
4536         mips_function_value_regno_p): New function.
4537         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4538         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4539
4540 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4541
4542         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4543         and -mavx256-split-unaligned-store.
4544         (ix86_option_override_internal): Split 32-byte AVX unaligned
4545         load/store by default.
4546         (ix86_avx256_split_vector_move_misalign): New.
4547         (ix86_expand_vector_move_misalign): Use it.
4548
4549         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4550         -mavx256-split-unaligned-store.
4551
4552         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4553         256bit load/store.  Generate unaligned store on misaligned memory
4554         operand.
4555         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4556         256bit load/store.
4557         (*avx_movdqu<avxmodesuffix>): Likewise.
4558
4559         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4560         -mavx256-split-unaligned-store.
4561
4562 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4563
4564         PR target/38598
4565         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4566         Update commentary.
4567
4568 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4569
4570         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4571         opno arguments with an expand_operand.  Use create_input_operand.
4572         (mips_prepare_builtin_target): Delete.
4573         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4574         functions.
4575         (mips_expand_builtin_direct): Use create_output_operand and
4576         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4577         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4578         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4579
4580 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4581
4582         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4583         function.
4584         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4585
4586 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4587
4588         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4589         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4590         basic blocks and call commit_edge_insertions directly.
4591         (fixup_abnormal_edges): Move from here to...
4592         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4593         on the edges and return whether some have actually been inserted.
4594         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4595         compensation code.
4596
4597 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4598
4599         PR rtl-optimization/48144
4600         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4601         (merge_expr_data): ... here.
4602         (av_set_intersect): Rename to av_set_code_motion_filter.
4603         Update all callers.  Call merge_history_vect when an expression
4604         is found in both sets.
4605         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4606
4607 2011-03-26  Alan Modra  <amodra@gmail.com>
4608
4609         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4610         cmodel medium addresses.
4611         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4612         64-bit gpr loads and stores.
4613         (rs6000_secondary_reload_ppc64): New function.
4614         * config/rs6000/rs6000-protos.h: Declare it.
4615         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4616
4617 2011-03-26  Alan Modra  <amodra@gmail.com>
4618
4619         PR target/47487
4620         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4621         GNU Go in traceback table.
4622
4623 2011-03-25  Richard Henderson  <rth@redhat.com>
4624
4625         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4626         if there are exactly 6 operands.
4627         (set_storage_via_setmem): Similarly.
4628
4629 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4630
4631         * collect2.c (write_c_file_stat): Handle backslash
4632         as right-hand directory separator.
4633         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4634         checking just for slash.
4635         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4636         instead of checking for trailing slash.
4637         * gcc.c (record_temp_file): Use filename_cmp instead
4638         of strcmp.
4639         (do_spec_1): Likewise.
4640         (replace_outfile_spec_function): Likewise.
4641         (is_directory): Use filename_ncmp instead of strncmp.
4642         (print_multilib_info): Likewise.
4643         * gcov.c (find_source): Use filename_cmp instead
4644         instead of strcmp.
4645         (make_gcov_file_name): Fix order of slash/backslash
4646         checks.
4647         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4648         (add_standard_paths): Likewise.
4649         * mips-tfile.c (saber_stop): Handle backslash.
4650         * prefix.c (update_path): Use filename_ncmp instead of
4651         strncmp.
4652         * profile.c (output_location): Use filename_cmp instead
4653         of strcmp.
4654         * read-md.c (handle_toplevel_file): Handle backslash.
4655         * tlink.c (frob_extension):  Likewise.
4656         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4657         strcmp.
4658         * tree-dump.c (dequeue_and_dump): Handle backslash.
4659         * tree.c (get_file_function_name): Likewise.
4660         * gengtype.c (read_input_list): Likewise.
4661         (get_file_realbasename): Likewise.
4662         (get_output_file_with_visibility): Use filename_cmp
4663         instead of strcmp.
4664
4665 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4666
4667         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4668         case to VFPv1.
4669
4670 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4671
4672         * fold-const.c (expr_location_or): New function.
4673         (fold_truth_not_expr): Call it.
4674
4675 2011-03-25  Jeff Law  <law@redhat.com>
4676
4677         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4678         va_end.
4679         * c-family/c-common.c (def_fn_type): Likewise.
4680         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4681         * emit-rtl.c (gen_rtvec): Likewise.
4682         * lto/lto-lang.c (def_fn_type): Likewise.
4683
4684 2011-03-25  Richard Guenther  <rguenther@suse.de>
4685
4686         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4687         also generate copies.
4688         (fini_copy_prop): Handle constant values properly.
4689
4690 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4691
4692         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4693         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4694         (hash_loc_operands, compare_loc_operands): Handle
4695         DW_OP_GNU_entry_value.
4696
4697 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4698
4699         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4700         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4701         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4702         comment and use macro TARGET_64BIT_MS_ABI instead.
4703         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4704         and change default behavior for 32-bit MS_ABI.
4705         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4706         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4707         32-bit, too.
4708         (ix86_cfun_abi): Likewise.
4709         (ix86_maybe_switch_abi): Adjust comment.
4710         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4711         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4712         instead of checking for SYSV_ABI.
4713         (ix86_nsaved_sseregs): Likewise.
4714         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4715         to 16 bytes.
4716         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4717         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4718         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4719         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4720         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4721
4722 2011-03-25  Richard Guenther  <rguenther@suse.de>
4723
4724         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4725         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4726         (verify_gimple): Remove.
4727         * tree-cfg.c (verify_gimple_call): Merge verification
4728         from verify_stmts.
4729         (verify_gimple_phi): Merge verification from verify_stmts.
4730         (verify_gimple_label): New function.
4731         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4732         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4733         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4734         (verify_stmts): Rename to verify_gimple_in_cfg.
4735         (verify_gimple_in_cfg): New function.
4736         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4737         * tree-ssa.c (verify_ssa): Likewise.
4738         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4739
4740 2011-03-25  Richard Guenther  <rguenther@suse.de>
4741
4742         * passes.c (init_optimization_passes): Add FRE pass after
4743         early SRA.
4744
4745 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4746             Andrew Stubbs  <ams@codesourcery.com>
4747
4748         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4749         for Cortex-A8.
4750         (arm_movdi_vfp_cortexa8): New pattern.
4751         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4752         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4753         instructions when tuning for Cortex-A8.  Set attribute "arch".
4754         * config/arm/arm.md: Move include arm-tune.md up a bit.
4755         (define_attr "arch"): Add "onlya8" and "nota8" values.
4756         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4757
4758 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4759
4760         PR bootstrap/48282
4761         Revert:
4762         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4763
4764         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4765         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4766         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4767         * passes.c (init_optimization_passes): Move
4768         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4769
4770 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4771
4772         * c-typeck.c (comptypes_internal): Replace target
4773         hook call of comp_type_attributes by version in tree.c file.
4774         * gimple.c (gimple_types_compatible_p_1): Likewise.
4775         * tree-ssa.c (useless_type_conversion_p): Likewise.
4776         * tree.c (build_type_attribute_qual_variant): Likewise.
4777         (attribute_value_equal): New static helper function.
4778         (comp_type_attributes): New function.
4779         (merge_attributes): Use attribute_value_equal for comparison.
4780         (attribute_list_contained): Likewise.
4781         * tree.h (comp_type_attributes): New prototype.
4782
4783 2011-03-25  Richard Guenther  <rguenther@suse.de>
4784
4785         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4786         of complex types at -O0.
4787         (verify_gimple_assign_binary): Likewise.
4788         (verify_gimple_assign_ternary): Likewise.
4789
4790 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4791
4792         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4793         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4794
4795 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4796
4797         PR debug/48041
4798         * dwarf2out.c (output_abbrev_section): Only write table when
4799         abbrev_die_table_in_use > 1.
4800
4801 2011-02-24  Richard Henderson  <rth@redhat.com>
4802
4803         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4804         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4805         (alpha_expand_unaligned_load_words): Use extql.
4806         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4807         (emit_insxl): Handle all modes for consistency.
4808
4809 2011-02-24  Richard Henderson  <rth@redhat.com>
4810
4811         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4812         (alpha_expand_unaligned_load): Likewise.
4813         (alpha_expand_unaligned_store): Likewise.
4814         (alpha_expand_unaligned_load_words): Likewise.
4815         (alpha_expand_unaligned_store_words): Likewise.
4816         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4817         (alpha_split_lock_test_and_set_12): Likewise.
4818         (print_operand, alpha_fold_builtin_extxx): Likewise.
4819         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4820         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4821         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4822         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4823         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4824         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4825         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4826         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4827         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4828         (extwl, extll, extql): Similarly.
4829         (inswh, inslh, insqh): Similarly.
4830         (mskbl, mskwl, mskll, mskql): Similarly.
4831         (mskwh, msklh, mskqh): Similarly.
4832
4833 2011-02-24  Richard Henderson  <rth@redhat.com>
4834
4835         * config/alpha/alpha.md (attribute isa): Add er, ner.
4836         (attribute enabled): Handle them.
4837         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4838
4839 2011-02-24  Richard Henderson  <rth@redhat.com>
4840
4841         * config/alpha/alpha.md (attribute isa): Add vms.
4842         (attribute enabled): Handle it.
4843         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4844         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4845         (*movtf): Rename from *movtf_internal for consistency.
4846         (*movsi): Merge with *movsi_nt_vms.
4847         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4848         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4849         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4850         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4851
4852 2011-02-24  Richard Henderson  <rth@redhat.com>
4853
4854         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4855         (extendqisi2, extendhisi2): Likewise.
4856         (extendqidi2): Simplify BWX/non-BWX expansions.
4857         (extendhidi2): Similarly.
4858
4859 2011-02-24  Richard Henderson  <rth@redhat.com>
4860
4861         * config/alpha/alpha.md (attribute isa): New.
4862         (attribute enabled): New.
4863         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4864         (zero_extendqisi2, zero_extendqidi2): Similarly.
4865         (zero_extendhisi2, zero_extendhidi2): Similarly.
4866         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4867
4868 2011-02-24  Richard Henderson  <rth@redhat.com>
4869
4870         * config/alpha/predicates.md (input_operand): Revert last change;
4871         update comment to mention 32-bit VMS rather than Windows.
4872
4873 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4874
4875         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4876         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4877         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4878         * passes.c (init_optimization_passes): Move
4879         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4880
4881 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4882
4883         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4884
4885 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4886
4887         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4888         correctly.
4889
4890 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4891
4892         PR debug/48204
4893         * simplify-rtx.c (simplify_const_unary_operation): Call
4894         real_convert when changing mode class with FLOAT_EXTEND.
4895
4896 2011-03-24  Nick Clifton  <nickc@redhat.com>
4897
4898         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4899         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4900         * config/rx/rx.c (rx_option_override): Set align_jumps,
4901         align_loops and align_labels if not set by the user.
4902         (rx_align_for_label): New function.
4903         (rx_max_skip_for_label): New function.
4904         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4905         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4906         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4907         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4908         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4909
4910 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4911
4912         PR rtl-optimization/48263
4913         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4914         and original commutative_p handling.  Use maybe_gen_insn.
4915
4916 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4917
4918         * reload.c (find_reloads_subreg_address): Add address_reloaded
4919         parameter and return true there if the full address has been
4920         reloaded.
4921         (find_reloads_toplev): Pass address_reloaded flag.
4922         (find_reloads_address_1): Don't use address_reloaded parameter.
4923
4924 2011-03-24  Jeff Law  <law@redhat.com>
4925
4926         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4927         unused variable "ann".
4928         (remove_unused_locals): Likewise.
4929
4930         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4931         statement.
4932
4933         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4934         after it is freed.
4935
4936 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4937
4938         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4939         for invalid symbolic addresses.
4940         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4941         larl operands.
4942
4943 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4944
4945         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4946         the argument in calls to fold_truth_not_expr.
4947
4948 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4949
4950         * tree.c (record_node_allocation_statistics): New function.
4951         (make_node_stat, copy_node_stat, build_string): Call it.
4952         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4953         (build1_stat, build_omp_clause): Likewise.
4954
4955 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4956
4957         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4958         last commit.
4959
4960 2011-03-24  Richard Guenther  <rguenther@suse.de>
4961
4962         PR tree-optimization/48271
4963         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4964         blocks that still exist.
4965
4966 2011-03-24  Richard Guenther  <rguenther@suse.de>
4967
4968         PR tree-optimization/48270
4969         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4970         not free datarefs before ddrs.
4971
4972 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4973
4974         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4975         from the address built for a reference with variable offset.
4976
4977 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4978
4979         PR target/48237
4980         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4981         alternatives that can be handled with movq or movabsq insn.
4982         (*movdf_internal): Disable for !TARGET_64BIT.
4983         (*movdf_internal_nointeger): Ditto.
4984         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4985
4986 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4987
4988         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4989         (FUNCTION_ARG_ADVANCE): Likewise.
4990         * tm.texi.in: Change references to them to hook references.
4991         * tm.texi: Regenerate.
4992         * targhooks.c (default_function_arg): Eliminate check for target macro.
4993         (default_function_incoming_arg): Likewise.
4994         (default_function_arg_advance): Likewise.
4995         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4996         (function_arg_advance): Likewise.
4997         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4998
4999 2011-03-24  Richard Guenther  <rguenther@suse.de>
5000
5001         PR middle-end/48269
5002         * tree-object-size.c (addr_object_size): Do not double-account
5003         for MEM_REF offsets.
5004
5005 2011-03-24  Diego Novillo  <dnovillo@google.com>
5006
5007         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5008         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5009         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5010         Update all users.
5011         (lto_input_string): Rename from input_string.  Make extern.
5012         Update all users.
5013         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5014         output_string_with_length.
5015         Output 0 to indicate a non-NULL string.  Update all callers to
5016         not emit 0.
5017         (lto_output_string): Rename from output_string.  Make extern.
5018         Update all users.
5019         (lto_output_decl_state_streams): Make extern.
5020         (lto_output_decl_state_refs): Make extern.
5021         * lto-streamer.h (lto_input_string): Declare.
5022         (lto_input_data_block): Declare.
5023         (lto_output_string): Declare.
5024         (lto_output_string_with_length): Declare.
5025         (lto_output_decl_state_streams): Declare.
5026         (lto_output_decl_state_refs): Declare.
5027
5028 2011-03-24  Richard Guenther  <rguenther@suse.de>
5029
5030         PR tree-optimization/46562
5031         * tree.c (build_invariant_address): New function.
5032         * tree.h (build_invariant_address): Declare.
5033         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5034         a renamed function moved ...
5035         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5036         Take valueization callback parameter.
5037         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5038         * gimple-fold.h: New file.
5039         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5040         (ccp_fold, fold_const_aggregate_ref,
5041         fold_ctor_reference, fold_nonarray_ctor_reference,
5042         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5043         get_base_constructor): Move ...
5044         * gimple-fold.c: ... here.
5045         (gimple_fold_stmt_to_constant_1): New function
5046         split out from ccp_fold.  Take a valueization callback parameter.
5047         Valueize all operands.
5048         (gimple_fold_stmt_to_constant): New wrapper function.
5049         (fold_const_aggregate_ref_1): New function split out from
5050         fold_const_aggregate_ref.  Take a valueization callback parameter.
5051         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5052         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5053         invariant POINTER_PLUS_EXPRs to invariant form.
5054         (vn_valueize): New function.
5055         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5056         * tree-vrp.c (vrp_valueize): New function.
5057         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5058         to fold statements to constants.
5059         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5060         function declarations.
5061         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5062         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5063
5064 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5065
5066         * config/h8300/predicates.md (jump_address_operand): Fix register
5067         mode check.
5068
5069 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5070
5071         * doc/invoke.texi (max-stores-to-sink): Document.
5072         * params.h (MAX_STORES_TO_SINK): Define.
5073         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5074         if either vectorization or if-conversion is disabled.
5075         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5076         tree-vect-data-refs.c vect_equal_offsets.
5077         (dr_equal_offsets_p): New function.
5078         (find_data_references_in_bb): Remove static.
5079         * tree-data-ref.h (find_data_references_in_bb): Declare.
5080         (dr_equal_offsets_p): Likewise.
5081         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5082         (vect_drs_dependent_in_basic_block): Update calls to
5083         vect_equal_offsets.
5084         (vect_check_interleaving): Likewise.
5085         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5086         (cond_if_else_store_replacement): Rename to...
5087         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5088         documentation.
5089         (cond_if_else_store_replacement): New function.
5090         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5091         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5092
5093 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5094
5095         PR target/46934
5096         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5097         to subtract lower bound instead of GEN_INT().
5098
5099 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5100
5101         PR other/48179
5102         PR other/48221
5103         PR other/48234
5104         * doc/extend.texi (Alignment): Move section to match order in TOC.
5105         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5106         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5107
5108 2011-03-23  Jeff Law  <law@redhat.com>
5109
5110         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5111         before removing the edge.
5112
5113         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5114         it may have been freed by redirect_branch_edge or
5115         redirect_edge_succ_nodup.
5116
5117 2011-03-23  Richard Guenther  <rguenther@suse.de>
5118
5119         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5120         (check_va_list_escapes): Likewise.
5121         (check_all_va_list_escapes): Likewise.
5122
5123 2011-03-23  Richard Guenther  <rguenther@suse.de>
5124
5125         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5126         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5127         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5128         (alias.o): Likewise.
5129         (ipa-type-escape.o): Remove.
5130         (ipa-struct-reorg.o): Likewise.
5131         (GTFILES): Remove ipa-struct-reorg.c.
5132         * alias.c: Do not include ipa-type-escape.h.
5133         * tree-ssa-alias.c: Likewise.
5134         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5135         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5136         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5137         and ipa-type-escape passes.
5138         * tree-pass.h (pass_ipa_type_escape): Remove.
5139         (pass_ipa_struct_reorg): Likewise.
5140         * ipa-struct-reorg.h: Remove.
5141         * ipa-struct-reorg.c: Likewise.
5142         * ipa-type-escape.h: Likewise.
5143         * ipa-type-escape.c: Likewise.
5144         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5145         (--param struct-reorg-cold-struct-ratio): Likewise.
5146         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5147         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5148         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5149
5150 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5151
5152         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5153         cpu attribute value.
5154         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5155         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5156         * config/s390/s390.c (processor_flags_table): New constant array.
5157         (s390_handle_arch_option): Remove.
5158         (s390_handle_option): Remove s390_handle_arch_option invocations
5159         and OPT_mwarn_framesize_ handling.
5160         (s390_option_override): Remove s390_handle_arch_option invocation.
5161         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5162         warnings.
5163         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5164         * config/s390/s390.opt (s390_tune, s390_arch)
5165         (march=): Replace s390_arch_option enum and values with
5166         processor_type.  Set variable name to s390_arch.  Set
5167         initialization value.
5168         (mtune=): Replace s390_arch_option with processor_type.  Set
5169         variable name to s390_tune.  Set initialization value.
5170
5171 2011-03-23  Julian Brown  <julian@codesourcery.com>
5172
5173         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5174         accesses which are not naturally aligned.
5175
5176 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5177
5178         PR target/47553
5179         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5180
5181 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5182
5183         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5184         parameter from "int" to "enum insn_code".
5185         (expand_operand_type): New enum.
5186         (expand_operand): New structure.
5187         (create_expand_operand): New function.
5188         (create_fixed_operand, create_output_operand): Likewise
5189         (create_input_operand, create_convert_operand_to): Likewise.
5190         (create_convert_operand_from, create_address_operand): Likewise.
5191         (create_integer_operand): Likewise.
5192         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5193         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5194         (expand_insn, expand_jump_insn): Likewise.
5195         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5196         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5197         (expand_movstr, expand_builtin___clear_cache): Likewise.
5198         (expand_builtin_lock_release): Likewise.
5199         * explow.c (allocate_dynamic_stack_space): Likewise.
5200         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5201         and use the default handling in that case.
5202         * expmed.c (check_predicate_volatile_ok): Delete.
5203         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5204         (emit_cstore): Likewise.
5205         * expr.c (emit_block_move_via_movmem): Likewise.
5206         (set_storage_via_setmem, expand_assignment): Likewise.
5207         (emit_storent_insn, try_casesi): Likewise.
5208         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5209         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5210         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5211         (expand_twoval_unop, expand_twoval_binop): Likewise.
5212         (expand_unop_direct, emit_indirect_jump): Likewise.
5213         (emit_conditional_move, vector_compare_rtx): Likewise.
5214         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5215         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5216         (expand_sync_lock_test_and_set): Likewise.
5217         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5218         (emit_unop_insn): Likewise.
5219         (expand_copysign_absneg): Change icode to an insn_code.
5220         (create_convert_operand_from_type): New function.
5221         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5222         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5223         (expand_insn, expand_jump_insn): Likewise.
5224         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5225         than const_int_operand for operand 2.
5226
5227 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5228
5229         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5230         if possible.
5231
5232 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5233
5234         * emit-rtl.c (emit_pattern_before_noloc): New function.
5235         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5236         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5237         (emit_pattern_after_noloc): New function.
5238         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5239         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5240
5241 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5242
5243         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5244         (__ffsDI2): Likewise.
5245
5246 2011-03-22  Richard Henderson  <rth@redhat.com>
5247
5248         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5249         of !TARGET_ABI_OPEN_VMS.
5250         (alpha_trampoline_init, alpha_start_function): Likewise.
5251         (alpha_expand_epilogue, alpha_file_start): Likewise.
5252         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5253         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5254         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5255         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5256         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5257
5258 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5259
5260         * config/s390/s390-opts.h: New.
5261         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5262         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5263         s390_stack_guard): Remove.
5264         (s390_handle_arch_option): Return void.  Take enum
5265         s390_arch_option value instead of string and searching array.
5266         (s390_handle_option): Don't assert that global structures are in
5267         use.  Access variables via opts pointer.  Use error_at.  Don't use
5268         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5269         s390_handle_arch_option.
5270         (s390_option_override): Update call to s390_handle_arch_option.
5271         (s390_emit_prologue): Use %d format for s390_stack_size in
5272         diagnostic.  Use %wd for HOST_WIDE_INT.
5273         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5274         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5275         * config/s390/s390.opt (config/s390/s390-opts.h): New
5276         HeaderInclude entry.
5277         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5278         s390_arch_flags, s390_warn_framesize): New Variable entries.
5279         (s390_arch_option): New Enum and EnumValue entries.
5280         (march=): Use Enum instead of Var.
5281         (mstack-guard=, mstack-size=): Use UInteger and Var.
5282         (mtune=): Use Enum.
5283
5284 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5285
5286         * config/score/score.c (score_handle_option): Don't assert that
5287         global structures are in use.  Access target_flags via opts
5288         pointer.  Use value of -march= option to determine target_flags
5289         settings.
5290         * config/score/score.opt (march=): Use Enum.
5291         (score_arch): New Enum and EnumValue entries.
5292
5293 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5294
5295         * config/mep/mep.c (option_mtiny_specified): Remove.
5296         (mep_option_override): Move register handling for -mivc2 from
5297         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5298         instead of option_mtiny_specified.
5299         (mep_handle_option): Access target_flags via opts pointer.  Don't
5300         assert that global structures are in use.  Defer part of -mivc2
5301         handling and move it to mep_option_override.
5302         * config/mep/mep.opt (IVC2): New Mask entry.
5303         (mivc2): Use Var and Defer instead of Mask.
5304
5305 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5306
5307         * config/v850/v850-opts.h: New.
5308         * config/v850/v850.c (small_memory): Replace with
5309         small_memory_physical_max array.  Make that array static const.
5310         (v850_handle_memory_option): Take integer value of argument.  Take
5311         gcc_options pointer, option text and location.  Return void.
5312         Update for changes to small memory structures.
5313         (v850_handle_option): Access target_flags via opts pointer.  Don't
5314         assert that global structures are in use.  Update calls to
5315         v850_handle_memory_option.
5316         (v850_encode_data_area): Update references to small memory settings.
5317         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5318         (enum small_memory_type): Move to v850-opts.h.
5319         * config/v850/v850.opt (config/v850/v850-opts.h): New
5320         HeaderInclude entry.
5321         (small_memory_max): New Variable entry.
5322         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5323         (mtda, mzda): Likewise.
5324
5325 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5326
5327         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5328         pointer.  Don't assert that global structures are in use.
5329
5330 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5331
5332         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5333         via opts pointer.  Don't assert that global structures are in use.
5334
5335 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5336
5337         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5338         (munix=93): Use Var.
5339         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5340         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5341         * config/pa/pa-opts.h: New.
5342         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5343         (pa_handle_option): Don't assert that global structures are in
5344         use.  Access target_flags via opts pointer.  Don't handle
5345         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5346         OPT_munix_98 here.
5347         (pa_option_override): Handle deferred OPT_mfixed_range_.
5348
5349 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5350
5351         * config/mn10300/mn10300-opts.h: New.
5352         * config/mn10300/mn10300.c (mn10300_processor,
5353         mn10300_tune_string): Remove.
5354         (mn10300_handle_option): Don't assert that global structures are
5355         in use.  Access mn10300_processor via opts pointer.  Don't handle
5356         OPT_mtune_ here.
5357         * config/mn10300/mn10300.h (enum processor_type): Move to
5358         mn10300-opts.h.
5359         (mn10300_processor): Remove.
5360         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5361         HeaderInclude entry.
5362         (mn10300_processor): New Variable entry.
5363         (mtune=): Use Var.
5364
5365 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5366
5367         * config/microblaze/microblaze.c: Don't include opts.h.
5368         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5369         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5370         (mno-clearbss): Use Var and Warn.
5371
5372 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5373
5374         * config/m32r/m32r-opts.h: New.
5375         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5376         (m32r_handle_option): Don't assert that global structures are in
5377         use.  Access target_flags and m32r_cache_flush_func via opts
5378         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5379         OPT_mno_flush_trap here.
5380         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5381         include of m32r-opts.h.
5382         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5383         HeaderInclude entry.
5384         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5385         (mmodel=): Use Enum and Var.
5386         (m32r_model): New Enum and EnumValue entries.
5387         (mno-flush-trap): Use Var.
5388         (msdata=): Use Enum and Var.
5389         (m32r_sdata): New Enum and EnumValue entries.
5390
5391 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5392
5393         * config/m32c/m32c.c: Don't include opts.h.
5394         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5395         m32c_handle_option): Remove.
5396         (m32c_option_override): Check global_options_set.x_target_memregs
5397         instead of target_memregs_set.
5398         * config/m32c/m32c.h (target_memregs): Remove.
5399         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5400         variable.
5401
5402 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5403
5404         * config/iq2000/iq2000-opts.h: New.
5405         * config/iq2000/iq2000.c: Don't include opts.h.
5406         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5407         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5408         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5409         HeaderInclude entry.
5410         (iq2000_tune): New Variable entry.
5411         (march=): Add comment.  Use Enum.
5412         (iq2000_arch): New Enum and EnumValue entries.
5413         (mcpu=): Use Enum and Var.
5414         (iq2000_tune): New Enum and EnumValue entries.
5415
5416 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5417
5418         * config/ia64/ia64-opts.h: New.
5419         * config/ia64/ia64.c (ia64_tune): Remove.
5420         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5421         here.  Use error_at.
5422         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5423         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5424         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5425         HeaderInclude entry.
5426         (ia64_tune): New Variable entry.
5427         (mfixed-range=): Use Defer and Var.
5428         (mtune=): Use Enum and Var.
5429         (ia64_tune): New Enum and EnumValue entries.
5430
5431 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5432
5433         * config/frv/frv-opts.h: New.
5434         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5435         frv-opts.h.
5436         (frv_cpu_type): Remove.
5437         * config/frv/frv.c: Don't include opts.h.
5438         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5439         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5440         (frv_cpu_type): New Variable entry.
5441         (frv_cpu): New Enum and EnumValue entries.
5442
5443 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5444
5445         * config/cris/cris.c (cris_handle_option): Access target_flags via
5446         opts pointer.  Don't assert that global structures are in use.
5447         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5448         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5449
5450 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5451
5452         * config/bfin/bfin-opts.h: New.
5453         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5454         bfin_si_revision, bfin_workarounds): Remove.
5455         (bfin_cpus): Make static const.
5456         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5457         not bfin_lib_id_given.
5458         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5459         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5460         pointer. Use error_at.  Don't assert that global structures are in use.
5461         * config/bfin/bfin.h: Include bfin-opts.h.
5462         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5463         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5464         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5465         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5466         entries.
5467
5468 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5469
5470         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5471         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5472         or -msoft-float here.
5473         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5474         -msoft-float and -mhard-float.
5475         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5476         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5477         msoft-float.
5478         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5479         -msoft-float.
5480         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5481         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5482         not mhard-float.
5483         (LIBGCC_SPEC): Don't handle -msoft-float.
5484         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5485         -mhard-float.
5486         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5487         msoft-float.
5488         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5489         -mfloat-abi=*, not -msoft-float and -mhard-float.
5490         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5491         -msoft-float.
5492         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5493         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5494         mhard-float and msoft-float.
5495         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5496         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5497         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5498         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5499         mhard-float.
5500         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5501         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5502         msoft-float.
5503         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5504         not mhard-float.
5505         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5506         not msoft-float.
5507
5508 2011-03-22  Richard Henderson  <rth@redhat.com>
5509
5510         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5511         TARGET_ABI_WINDOWS_NT.
5512         (alpha_output_function_end_prologue): Likewise.
5513         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5514         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5515         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5516         (trap, *movsi_nt_vms): Likewise.
5517         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5518         (*tablejump_osf_nt_internal): Remove.
5519         * config/alpha/predicates.md (input_operand): Only test Pmode.
5520
5521 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5522
5523         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5524         via opts pointer.  Use error_at.  Don't assert that global
5525         structures are in use.
5526
5527 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5530         (ix86_handle_option): Access ix86_isa_flags and
5531         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5532         global structures are in use.
5533         (ix86_function_specific_save, ix86_function_specific_restore):
5534         Update ix86_isa_flags_explicit field name.
5535         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5536         (ix86_isa_flags_explicit): Rename TargetSave entry to
5537         x_ix86_isa_flags_explicit.
5538
5539 2011-03-22  Richard Henderson  <rth@redhat.com>
5540
5541         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5542         (alpha_option_override, direct_return): Likewise.
5543         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5544         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5545         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5546         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5547         (alpha_expand_epilogue, alpha_end_function): Likewise.
5548         (alpha_init_libfuncs): Likewise.
5549         (struct machine_function): Remove unicosmk members.
5550         (print_operand) ['t']: Remove.
5551         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5552         unicosmk_output_module_name, unicosmk_output_common,
5553         current_section_align, unicosmk_output_text_section_asm_op,
5554         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5555         unicosmk_section_type_flags, unicosmk_unique_section,
5556         unicosmk_asm_named_section, unicosmk_insert_attributes,
5557         unicosmk_output_align, unicosmk_defer_case_vector,
5558         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5559         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5560         unicosmk_output_ssib, unicosmk_add_call_info_word,
5561         unicosmk_extern_head, unicosmk_output_default_externs,
5562         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5563         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5564         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5565         * config/alpha/alpha-protos.h: Update.
5566         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5567         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5568         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5569         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5570         (*mulsi_se, mulvsi3): Likewise.
5571         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5572         (*divmodsi_internal, call, call_value, realign): Likewise.
5573         (moddi3, umoddi3): Likewise; remove duplicate expander.
5574         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5575         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5576         (*movdi_nofix): Remove r/U alternative.
5577         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5578         * config/alpha/constraints.md ("U"): Remove.
5579         * config/alpha/predicates.md (call_operand"): Don't test
5580         TARGET_ABI_UNICOSMK.
5581
5582 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5583
5584         * target.def (handle_option): Take gcc_options and
5585         cl_decoded_option pointers and location_t.
5586         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5587         * doc/tm.texi: Regenerate.
5588         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5589         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5590         * lto-opts.c (lto_reissue_options): Generate option structure for
5591         targetm.handle_option call.
5592         * opts.c (target_handle_option): Update call to
5593         targetm.handle_option.  Remove assertions about values now passed
5594         down to hook.
5595         * targhooks.c (default_target_handle_option): New.
5596         * targhooks.h (default_target_handle_option): Declare.
5597         * config/alpha/alpha.c: Include opts.h.
5598         (alpha_handle_option): Update to new hook interface.
5599         * config/arm/arm.c: Include opts.h.
5600         (arm_handle_option): Update to new hook interface.
5601         * config/arm/t-arm (arm.o): Update dependencies.
5602         * config/bfin/bfin.c: Include opts.h.
5603         (bfin_handle_option): Update to new hook interface.
5604         * config/cris/cris.c: Include opts.h.
5605         (cris_handle_option): Update to new hook interface.
5606         * config/frv/frv.c: Include opts.h.
5607         (frv_handle_option): Update to new hook interface.
5608         * config/i386/i386.c: Include opts.h.
5609         (ix86_handle_option): Update to new hook interface.
5610         (ix86_valid_target_attribute_inner_p): Generate option structure
5611         for call to ix86_handle_option.
5612         * config/i386/t-i386 (i386.o): Update dependencies.
5613         * config/ia64/ia64.c: Include opts.h.
5614         (ia64_handle_option): Update to new hook interface.
5615         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5616         * config/iq2000/iq2000.c: Include opts.h.
5617         (iq2000_handle_option): Update to new hook interface.
5618         * config/m32c/m32c.c: Include opts.h.
5619         (m32c_handle_option): Update to new hook interface.
5620         * config/m32r/m32r.c: Include opts.h.
5621         (m32r_handle_option): Update to new hook interface.
5622         * config/m68k/m68k.c: Include opts.h.
5623         (m68k_handle_option): Update to new hook interface.
5624         * config/mep/mep.c: Include opts.h.
5625         (mep_handle_option): Update to new hook interface.
5626         * config/microblaze/microblaze.c: Include opts.h.
5627         (microblaze_handle_option): Update to new hook interface.
5628         * config/mips/mips.c: Include opts.h.
5629         (mips_handle_option): Update to new hook interface.
5630         * config/mn10300/mn10300.c: Include opts.h.
5631         (mn10300_handle_option): Update to new hook interface.
5632         * config/pa/pa.c: Include opts.h.
5633         (pa_handle_option): Update to new hook interface.
5634         * config/pdp11/pdp11.c: Include opts.h.
5635         (pdp11_handle_option): Update to new hook interface.
5636         * config/rs6000/rs6000.c: Include opts.h.
5637         (rs6000_handle_option): Update to new hook interface.
5638         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5639         * config/rx/rx.c: Include opts.h.
5640         (rx_handle_option): Update to new hook interface.
5641         * config/s390/s390.c: Include opts.h.
5642         (s390_handle_option): Update to new hook interface.
5643         * config/score/score.c: Include opts.h.
5644         (score_handle_option): Update to new hook interface.
5645         * config/sh/sh.c: Include opts.h.
5646         (sh_handle_option): Update to new hook interface.
5647         * config/sparc/sparc.c: Include opts.h.
5648         (sparc_handle_option): Update to new hook interface.
5649         * config/v850/v850.c: Include opts.h.
5650         (v850_handle_option): Update to new hook interface.
5651
5652 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5653
5654         * gcc.c (driver_unknown_option_callback): Only permit and save
5655         unknown -Wno- options.
5656         (driver_wrong_lang_callback): Save options directly instead of via
5657         driver_unknown_option_callback.
5658
5659 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5660
5661         * combine.c (simplify_set): Try harder to find the best CC mode when
5662         simplifying a nested COMPARE on the RHS.
5663
5664 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * config/alpha/gnu.h: Remove.
5667         * config/arc: Remove directory.
5668         * config/arm/netbsd.h: Remove.
5669         * config/arm/t-pe: Remove.
5670         * config/crx: Remove directory.
5671         * config/i386/netbsd.h: Remove.
5672         * config/m68hc11: Remove directory.
5673         * config/m68k/uclinux-oldabi.h: Remove.
5674         * config/mcore/mcore-pe.h: Remove.
5675         * config/mcore/t-mcore-pe: Remove.
5676         * config/netbsd-aout.h: Remove.
5677         * config/rs6000/gnu.h: Remove.
5678         * config/sh/sh-symbian.h: Remove.
5679         * config/sh/symbian-base.c: Remove.
5680         * config/sh/symbian-c.c: Remove.
5681         * config/sh/symbian-cxx.c: Remove.
5682         * config/sh/symbian-post.h: Remove.
5683         * config/sh/symbian-pre.h: Remove.
5684         * config/sh/t-symbian: Remove.
5685         * config/svr3.h: Remove.
5686         * config/vax/netbsd.h: Remove.
5687         * config.build: Don't handle i[34567]86-*-pe.
5688         * config.gcc: Remove handling of deprecations for most deprecated
5689         targets.
5690         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5691         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5692         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5693         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5694         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5695         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5696         Remove cases.
5697         * config.host: Don't handle i[34567]86-*-pe.
5698         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5699         (ASM_SPEC32): Don't handle -mcall-gnu.
5700         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5701         -mcall-gnu.
5702         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5703         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5704         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5705         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5706         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5707         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5708         conditional on SYMBIAN.
5709         * configure.ac: Don't handle powerpc*-*-gnu*.
5710         * configure: Regenerate.
5711         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5712         * doc/install-old.texi (m6811, m6812): Don't mention.
5713         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5714         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5715         (m68k-uclinuxoldabi): Don't mention.
5716         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5717         Remove.
5718         (-mcall-gnu): Remove.
5719         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5720         families): Remove constraint documentation.
5721
5722 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5723
5724         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5725         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5726         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5727
5728 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5729
5730         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5731         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5732         * config/avr/avr.c (init_cumulative_args)
5733         (avr_function_arg_advance): Use it.
5734         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5735         sibcall epilogues.
5736         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5737         (avr_function_ok_for_sibcall): ...this new function.
5738         (avr_lookup_function_attribute1): New static Function.
5739         (avr_naked_function_p, interrupt_function_p)
5740         (signal_function_p, avr_OS_task_function_p)
5741         (avr_OS_main_function_p): Use it.
5742         * config/avr/avr.md ("sibcall", "sibcall_value")
5743         ("sibcall_epilogue"): New expander.
5744         ("*call_insn", "*call_value_insn"): New insn.
5745         ("call_insn", "call_value_insn"): Remove
5746         ("call", "call_value", "epilogue"): Change expander to handle
5747         sibling calls.
5748
5749 2011-03-21  Nick Clifton  <nickc@redhat.com>
5750
5751         * doc/invoke.texi (Overall Options): Move closing brace to end of
5752         options list.
5753         (Optimization Options): Add missing @gol.
5754         (Directory Options): Likewise.
5755         (i386 and x86-64 Options): Likewise.
5756         (RS6000 and PowerPC Options): Likewise.
5757         (i386 and x86-64 Windows Options): Likewise.
5758         (V850 Options): Add text missing from descriptions.
5759
5760 2011-03-22  Richard Henderson  <rth@redhat.com>
5761
5762         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5763         (avr_incoming_return_addr_rtx): New.
5764         (emit_push_byte): New.
5765         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5766         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5767         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5768         (emit_pop_byte): New.
5769         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5770         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5771         (INCOMING_RETURN_ADDR_RTX): New.
5772         (INCOMING_FRAME_SP_OFFSET): New.
5773         (ARG_POINTER_CFA_OFFSET): New.
5774         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5775         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5776         (pophi): Remove.
5777
5778         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5779
5780 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5781
5782         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5783         (FUNCTION_ARG_ADVANCE): Likewise.
5784         * tm.texi.in: Change references to them to hook references.
5785         * tm.texi: Regenerate.
5786         * targhooks.c (default_function_arg): Eliminate check for target
5787         macro.
5788         (default_function_incoming_arg): Likewise.
5789         (default_function_arg_advance): Likewise.
5790         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5791         (function_arg_advance): Likewise.
5792         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5793
5794 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5795
5796         * tree.c (build_call_1): New function.
5797         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5798
5799 2011-03-22  Richard Guenther  <rguenther@suse.de>
5800
5801         PR tree-optimization/48228
5802         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5803         for single-arg PHIs.
5804
5805 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5806
5807         PR rtl-optimization/48143
5808         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5809         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5810         sse2_cvtps2pd): Likewise.
5811
5812 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5813
5814         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5815
5816 2011-03-22  Richard Guenther  <rguenther@suse.de>
5817
5818         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5819         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5820         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5821         and REALIGN_LOAD_EXPR.
5822         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5823         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5824         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5825         DOT_PROD_EXPR case ...
5826         (expand_expr_real_2): ... here.
5827         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5828         and REALIGN_LOAD_EXPR.
5829         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5830         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5831         (vect_create_epilog_for_reduction): Likewise.
5832         (vectorizable_reduction): Likewise.
5833         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5834         * tree-vect-stmts.c (vectorizable_load): Likewise.
5835
5836 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5837
5838         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5839
5840 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5841
5842         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5843         handling for PLTOFF/GOTOFF.
5844
5845 2011-03-22  Nick Clifton  <nickc@redhat.com>
5846
5847         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5848         trailing backslash from the end of the macro definition.
5849
5850 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5851
5852         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5853         and PLT unspecs.
5854
5855 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5856
5857         * expr.h (prepare_operand): Move to...
5858         * optabs.h (prepare_operand): ...here and change the insn code
5859         parameter from "int" to "enum insn_code".
5860         (insn_operand_matches): Declare.
5861         * expr.c (init_expr_target): Use insn_operand_matches.
5862         (compress_float_constant): Likewise.
5863         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5864         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5865         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5866         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5867         Likewise.
5868         (gen_cond_trap): Likewise.
5869         (prepare_operand): Likewise.  Change icode to an insn_code.
5870         (insn_operand_matches): New function.
5871         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5872         * reload1.c (gen_reload): Likewise.
5873         * targhooks.c (default_secondary_reload): Likewise.
5874
5875 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5876
5877         * config/alpha/alpha.md (unspec): New define_c_enum.
5878         (unspecv): Ditto.
5879
5880 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5881
5882         PR debug/48214
5883         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5884         between a call and its CALL_ARG_LOCATION note.
5885
5886 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5887
5888         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5889
5890 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5891
5892         PR c/42544
5893         PR c/48197
5894         * c-common.c (shorten_compare): If primopN is first sign-extended
5895         to opN and then zero-extended to result type, set primopN to opN.
5896
5897 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5898
5899         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5900         for barrier handlers.
5901
5902 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5903
5904         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5905         UNSPEC constants to be in the unspec enumeration, and redefine
5906         all UNSPECV constants to be in the unspecv enumeration, so that
5907         dumps print which unspec/unspec_volatile this is.
5908         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5909         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5910         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5911         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5912         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5913
5914         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5915         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5916         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5917         * config/rs6000/sync.md (isync, lwsync): Ditto.
5918
5919 2011-03-21  Richard Guenther  <rguenther@suse.de>
5920
5921         * params.def (lto-min-partition): Fix typo.
5922
5923 2011-03-21  Richard Guenther  <rguenther@suse.de>
5924
5925         PR c/47939
5926         * c-decl.c (grokdeclarator): Drop to the main variant only
5927         for array types.  Drop flag_gen_aux_info check.
5928
5929 2011-03-21  Richard Guenther  <rguenther@suse.de>
5930
5931         PR translation/47911
5932         * params.def (lto-partitions): Fix typo.
5933         (lto-min-partition): Fix wording.
5934
5935 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5936
5937         * config/rs6000/t-freebsd: Remove duplication from file.
5938
5939 2011-03-21  Richard Guenther  <rguenther@suse.de>
5940
5941         PR middle-end/47661
5942         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5943
5944 2011-03-21  Richard Guenther  <rguenther@suse.de>
5945
5946         PR lto/48210
5947         * params.def (lto-partitions): Require at least 1 partition.
5948
5949 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5950
5951         * gthr-solaris.h: Remove.
5952         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5953         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5954         (LIB_SPEC): Likewise.
5955         * config/sol2.opt (threads): Remove.
5956         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5957         (sparc*-*-solaris2*): Likewise.
5958         * configure.ac (enable_threads): Enable solaris support.
5959         * configure: Regenerate.
5960         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5961         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5962         solaris.
5963
5964 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5965
5966         * config.gcc: Obsolete *-*-solaris2.8*.
5967         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5968
5969 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5970
5971         PR bootstrap/48135
5972         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5973         reference.  Solaris 8 perl works.
5974
5975 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5976
5977         PR bootstrap/48135
5978         * doc/install.texi (Prerequisites): Move jar etc. up.
5979         Explain support library version requirements.
5980
5981 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5982
5983         PR bootstrap/48135
5984         * doc/install.texi (Prerequisites): Move Perl to build
5985         requirements.  Always necessary on Solaris 2 with Sun ld.
5986
5987 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5988
5989         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5990         binutils 2.21.
5991         (Specific, i?86-*-solaris2.[89]): Likewise.
5992         (Specific, i?86-*-solaris2.10): Likewise.
5993         (Specific, mips-sgi-irix6): Likewise.
5994         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5995         Update for binutils 2.21.
5996
5997 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5998
5999         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6000         Allow -fuse-linker-plugin for non-default plugin linker.
6001         * configure: Regenerate.
6002
6003 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6004
6005         PR bootstrap/48167
6006         * gengtype.c (files_rules): Added rule for cp/parser.h.
6007
6008 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6009
6010         PR target/48213
6011         * config/s390/s390.c (s390_delegitimize_address): Don't call
6012         lowpart_subreg if orig_x has BLKmode.
6013
6014 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6015
6016         PR target/12171
6017         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6018         * tree.h (attribute_spec): Add new member affects_type_identity.
6019         * attribs.c (empty_attribute_table): Adjust attribute_spec
6020         initializers.
6021         * config/alpha/alpha.c: Likewise.
6022         * config/arc/arc.c: Likewise.
6023         * config/arm/arm.c: Likewise.
6024         * config/avr/avr.c: Likewise.
6025         * config/bfin/bfin.c: Likewise.
6026         * config/crx/crx.c: Likewise.
6027         * config/darwin.h: Likewise.
6028         * config/h8300/h8300.c: Likewise.
6029         * config/i386/cygming.h: Likewise.
6030         * config/i386/i386.c: Likewise.
6031         * config/ia64/ia64.c: Likewise.
6032         * config/m32c/m32c.c: Likewise.
6033         * config/m32r/m32r.c: Likewise.
6034         * config/m68hc11/m68hc11.c: Likewise.
6035         * config/m68k/m68k.c: Likewise.
6036         * config/mcore/mcore.c: Likewise.
6037         * config/mep/mep.c: Likewise.
6038         * config/microblaze/microblaze.c: Likewise.
6039         * config/mips/mips.c: Likewise.
6040         * config/rs6000/rs6000.c: Likewise.
6041         * config/rx/rx.c: Likewise.
6042         * config/sh/sh.c: Likewise.
6043         * config/sol2.h: Likewise.
6044         * config/sparc/sparc.c: Likewise.
6045         * config/spu/spu.c: Likewise.
6046         * config/stormy16/stormy16.c: Likewise.
6047         * config/v850/v850.c: Likewise.
6048
6049 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6050
6051         * simplify-rtx.c (simplify_binary_operation_1): Handle
6052         (xor (and A B) C) case when B and C are both constants.
6053
6054 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6055
6056         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6057
6058 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6059
6060         PR bootstrap/48168
6061         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6062
6063 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6064
6065         PR rtl-optimization/48156
6066         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6067         assume df and df_lr are not NULL.
6068
6069 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6070
6071         PR debug/48023
6072         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6073         between a call and its CALL_ARG_LOCATION note.
6074
6075 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6076
6077         PR debug/48178
6078         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6079         between a call and its corresponding CALL_ARG_LOCATION note.
6080
6081 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6082
6083         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6084         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6085         * haifa-sched.c (setup_ref_regs): Ditto.
6086         * caller-save.c (add_used_regs_1): Ditto.
6087         * dse.c (look_for_hardregs): Ditto.
6088         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6089         * sched-rgn.c (check_live_1): Ditto.
6090
6091 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6092
6093         * c-decl.c (diagnose_mismatched_decls): Give an error for
6094         redefining a typedef with variably modified type.
6095
6096 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6097
6098         * c-decl.c (grokfield): Don't allow typedefs for structures or
6099         unions with no tag by default.
6100         * doc/extend.texi (Unnamed Fields): Update.
6101
6102 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6103
6104         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6105         Rewrite using indirect functions.
6106         (lwp_slwpcb): Ditto.
6107         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6108         (avx_vinsertf128<mode>): Ditto.
6109
6110 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6111
6112         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6113         unspecs.
6114
6115 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6116
6117         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6118         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6119
6120 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6121
6122         PR rtl-optimization/48170
6123         * gcse.c (hoist_code): Remove bogus asserts.
6124
6125 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6126
6127         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6128         computation for prologue/epilogue.
6129
6130 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6131
6132         * Makefile.in (check-consistency): Remove.
6133
6134 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6135
6136         PR debug/48176
6137         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6138         arange_table_in_use is 0, but either text_section_used or
6139         cold_text_section_used is true.  Don't call it if
6140         !info_section_emitted.
6141
6142 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6143
6144         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6145         FUNCTION_VALUE_REGNO_P): Remove.
6146         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6147         Remove.
6148         * config/avr/avr.c (avr_ret_register): Make static inline.
6149         (avr_function_value_regno_p): New function.
6150         (avr_libcall_value): Make static. Add 'func' argument.
6151         (avr_function_value): Make static. Rename 'func' argument to
6152         'fn_decl_or_type', forward it to avr_libcall_value. Call
6153         avr_ret_register function instead of RET_REGISTER macro.
6154         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6155
6156 2011-03-18  Jason Merrill  <jason@redhat.com>
6157
6158         PR c++/23372
6159         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6160
6161 2011-03-18  Richard Guenther  <rguenther@suse.de>
6162
6163         * doc/install.texi (--enable-gold): Remove.
6164         (--with-plugin-ld): Document.
6165         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6166
6167 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6168
6169         PR middle-end/47790
6170         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6171         again after expansion changes.
6172
6173 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6174
6175         * combine.c (try_combine): Do simplification only call of
6176         subst() on i2 even when i1 is present. Update comments.
6177
6178 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6179
6180         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6181         and UNSPEC_PCREL_SYMOFF.
6182
6183 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6184
6185         * config/s390/s390.md: Use define_c_enum for the unspec constant
6186         definitions.
6187
6188 2011-03-18  Richard Henderson  <rth@redhat.com>
6189             Jakub Jelinek  <jakub@redhat.com>
6190
6191         PR bootstrap/48161
6192         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6193         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6194
6195 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         PR middle-end/47725
6198         * combine.c (cant_combine_insn_p): Don't check zero/sign
6199         extended hard registers.
6200
6201 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6202
6203         PR middle-end/47725
6204         * combine.c (cant_combine_insn_p): Check zero/sign extended
6205         hard registers.
6206
6207 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6208
6209         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6210         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6211         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6212         Change return type to bool.
6213         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6214
6215 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6216
6217         PR debug/48163
6218         * var-tracking.c (prepare_call_arguments): If CALL target
6219         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6220         pc instead of looking it up using cselib_lookup and use
6221         Pmode for it if x has VOIDmode.
6222         * dwarf2out.c (gen_subprogram_die): If also both first and
6223         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6224
6225         PR debug/48163
6226         * function.c (assign_parms): For data.passed_pointer parms
6227         use MEM of data.entry_parm instead of data.entry_parm itself
6228         as DECL_INCOMING_RTL.
6229         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6230         also when passed and declared mode is the same, DECL_RTL
6231         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6232         a MEM too.
6233
6234 2011-03-16  Jeff Law  <law@redhat.com>
6235
6236         PR rtl-optimization/37273
6237         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6238         handle them like argument loads from stack slots.  Do not double
6239         count memory for memory constants and argument loads from stack slots.
6240
6241 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6242
6243         PR debug/48160
6244         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6245
6246 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6247
6248         PR target/48171
6249         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6250
6251 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6252
6253         PR bootstrap/48153
6254         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6255         if dwarf_strict.
6256         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6257         Clear call_arg_locations and call_arg_loc_last always.
6258
6259         PR middle-end/48152
6260         * var-tracking.c (prepare_call_arguments): If argument needs to be
6261         passed by reference, adjust argtype and mode.
6262
6263 2011-03-17  Richard Guenther  <rguenther@suse.de>
6264
6265         PR middle-end/48134
6266         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6267         a value make sure to fold the statement.
6268
6269 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6270
6271         PR target/43872
6272         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6273         return condition with !cfun->calls_alloca.
6274
6275 2011-03-17  Richard Guenther  <rguenther@suse.de>
6276
6277         PR bootstrap/48148
6278         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6279         origin for decls in other ltrans units.
6280         (input_varpool_node): Likewise.
6281
6282 2011-03-17  Richard Guenther  <rguenther@suse.de>
6283
6284         PR middle-end/48165
6285         * tree-object-size.c (compute_object_offset): Properly return
6286         the offset operand of MEM_REFs as sizetype.
6287
6288 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6289
6290         PR rtl-optimization/48141
6291         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6292         * dse.c: Include params.h.
6293         (active_local_stores_len): New variable.
6294         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6295         to NULL.
6296         (record_store, check_mem_read_rtx): Decrease it when removing
6297         from the chain.
6298         (scan_insn): Likewise.  Increase it when adding to chain, if it
6299         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6300         set active_local_stores to NULL before the addition.
6301         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6302
6303         PR rtl-optimization/48141
6304         * dse.c (record_store): If no positions are needed in an insn
6305         that cannot be deleted, at least unchain it from active_local_stores.
6306
6307 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6308
6309         PR debug/47510
6310         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6311         (lookup_type_die_strip_naming_typedef): ... here.
6312         (get_context_die): Use it.
6313         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6314         the anonymous struct named by the naming typedef.
6315
6316 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6317
6318         PR target/48154
6319         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6320         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6321
6322 2011-03-16  Jeff Law  <law@redhat.com>
6323
6324         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6325         check for operands of conditional.  Allow type to be a pointer.
6326
6327 2011-03-16  Richard Guenther  <rguenther@suse.de>
6328
6329         PR tree-optimization/48149
6330         * fold-const.c (fold_binary_loc): Fold
6331         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6332
6333 2011-03-16  Richard Guenther  <rguenther@suse.de>
6334
6335         PR tree-optimization/26134
6336         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6337         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6338         (non_rewritable_mem_ref_base): Handle complex type component
6339         accesses, constrain offsets for vector and complex extracts
6340         more properly.
6341
6342 2011-03-16  Richard Guenther  <rguenther@suse.de>
6343
6344         PR tree-optimization/48146
6345         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6346         operands avoiding the need for renaming.
6347
6348 2011-03-16  Richard Guenther  <rguenther@suse.de>
6349
6350         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6351         constant folding.  Move MEM_REF canonicalization first.
6352         Rely on fold_const_aggregate_ref for initializer folding.
6353         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6354
6355 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6356
6357         PR middle-end/48136
6358         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6359         arg0/arg1 or their arguments are always fold converted to matching
6360         types.
6361
6362         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6363         to nargs.
6364
6365 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6366
6367         PR lto/46944
6368         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6369         Handle in-tree gold.
6370         (ld_vers): Extract binutils version for gold.
6371         (gcc_cv_ld_hidden): Handle gold here.
6372         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6373         * configure: Regenerate.
6374         * config.in: Regenerate.
6375         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6376         -fuse-linker-plugin otherwise.
6377         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6378         (LINK_COMMAND_SPEC): Use it.
6379         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6380
6381 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6382
6383         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6384         * calls.c: Remove debug.h include.
6385         (emit_call_1): Don't call virtual_call_token debug hook.
6386         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6387         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6388         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6389         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6390         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6391         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6392         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6393         dwarf2out_virtual_call): Remove.
6394         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6395         copy_call_info and virtual_call hooks.
6396         (dwarf2out_init): Don't initialize vcall_insn_table,
6397         debug_dcall_section and debug_vcall_section.
6398         (prune_unused_types): Don't mark nodes from dcall_table.
6399         (dwarf2out_finish): Don't output dcall or vcall tables.
6400         * final.c (final_scan_insn): Don't call direct_call or
6401         virtual_call debug hooks.
6402         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6403         virtual_call_token, copy_call_info and virtual_call hooks.
6404         (debug_nothing_uid): Remove prototype.
6405         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6406         copy_call_info and virtual_call hooks.
6407         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6408         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6409         * debug.c (do_nothing_debug_hooks): Likewise.
6410         (debug_nothing_uid): Remove.
6411         * doc/invoke.texi (-fenable-icf-debug): Remove.
6412         * common.opt (-fenable-icf-debug): Likewise.
6413
6414         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6415         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6416         call's MEM.  Handle functions returning aggregate through a hidden
6417         first pointer.  For virtual calls add clobbered pc to call arguments
6418         chain.
6419         * dwarf2out.c (gen_subprogram_die): Emit
6420         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6421         can't be emitted.
6422
6423         PR debug/45882
6424         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6425         * rtl.h (ENTRY_VALUE_EXP): Define.
6426         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6427         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6428         * print-rtl.c (print_rtx): Likewise.
6429         * gengtype.c (adjust_field_rtx_def): Likewise.
6430         * var-tracking.c (vt_add_function_parameter): Adjust
6431         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6432         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6433         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6434         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6435         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6436
6437         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6438         Call var_location debug hook even on CALL_INSNs.
6439         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6440         * rtl.def (ENTRY_VALUE): New.
6441         * dwarf2out.c: Include cfglayout.h.
6442         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6443         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6444         (struct call_arg_loc_node): New type.
6445         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6446         tail_call_site_count): New variables.
6447         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6448         DW_TAG_GNU_call_site_parameter.
6449         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6450         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6451         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6452         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6453         and DW_AT_GNU_all_source_call_sites.
6454         (mem_loc_descriptor): Handle ENTRY_VALUE.
6455         (add_src_coords_attributes): Don't add enything if
6456         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6457         (dwarf2out_abstract_function): Save and clear call_arg_location,
6458         call_site_count and tail_call_site_count around dwarf2out_decl call.
6459         (gen_call_site_die): New function.
6460         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6461         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6462         (dwarf2out_function_decl): Clear call_arg_locations,
6463         call_arg_loc_last, set call_site_count and tail_call_site_count
6464         to -1 and free block_map.
6465         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6466         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6467         followed by any real instructions.
6468         (dwarf2out_begin_function): Set call_site_count and
6469         tail_call_site_count to 0.
6470         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6471         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6472         attempt to force a DIE for it and worst case remove the attribute.
6473         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6474         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6475         the decl itself.
6476         * var-tracking.c: Include tm_p.h.
6477         (vt_stack_adjustments): For calls call note_register_arguments.
6478         (argument_reg_set): New variable.
6479         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6480         ensure the VALUE is resolved.
6481         (call_arguments): New variable.
6482         (prepare_call_arguments): New function.
6483         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6484         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6485         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6486         always use the best expression.
6487         (vt_expand_loc): Add ignore_cur_loc argument.
6488         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6489         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6490         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6491         note for all calls.
6492         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6493         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6494         argument.  Don't call cselib_preserve_only_values and
6495         cselib_reset_table.
6496         (note_register_arguments): New function.
6497         (vt_initialize): Compute argument_reg_set.  Call
6498         vt_add_function_parameters before processing basic blocks instead of
6499         afterwards.  For calls call prepare_call_arguments before calling
6500         cselib_process_insn.
6501         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6502         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6503         (var-tracking.o): Depend on $(TM_P_H).
6504         * cfglayout.h (insn_scope): New prototype.
6505         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6506         * cfglayout.c (insn_scope): No longer static.
6507         * insn-notes.def (CALL_ARG_LOCATION): New.
6508         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6509         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6510         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6511         nothing for DECL_EXTERNAL BLOCK_VARS.
6512
6513 2011-03-16  Alan Modra  <amodra@gmail.com>
6514
6515         PR target/45844
6516         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6517         create invalid offset address for vsx splat insn.
6518         * config/rs6000/predicates.md (splat_input_operand): New.
6519         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6520
6521 2011-03-15  Xinliang David Li  <davidxl@google.com>
6522
6523         PR c/47837
6524         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6525         (normalize_preds): New function.
6526         (is_use_properly_guarded): Normalize def predicates.
6527
6528 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6529
6530         PR target/46788
6531         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6532         in the output template.
6533
6534 2011-03-15  Richard Guenther  <rguenther@suse.de>
6535
6536         PR middle-end/47650
6537         * tree-pretty-print.c (dump_function_declaration): Properly
6538         dump unprototyped and varargs function types.
6539
6540 2011-03-15  Richard Guenther  <rguenther@suse.de>
6541
6542         PR tree-optimization/13954
6543         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6544         and friends.
6545
6546 2011-03-15  Richard Guenther  <rguenther@suse.de>
6547
6548         PR tree-optimization/48037
6549         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6550         selects into BIT_FIELD_REFs.
6551         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6552         vector select.
6553
6554 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6555
6556         PR tree-optimization/48129
6557         * builtins.c (fold_builtin_snprintf): Convert to type of
6558         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6559         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6560
6561 2011-03-15  Richard Guenther  <rguenther@suse.de>
6562
6563         PR tree-optimization/41490
6564         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6565         value but with VUSE.
6566         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6567         return statements.
6568         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6569         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6570         * tree-tailcall.c (find_tail_calls): Ignore returns.
6571
6572 2011-03-15  Richard Guenther  <rguenther@suse.de>
6573
6574         PR middle-end/48031
6575         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6576         or variable-indexed array accesses when in gimple form.
6577
6578 2011-03-15  Richard Guenther  <rguenther@suse.de>
6579
6580         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6581
6582 2011-03-15  Alan Modra  <amodra@gmail.com>
6583
6584         PR target/48032
6585         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6586         presume symbol_refs without a symbol_ref_decl are suitably
6587         aligned, nor other trees we may see here.  Handle anchor symbols.
6588         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6589         Check cmodel=medium addresses.  Adjust all calls.
6590         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6591         creating cmodel=medium optimized access to locals.
6592         * config/rs6000/constraints.md (R): Pass QImode to
6593         legitimate_constant_pool_address_p.
6594         * config/rs6000/predicates.md (input_operand): Pass mode to
6595         legitimate_constant_pool_address_p.
6596         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6597         Update prototype.
6598
6599 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6600
6601         PR target/48053
6602         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6603         64-bit constants being loaded into registers other than GPRs such
6604         as loading 0 into a VSX register.
6605
6606 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6607
6608         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6609
6610 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6611
6612         PR middle-end/47917
6613         * builtins.c (fold_builtin_snprintf): New function.
6614         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6615         (fold_builtin_4): Likewise.
6616
6617         PR middle-end/38878
6618         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6619         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6620         and C - X == X also strip nops from +/-/p+ operand.
6621         When optimizing -X == C, fold C to arg0's type.
6622
6623         PR debug/47946
6624         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6625         emit it as add_AT_int instead of add_AT_unsigned.
6626
6627 2011-03-14  Tom Tromey  <tromey@redhat.com>
6628
6629         * unwind-dw2.c: Include sys/sdt.h if it exists.
6630         (_Unwind_DebugHook): Use STAP_PROBE2.
6631         * config.in, configure: Rebuild.
6632         * configure.ac: Check for sys/sdt.h.
6633
6634 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6635
6636         * config/i386/i386.md (ROUND_FLOOR): New constant.
6637         (ROUND_CEIL): Ditto.
6638         (ROUND_TRUNC): Ditto.
6639         (ROUND_MXCSR): Ditto.
6640         (ROUND_NO_EXC): Ditto.
6641         (rint<mode>2): Use new defines instead of numerical constants.
6642         (floor<mode>2): Ditto.
6643         (ceil<mode>2): Ditto.
6644         (btrunc<mode>2): Ditto.
6645         * config/i386/i386-builtin-types.def: Define ROUND function type
6646         aliases.
6647         * config/i386/i386.c (enum ix86_builtins): Add
6648         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6649         (struct builtin_description): Add
6650         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6651         (ix86_expand_sse_round): New static function.
6652         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6653         function types.
6654         (ix86_builtin_vectorized_function): Handle
6655         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6656
6657 2011-03-14  Tom Tromey  <tromey@redhat.com>
6658
6659         * c-parser.c (c_parser_asm_string_literal): Clear
6660         warn_overlength_strings.
6661
6662 2011-03-14  Tom Tromey  <tromey@redhat.com>
6663
6664         * c-parser.c (disable_extension_diagnostics): Save
6665         warn_overlength_strings.
6666         (restore_extension_diagnostics): Restore warn_overlength_strings.
6667
6668 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6669
6670         * BASE-VER: Change to 4.7.0.
6671
6672 2011-03-14  Richard Guenther  <rguenther@suse.de>
6673
6674         PR middle-end/48098
6675         * tree.c (build_vector_from_val): Adjust assert to requirements
6676         and reality.
6677
6678 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6679
6680         PR bootstrap/48102
6681         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6682
6683 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6684
6685         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6686         terms of target_flags_explicit. Adjust copyright year.
6687
6688         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6689         * config/rs6000/t-freebsd: New file. Add override for
6690         LIB2FUNCS_EXTRA.
6691
6692 2011-03-13  Chris Demetriou  <cgd@google.com>
6693
6694         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6695         (-fno-diagnostics-show-option): this, to reflect current default.
6696         (-Werror=): Update text about -fno-diagnostics-show-option.
6697
6698 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6699
6700         PR target/48053
6701         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6702         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6703         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6704         mode is not V2DImode or V2DFmode.
6705         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6706         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6707         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6708         registers to 0.
6709         (movdi_internal64): Likewise.
6710
6711 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6712
6713         PR tree-optimization/47127
6714         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6715         parameter.
6716         (set_cloog_options): Same.
6717         (scop_to_clast): Same.
6718         (print_clast_stmt): Do not call cloog_state_malloc and
6719         cloog_state_free.
6720         (print_generated_program): Same.
6721         (gloog): Same.
6722         * graphite-clast-to-gimple.h (cloog_state): Declared.
6723         (scop_to_clast): Adjust declaration.
6724         * graphite.c (cloog_state): Defined here.
6725         (graphite_initialize): Call cloog_state_malloc.
6726         (graphite_finalize): Call cloog_state_free.
6727
6728 2011-03-11  Jason Merrill  <jason@redhat.com>
6729
6730         * attribs.c (lookup_attribute_spec): Take const_tree.
6731         * tree.h: Adjust.
6732
6733 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6734
6735         * config/sparc/sparc.c (sparc_option_override): Use
6736         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6737
6738 2011-03-11  Richard Guenther  <rguenther@suse.de>
6739
6740         PR tree-optimization/48067
6741         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6742         multiplication result will be only used once on the target
6743         stmt.
6744
6745 2011-03-11  Richard Guenther  <rguenther@suse.de>
6746
6747         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6748
6749 2011-03-11  Richard Guenther  <rguenther@suse.de>
6750
6751         PR lto/48073
6752         * tree.c (find_decls_types_r): Do not walk types only reachable
6753         from IDENTIFIER_NODEs.
6754
6755 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6756
6757         PR middle-end/48044
6758         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6759         all vnode->force_output nodes as needed.
6760
6761 2011-03-11  Jason Merrill  <jason@redhat.com>
6762
6763         PR c++/48069
6764         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6765         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6766
6767 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6768
6769         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6770         cgraph_node.
6771
6772 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6773
6774         PR tree-optimization/48063
6775         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6776         inline functions called once if !tree_can_inline_p (node->callers).
6777
6778 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6779
6780         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6781         extra_objs.
6782         * config/score/score3.c: Delete.
6783         * config/score/score3.h: Delete.
6784         * config/score/mul-div.S: Delete.
6785         * config/score/sfp-machine.h: Add new file.
6786         * config/score/constraints.md: Add new file.
6787         * config/score/t-score-softfp: Add new file.
6788         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6789         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6790         (score7_extra_constraint): Delete.
6791         (score7_option_override): Remove unused code.
6792         * config/score/score.c: Remove score3 and score5 define and code.
6793         * config/score/score.h: Remove score3 and score5 define and code.
6794         * config/score/score.md: Remove score3 template and unusual insn.
6795         * config/score/score.opt: Remove score3 and score5 options.
6796
6797 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6798
6799         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6800         when _HPUX_SOURCE is defined.
6801         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6802
6803 2011-03-10  Jason Merrill  <jason@redhat.com>
6804
6805         PR c++/48029
6806         * stor-layout.c (layout_type): Don't set structural equality
6807         on arrays of incomplete type.
6808         * tree.c (type_hash_eq): Handle comparing them properly.
6809
6810 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6811
6812         PR debug/48043
6813         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6814         result mode matches original rtl mode.
6815
6816 2011-03-10  Nick Clifton  <nickc@redhat.com>
6817
6818         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6819         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6820
6821 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6822
6823         PR rtl-optimization/47866
6824         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6825         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6826         if target wasn't scalar.
6827         * function.c (assign_stack_temp_for_type): Assert that neither
6828         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6829         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6830         macro.
6831         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6832
6833 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6834
6835         * config/s390/s390-protos.h (s390_label_align): New prototype.
6836         * config/s390/s390.c (s390_label_align): New function.
6837         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6838
6839 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6840
6841         PR target/47755
6842         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6843         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6844         (output_vec_const_move): Ditto.
6845
6846 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6847
6848         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6849         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6850         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6851         Change 'rclass' argument and result type to reg_class_t.
6852         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6853
6854 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6855
6856         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6857         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6858         (TARGET_MEMORY_MOVE_COST): Define.
6859         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6860
6861 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6862
6863         PR debug/47881
6864         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6865         removed anything.
6866
6867         PR tree-optimization/48022
6868         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6869         for EQ/NE_EXPR.
6870
6871 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6872
6873         PR debug/47991
6874         * var-tracking.c (find_use_val): Return NULL for
6875         cui->sets && cui->store_p BLKmode MEMs.
6876
6877 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6878
6879         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6880         Remove.
6881         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6882         xstormy16_print_operand_address): Remove.
6883         * config/stormy16/stormy16.c (xstormy16_print_operand,
6884         xstormy16_print_operand_address): Make static.
6885         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6886
6887 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6888
6889         PR target/47862
6890         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6891         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6892         before definition.
6893
6894 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6895
6896         PR bootstrap/48000
6897         * cfgloopmanip.c (fix_bb_placements): Return immediately
6898         if FROM is BASE_LOOP's header.
6899
6900 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6901
6902         * gimplify.c (gimplify_function_tree): Fix building calls
6903         to __builtin_return_address.
6904
6905 2011-03-07  Alan Modra  <amodra@gmail.com>
6906
6907         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6908         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6909         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6910         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6911         return_mode args.
6912         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6913         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6914         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6915         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6916         * config/rs6000/rs6000.c
6917         (rs6000_elf_end_indicate_exec_stack): Rename to..
6918         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6919         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6920         (rs6000_file_start): ..here.
6921         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6922         file scope variables.
6923         (call_ABI_of_interest): New function.
6924         (init_cumulative_args): Set above vars when function return value
6925         is a float, vector, or small struct.
6926         (rs6000_function_arg_advance_1): Likewise for function args.
6927         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6928         references float args.
6929
6930 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6931
6932         * doc/cfg.texi: Remove "See" before @ref.
6933         * doc/invoke.texi: Likewise.
6934
6935 2011-03-05  Jason Merrill  <jason@redhat.com>
6936
6937         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6938
6939 2011-03-05  Anthony Green  <green@moxielogic.com>
6940
6941         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6942
6943 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6944
6945         PR rtl-optimization/47899
6946         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6947         to flow_loop_nested_p when moving the loop upward.
6948
6949 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6950
6951         PR target/47719
6952         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6953
6954 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6955
6956         PR tree-optimization/47967
6957         * ipa-cp.c (build_const_val): Return NULL instead of creating
6958         VIEW_CONVERT_EXPR for mismatching sizes.
6959         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6960         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6961         give up on versioning.
6962
6963 2011-03-05  Alan Modra  <amodra@gmail.com>
6964
6965         PR target/47986
6966         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6967         full cmodel medium/large lo_sum + high addresses.
6968
6969 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6970
6971         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6972         pool references in UNSPEC_LTREL_OFFSET.
6973
6974 2011-03-04  Jan Hubicka  <jh@suse.cz>
6975
6976         PR lto/47497
6977         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6978         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6979         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6980         Add node pointers.
6981         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6982         cgraph_add_thunk): Add node pointers.
6983         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6984         associated to right node.
6985         (input_node): Update use of cgraph_same_body_alias
6986         and cgraph_add_thunk.
6987
6988 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6989
6990         * config/i386/i386.opt (mprefer-avx128): New flag.
6991         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6992         modes when the flag -mprefer-avx128 is on.
6993
6994 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6995
6996         * dwarf2out.c (compare_loc_operands): Fix address handling.
6997
6998 2011-03-04  Alan Modra  <amodra@gmail.com>
6999
7000         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7001
7002 2011-03-04  Richard Guenther  <rguenther@suse.de>
7003
7004         PR middle-end/47968
7005         * expmed.c (extract_bit_field_1): Prefer vector modes that
7006         vec_extract patterns can handle.
7007
7008 2011-03-04  Richard Guenther  <rguenther@suse.de>
7009
7010         PR middle-end/47975
7011         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7012
7013 2011-03-04  Richard Henderson  <rth@redhat.com>
7014
7015         * explow.c (emit_stack_save): Remove 'after' parameter.
7016         (emit_stack_restore): Likewise.
7017         * expr.h: Update to match.
7018         * builtins.c, calls.c, stmt.c: Likewise.
7019         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7020         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7021         * function.c (expand_function_end): Insert the emit_stack_save
7022         sequence before parm_birth_insn instead of after.
7023
7024 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7025
7026         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7027         (ssse3_pmaddubsw128): Ditto.
7028         (ssse3_pmaddubsw): Ditto.
7029
7030 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7031
7032         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7033
7034 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7035
7036         PR c/47963
7037         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7038         on TYPE_SIZE_UNIT if it is a DECL.
7039
7040         PR debug/47283
7041         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7042         first operand is not is_gimple_mem_ref_addr, try to fold it.
7043         If the operand still isn't is_gimple_mem_ref_addr, clear
7044         MEM_EXPR on op0.
7045
7046 2011-03-03  Richard Guenther  <rguenther@suse.de>
7047
7048         PR middle-end/47283
7049         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7050         match comment.
7051         (refs_may_alias_p_1): For release branches return true if
7052         we are confused by our input.
7053
7054 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7055
7056         * config/s390/s390.c (s390_function_value): Rename to ...
7057         (s390_function_and_libcall_value): ... this.
7058         (s390_function_value): New function.
7059         (s390_libcall_value): New function.
7060         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7061         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7062         target macro definitions.
7063         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7064
7065 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7066
7067         * config/i386/freebsd64.h (CC1_SPEC): Define.
7068         * config/i386/linux64.h (CC1_SPEC): Define.
7069         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7070
7071 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7072
7073         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7074         Remove.
7075         * config/stormy16/stormy16.c: Include reload.h.
7076         (xstormy16_memory_move_cost): New function.
7077         (TARGET_MEMORY_MOVE_COST): Define.
7078
7079 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7080
7081         PR rtl-optimization/47925
7082         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7083         with side effects.  Remove the more-specific check for volatile asms.
7084
7085 2011-03-02  Alan Modra  <amodra@gmail.com>
7086
7087         PR target/47935
7088         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7089         toc relative addresses for valid offsets.
7090
7091 2011-03-01  Richard Guenther  <rguenther@suse.de>
7092
7093         PR tree-optimization/47890
7094         * tree-vect-loop.c (get_initial_def_for_induction): Set
7095         related stmt properly.
7096
7097 2011-03-01  Richard Guenther  <rguenther@suse.de>
7098
7099         PR lto/47924
7100         * lto-streamer.c (lto_record_common_node): Also register
7101         the canonical type.
7102
7103 2011-03-01  Richard Guenther  <rguenther@suse.de>
7104
7105         PR lto/46911
7106         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7107         Do not stream DECL_ABSTRACT_ORIGIN.
7108         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7109         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7110         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7111         Do not stream DECL_ABSTRACT_ORIGIN.
7112         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7113         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7114
7115 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7116
7117         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7118         FUNCTION_VALUE_REGNO_P): Remove.
7119         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7120         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7121         Add 'outgoing' argument.
7122         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7123         function.
7124         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7125         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7126
7127 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7128
7129         PR debug/28047
7130         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7131         (lookup_filename): Likewise.
7132         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7133
7134 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7135             Jakub Jelinek  <jakub@redhat.com>
7136
7137         PR middle-end/47893
7138         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7139         (assign_stack_local_1): Change last argument type to int.
7140         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7141         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7142         don't record padding space into frame_space_list nor use those areas.
7143         (assign_stack_local): Adjust caller.
7144         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7145         of assign_stack_local, pass 0 as last argument.
7146         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7147         callers.
7148
7149 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7150
7151         PR debug/47283
7152         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7153         Use target address_mode and pointer_mode hooks instead of hardcoded
7154         Pmode and ptr_mode.  Handle some simple cases of extending if
7155         POINTERS_EXTEND_UNSIGNED < 0.
7156         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7157         Call convert_debug_memory_address.
7158         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7159         convert_debug_memory_address.
7160
7161         PR middle-end/46790
7162         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7163         * configure: Regenerated.
7164         * config.in: Regenerated.
7165         * varasm.c (default_function_section): Return NULL
7166         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7167
7168 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7169
7170         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7171         the description to match the printed values.
7172
7173 2011-02-28  Richard Guenther  <rguenther@suse.de>
7174
7175         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7176         of the copied scope tree.
7177
7178 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7179
7180         * doc/extend.texi (Function Attributes): Avoid deeply (and
7181         wrongly) nested tables.
7182
7183 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7184
7185         PR middle-end/47903
7186         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7187         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7188         r isn't op0 nor op1.
7189
7190 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7191
7192         * config/avr/avr.md: Remove magic comment for emacs.
7193
7194 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7195
7196         PR target/45261
7197         * config/avr/avr.c (avr_option_override): Use error on bad options.
7198         (avr_help): New function.
7199         (TARGET_HELP): Define.
7200
7201 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7202
7203         PR target/42240
7204         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7205         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7206
7207 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7208
7209         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7210         (ARM Options): Ditto.
7211         (i386 and x86-64 Options): Ditto.
7212         (RX Options): Ditto.
7213         (SPARC Options): Ditto.
7214
7215 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7216
7217         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7218         FreeBSD 6 and later.  Generally use cpu generic.
7219
7220 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7221
7222         * doc/cpp.texi: Update copyright years.
7223
7224 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7225
7226         PR target/46898
7227         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7228
7229 2011-02-25  Jon Beniston  <jon@beniston.com>
7230
7231         PR target/46898
7232         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7233         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7234         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7235         (lm32_block_move_inline): Add type cast to remove warning.
7236         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7237         (gen_int_relational): Move declarations to start of function.
7238
7239 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7240
7241         PR tree-optimization/45470
7242         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7243         can throw internally only.
7244         * tree-vect-stmts.c (vectorizable_call): Likewise.
7245
7246 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7247
7248         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7249         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7250         * config/stormy16/stormy16-protos.h
7251         (xstormy16_preferred_reload_class): Remove.
7252         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7253         static. Change 'rclass' argument and return type to reg_class_t.
7254         (TARGET_PREFERRED_RELOAD_CLASS,
7255         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7256
7257 2011-02-24  Richard Guenther  <rguenther@suse.de>
7258
7259         * lto-streamer-in.c (input_bb): Do not find referenced vars
7260         in debug statements.
7261
7262 2011-02-23  Jason Merrill  <jason@redhat.com>
7263
7264         * common.opt (fabi-version): Document v5 and v6.
7265
7266 2011-02-23  Richard Guenther  <rguenther@suse.de>
7267
7268         PR tree-optimization/47849
7269         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7270
7271 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7272
7273         * opts-common.c (decode_cmdline_option): Print empty string
7274         argument as "" in decoded->orig_option_with_args_text.
7275         * gcc.c (execute): Print empty string argument as ""
7276         in the verbose output.
7277         (do_spec_1): Keep empty string argument.
7278
7279 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7280
7281         * config.gcc: Declare score-* and crx-* obsolete.
7282
7283 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7284
7285         PR rtl-optimization/47763
7286         * web.c (web_main): Ignore naked clobber when replacing register.
7287
7288 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7289
7290         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7291         Remove.
7292
7293 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7294
7295         PR doc/47848
7296         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7297
7298 2011-02-22  Mike Stump  <mikestump@comcast.net>
7299
7300         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7301         assembler.
7302         * configure: Regenerate.
7303
7304 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7305
7306         PR rtl-optimization/46002
7307         * ira-color.c (update_copy_costs): Change class intersection
7308         test to reg_class_contents[] test of 'hard_regno'.
7309
7310 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7311
7312         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7313         than Driver option.
7314         * config/hpux11.opt (mt): Likewise.
7315         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7316         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7317         * config/vax/elf.opt (mno-asm-pic): Likewise.
7318         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7319
7320 2011-02-21  Mike Stump  <mikestump@comcast.net>
7321
7322         PR target/47822
7323         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7324         tree so we can get save the type.
7325         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7326         for CFString instead of trying to use past the end of the builtins.
7327         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7328         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7329         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7330         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7331         Rename to darwin_builtin_cfstring.
7332         (darwin_init_cfstring_builtins): Return the built type.
7333
7334 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7335
7336         PR target/47840
7337         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7338         (_mm256_insert_epi64): Use _mm_insert_epi64.
7339
7340 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7341
7342         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7343         * config/stormy16/stormy16-protos.h
7344         (xstormy16_mode_dependent_address_p): Remove.
7345         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7346         Make static. Change return type to bool. Change argument type to
7347         const_rtx. Remove dead code.
7348         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7349
7350 2011-02-21  Richard Guenther  <rguenther@suse.de>
7351
7352         PR lto/47820
7353         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7354         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7355         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7356         TUs context.
7357         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7358         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7359
7360 2011-02-20  Richard Guenther  <rguenther@suse.de>
7361
7362         PR lto/47822
7363         * tree.c (free_lang_data_in_decl): Clean builtins from
7364         the TU decl BLOCK_VARS.
7365
7366 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7367
7368         PR debug/47620
7369         PR debug/47630
7370         * haifa-sched.c (fix_tick_ready): Skip tick computation
7371         for debug insns.
7372
7373 2011-02-19  Richard Guenther  <rguenther@suse.de>
7374
7375         PR lto/47647
7376         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7377         Remove lazy BLOCK_VARS streaming.
7378         (lto_input_ts_block_tree_pointers): Likewise.
7379         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7380
7381 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7382
7383         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7384
7385 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7386
7387         * config/i386/biarch32.h, config/i386/mach.h,
7388         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7389
7390 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7391
7392         PR target/47800
7393         * config/i386/i386.md (peephole2 for shift and plus): Use
7394         operands[1] original mode in the first insn.
7395
7396 2011-02-18  Mike Stump  <mikestump@comcast.net>
7397
7398         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7399
7400 2011-02-18  Jan Hubicka  <jh@suse.cz>
7401
7402         PR middle-end/47788
7403         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7404         to zero when the function is not inlinable at all.
7405
7406 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7407
7408         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7409         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7410         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7411         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7412         * config/pa/t-pa64: Likewise.
7413         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7414
7415 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7416
7417         PR driver/47787
7418         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7419
7420 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7421
7422         PR target/47792
7423         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7424
7425 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7426
7427         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7428         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7429         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7430         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7431         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7432         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7433         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7434         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7435         m32r_legitimate_address_p): New functions.
7436         * config/m32r/constraints.md (constraint "S"): Don't use
7437         STORE_PREINC_PREDEC_P.
7438         (constraint "U"): Don't use LOAD_POSTINC_P.
7439
7440 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7441
7442         PR rtl-optimization/46178
7443         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7444         compute ira_hard_regno_cover_class[].
7445
7446 2011-02-18  Richard Guenther  <rguenther@suse.de>
7447
7448         PR lto/47798
7449         * lto-streamer.h (lto_global_var_decls): Declare.
7450         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7451         statics for global var processing.
7452
7453 2011-02-18  Richard Guenther  <rguenther@suse.de>
7454
7455         PR tree-optimization/47737
7456         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7457         edge dominance check.
7458
7459 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7460
7461         PR debug/47780
7462         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7463         avoid invalid rtx sharing.
7464
7465 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7466
7467         * doc/cpp.texi (Obsolete Features): Add background on the
7468         origin of assertions.
7469
7470 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7471
7472         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7473         objc_abi == 2.
7474         * config/darwin.c (output_objc_section_asm_op): Added support for
7475         ABI v1 and v2.
7476         (is_objc_metadata): New.
7477         (darwin_objc2_section): New.
7478         (darwin_objc1_section): New.
7479         (machopic_select_section): Added support for ABI v1 and v2.
7480         (darwin_emit_objc_zeroed): New.
7481         (darwin_output_aligned_bss): Detect objc metadata and treat it
7482         appropriately.
7483         (darwin_asm_output_aligned_decl_common): Same.
7484         (darwin_asm_output_aligned_decl_local): Same.
7485         * config/darwin-sections.def: Updated for ABI v1 and v2.
7486         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7487         compiling Objective-C code for the NeXT runtime, default to using
7488         ABI version 0 for 32-bit, and version 2 for 64-bit.
7489
7490 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7491
7492         * common.opt (optimize_fast): New Variable.
7493         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7494         instead of local variable ofast.
7495
7496 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7497
7498         * doc/invoke.texi (fobjc-abi-version): Documented.
7499         (fobjc-nilcheck): Documented.
7500         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7501         version.
7502
7503 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7504
7505         PR driver/47390
7506         * common.opt (export-dynamic): New Driver option.
7507         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7508
7509 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7510
7511         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7512
7513 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7514             Jan Hubicka  <jh@suse.cz>
7515
7516         PR debug/47106
7517         PR debug/47402
7518         * cfgexpand.c (account_used_vars_for_block): Remove.
7519         (estimated_stack_frame_size): Use referenced vars.
7520         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7521         that were referenced in the original function.  Test src_fn
7522         rather than cfun.  Drop redundant get_var_ann.
7523         (setup_one_parameter): Drop redundant get_var_ann.
7524         (declare_return_variable): Likewise.
7525         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7526         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7527         * ipa-inline.c (compute_inline_parameters): Do not compute
7528         disregard_inline_limits here.
7529         (compute_inlinable_for_current, pass_inlinable): New.
7530         (pass_inline_parameters): Require PROP_referenced_vars.
7531         * cgraphunit.c (cgraph_process_new_functions): Don't run
7532         compute_inline_parameters explicitly unless function is in SSA form.
7533         (cgraph_analyze_function): Set .disregard_inline_limits.
7534         * tree-sra.c (convert_callers): Compute inliner parameters
7535         only for functions already in SSA form.
7536
7537 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7538
7539         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7540         -mlittle-endian-data.
7541
7542 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7543
7544         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7545         -mno-fpu, not -fpu and -no-fpu.
7546         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7547         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7548
7549 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7550
7551         PR target/43653
7552         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7553         input reload with PLUS RTX.
7554
7555 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7556
7557         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7558         of InverseVar(MDMX).
7559
7560 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7561
7562         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7563         --m4-340.
7564
7565 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7566
7567         * config/mn10300/mn10300.opt (mno-crt0): New.
7568
7569 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7570
7571         * config/m68k/uclinux.opt (static-libc): New Driver option.
7572
7573 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7574
7575         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7576
7577 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7578
7579         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7580         %{muser-extend-enabled}.
7581
7582 2011-02-16  Richard Guenther  <rguenther@suse.de>
7583
7584         PR tree-optimization/47738
7585         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7586         the TODO from tree_predictive_commoning.
7587
7588 2011-02-15  Jeff Law  <law@redhat.com>
7589
7590         Revert
7591         2011-01-25  Jeff Law  <law@redhat.com>
7592
7593         PR rtl-optimization/37273
7594         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7595         handle them like argument loads from stack slots.  Do not double
7596         count memory for memory constants and argument loads from stack slots.
7597
7598 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7599
7600         PR middle-end/47725
7601         * combine.c (cant_combine_insn_p): Revert the last change.
7602
7603 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7604
7605         PR target/47755
7606         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7607         mode for vector constants.  Remove code that checks for TImode.
7608
7609 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7610
7611         PR debug/47106
7612         PR debug/47402
7613         * cgraph.h (compute_inline_parameters): Return void.
7614         * ipa-inline.c (compute_inline_parameters): Adjust.
7615
7616 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7617
7618         PR debug/47106
7619         PR debug/47402
7620         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7621         rather than decl.
7622         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7623         * ipa-inline.c (compute_inline_parameters): Adjust.
7624
7625 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7626
7627         PR debug/47106
7628         PR debug/47402
7629         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7630         Adjust all users.  Pass FN to...
7631         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7632         fn argument.
7633         * ipa-struct-reorg.c: Adjust.
7634         * tree-dfa.c: Adjust.
7635         * tree-into-ssa.c: Adjust.
7636         * tree-sra.c: Adjust.
7637         * tree-ssa-alias.c: Adjust.
7638         * tree-ssa-live.c: Adjust.
7639         * tree-ssa.c: Adjust.
7640         * tree-ssanames.c: Adjust.
7641         * tree-tailcall.c: Adjust.
7642
7643 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7644
7645         PR debug/47106
7646         PR debug/47402
7647         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7648         Adjust all callers.
7649         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7650         * tree-flow-inline.h: Adjust.
7651         * gimple-pretty-print.c: Adjust.
7652         * tree-into-ssa.c: Adjust.
7653         * tree-ssa.c: Adjust.
7654         * cfgexpand.c: Adjust.
7655
7656 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7657
7658         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7659         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7660         (EXTRA_CONSTRAINT): Delete.
7661         * config/iq2000/constraints.md: New file.
7662         * config/iq2000/iq2000.md: Include it.
7663         (define_insn ""): Delete.
7664         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7665         unsupported constraint letters from patterns.
7666         (call_value, call_value_internal1): Likewise.
7667         (call_value_multiple_internal1): Likewise.
7668
7669 2011-02-15  Nick Clifton  <nickc@redhat.com>
7670
7671         * config/mn10300/mn10300.c: Include tm-constrs.h.
7672         (struct liw_data): New data structure describing an LIW candidate
7673         instruction.
7674         (extract_bundle): Use struct liw_data.  Allow small integer
7675         operands for some instructions.
7676         (check_liw_constraints): Use struct liw_data.  Remove swapped
7677         parameter.  Add comments describing the checks.  Fix bug when
7678         assigning the source of liw1 to the source of liw2.
7679         (liw_candidate): Delete.  Code moved into extract_bundle.
7680         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7681         before swapping.
7682         * config/mn10300/predicates.md (liw_operand): New predicate.
7683         Allows registers and small integer constants.
7684         * config/mn10300/constraints.md (O): New constraint.  Accetps
7685         integers in the range -8 to +7 inclusive.
7686         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7687         for moving a small integer into a register.  Give this alternative
7688         LIW attributes.
7689         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7690         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7691         using the J,K,L and M constraints,
7692         (liw): Remove SI mode on second operands to allow for HI and QI
7693         mode values.
7694         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7695         instruction.
7696
7697 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7698
7699         PR middle-end/47725
7700         * combine.c (cant_combine_insn_p): Check zero/sign extended
7701         hard registers.
7702
7703 2011-02-15  Richard Guenther  <rguenther@suse.de>
7704
7705         PR tree-optimization/47743
7706         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7707         for a non-type-compatible VN lookup bail out.
7708
7709 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7710
7711         * config/fr30/constraints.md: New file.
7712         * config/fr30/fr30.md: Include it.
7713         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7714         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7715         (EXTRA_CONSTRAINT): Delete.
7716
7717 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7718
7719         * config/frv/constraints.md: New file.
7720         * config/frv/predicates.md: Include it.
7721         * config/frv/frv.c (reg_class_from_letter): Delete.
7722         (frv_option_override): Don't initialize it.
7723         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7724         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7725         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7726         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7727         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7728         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7729         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7730         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7731         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7732         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7733         (REG_CLASS_FROM_CONSTRAINT): Delete.
7734
7735 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7736
7737         PR middle-end/47581
7738         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7739         if frame size is 0 in a leaf function.
7740
7741 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7742
7743         PR pch/14940
7744         * config/alpha/host-osf.c: New file.
7745         * config/alpha/x-osf: New file.
7746         * config.host (alpha*-dec-osf*): Use it.
7747
7748 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7749
7750         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7751         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7752         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7753         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7754         type to const_rtx.
7755         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7756
7757 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7758
7759         * config/stormy16/constraints.md: New file.
7760         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7761         Use satisfies_constraint_Q and satisfies_constraint_R.
7762         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7763         Delete.
7764         (xstormy16_legitiamte_address_p): Declare.
7765         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7766         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7767         (EXTRA_CONSTRAINT): Delete.
7768         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7769         Un-staticize.
7770         (xstormy16_extra_constraint_p): Delete.
7771
7772 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7773
7774         PR tree-optimization/46494
7775         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7776         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7777         (pass_rtl_loop_done): Add TODO_verify_flow.
7778         * fwprop.c (pass_rtl_fwprop): Likewise.
7779         * modulo-sched.c (pass_sms): Likewise.
7780         * tree-ssa-dom.c (pass_dominator): Likewise.
7781         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7782         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7783         (pass_tree_loop_done): Likewise.
7784         * tree-ssa-pre.c (execute_pre): Likewise.
7785         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7786         * tree-ssa-sink.c (pass_sink_code): Likewise.
7787         * tree-vrp.c (pass_vrp): Likewise.
7788
7789 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7790
7791         * config/v850/constraints.md: New file.
7792         * config/v850/v850.md: Include it.
7793         * config/v850/predicates.md (reg_or_0_operand): Use
7794         satisfies_constraint_G.
7795         (special_symbolref_operand): Use satisfies_constraint_K.
7796         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7797         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7798         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7799         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7800         (EXTRA_CONSTRAINT): Delete.
7801         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7802         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7803         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7804
7805 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7806
7807         PR target/47696
7808         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7809         description.
7810
7811 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7812
7813         * config/mcore/constraints.md: New file.
7814         * config/mcore/mcore.md: Include it.
7815         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7816         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7817         (REG_CLASS_FROM_LETTER): Delete.
7818         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7819         insn_const_int_ok_for_constraint.
7820         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7821         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7822         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7823         (EXTRA_CONSTRAINT): Delete.
7824
7825 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7826
7827         PR ada/41929
7828         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7829         (IS_SIGHANDLER): Define.
7830         (sparc64_is_sighandler): New function, split off from
7831         sparc64_fallback_frame_state.
7832         (sparc_is_sighandler): New function, split off from
7833         sparc_fallback_frame_state.
7834         (sparc64_fallback_frame_state): Merge with ...
7835         (sparc_fallback_frame_state): ... this into ...
7836         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7837         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7838         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7839         stack instead of hardcoded offsets.
7840
7841 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7842
7843         PR target/45808
7844         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7845
7846 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7847
7848         * configure: Regenerate.
7849
7850 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7851
7852         PR driver/45731
7853         * gcc.c (asm_options): Correct spec matching --target-help.
7854
7855 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7856
7857         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7858         to gimple call error.
7859
7860 2011-02-12  Mike Stump  <mikestump@comcast.net>
7861
7862         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7863         comments in backslash regions.
7864
7865 2011-02-12  Mike Stump  <mikestump@comcast.net>
7866             Jakub Jelinek  <jakub@redhat.com>
7867             Iain Sandoe  <iains@gcc.gnu.org>
7868
7869         PR target/47324
7870         * dwarf2out.c (output_cfa_loc): When required, apply the
7871         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7872         (output_loc_sequence): Likewise.
7873         (output_loc_operands_raw): Likewise.
7874         (output_loc_sequence_raw): Likewise.
7875         (output_cfa_loc): Likewise.
7876         (output_loc_list): Suppress register number adjustment when
7877         calling output_loc_sequence()
7878         (output_die): Likewise.
7879
7880 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7881
7882         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7883         Remove macros.
7884         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7885         xtensa_memory_move_cost): New functions.
7886         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7887
7888 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7889
7890         PR lto/47225
7891         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7892         in the current directory.
7893         * configure: Rebuilt.
7894
7895 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7896
7897         * config/darwin.c (darwin_override_options): Add a hunk missed
7898         from the commit of r168571.  Trim comment line lengths and
7899         correct indents of the preceding block.
7900
7901 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7902
7903         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7904         the switch.
7905
7906 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7907
7908         * common.opt (nostartfiles): New Driver option.
7909
7910 2011-02-11  Xinliang David Li  <davidxl@google.com>
7911
7912         PR tree-optimization/47707
7913         * tree-chrec.c (convert_affine_scev): Keep type precision.
7914
7915 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7916
7917         PR tree-optimization/47420
7918         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7919
7920 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7921
7922         PR rtl-optimization/47614
7923         * rtl.h (check_for_inc_dec): Declare.
7924         * dse.c (check_for_inc_dec): Externalize...
7925         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7926         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7927
7928 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7929
7930         PR driver/47678
7931         * gcc.c (main): Do not compile inputs if there were errors in
7932         option handling.
7933         * opts-common.c (read_cmdline_option): Check for wrong language
7934         after other error checks.
7935
7936 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7937
7938         * cgraph.c: Fix comment typos.
7939         * cgraph.h: Likewise.
7940         * cgraphunit.c: Likewise.
7941         * ipa-cp.c: Likewise.
7942         * ipa-inline.c: Likewise.
7943         * ipa-prop.c: Likewise.
7944         * ipa-pure-const.c: Likewise.
7945         * ipa-ref.c: Likewise.
7946         * ipa-reference.c: Likewise.
7947
7948 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7949
7950         PR debug/47684
7951         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7952
7953 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7954
7955         PR testsuite/47400
7956         * doc/sourcebuild.texi (Require Support): Document
7957         dg-require-ascii-locale.
7958
7959 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7960
7961         * doc/lto.texi (Write summary): Fix missing parentheses.
7962
7963 2011-02-10  DJ Delorie  <dj@redhat.com>
7964
7965         * config/m32c/m32c.c (m32c_option_override): Disable
7966         -fcombine-stack-adjustments until flag value tracking and compare
7967         optimization can be rewritten.
7968
7969 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7970
7971         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7972         PROCESSOR_POWER7.
7973         (PROCESSOR_DEFAULT64): Likewise.
7974
7975 2011-02-10  Richard Henderson  <rth@redhat.com>
7976
7977         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7978         change from 2011-02-03.
7979         * config/rx/rx.c (flags_from_code): Likewise.
7980         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7981         is valid, n/pz otherwise.
7982         (rx_select_cc_mode): Return CCmode if Y is not zero.
7983
7984 2011-02-10  Richard Guenther  <rguenther@suse.de>
7985
7986         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7987
7988 2011-02-10  Richard Guenther  <rguenther@suse.de>
7989
7990         PR tree-optimization/47677
7991         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7992
7993 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7994
7995         PR target/47665
7996         * combine.c (make_compound_operation): Only change shifts into
7997         multiplication for SCALAR_INT_MODE_P.
7998
7999 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8000
8001         PR testsuite/47622
8002         Revert
8003         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8004         PR debug/42631
8005         * web.c (entry_register): Don't clobber the number of the
8006         first uninitialized reference in used[].
8007
8008 2011-02-09  Richard Guenther  <rguenther@suse.de>
8009
8010         PR tree-optimization/47664
8011         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8012         all edges again.
8013
8014 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8015
8016         PR target/46481
8017         PR target/47032
8018         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8019         PROCESSOR_POWER7.
8020         (PROCESSOR_DEFAULT64): Same.
8021         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8022
8023 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8024
8025         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8026
8027 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8028
8029         PR middle-end/45505
8030         * tree-sra.c (struct access): New flags grp_scalar_read and
8031         grp_scalar_write.  Changed description of assignment read and write
8032         flags.
8033         (dump_access): Dump new flags, reorder all of them.
8034         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8035         to detect multiple scalar reads.
8036         (analyze_access_subtree): Use the new scalar read write flags instead
8037         of the old flags.  Adjusted comments.
8038
8039 2011-02-08  DJ Delorie  <dj@redhat.com>
8040
8041         PR target/47548
8042         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8043         patterns.
8044
8045 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8046
8047         * config/m68k/uclinux.opt: New.
8048         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8049
8050 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8051
8052         * config/cris/elf.opt (sim): New Driver option.
8053
8054 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8055
8056         * config/xtensa/elf.opt: New.
8057         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8058
8059 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8060
8061         * config/vax/elf.opt: New.
8062         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8063
8064 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8065
8066         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8067
8068 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8069
8070         * config/gnu-user.opt: New.
8071         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8072         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8073         *-*-uclinux*): Use gnu-user.opt.
8074
8075 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8076
8077         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8078         * config/i386/gnu.h (CPP_SPEC): Likewise.
8079
8080 2011-02-08  Ian Lance Taylor  <iant@google.com>
8081
8082         * common.opt (fcx-limited-range): Add SetByCombined flag.
8083         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8084         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8085         (fassociative-math, freciprocal-math): Likewise.
8086         (funsafe-math-optimizations): Likewise.
8087         * opth-gen.awk: Handle SetByCombined.
8088         * optc-gen.awk: Likewise.
8089         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8090         (set_unsafe_math_optimizations_flags): Likewise.
8091         * doc/options.texi (Option properties): Document SetByCombined.
8092
8093 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8094
8095         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8096         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8097         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8098         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8099         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8100
8101 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8102
8103         PR tree-optimization/46834
8104         PR tree-optimization/46994
8105         PR tree-optimization/46995
8106         * graphite-sese-to-poly.c (used_outside_reduction): New.
8107         (detect_commutative_reduction): Call used_outside_reduction.
8108         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8109         translate_scalar_reduction_to_array only when at least one
8110         loop-phi/close-phi tuple has been detected.
8111
8112 2011-02-08  Richard Guenther  <rguenther@suse.de>
8113
8114         PR middle-end/47639
8115         * tree-vect-generic.c (expand_vector_operations_1): Update
8116         stmts here ...
8117         (expand_vector_operations): ... not here.  Cleanup EH info
8118         and the CFG if required.
8119
8120 2011-02-08  Richard Guenther  <rguenther@suse.de>
8121
8122         PR tree-optimization/47641
8123         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8124         require type compatibility.
8125
8126 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8127
8128         * gimple-low.c (lower_function_body): Don't remove the location of
8129         the return statement here.
8130         (lower_gimple_return): Do it here instead but only if the return
8131         statement is actually used twice.
8132
8133 2011-02-08  Richard Guenther  <rguenther@suse.de>
8134
8135         PR tree-optimization/47632
8136         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8137         unused up_to_stmt parameter, return whether cfg-cleanup is
8138         necessary, remove EH info properly.
8139         (forward_propagate_into_gimple_cond): Adjust caller.
8140         (forward_propagate_into_cond): Likewise.
8141         (forward_propagate_comparison): Likewise.
8142         (tree_ssa_forward_propagate_single_use_vars): Make
8143         forward_propagate_comparison case similar to the two others.
8144
8145 2011-02-08  Nick Clifton  <nickc@redhat.com>
8146
8147         * config/mn10300/mn10300.opt (mliw): New command line option.
8148         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8149         (liw_bundling): New automaton.
8150         (liw): New attribute.
8151         (liw_op): New attribute.
8152         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8153         (movsi_internal): Add LIW attributes.
8154         (andsi3): Likewise.
8155         (iorsi3): Likewise.
8156         (xorsi3): Likewise.
8157         (addsi3): Separate register and immediate alternatives.
8158         Add LIW attributes.
8159         (subsi3): Likewise.
8160         (cmpsi): Likewise.
8161         (aslsi3): Likewise.
8162         (lshrsi3): Likewise.
8163         (ashrsi3): Likewise.
8164         (liw): New pattern.
8165         * config/mn10300/mn10300.c (liw_op_names): New
8166         (mn10300_print_operand): Handle 'W' operand descriptor.
8167         (extract_bundle): New function.
8168         (check_liw_constraints): New function.
8169         (liw_candidate): New function.
8170         (mn10300_bundle_liw): New function.
8171         (mn10300_reorg): New function.
8172         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8173         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8174         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8175         __LIW__ or __NO_LIW__.
8176         * doc/invoke.texi: Describe the -mliw command line option.
8177
8178 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8179
8180         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8181         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8182         pthread_mutex_unlock): Remove.
8183         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8184         * config/pa/t-pa64: Likewise.
8185         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8186         shared libc if not linking against libpthread.
8187         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8188
8189 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8190
8191         PR target/47558
8192         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8193         on 10.6 and later to ensure that we always use the unwinder from
8194         the system.  Only add -no_compact_unwind when tarteting darwin
8195         10.6 or later.
8196
8197 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8198
8199         PR target/46997
8200         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8201         (vec_interleave_lowv2sf): Ditto.
8202         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8203         (vec_extract_oddv2sf): Ditto.
8204
8205 2011-02-07  Mike Stump  <mikestump@comcast.net>
8206
8207         PR target/42333
8208         Add __ieee_divdc3 entry point.
8209         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8210         entry point.
8211         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8212         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8213         * config/darwin.c (darwin_rename_builtins): Add.
8214         * config/darwin-protos.h (darwin_rename_builtins): Add.
8215
8216 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8217
8218         PR target/47636
8219         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8220         for the condition.
8221
8222 2011-02-07  Mike Stump  <mikestump@comcast.net>
8223
8224         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8225
8226 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8227
8228         PR target/47534
8229         * config/avr/libgcc.S (exit): Move .endfunc
8230
8231 2011-02-07  Richard Guenther  <rguenther@suse.de>
8232
8233         PR tree-optimization/47615
8234         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8235         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8236         (run_scc_vn): Initialize it.
8237         (visit_reference_op_load): Use it.
8238         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8239
8240 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8241
8242         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8243         DImode trapping arithmetic libfuncs.
8244
8245 2011-02-07  Richard Guenther  <rguenther@suse.de>
8246
8247         PR tree-optimization/47621
8248         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8249         two duplicates ...
8250         (execute_update_addresses_taken): ... here.  Make it more
8251         conservative in what we accept.
8252
8253 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8254
8255         * config/sparc/freebsd.h (ASM_SPEC): Define.
8256         * config/sparc/vxworks.h (ASM_SPEC): Define.
8257
8258 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8259
8260         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8261
8262 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8263
8264         * doc/invoke.texi: Remove reference to compiler internals from
8265         user documentation.
8266
8267         * reg-notes.def: Remove REG_VALUE_PROFILE.
8268         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8269
8270 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8271
8272         PR middle-end/47610
8273         * varasm.c (default_section_type_flags): If decl is NULL,
8274         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8275
8276 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8277
8278         PR debug/42631
8279         * web.c (entry_register): Don't clobber the number of the
8280         first uninitialized reference in used[].
8281
8282 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8283
8284         PR tree-optimization/46194
8285         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8286         (build_classic_dist_vector_1): Do not represent classic distance
8287         vectors when the access functions are variating in different loops.
8288
8289 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8290
8291         * config/mips/iris6.opt: New.
8292         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8293
8294 2011-02-04  Richard Henderson  <rth@redhat.com>
8295             Steve Ellcey  <sje@cup.hp.com>
8296
8297         PR target/46997
8298         * config/ia64/predicates.md (mux1_brcst_element): New.
8299         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8300         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8301         (ia64_unpack_sign): New.
8302         (ia64_expand_unpack): Rewrite using new routines.
8303         (ia64_expand_widen_sum): Ditto.
8304         (ia64_expand_dot_prod_v8qi): Ditto.
8305         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8306         routines, add endian check.
8307         (pmpy2_even): Rename from pmpy2_r, add endian check.
8308         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8309         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8310         (vec_widen_smult_hi_v4hi): Ditto.
8311         (vec_widen_umult_lo_v4hi): Ditto.
8312         (vec_widen_umult_hi_v4hi): Ditto.
8313         (mulv2si3): Change endian checks.
8314         (sdot_prodv4hi): Rewrite with new calls.
8315         (udot_prodv4hi): New.
8316         (vec_pack_ssat_v4hi): Add endian check.
8317         (vec_pack_usat_v4hi): Ditto.
8318         (vec_pack_ssat_v2si): Ditto.
8319         (max1_even): Rename from max1_r, add endian check.
8320         (max1_odd): Rename from max1_l, add endian check.
8321         (*mux1_rev): Format change.
8322         (*mux1_mix): Ditto.
8323         (*mux1_shuf): Ditto.
8324         (*mux1_alt): Ditto.
8325         (*mux1_brcst_v8qi): Use new predicate.
8326         (vec_extract_evenv8qi): Remove endian check.
8327         (vec_extract_oddv8qi): Ditto.
8328         (vec_interleave_lowv4hi): Format change.
8329         (vec_interleave_highv4hi): Ditto.
8330         (mix2_even): Rename from mix2_r, add endian check.
8331         (mix2_odd): Rename from mux2_l, add endian check.
8332         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8333         (vec_extract_evenodd_helper): Format change.
8334         (vec_extract_evenv4hi): Remove endian check.
8335         (vec_extract_oddv4hi): Remove endian check.
8336         (vec_interleave_lowv2si): Format change.
8337         (vec_interleave_highv2si): Format change.
8338         (vec_initv2si): Remove endian check.
8339         (vecinit_v2si): Add endian check.
8340         (reduc_splus_v2sf): Add endian check.
8341         (reduc_smax_v2sf): Ditto.
8342         (reduc_smin_v2sf): Ditto.
8343         (vec_initv2sf): Remove endian check.
8344         (fpack): Add endian check.
8345         (fswap): Add endian check.
8346         (vec_interleave_highv2sf): Add endian check.
8347         (vec_interleave_lowv2sf): Add endian check.
8348         (fmix_lr): Add endian check.
8349         (vec_setv2sf): Format change.
8350         (*vec_extractv2sf_0_be): Use shift to extract operand.
8351         (*vec_extractv2sf_1_be): New.
8352         (vec_pack_trunc_v4hi): Add endian check.
8353         (vec_pack_trunc_v2si): Format change.
8354
8355 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8356
8357         PR inline-asm/23200
8358         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8359         do bb, locus and block comparison and disallow loads if it is not set.
8360         (stmt_is_replaceable_p): New function.
8361         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8362         callers.
8363         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8364         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8365         SSA_NAME_DEF_STMT.
8366         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8367
8368 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8369
8370         * config/rs6000/xilinx.opt: New.
8371         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8372
8373 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8374
8375         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8376
8377 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8378
8379         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8380         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8381         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8382         secondary_reload_info, xtensa_secondary_reload): Remove.
8383         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8384         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8385         (xtensa_preferred_reload_class): Make static. Change return and
8386         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8387         Use CONST_DOUBLE_P predicate.
8388         (xtensa_preferred_output_reload_class): New function.
8389         (xtensa_secondary_reload): Make static.
8390
8391 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8392
8393         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8394         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8395         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8396
8397 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8398
8399         PR middle-end/31490
8400         * output.h (SECTION_RELRO): Define.
8401         (SECTION_MACH_DEP): Adjust.
8402         (get_variable_section): New prototype.
8403         * varpool.c (varpool_finalize_named_section_flags): New function.
8404         (varpool_assemble_pending_decls): Call it.
8405         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8406         * cgraphunit.c (cgraph_output_in_order): Call
8407         varpool_finalize_named_section_flags.
8408         * varasm.c (get_section): Allow section flags conflicts between
8409         relro and read-only sections if the section hasn't been declared yet.
8410         Set SECTION_OVERRIDE after diagnosing section type conflict.
8411         (get_variable_section): No longer static.
8412         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8413         readonly sections that need relocations.
8414         (decl_readonly_section_1): New function.
8415         (decl_readonly_section): Use it.
8416
8417         Revert:
8418         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8419                     Steve Ellcey  <sje@cup.hp.com>
8420
8421         PR middle-end/31490
8422         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8423         if section attribute used.
8424
8425 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8426
8427         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8428         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8429         (darwin_init_sections): Remove assertion.
8430
8431 2011-02-03  Nick Clifton  <nickc@redhat.com>
8432
8433         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8434         lt and ge.
8435         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8436         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8437         instead of "n" and "pz".
8438         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8439         CC_FLAG_S.
8440
8441 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8442
8443         PR target/47312
8444         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8445         fma, expand FMA_EXPR as fma{,f,l} call.
8446
8447         PR lto/47274
8448         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8449         copy them into a unsigned char variable and pass address of it to
8450         lto_output_data_stream.
8451
8452         PR target/47564
8453         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8454         around backend_init_target and lang_dependent_init_target calls.
8455         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8456         (verify_cgraph_node): Don't call set_cfun here.  Use
8457         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8458         Set error_found for incorrectly represented calls to thunks.
8459
8460 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8461
8462         PR debug/43092
8463         PR rtl-optimization/43494
8464         * rtl.h (for_each_inc_dec_fn): New type.
8465         (for_each_inc_dec): Declare.
8466         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8467         (for_each_inc_dec_find_inc_dec): New fn.
8468         (for_each_inc_dec_find_mem): New fn.
8469         (for_each_inc_dec): New fn.
8470         * dse.c (struct insn_size): Remove.
8471         (replace_inc_dec, replace_inc_dec_mem): Remove.
8472         (emit_inc_dec_insn_before): New fn.
8473         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8474         (canon_address): Pass mem modes to cselib_lookup.
8475         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8476         (cselib_lookup_from_insn): Likewise.
8477         (cselib_subst_to_values): Likewise.
8478         * cselib.c (find_slot_memmode): New var.
8479         (cselib_find_slot): New fn.  Use it instead of
8480         htab_find_slot_with_hash everywhere.
8481         (entry_and_rtx_equal_p): Use find_slot_memmode.
8482         (autoinc_split): New fn.
8483         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8484         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8485         Deal with autoinc.  Special-case recursion into MEMs.
8486         (cselib_hash_rtx): Likewise.
8487         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8488         address and MEM modes.
8489         (cselib_subst_to_values): Add memmode, pass it on.
8490         Deal with autoinc.
8491         (cselib_lookup): Add memmode argument, pass it on.
8492         (cselib_lookup_from_insn): Add memmode.
8493         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8494         (struct cselib_record_autoinc_data): New.
8495         (cselib_record_autoinc_cb): New fn.
8496         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8497         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8498         (cselib_process_insn): ... here.
8499         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8500         to cselib_lookup.
8501         (add_uses): Likewise, also to cselib_subst_to_values.
8502         (add_stores): Likewise.
8503         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8504         cselib_subst_to_values.
8505         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8506         * gcse.c (do_local_cprop): Adjusted.
8507         * postreload.c (reload_cse_simplify_set): Adjusted.
8508         (reload_cse_simplify_operands): Adjusted.
8509         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8510
8511 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8512
8513         PR tree-optimization/45122
8514         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8515         unsafe assumptions when there's more than one loop exit.
8516
8517 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8518
8519         PR target/47272
8520         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8521         Document using vector double with the load/store builtins, and
8522         that the load/store builtins always use Altivec instructions.
8523
8524         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8525         to use altivec memory instructions, even on VSX.
8526         (vector_altivec_store_<mode>): Ditto.
8527
8528         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8529         function.
8530
8531         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8532         V2DF, V2DI support to load/store overloaded builtins.
8533
8534         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8535         altivec load/store builtins for V2DF/V2DI types.
8536
8537         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8538         set avoid indexed addresses on power6 if -maltivec.
8539         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8540         vector_altivec_load/vector_altivec_store builtins.
8541         (altivec_expand_st_builtin): Ditto.
8542         (altivec_expand_builtin): Add VSX memory builtins.
8543         (rs6000_init_builtins): Add V2DI types to internal types.
8544         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8545         load/store builtins.
8546         (rs6000_address_for_altivec): Insure memory address is appropriate
8547         for Altivec.
8548
8549         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8550         vec_vsx_ld and vec_vsx_st.
8551         (vsx_store_<mode>): Ditto.
8552
8553         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8554         variables to hold long long types for VSX vector memory builtins.
8555         (RS6000_BTI_unsigned_long_long): Ditto.
8556         (long_long_integer_type_internal_node): Ditti.
8557         (long_long_unsigned_type_internal_node): Ditti.
8558
8559         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8560         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8561         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8562
8563         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8564         short cuts.
8565         (vec_vsx_st): Ditto.
8566
8567 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8568
8569         * config/pa/pa-hpux10.opt: New.
8570         * config/hpux11.opt (pthread): New Driver option.
8571         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8572         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8573
8574 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8575
8576         * config/ia64/vms.opt: New.
8577         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8578
8579 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8580
8581         PR target/47580
8582         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8583         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8584         generator functions.
8585         (vsx_floatuns<VSi><mode>2): Ditto.
8586         (vsx_fix_trunc<mode><VSi>2): Ditto.
8587         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8588
8589 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8590
8591         * config/i386/djgpp.opt (posix): New Driver option.
8592
8593 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8594
8595         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8596         Move to the unsupported targets list.
8597
8598 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8599
8600         PR rtl-optimization/47525
8601         * df-scan.c: Update copyright years.
8602         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8603         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8604
8605 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8606
8607         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8608         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8609         (ASM_OUTPUT_ASCII): Remove.
8610         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8611
8612 2011-02-02  Jeff Law  <law@redhat.com>
8613
8614         PR middle-end/47543
8615         * reload.c (find_reloads_address): Handle reg+d address where both
8616         components are invalid by reloading the entire address.
8617
8618 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8619             Richard Guenther  <rguenther@suse.de>
8620
8621         PR tree-optimization/40979
8622         PR bootstrap/47044
8623         * passes.c (init_optimization_passes): After LIM call copy_prop
8624         and DCE to clean up.
8625         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8626
8627 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8628
8629         PR tree-optimization/47576
8630         PR tree-optimization/47555
8631         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8632         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8633         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8634         * tree-scalar-evolution.c (follow_ssa_edge): Use
8635         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8636
8637 2011-02-02  Richard Guenther  <rguenther@suse.de>
8638
8639         PR tree-optimization/47566
8640         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8641
8642 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8643
8644         PR debug/47106
8645         PR debug/47402
8646         * tree-inline.c (declare_return_variable): Remove unused caller
8647         variable.
8648
8649         PR debug/47106
8650         PR debug/47402
8651         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8652         * cfgexpand.c (account_used_vars_for_block): Use them.
8653         * tree-nrv.c (tree_nrv): Likewise.
8654         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8655         (dump_scope_block): Likewise.
8656         (remove_unused_locals): Likewise.
8657
8658         PR debug/47106
8659         PR debug/47402
8660         * tree-inline.c (declare_return_variable): Add result decl to
8661         local decls only once.
8662         * gimple-low.c (record_vars_into): Mark newly-created variables
8663         as referenced.
8664
8665 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8666
8667         PR debug/47498
8668         PR debug/47501
8669         PR debug/45136
8670         PR debug/45130
8671         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8672         debug insns.
8673         (no_real_insns_p, schedule_block, set_priorities): Drop special
8674         treatment of boundary debug insns.
8675         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8676         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8677         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8678         (BOUNDARY_DEBUG_INSN_P): Likewise.
8679         (SCHEDULE_DEBUG_INSN_P): Likewise.
8680         * sched-rgn.c (init_ready_list): Drop special treatment of
8681         boundary debug insns.
8682         * final.c (rest_of_clean_state): Clear notes' BB.
8683
8684 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8685
8686         * config/openbsd.opt (assert=): New Driver option.
8687
8688 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8689
8690         * config/i386/nto.opt: New.
8691         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8692
8693 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8694
8695         * config/i386/netware.opt: New.
8696         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8697
8698 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8699
8700         * config/interix.opt (posix): New Driver option.
8701
8702 2011-02-01  DJ Delorie  <dj@redhat.com>
8703
8704         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8705
8706         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8707         class for A0/A1.
8708
8709 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8710
8711         PR tree-optimization/47561
8712         * toplev.c (process_options): Print the Graphite flags.  Add
8713         flag_loop_flatten to the list of options requiring Graphite.
8714
8715 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8716
8717         * config/i386/cygming.opt (posix): New Driver option.
8718
8719 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8720
8721         * config/arm/vxworks.opt: New.
8722         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8723
8724 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8725
8726         * config/alpha/elf.opt: New.
8727         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8728         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8729
8730 2011-02-01  Richard Guenther  <rguenther@suse.de>
8731
8732         PR tree-optimization/47559
8733         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8734         store-motion on references that can throw.
8735
8736 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8737
8738         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8739         * tree-pass.h (TDF_CSELIB): New macro.
8740         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8741         cselib_lookup): Check for it rather than for TDF_DETAILS.
8742
8743 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8744
8745         PR driver/47547
8746         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8747         is HOST_BIT_BUCKET.
8748
8749         * opts.c (finish_options): Don't add x_aux_base_name if it is
8750         HOST_BIT_BUCKET.
8751
8752 2011-02-01  Richard Guenther  <rguenther@suse.de>
8753
8754         PR tree-optimization/47555
8755         Revert
8756         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8757
8758         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8759
8760 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8761
8762         PR gcc/46692
8763         * config/lm32/t-lm32: Add multilib for all CPU options.
8764
8765 2011-02-01  Richard Guenther  <rguenther@suse.de>
8766
8767         PR tree-optimization/47541
8768         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8769         sure to have a field at offset zero.
8770
8771 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8772
8773         * config/arc/arc.opt (EB, EL): New Driver options.
8774
8775 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8776
8777         * config/alpha/osf5.opt: New.
8778         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8779
8780 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8781
8782         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8783
8784 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8785
8786         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8787         -floop-interchange.
8788         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8789         is an alias of -floop-interchange and that it requires the
8790         Graphite infrastructure.
8791         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8792         flag_loop_interchange based on the value of flag_tree_loop_linear.
8793
8794 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8795             Richard Guenther  <rguenther@suse.de>
8796
8797         PR tree-optimization/47538
8798         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8799         type instead of r1type, except for comparisons.  For right
8800         shifts and comparisons punt if there are mismatches in
8801         sizetype vs. non-sizetype types.
8802
8803 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8804
8805         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8806         avx_runtime.
8807
8808 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8809
8810         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8811         version number.
8812         * configure: Regenerate.
8813
8814 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8815
8816         * configure.ac (gcc_cv_ld_static_option): Define.
8817         (gcc_cv_ld_dynamic_option): Define.
8818         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8819         instead.
8820         (HAVE_LD_STATIC_DYNAMIC): Update message.
8821         (LD_STATIC_OPTION): Define.
8822         (LD_DYNAMIC_OPTION): Define.
8823         * configure: Regenerate.
8824         * config.in: Regenerate.
8825         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8826         HAVE_LD_STATIC_DYNAMIC]: Use them.
8827
8828 2011-01-31  Nick Clifton  <nickc@redhat.com>
8829
8830         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8831         registers inside interrupt handlers if the handler is not a leaf
8832         function.
8833
8834 2011-01-31  Nick Clifton  <nickc@redhat.com>
8835
8836         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8837         reg_renumber returning an INVALID_REGNUM.
8838
8839 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8840
8841         PR libgcj/44341
8842         * doc/install.texi: Document host options discarded when cross
8843         configuring target libraries.
8844
8845 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8846
8847         Reverted:
8848         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8849         PR debug/45136
8850         PR debug/45130
8851         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8852         debug insns.
8853         (no_real_insns_p, schedule_block, set_priorities): Drop special
8854         treatment of boundary debug insns.
8855         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8856         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8857         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8858         (BOUNDARY_DEBUG_INSN_P): Likewise.
8859         (SCHEDULE_DEBUG_INSN_P): Likewise.
8860         * sched-rgn.c (init_ready_list): Drop special treatment of
8861         boundary debug insns.
8862         * final.c (rest_of_clean-state): Clear notes' BB.
8863
8864 2011-01-31  Alan Modra  <amodra@gmail.com>
8865
8866         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8867         toc relative expressions as we do in print_operand_address.
8868
8869 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8870
8871         * doc/extend.texi: Follow spelling conventions.
8872         * doc/invoke.texi: Fix a typo.
8873
8874 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8875
8876         * config/hpux11.opt: New.
8877         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8878         ia64*-*-hpux*): Use hpux11.opt.
8879
8880 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8881
8882         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8883         to tmake_file.
8884
8885 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8886
8887         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8888         support sites.
8889
8890 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8891
8892         * doc/install.texi (Binaries): Remove outdated reference for
8893         Motorola 68HC11/68HC12 downloads.
8894
8895 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8896
8897         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8898         Drepper's paper.
8899
8900 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8901
8902         PR bootstrap/47147
8903         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8904         used by NetBSD.
8905
8906 2011-01-28  Ahmad Sharif  <asharif@google.com>
8907
8908         * value-prof.c (check_counter): Corrected error message.
8909
8910 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8911
8912         * config/arm/arm.c (arm_legitimize_reload_address): New.
8913         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8914         arm_legitimize_reload_address.
8915         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8916
8917 2011-01-28  Ian Lance Taylor  <iant@google.com>
8918
8919         * godump.c (go_define): Ignore macros whose definitions include
8920         two adjacent operands.
8921
8922 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8923
8924         PR target/42894
8925         * varasm.c (force_const_mem): Store copy of x in desc->constant
8926         instead of x itself.
8927         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8928         itself into REG_EQUAL note.
8929
8930 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8931
8932         * config/freebsd.opt (posix, rdynamic): New Driver options.
8933
8934 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8935
8936         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8937         -Bstatic/-Bdynamic.
8938         * configure: Regenerate.
8939
8940 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8941
8942         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8943         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8944
8945 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8946
8947         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8948         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8949         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8950         (s390_preferred_reload_class): Make static. Change return and
8951         'rclass' argument type to reg_class_t.
8952
8953 2011-01-27  Jan Hubicka  <jh@suse.cz>
8954
8955         PR middle-end/46949
8956         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8957         (process_function_and_variable_attributes): Check defined weakrefs.
8958
8959 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8960
8961         PR tree-optimization/47228
8962         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8963         build_ref_for_offset.
8964
8965 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8966
8967         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8968
8969 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8970
8971         PR rtl-optimization/46856
8972         * postreload.c (reload_combine_recognize_const_pattern): Do not
8973         separate cc0 setter and user on cc0 targets.
8974
8975 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8976
8977         PR c/43082
8978         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8979         passed a VOID_TYPE expression, immediately emit an error and
8980         return error_mark_node.
8981
8982 2011-01-26  Jeff Law  <law@redhat.com>
8983
8984         PR rtl-optimization/47464
8985         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8986         rather than may_trap_p as needed.
8987
8988 2011-01-26  DJ Delorie  <dj@redhat.com>
8989
8990         PR rtl-optimization/46878
8991         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8992         setter/user dependency as well.
8993
8994 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8995
8996         PR rtl-optimization/44469
8997         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8998         after removing trivially dead basic blocks.
8999
9000 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9001
9002         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9003         * config/frv/frv.h (LINK_SPEC): Likewise.
9004         * config/i386/netware.h (LINK_SPEC): Likewise.
9005         * config/m68k/linux.h (ASM_SPEC): Likewise.
9006         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9007         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9008         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9009         * config/sparc/linux.h (ASM_SPEC): Likewise.
9010         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9011         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9012
9013 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9014
9015         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9016         * config/frv/frv.h (ASM_SPEC): Likewise.
9017         * config/m68k/linux.h (ASM_SPEC): Likewise.
9018         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9019         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9020         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9021         * config/sparc/linux.h (ASM_SPEC): Likewise.
9022         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9023         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9024
9025 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9026
9027         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9028         * config/frv/frv.h (LINK_SPEC): Likewise.
9029         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9030
9031 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9032
9033         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9034         * config/frv/frv.h (ASM_SPEC): Likewise.
9035         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9036         * config/m68k/linux.h (ASM_SPEC): Likewise.
9037         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9038         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9039         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9040         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9041         * config/sparc/linux.h (ASM_SPEC): Likewise.
9042         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9043         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9044         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9045
9046 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9047
9048         PR target/46997
9049         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9050         (*mux2): Ditto.
9051         (vec_extract_evenodd_help): Ditto.
9052         (vec_extract_evenv4hi): Ditto.
9053         (vec_extract_oddv4hi): Ditto.
9054         (vec_interleave_lowv2si): Ditto.
9055         (vec_interleave_highv2si): Ditto.
9056         (vec_extract_evenv2si): Ditto.
9057         (vec_extract_oddv2si: Ditto.
9058         (vec_pack_trunc_v2si): Ditto.
9059
9060 2011-01-22  Jan Hubicka  <jh@suse.cz>
9061
9062         PR target/47237
9063         * cgraph.h (cgraph_local_info): New field can_change_signature.
9064         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9065         signature can change.
9066         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9067         can change.
9068         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9069         (cgraph_function_versioning): We can not change signature of functions
9070         that don't allow that.
9071         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9072         (lto_input_node): Likewise.
9073         * ipa-inline.c (compute_inline_parameters): Compute
9074         local.can_change_signature.
9075         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9076         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9077         functions that can not change signature.
9078         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9079         init_cumulative_args): Do not use local calling conventions
9080         for functions that can not change signature.
9081
9082 2011-01-22  Jan Hubicka  <jh@suse.cz>
9083
9084         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9085
9086 2011-01-26  Richard Guenther  <rguenther@suse.de>
9087
9088         PR tree-optimization/47190
9089         * cgraphunit.c (process_common_attributes): New function.
9090         (process_function_and_variable_attributes): Use it.
9091
9092 2011-01-26  Richard Guenther  <rguenther@suse.de>
9093
9094         PR lto/47423
9095         * cgraphbuild.c (record_eh_tables): Record reference to personality
9096         function.
9097
9098 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9099
9100         PR debug/45454
9101         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9102         non-debug insns from moving up.
9103
9104 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9105
9106         PR target/40125
9107         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9108         t-dlldir{,-x} fragment for build and add it to tmake_file.
9109         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9110         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9111         * config/i386/t-dlldir: New file.
9112         (SHLIB_DLLDIR): Define.
9113         * config/i386/t-dlldir-x: New file.
9114         (SHLIB_DLLDIR): Define.
9115         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9116         (SHLIB_INSTALL): Use it.
9117
9118 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9119
9120         PR target/47246
9121         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9122         lower bound of the allowed Thumb-2 coprocessor load/store
9123         index range to -256. Add explaining comment.
9124
9125 2011-01-25  Ian Lance Taylor  <iant@google.com>
9126
9127         * godump.c (go_define): Improve lexing of macro expansion to only
9128         accept expressions which match Go spec.
9129
9130 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9131
9132         PR c++/43601
9133         * tree.c (handle_dll_attribute): Handle it.
9134         * doc/extend.texi (@item dllexport): Mention it.
9135         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9136
9137 2011-01-25  Ian Lance Taylor  <iant@google.com>
9138
9139         PR tree-optimization/26854
9140         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9141         (decl_jump_unsafe): Move higher in file, with no other change.
9142         (bind): Set has_jump_unsafe_decl if appropriate.
9143         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9144         (check_earlier_gotos): Likewise.
9145         (c_check_switch_jump_warnings): Likewise.
9146
9147 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9148
9149         * doc/invoke.texi (Warning Options): Add missing hyphen.
9150         (-fprofile-dir): Minor grammatical fixes.
9151         (-fbranch-probabilities): Likewise.
9152
9153 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9154
9155         PR debug/45136
9156         PR debug/45130
9157         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9158         debug insns.
9159         (no_real_insns_p, schedule_block, set_priorities): Drop special
9160         treatment of boundary debug insns.
9161         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9162         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9163         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9164         (BOUNDARY_DEBUG_INSN_P): Likewise.
9165         (SCHEDULE_DEBUG_INSN_P): Likewise.
9166         * sched-rgn.c (init_ready_list): Drop special treatment of
9167         boundary debug insns.
9168         * final.c (rest_of_clean-state): Clear notes' BB.
9169
9170 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9171
9172         * Makefile.in (LAMBDA_H): Removed.
9173         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9174         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9175         lambda-trans.o, and tree-loop-linear.o.
9176         (lto-symtab.o): Remove dependence on LAMBDA_H.
9177         (tree-loop-linear.o): Remove rule.
9178         (lambda-mat.o): Same.
9179         (lambda-trans.o): Same.
9180         (lambda-code.o): Same.
9181         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9182         (tree-vect-slp.o): Same.
9183         * hwint.h (gcd): Moved here.
9184         (least_common_multiple): Same.
9185         * lambda-code.c: Removed.
9186         * lambda-mat.c: Removed.
9187         * lambda-trans.c: Removed.
9188         * lambda.h: Removed.
9189         * tree-loop-linear.c: Removed.
9190         * lto-symtab.c: Do not include lambda.h.
9191         * omega.c (gcd): Removed.
9192         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9193         * tree-data-ref.c (print_lambda_vector): Moved here.
9194         (lambda_vector_copy): Same.
9195         (lambda_matrix_copy): Same.
9196         (lambda_matrix_id): Same.
9197         (lambda_vector_first_nz): Same.
9198         (lambda_matrix_row_add): Same.
9199         (lambda_matrix_row_exchange): Same.
9200         (lambda_vector_mult_const): Same.
9201         (lambda_vector_negate): Same.
9202         (lambda_matrix_row_negate): Same.
9203         (lambda_vector_equal): Same.
9204         (lambda_matrix_right_hermite): Same.
9205         * tree-data-ref.h: Do not include lambda.h.
9206         (lambda_vector): Moved here.
9207         (lambda_matrix): Same.
9208         (dependence_level): Same.
9209         (lambda_transform_legal_p): Removed declaration.
9210         (lambda_collect_parameters): Same.
9211         (lambda_compute_access_matrices): Same.
9212         (lambda_vector_gcd): Same.
9213         (lambda_vector_new): Same.
9214         (lambda_vector_clear): Same.
9215         (lambda_vector_lexico_pos): Same.
9216         (lambda_vector_zerop): Same.
9217         (lambda_matrix_new): Same.
9218         * tree-flow.h (least_common_multiple): Removed declaration.
9219         * tree-parloops.c (lambda_trans_matrix): Moved here.
9220         (LTM_MATRIX): Same.
9221         (LTM_ROWSIZE): Same.
9222         (LTM_COLSIZE): Same.
9223         (LTM_DENOMINATOR): Same.
9224         (lambda_trans_matrix_new): Same.
9225         (lambda_matrix_vector_mult): Same.
9226         (lambda_transform_legal_p): Same.
9227         * tree-pass.h (pass_linear_transform): Removed declaration.
9228         * tree-ssa-loop.c (tree_linear_transform): Removed.
9229         (gate_tree_linear_transform): Removed.
9230         (pass_linear_transform): Removed.
9231         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9232         flag_loop_interchange.
9233
9234 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9235
9236         PR tree-optimization/47265
9237         PR tree-optimization/47443
9238         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9239         if name still has some uses.
9240
9241 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9242
9243         PR tree-optimization/47382
9244         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9245         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9246
9247 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9248
9249         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9250         sjlj_except_unwind_info.
9251
9252 2011-01-25  Richard Guenther  <rguenther@suse.de>
9253
9254         PR tree-optimization/47426
9255         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9256         visible functions results escape.
9257
9258 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9259
9260         PR target/45701
9261         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9262         (arm_get_frame_offsets): Use it.
9263
9264 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9265             Jakub Jelinek  <jakub@redhat.com>
9266
9267         PR tree-optimization/47271
9268         * tree-if-conv.c (bb_postdominates_preds): New.
9269         (if_convertible_bb_p): Call bb_postdominates_preds.
9270         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9271         (predicate_scalar_phi): Call bb_postdominates_preds.
9272
9273 2011-01-25  Nick Clifton  <nickc@redhat.com>
9274
9275         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9276         * config/rx/rx.c (rx_function_value): Likewise.
9277         (rx_promote_function_mode): Likewise.
9278         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9279         in order to make it legitimate.
9280         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9281         make sure that the first operand is the same as the result register.
9282         (addsi3_unspec): Delete.
9283         (subdi3): Do not accept immediate operands.
9284         (subdi3_internal): Likewise.
9285
9286 2011-01-25  Jeff Law  <law@redhat.com>
9287
9288         PR rtl-optimization/37273
9289         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9290         handle them like argument loads from stack slots.  Do not double
9291         count memory for memory constants and argument loads from stack slots.
9292
9293 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9294
9295         PR tree-optimization/47427
9296         PR tree-optimization/47428
9297         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9298         coalesce if the new root var would be TREE_READONLY.
9299
9300 2011-01-25  Richard Guenther  <rguenther@suse.de>
9301
9302         PR middle-end/47414
9303         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9304         correct type for TBAA.
9305
9306 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9307
9308         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9309         (close_phi_written_to_memory): Call for_each_index with
9310         dr_indices_valid_in_loop.
9311
9312 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9313
9314         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9315         when it is initialized.
9316
9317 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9318
9319         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9320         call to graphite_find_data_references_in_stmt.
9321         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9322         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9323         call to graphite_find_data_references_in_stmt.
9324         (analyze_drs_in_stmts): Same.
9325         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9326         in which the scalar analysis of indices is performed.
9327         (create_data_ref): Same.  Update call to dr_analyze_indices.
9328         (find_data_references_in_stmt): Update call to create_data_ref.
9329         (graphite_find_data_references_in_stmt): Same.
9330         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9331         declaration.
9332         (create_data_ref): Same.
9333         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9334         call to create_data_ref.
9335
9336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9337
9338         * graphite-sese-to-poly.c (build_poly_scop): Move
9339         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9340
9341 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9342
9343         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9344         VAR_DECL, PARM_DECL, and RESULT_DECL.
9345
9346 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9347
9348         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9349         in a reduction PBB.
9350         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9351         that have already been marked as PBB_IS_REDUCTION.
9352
9353 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9354
9355         * graphite-scop-detection.c (same_close_phi_node): New.
9356         (remove_duplicate_close_phi): New.
9357         (make_close_phi_nodes_unique): New.
9358         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9359
9360 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9361
9362         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9363         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9364         of both data references to be the same.
9365
9366 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9367
9368         * graphite-dependences.c (build_lexicographical_constraint): Remove
9369         the gdim parameter.
9370         (build_lexicographical_constraint): Adjust call to
9371         ppl_powerset_is_empty.
9372         (dependence_polyhedron): Same.
9373         (graphite_legal_transform_dr): Same.
9374         (graphite_carried_dependence_level_k): Same.
9375         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9376         parameter.
9377         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9378
9379 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9380
9381         * graphite-sese-to-poly.c
9382         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9383         (close_phi_written_to_memory): New.
9384         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9385         and unshare_expr.
9386
9387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9388
9389         * doc/install.texi: Update the expected version number of PPL to 0.11.
9390         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9391         #if PPL_VERSION_MINOR < 11.
9392
9393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9394
9395         * graphite-dependences.c: Include graphite-cloog-util.h.
9396         (new_poly_ddr): Inlined into dependence_polyhedron.
9397         (free_poly_ddr): Moved close by new_poly_ddr.
9398         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9399         Early return NULL when ppl_powerset_is_empty returns true.
9400         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9401         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9402         (graphite_legal_transform_dr): Call new_poly_ddr.
9403         (graphite_carried_dependence_level_k): Same.
9404         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9405         (dot_transformed_deps_stmt_1): Removed.
9406         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9407         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9408         (dot_deps_1): Call dot_deps_2.
9409         * Makefile.in (graphite-dependences.o): Add missing dependence on
9410         graphite-cloog-util.h.
9411
9412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9413
9414         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9415         (build_lexicographical_constraint): Same.
9416         (dependence_polyhedron_1): Same.
9417         (graphite_legal_transform_dr): Same.
9418         (graphite_carried_dependence_level_k): Same.
9419         * graphite-ppl.c (ppl_powerset_is_empty): New.
9420         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9421         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9422
9423 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9424
9425         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9426         the "a followed by b" relation and document it.
9427
9428 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9429
9430         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9431         iteration when the bag of constraints is empty.
9432
9433 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9434
9435         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9436
9437 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9438
9439         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9440         nest and two loop depths as parameters.
9441         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9442         lst_perfect_nestify.
9443
9444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9445
9446         * graphite-dependences.c (print_pddr): Call
9447         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9448
9449 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9450
9451         * graphite-ppl.c (debug_gmp_value): New.
9452         * graphite-ppl.h (debug_gmp_value): Declared.
9453
9454 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9455
9456         * doc/install.texi: Document availability of cloog-0.16.
9457
9458 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9459
9460         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9461         invalid postdominance info.
9462
9463 2011-01-24  Jan Hubicka  <jh@suse.cz>
9464
9465         PR c/21659
9466         * doc/extend.texi (weak pragma): Drop claim that it must
9467         appear before definition.
9468         * varasm.c (merge_weak, declare_weak): Only sanity check
9469         that DECL is not output at a time it is declared weak.
9470
9471 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9472
9473         * machmode.def: Fixed comments.
9474
9475 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9476
9477         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9478
9479 2011-01-24  Paul Koning  <ni1d@arrl.net>
9480
9481         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9482         WORDS_BIG_ENDIAN.
9483
9484 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9485
9486         PR target/46519
9487         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9488         (block_info): Add scanned and prev.
9489         (move_or_delete_vzeroupper_2): Return if the basic block
9490         has been scanned and the upper 128bit state is unchanged
9491         from the last scan.
9492         (move_or_delete_vzeroupper_1): Return true if the exit
9493         state is changed.
9494         (move_or_delete_vzeroupper): Visit basic blocks using the
9495         work-list based algorithm based on vt_find_locations in
9496         var-tracking.c.
9497
9498         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9499
9500 2011-01-24  Nick Clifton  <nickc@redhat.com>
9501
9502         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9503         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9504         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9505         then define __v850e1__.
9506         * doc/invoke.texi: Document -mv850es.
9507
9508 2011-01-24  Richard Henderson  <rth@redhat.com>
9509
9510         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9511         compound unordered comparisons.
9512         * config/rx/rx.c (rx_split_fp_compare): Remove.
9513         * config/rx/rx-protos.h: Update.
9514         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9515         (cbranchsf4): Don't call rx_split_fp_compare.
9516         (*cbranchsf4): Use rx_split_cbranch.
9517         (*cmpsf): Don't accept "i" constraint.
9518         (*conditional_branch): Only valid after reload.
9519         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9520
9521 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9522
9523         PR target/47385
9524         * config/rs6000/altivec.md (vector constant splitters): Add
9525         support for creating vector single precision constants if -mvsx is
9526         used and we would create the constant using Altivec primitives.
9527
9528 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9529             Richard Sandiford  <rdsandiford@googlemail.com>
9530
9531         PR rtl-optimization/47166
9532         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9533         mechanism for PRE_MODIFY and POST_MODIFY.
9534         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9535         reloadreg.
9536
9537 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9538
9539         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9540
9541 2011-01-22  Jan Hubicka  <jh@suse.cz>
9542
9543         PR lto/47333
9544         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9545
9546 2011-01-22  Jan Hubicka  <jh@suse.cz>
9547
9548         PR tree-optimization/43884
9549         PR lto/44334
9550         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9551         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9552
9553 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9554
9555         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9556         * config/s390/s390.c (s390_register_move_cost,
9557         s390_memory_move_cost): New.
9558         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9559
9560 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9561
9562         PR middle-end/47401
9563         * except.c (sjlj_assign_call_site_values): Move setting the
9564         crtl->uses_eh_lsda flag to ...
9565         (sjlj_mark_call_sites): ... here.
9566         (sjlj_emit_function_enter): Support NULL dispatch label.
9567         (sjlj_build_landing_pads): In a function with no landing pads
9568         that still has must-not-throw regions, generate code to register
9569         a personality function with empty LSDA.
9570
9571 2011-01-21  Richard Henderson  <rth@redhat.com>
9572
9573         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9574
9575         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9576
9577         * compare-elim.c: New file.
9578         * Makefile.in (OBJS-common): Add it.
9579         (compare-elim.o): New.
9580         * common.opt (fcompare-elim): New.
9581         * opts.c (default_options_table): Add OPT_fcompare_elim.
9582         * tree-pass.h (pass_compare_elim_after_reload): New.
9583         * passes.c (init_optimization_passes): Add it.
9584         * recog.h: Protect against re-inclusion.
9585         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9586         * doc/invoke.texi (-fcompare-elim): Document it.
9587         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9588         * doc/tm.texi: Rebuild.
9589
9590 2011-01-22  Nick Clifton  <nickc@redhat.com>
9591
9592         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9593         rx_split_fp_compare.
9594
9595 2011-01-22  Nick Clifton  <nickc@redhat.com>
9596
9597         * config/rx/rx.md (UNSPEC_CONST): New.
9598         (deallocate_and_return): Wrap the amount popped off the stack in
9599         an UNSPEC_CONST in order to stop it being rejected by
9600         -mmax-constant-size.
9601         (pop_and_return): Add a "(return)" rtx.
9602         (call): Drop the immediate operand.
9603         (call_internal): Likewise.
9604         (call_value): Likewise.
9605         (call_value_internal): Likewise.
9606         (sibcall_internal): Likewise.
9607         (sibcall_value_internal): Likewise.
9608         (sibcall): Likewise.  Generate an explicit call using
9609         sibcall_internal.
9610         (sibcall_value): Likewise.
9611         (mov<>): FAIL if a constant operand is not legitimate.
9612         (addsi3_unpsec): New pattern.
9613
9614         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9615         (ok_for_max_constant): New function.
9616         (gen_safe_add): New function.
9617         (rx_expand_prologue): Use gen_safe_add.
9618         (rx_expand_epilogue): Likewise.
9619         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9620         UNSPEC CONSTs.
9621
9622 2011-01-21  Jeff Law  <law@redhat.com>
9623
9624         PR tree-optimization/47053
9625         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9626         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9627         statements are deleted.
9628         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9629         is nonempty, then purge dead edges and cleanup the CFG.
9630
9631 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9632
9633         PR debug/47402
9634         Temporarily revert:
9635         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9636         PR debug/47106
9637         * tree-dfa.c (create_var_ann): Mark variable as used.
9638
9639 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9640
9641         PR middle-end/45566
9642         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9643         notes from other section in hot/cold partitioning even if
9644         last_action is -3.  Increment call_site_base.
9645
9646         PR rtl-optimization/47366
9647         * fwprop.c (forward_propagate_into): Return bool.  If
9648         any changes are made, -fnon-call-exceptions is used and
9649         REG_EH_REGION note is present, call purge_dead_edges
9650         and return true if it purged anything.
9651         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9652         any EH edges were purged.
9653
9654 2011-01-21  Jeff Law  <law@redhat.com>
9655
9656         PR rtl-optimization/41619
9657         * caller-save.c (setup_save_areas): Break out code to determine
9658         which hard regs are live across calls by examining the reload chains
9659         so that it is always used.
9660         Eliminate code which checked REG_N_CALLS_CROSSED.
9661
9662 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9663
9664         PR tree-optimization/47355
9665         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9666         NOP has non-debug uses beyond PHIs in new_bb.
9667
9668 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9669
9670         PR debug/47106
9671         * cfgexpand.c (account_used_vars_for_block): Only account vars
9672         that are annotated as used.
9673         (estimated_stack_frame_size): Don't set TREE_USED.
9674         * tree-dfa.c (create_var_ann): Mark variable as used.
9675
9676 2011-01-21  Richard Guenther  <rguenther@suse.de>
9677
9678         PR middle-end/47395
9679         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9680
9681 2011-01-21  Richard Guenther  <rguenther@suse.de>
9682
9683         PR tree-optimization/47365
9684         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9685         (vn_reference_lookup_pieces): Adjust.
9686         (vn_reference_lookup): Likewise.
9687         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9688         (vn_reference_lookup_3): Only look through kills if in
9689         VN_WALKREWRITE mode.
9690         (vn_reference_lookup_pieces): Adjust.
9691         (vn_reference_lookup): Likewise.
9692         (visit_reference_op_load): Likewise.
9693         (visit_reference_op_store): Likewise.
9694         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9695         (compute_avail): Likewise.
9696         (eliminate): Likewise.
9697
9698 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9699
9700         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9701         DECL_IGNORED_P non-reg vars if they are used.
9702
9703         PR tree-optimization/47391
9704         * varpool.c (const_value_known_p): Return false if
9705         decl is volatile.
9706
9707 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9708
9709         PR bootstrap/47215
9710         * config/i386/i386.c (ix86_local_alignment): Handle
9711         case for va_list_type_node is nil.
9712         (ix86_canonical_va_list_type): Likewise.
9713
9714 2011-01-21  Alan Modra  <amodra@gmail.com>
9715
9716         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9717         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9718
9719 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9720
9721         * config/arm/arm.md (define_attr type): Rename f_load
9722         and f_store to f_fpa_load and f_fpa_store. Update.
9723         (write_conflict): Deal with rename fallout.
9724         (*push_fp_multi): Likewise.
9725         * config/arm/fpa.md (f_load): Use f_fpa_load.
9726         (f_store): Use f_fpa_store.
9727         (*movsf_fpa): Likewise.
9728         (*movdf_fpa): Likewise.
9729         (*movxf_fpa): Likewise.
9730         (*thumb2_movsf_fpa): Likewise.
9731         (*thumb2_movdf_fpa): Likewise.
9732         (*thumb2_movxf_fpa): Likewise.
9733         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9734         f_loadd and f_stored.
9735         (*thumb2_movdi_vfp): Likewise.
9736         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9737         (*thumb2_movsi_vfp): Likewise.
9738         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9739         Use f_loads instead of f_load.
9740         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9741
9742 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9743
9744         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9745         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9746         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9747         (xtensa_mode_dependent_address_p): New function.
9748         (constantpool_address_p): Make static. Change return type to bool.
9749         Change argument type to const_rtx. Use CONST_INT_P predicate.
9750
9751 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9752
9753         PR debug/46583
9754         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9755
9756 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9757
9758         PR debug/47283
9759         * cfgexpand.c (expand_debug_expr): Instead of generating
9760         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9761         etc. handling.
9762
9763 2011-01-20  Richard Guenther  <rguenther@suse.de>
9764
9765         PR middle-end/47370
9766         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9767         the pointer operand of MEM_REFs.
9768
9769 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9770
9771         PR tree-optimization/46130
9772         * ipa-split.c (consider_split): If return_bb contains non-virtual
9773         PHIs other than for retval or if split_function would not adjust it,
9774         refuse to split.
9775
9776 2011-01-20  Richard Guenther  <rguenther@suse.de>
9777
9778         PR tree-optimization/47167
9779         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9780         Revert previous change, only avoid enumeral type changes.
9781
9782 2011-01-19  Mike Stump  <mikestump@comcast.net>
9783
9784         * doc/tm.texi.in (BRANCH_COST): Englishify.
9785         * doc/tm.texi (BRANCH_COST): Likewise.
9786
9787 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9788
9789         PR c++/47291
9790         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9791         (gen_scheduled_generic_parms_dies): New functions.
9792         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9793         generation for the end of CU compilation.
9794         (dwarf2out_finish): Generate template parameters DIEs here.
9795
9796 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9797
9798         PR debug/46240
9799         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9800         debug bind stmt on merge edges.
9801
9802 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9803
9804         PR debug/47079
9805         PR debug/46724
9806         * function.c (instantiate_expr): Instantiate incoming rtl of
9807         implicit arguments, and recurse on VALUE_EXPRs.
9808         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9809         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9810
9811 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9812
9813         * c-parser.c (c_parser_for_statement): Initialize
9814         collection_expression.
9815
9816 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9817
9818         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9819
9820 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9821
9822         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9823         (LINK_SHLIB_SPEC): Don't use %(link_path).
9824         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9825
9826 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9827
9828         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9829         (NO_SHARED_LIB_SUPPORT): Remove.
9830         (LINK_SHLIB_SPEC): Remove one conditional definition.
9831
9832 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9833
9834         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9835         %{call_shared}.
9836         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9837         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9838         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9839         %{call_shared} and conditionals on these options not being passed.
9840         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9841         %{call_shared}.
9842
9843 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9844
9845         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9846         simplify.
9847
9848         * ipa-split.c: Spelling fixes.
9849
9850 2011-01-19  Richard Henderson  <rth@redhat.com>
9851
9852         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9853         (*mulsi3): Likewise.
9854
9855         * longlong.h [__mn10300__] (count_leading_zeros): New.
9856         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9857         [__mn10300__] (add_ssaaaa, subddmmss): New.
9858         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9859         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9860
9861 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9862
9863         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9864
9865 2011-01-19  Richard Henderson  <rth@redhat.com>
9866
9867         * config/mn10300/mn10300.md (addsi3_flags): New.
9868         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9869         (subsi3_flags, subc_internal, subdi3): New.
9870         (subdi3_internal, *subdi3_degenerate): New.
9871         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9872
9873         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9874         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9875         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9876         * config/mn10300/mn10300-protos.h: Update.
9877         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9878         (return_ret): Likewise.  Rename from return_internal_regs.
9879         (return_internal): Remove.
9880
9881         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9882         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9883         (mn10300_legitimate_constant_p): Likewise.
9884         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9885         (mn10300_frame_size): New.
9886         (mn10300_expand_prologue): Use it.
9887         (mn10300_expand_epilogue): Likewise.
9888         (mn10300_initial_offset): Likewise.
9889         * config/mn10300/mn10300-protos.h: Update.
9890         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9891         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9892         (prologue, epilogue, return_internal): Tidy output code.
9893         (mn10300_store_multiple_operation, return): Likewise.
9894         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9895         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9896         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9897         (load_pic, am33_load_pic): New.
9898         (mn10300_load_pic0, mn10300_load_pic1): New.
9899
9900         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9901         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9902         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9903         (cc_flags_for_mode, cc_flags_for_code): New.
9904         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9905         overflow flag is not valid.  Validate that the flags we need
9906         for the comparison are valid.
9907         (mn10300_output_cmp): Remove.
9908         (mn10300_output_add): New.
9909         (mn10300_select_cc_mode): Use cc_flags_for_code.
9910         (mn10300_split_cbranch): New.
9911         (mn10300_match_ccmode): New.
9912         (mn10300_split_and_operand_count): New.
9913         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9914         to the function.
9915         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9916         (addsi3): ... here.  Use mn10300_output_add.
9917         (*addsi3_flags): New.
9918         (*am33_subsi3, *mn10300_subsi3): Merge...
9919         (subsi3): ... here.  Use attribute isa.
9920         (*subsi3_flags): New.
9921         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9922         when possible.
9923         (*am33_andsi3, *mn10300_andsi3): Merge...
9924         (andsi3): ... here.
9925         (*andsi3_flags): New.
9926         (andsi3 splitters): New.
9927         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9928         (iorsi3): ... here.
9929         (*iorsi3_flags): New.
9930         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9931         (xorsi3): ... here.
9932         (*xorsi3_flags): New.
9933         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9934         (one_cmplsi2): ... here.
9935         (*one_cmplsi2_flags): New.
9936         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9937         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9938         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9939         use matching constraints to eliminate a self-comparison.
9940         (*integer_conditional_branch): Rename from integer_conditional_branch.
9941         Use int_mode_flags to match CC_REG.
9942         (*cbranchsi4_btst, *btstsi): New.
9943         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9944         mn10300_split_cbranch.
9945         (*am33_cmpsf): Rename from am33_cmpsf.
9946         (*float_conditional_branch): Rename from float_conditional_branch.
9947         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9948         (zero_extendqisi2): ... here.
9949         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9950         (zero_extendhisi2): ... here.
9951         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9952         (extendqisi2): ... here.
9953         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9954         (extendhisi2): ... here.
9955         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9956         (ashlsi3): ... here.
9957         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9958         (lshrsi3): ... here.
9959         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9960         (ashrsi3): ... here.
9961         (consecutive add peephole): Remove.
9962         * config/mn10300/predicates.md (label_ref_operand): New.
9963         (int_mode_flags): New.
9964         (CCZN_comparison_operator): New.
9965
9966         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9967         (throughput_42_latency_43): New reservation.
9968         (mulsidi3, umulsidi3): New expanders.
9969         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9970         the MDR register to allocation; separately allocate the low and
9971         high parts of the DImode result.
9972         (umulsidi3_internal): Similarly.
9973         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9974         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9975         (udivsi3, umodsi3): Remove.
9976         (udivmodsi4, divmodsi4): New expanders.
9977         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9978         (*divmodsi4): Simiarly.
9979         (ext_internal): New.
9980
9981         * config/mn10300/constraints.md ("z"): New constraint.
9982         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9983         (FIXED_REGISTERS): Don't fix MDR.
9984         (CALL_USED_REGSITERS): Reformat nicely.
9985         (REG_ALLOC_ORDER): Add MDR.
9986         (enum regclass): Add MDR_REGS.
9987         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9988         (IRA_COVER_CLASSES): Add MDR_REGS.
9989         (REGNO_REG_CLASS): Handle MDR_REG.
9990         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9991         (mn10300_register_move_cost): Likewise.
9992         * config/mn10300/mn10300.md (MDR_REG): New.
9993         (*movsi_internal): Handle moves to/from MDR_REGS.
9994
9995         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9996         POST_MODIFY.
9997         (mn10300_secondary_reload): Tidy combination reload classes.
9998         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9999         addresses for AM33.  Allow symbolic offsets for reg+imm.
10000         (mn10300_regno_in_class_p): New.
10001         (mn10300_legitimize_reload_address): New.
10002         * config/mn10300/mn10300.h (enum reg_class): Remove
10003         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10004         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10005         SP_OR_GENERAL_REGS.
10006         (REG_CLASS_NAMES): Update to match.
10007         (REG_CLASS_CONTENTS): Likewise.
10008         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10009         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10010         (REGNO_IN_RANGE_P): Remove.
10011         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10012         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10013         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10014         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10015         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10016         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10017         (REGNO_GENERAL_P): New.
10018         (HAVE_POST_MODIFY_DISP): New.
10019         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10020         (LEGITIMIZE_RELOAD_ADDRESS): New.
10021         * config/mn10300/mn10300-protos.h: Update.
10022
10023         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10024         DATA_REGS for AM33 stack-pointer destination.
10025         (mn10300_preferred_output_reload_class): Likewise.
10026         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10027         into a form appropriate for ...
10028         (TARGET_SECONDARY_RELOAD): New.
10029         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10030         * config/mn10300/mn10300-protos.h: Update.
10031         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10032         reload_insi; use the "A" constraint for the scratch; handle AM33
10033         moves of sp to non-address registers.
10034
10035         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10036         (*movqi_internal): ... here.
10037         (*am33_movhi, *mn10300_movhi): Merge into...
10038         (*movhi_internal): ... here.
10039         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10040         as the source/destination of moves from/to SP.
10041         (movsf): Only allow for AM33-2.
10042         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10043         any integer constant constraint.  Only allow for AM33-2.  Tidy
10044         all of the alternative outputs.
10045         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10046         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10047         for MN103.
10048         (udivsi3, umodsi3): New patterns for MN103 only.
10049
10050 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10051
10052         * doc/tm.texi.in: Spell out that a lack of register class unions
10053         can lead to ICEs.
10054         * doc/tm.texi: Regenerate.
10055
10056 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10057
10058         PR rtl-optimization/47337
10059         * dce.c (check_argument_store): New function.
10060         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10061
10062         PR tree-optimization/47290
10063         * tree-eh.c (infinite_empty_loop_p): New function.
10064         (cleanup_empty_eh): Use it.
10065
10066 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10067
10068         PR target/46997
10069         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10070         (a64_expand_widen_sum): Ditto.
10071         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10072         (vec_extract_evenodd_help): Ditto.
10073         (vec_extract_evenv4hi): Ditto.
10074         (vec_extract_oddv4hi): Ditto.
10075         (vec_extract_evenv2si): Ditto.
10076         (vec_extract_oddv2si): Ditto.
10077         (vec_extract_evenv2sf): Ditto.
10078         (vec_extract_oddv2sf): Ditto.
10079         (vec_pack_trunc_v4hi: Ditto.
10080         (vec_pack_trunc_v2si): Ditto.
10081         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10082         (vec_interleave_highv8qi): Ditto.
10083         (mix1_r): Ditto.
10084         (vec_extract_oddv8qi): Ditto.
10085         (vec_interleave_lowv4hi): Ditto.
10086         (vec_interleave_highv4hi): Ditto.
10087         (vec_interleave_lowv2si): Ditto.
10088         (vec_interleave_highv2si): Ditto.
10089
10090 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10091
10092         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10093         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10094         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10095         (pa_c_mode_for_suffix): New.
10096         (TARGET_EXPAND_BUILTIN): Define.
10097         (TARGET_C_MODE_FOR_SUFFIX): Define.
10098         (pa_builtins): Define.
10099         (pa_init_builtins): Register __float128 type and init new support
10100         builtins.
10101         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10102         * config/pa/quadlib.c (_U_Qfcopysign): New.
10103
10104 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10105
10106         PR middle-end/46894
10107         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10108         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10109         are defined.
10110
10111 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10112
10113         PR tree-optimization/47179
10114         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10115         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10116
10117 2011-01-18  Richard Guenther  <rguenther@suse.de>
10118
10119         PR rtl-optimization/47216
10120         * emit-rtl.c: Include tree-flow.h.
10121         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10122         of replicating it with different semantics.
10123         * Makefile.in (emit-rtl.o): Adjust.
10124
10125 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10126
10127         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10128         (cortex_a9_dp): Handle neon types correctly.
10129
10130 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10131
10132         PR rtl-optimization/47299
10133         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10134         subtarget.  Use normal multiplication if both operands are constants.
10135         * expmed.c (expand_widening_mult): Don't try to optimize constant
10136         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10137         before using it.
10138
10139 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10140
10141         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10142         spacing after 'e.g.', typos, comma, hyphenation.
10143
10144 2011-01-17  Richard Henderson  <rth@redhat.com>
10145
10146         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10147         (rx_restricted_mem_operand): New.
10148         (rx_shift_operand): Use register_operand.
10149         (rx_source_operand, rx_compare_operand): Likewise.
10150         * config/rx/rx.md (addsi3_flags): New expander.
10151         (adddi3): Rewrite as expander.
10152         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10153         (subsi3_flags): New expander.
10154         (subdi3): Rewrite as expander.
10155         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10156
10157         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10158         (rx_init_builtins): Remove sat builtin.
10159         (rx_expand_builtin): Likewise.
10160         * config/rx/rx.md (ssaddsi3): New.
10161         (*sat): Rename from sat.  Represent the CC_REG input.
10162
10163         * config/rx/predicates.md (rshift_operator): New.
10164         * config/rx/rx.c (rx_expand_insv): Remove.
10165         * config/rx/rx-protos.h: Update.
10166         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10167         operand to the canonical position.
10168         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10169         (*bitclr, *bitclr_in_memory): Similarly.
10170         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10171         (insv): Retain the zero_extract in the expansion.
10172
10173         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10174         (bswaphi2, bitinvert, revw): Likewise.
10175
10176         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10177         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10178         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10179         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10180         (bitset, bitset_in_memory): Likewise.
10181         (bitinvert, bitinvert_in_memory): Likewise.
10182         (bitclr, bitclr_in_memory): Likewise.
10183         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10184         (rx_strend, rx_cmpstrn): Likewise.
10185         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10186         (bitop peep2 patterns): Remove.
10187
10188         * config/rx/rx.c (rx_match_ccmode): New.
10189         * config/rx/rx-protos.h: Update.
10190         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10191         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10192         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10193         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10194         (fix_truncsfsi2, floatsisf2): Likewise.
10195         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10196         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10197         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10198         (*subsi3_flags, *xorsi3_flags): New.
10199
10200         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10201
10202         * config/rx/rx.c (rx_print_operand): Remove workaround for
10203         unsplit comparison operations.
10204
10205         * config/rx/rx.md (movsicc): Split after reload.
10206         (*movsicc): Merge *movsieq and *movsine via match_operator.
10207         (*stcc): New pattern.
10208
10209         * config/rx/rx.c (rx_float_compare_mode): Remove.
10210         * config/rx/rx.h (rx_float_compare_mode): Remove.
10211         * config/rx/rx.md (cstoresi4): Split after reload.
10212         (*sccc): New pattern.
10213
10214         * config/rx/predicates.md (label_ref_operand): New.
10215         (rx_z_comparison_operator): New.
10216         (rx_zs_comparison_operator): New.
10217         (rx_fp_comparison_operator): New.
10218         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10219         Validate that the flags are set properly for the comparison.
10220         (rx_gen_cond_branch_template): Remove.
10221         (rx_cc_modes_compatible): Remove.
10222         (mode_from_flags): New.
10223         (flags_from_code): Rename from flags_needed_for_conditional.
10224         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10225         (rx_select_cc_mode): Likewise.
10226         (rx_split_fp_compare): New.
10227         (rx_split_cbranch): New.
10228         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10229         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10230         (*cbranchsf4): Similarly.
10231         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10232         match_operator and rx_split_cbranch.
10233         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10234         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10235         (*cmpsi): Rename from cmpsi.
10236         (*tstsi): Rename from tstsi.
10237         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10238         (*conditional_branch): Rename from conditional_branch.
10239         (*reveresed_conditional_branch): Remove.
10240         (b<code>): Remove expander.
10241         * config/rx/rx-protos.h: Update.
10242
10243         * config/rx/rx.c (rx_compare_redundant): Remove.
10244         * config/rx/rx.md (cmpsi): Don't use it.
10245         * config/rx/rx-protos.h: Update.
10246
10247         * config/rx/rx-modes.def (CC_F): New mode.
10248         * config/rx/rx.c (rx_select_cc_mode): New.
10249         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10250         * config/rx/rx-protos.h: Update.
10251
10252 2011-01-17  Richard Henderson  <rth@redhat.com>
10253
10254         * except.c (dump_eh_tree): Fix stray ; after for statement.
10255
10256 2011-01-17  Richard Guenther  <rguenther@suse.de>
10257
10258         PR tree-optimization/47313
10259         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10260         handling before copying the body.  Properly deal with
10261         by-reference result in SSA form.
10262
10263 2011-01-17  Ian Lance Taylor  <iant@google.com>
10264
10265         PR target/47219
10266         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10267         (struct_value_alias_set): Don't define.
10268         (sparc_option_override): Don't set sparc_sr_alias_set and
10269         struct_value_alias_set.
10270         (save_or_restore_regs): Use gen_frame_mem rather than calling
10271         set_mem_alias_set.
10272         (sparc_struct_value_rtx): Likewise.
10273
10274 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10275
10276         PR target/47318
10277         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10278         (_mm_maskstore_pd): Likewise.
10279         (_mm_maskload_ps): Likewise.
10280         (_mm_maskstore_ps): Likewise.
10281         (_mm256_maskload_pd): Change mask to __m256i.
10282         (_mm256_maskstore_pd): Likewise.
10283         (_mm256_maskload_ps): Likewise.
10284         (_mm256_maskstore_ps): Likewise.
10285
10286         * config/i386/i386-builtin-types.def: Updated.
10287         (ix86_expand_special_args_builtin): Likewise.
10288
10289         * config/i386/i386.c (bdesc_special_args): Update
10290         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10291         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10292         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10293         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10294
10295         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10296         Use <avxpermvecmode> on mask register.
10297         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10298
10299 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10300             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10301             Eric Botcazou  <ebotcazou@adacore.com>
10302
10303         PR target/46655
10304         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10305         if <= USHRT_MAX in 32-bit mode.
10306
10307 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10308
10309         * doc/install.texi (Configuration, Specific): Wrap long
10310         lines in examples.  Allow line wrapping in long options
10311         and URLs where beneficial for PDF output.
10312
10313 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10314
10315         * config/mips/mips.c (mips_classify_symbol): Don't return
10316         SYMBOL_PC_RELATIVE for nonlocal labels.
10317
10318 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10319
10320         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10321
10322 2011-01-15  Jan Hubicka  <jh@suse.cz>
10323
10324         PR tree-optimization/47276
10325         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10326         declarations as needed.
10327
10328 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10329
10330         * common.opt (fdevirtualize): New flag.
10331         * doc/invoke.texi (Option Summary): Document it.
10332         * opts.c (default_options_table): Add devirtualize flag.
10333         * ipa-prop.c (detect_type_change): Return immediately if
10334         devirtualize flag is not set.
10335         (detect_type_change_ssa): Likewise.
10336         (compute_known_type_jump_func): Likewise.
10337         (ipa_analyze_virtual_call_uses): Likewise.
10338
10339 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10340
10341         PR tree-optimization/45934
10342         PR tree-optimization/46302
10343         * ipa-prop.c (type_change_info): New type.
10344         (stmt_may_be_vtbl_ptr_store): New function.
10345         (check_stmt_for_type_change): Likewise.
10346         (detect_type_change): Likewise.
10347         (detect_type_change_ssa): Likewise.
10348         (compute_complex_assign_jump_func): Check for dynamic type change.
10349         (compute_complex_ancestor_jump_func): Likewise.
10350         (compute_known_type_jump_func): Likewise.
10351         (compute_scalar_jump_functions): Likewise.
10352         (ipa_analyze_virtual_call_uses): Likewise.
10353         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10354
10355 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10358         * config/i386/i386.opt (msse5): New Alias.
10359
10360 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10361
10362         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10363         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10364         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10365         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10366
10367 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10370         -mcpu options.
10371         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10372         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10373         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10374         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10375         Likewise.
10376         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10377
10378 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10379
10380         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10381
10382 2011-01-14  Mike Stump  <mikestump@comcast.net>
10383
10384         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10385         * config/fr30/fr30.md: Likweise
10386         (movsi_push): Likewise.
10387         (movsi_pop): Likewise.
10388         (enter_func): Likewise.
10389         * config/moxie/moxie.md (movsi_push): Likewise.
10390         (movsi_pop): Likewise.
10391
10392 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10393
10394         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10395         %{no_archive} %{exact_version}.
10396         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10397         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10398         %{no_archive} %{exact_version}.
10399         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10400         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10401         * config/mips/vxworks.h: Likewise.
10402
10403 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10404
10405         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10406
10407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10408
10409         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10410         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10411
10412 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10413
10414         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10415         -nodefaultlib.
10416
10417 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10418
10419         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10420         for mcpu not cpu.
10421         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10422         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10423         not cpu.
10424         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10425         Don't handle -shlib.
10426
10427 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10428
10429         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10430         (CC1_SPEC): Don't handle -profile.
10431
10432 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10433
10434         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10435         * config/mips/mips.h (CC1_SPEC): Likewise.
10436
10437 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10438
10439         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10440         * config/mips/mips.h (CC1_SPEC): Likewise.
10441
10442 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10443
10444         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10445         * config/m32r/linux.h (LINK_SPEC): Likewise.
10446         * config/mips/linux.h (LINK_SPEC): Likewise.
10447         * config/mips/linux64.h (LINK_SPEC): Likewise.
10448         * config/sparc/linux.h (LINK_SPEC): Likewise.
10449         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10450         LINK_SPEC): Likewise.
10451         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10452
10453 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10454
10455         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10456         %{version:-v}.
10457         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10458
10459 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10460
10461         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10462         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10463
10464 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10465
10466         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10467
10468 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10469
10470         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10471         supports -Bstatic/-Bdynamic.
10472         * configure: Regenerate.
10473
10474 2011-01-14  Jan Hubicka  <jh@suse.cz>
10475             Jack Howarth  <howarth@bromo.med.uc.edu>
10476
10477         PR target/46037
10478         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10479         when checking debug_info_level. Test write_symbols instead of
10480         debug_hooks->var_location when setting flag_var_tracking_uninit.
10481
10482 2011-01-14  Richard Guenther  <rguenther@suse.de>
10483
10484         PR tree-optimization/47179
10485         * target.def (ref_may_alias_errno): New target hook.
10486         * targhooks.h (default_ref_may_alias_errno): Declare.
10487         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10488         (default_ref_may_alias_errno): New function.
10489         * target.h (struct ao_ref_s): Declare.
10490         * tree-ssa-alias.c: Include target.h.
10491         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10492         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10493         (targhooks.o): Likewise.
10494         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10495         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10496
10497 2011-01-14  Richard Guenther  <rguenther@suse.de>
10498
10499         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10500
10501 2011-01-14  Richard Guenther  <rguenther@suse.de>
10502
10503         PR tree-optimization/47280
10504         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10505         return CFG changes.
10506         (tree_ssa_forward_propagate_single_use_vars): Deal with
10507         CFG changes from associate_plusminus.
10508
10509 2011-01-14  Richard Guenther  <rguenther@suse.de>
10510
10511         PR middle-end/47281
10512         Revert
10513         2011-01-11  Richard Guenther  <rguenther@suse.de>
10514
10515         PR tree-optimization/46076
10516         * tree-ssa.c (useless_type_conversion_p): Conversions from
10517         unprototyped to empty argument list function types are useless.
10518
10519 2011-01-14  Richard Guenther  <rguenther@suse.de>
10520
10521         PR tree-optimization/47286
10522         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10523
10524 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10525
10526         PR middle-end/46823
10527         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10528
10529 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10530
10531         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10532         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10533         * config/xtensa/xtensa.c (xtensa_libcall_value,
10534         xtensa_function_value_regno_p): New functions.
10535         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10536
10537 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10538
10539         PR c++/47213
10540         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10541         PE specific hook.
10542         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10543         New function prototype.
10544         * config/i386/winnt.c (i386_pe_assemble_visibility):
10545         Warn only if attribute was specified by user.
10546
10547 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10548
10549         PR target/47251
10550         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10551         floating point.
10552         (floatunsdidf2_fcfidu): Ditto.
10553
10554 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10555
10556         * config/s390/s390.c (print_operand_address): Replace 'error' with
10557         'output_operand_lossage'.
10558         (print_operand): Likewise.
10559
10560 2011-01-13  Jeff Law  <law@redhat.com>
10561
10562         PR rtl-optimization/39077
10563         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10564         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10565         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10566         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10567         * gcse.c (prune_insertions_deletions): New function.
10568         (compute_pre_data): Use it.
10569
10570 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10571
10572         PR debug/PR46973
10573         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10574         static function.
10575         (prune_unused_types_mark): Use it.
10576
10577 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10578
10579         PR rtl-optimization/45352
10580         * sel-sched.c: Update copyright years.
10581         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10582         in the advancing loop when we have issued issue_rate insns.
10583
10584 2011-01-12  Richard Henderson  <rth@redhat.com>
10585
10586         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10587         (TARGET_MD_ASM_CLOBBERS): New.
10588
10589         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10590         (TARGET_DELEGITIMIZE_ADDRESS): New.
10591
10592         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10593         (clzsi2, *bsch): New patterns.
10594
10595         * config/mn10300/mn10300.md (INT): New mode iterator.
10596         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10597
10598         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10599         flag_split_wide_types.
10600
10601         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10602         (mn10300_trampoline_init): Rewrite without a template, an immediate
10603         load and a direct branch.
10604         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10605
10606 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10607
10608         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10609         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10610         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10611         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10612
10613 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10614
10615         PR debug/47209
10616         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10617         of type.
10618
10619 2011-01-12  Jan Hubicka  <jh@suse.cz>
10620
10621         PR driver/47244
10622         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10623         (PLUGIN_COND_CLOSE): New macro.
10624         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10625
10626 2011-01-12  Richard Guenther  <rguenther@suse.de>
10627
10628         PR lto/47259
10629         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10630         register variables in a MEM_REF.
10631
10632 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10633
10634         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10635         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10636         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10637         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10638         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10639         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10640         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10641         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10642         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10643         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10644         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10645         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10646         * config/gnu-user.h: New.  Copied from linux.h.
10647         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10648         GNU_USER_TARGET_STARTFILE_SPEC.
10649         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10650         GNU_USER_TARGET_ENDFILE_SPEC.
10651         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10652         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10653         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10654         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10655         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10656         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10657         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10658         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10659         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10660         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10661         * config/arm/linux-eabi.h (CC1_SPEC): Use
10662         GNU_USER_TARGET_CC1_SPEC.
10663         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10664         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10665         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10666         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10667         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10668         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10669         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10670         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10671
10672 2011-01-12  Richard Guenther  <rguenther@suse.de>
10673
10674         PR other/46946
10675         * doc/invoke.texi (ffast-math): Document it is turned on
10676         with -Ofast.
10677
10678 2011-01-12  Jan Hubicka  <jh@suse.cz>
10679
10680         PR tree-optimization/47233
10681         * opts.c (common_handle_option): Disable ipa-reference with profile
10682         feedback.
10683
10684 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10685
10686         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10687         error message.
10688
10689 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10690
10691         * c-parser.c (c_lex_one_token): Updated and reindented some
10692         comments.  No changes in code.
10693
10694 2011-01-11  Ian Lance Taylor  <iant@google.com>
10695
10696         * godump.c (go_output_var): Don't output the variable if there is
10697         already a type with the same name.
10698
10699 2011-01-11  Ian Lance Taylor  <iant@google.com>
10700
10701         * godump.c (go_format_type): Don't generate float80.
10702
10703 2011-01-11  Richard Henderson  <rth@redhat.com>
10704
10705         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10706         declaration.  Rewrite for both speed and size.
10707         (mn10300_address_cost_1): Remove.
10708         (mn10300_register_move_cost): New.
10709         (mn10300_memory_move_cost): New.
10710         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10711         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10712         extensions, shifts, BSWAP, CLZ.
10713         (mn10300_wide_const_load_uses_clr): Remove.
10714         (TARGET_REGISTER_MOVE_COST): New.
10715         (TARGET_MEMORY_MOVE_COST): New.
10716         * config/mn10300/mn10300-protos.h: Update.
10717         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10718
10719         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10720         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10721         * config/mn10300/mn10300-protos.h: Update.
10722         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10723         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10724         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10725         (*test_int_bitfield, *test_byte_bitfield): Remove.
10726         (*bit_test, *subreg_bit_test): Remove.
10727         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10728
10729         * config/mn10300/constraints.md ("c"): Rename from "A".
10730         ("A", "D"): New constraint letters.
10731         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10732         (fmssf4, fnmasf4, fnmssf4): Likewise.
10733
10734         * config/mn10300/mn10300.md (isa): New attribute.
10735         (enabled): New attribute.
10736
10737         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10738         (abssf2, negsf2): Define only for hardware fp.
10739         (sqrtsf2): Reformat.
10740         (addsf3, subsf3, mulsf3): Merge expander and insn.
10741
10742         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10743         (DEBUGGER_AUTO_OFFSET): Remove.
10744         (DEBUGGER_ARG_OFFSET): Remove.
10745
10746         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10747         Emit register stores with the same offsets as the hardware.
10748         (mn10300_store_multiple_operation): Don't check that the register
10749         save offsets are monotonic.
10750         * config/mn10300/mn10300-protos.h: Update.
10751
10752         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10753
10754         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10755         in terms of the value on the stack, not the MDR register.
10756
10757 2011-01-11  Jan Hubicka  <jh@suse.cz>
10758
10759         PR lto/45721
10760         PR lto/45375
10761         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10762         (symbol_alias_set_destroy, symbol_alias_set_contains,
10763         propagate_aliases_backward): Declare.
10764         * lto-streamer-out.c (struct sets): New sturcture.
10765         (trivally_defined_alias): New function.
10766         (output_alias_pair_p): Rewrite.
10767         (output_unreferenced_globals): Fix output of alias pairs.
10768         (produce_symtab): Likewise.
10769         * ipa.c (function_and_variable_visibility): Set weak alias destination
10770         as needed in lto.
10771         * varasm.c (symbol_alias_set_t): Remove.
10772         (symbol_alias_set_destroy): Export.
10773         (propagate_aliases_forward, propagate_aliases_backward): New functions
10774         based on ...
10775         (compute_visible_aliases): ... this one; remove.
10776         (trivially_visible_alias): New
10777         (trivially_defined_alias): New.
10778         (remove_unreachable_alias_pairs): Rewrite.
10779         (finish_aliases_1): Reorganize code checking if alias is defined.
10780         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10781         in LTO mode.
10782
10783 2011-01-11  Richard Guenther  <rguenther@suse.de>
10784
10785         PR tree-optimization/46076
10786         * tree-ssa.c (useless_type_conversion_p): Conversions from
10787         unprototyped to empty argument list function types are useless.
10788
10789 2011-01-11  Richard Guenther  <rguenther@suse.de>
10790
10791         PR middle-end/45235
10792         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10793         volatile MEMs as MEM_READONLY_P.
10794
10795 2011-01-11  Richard Guenther  <rguenther@suse.de>
10796
10797         PR tree-optimization/47239
10798         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10799
10800 2011-01-11  Jeff Law  <law@redhat.com>
10801
10802         PR tree-optimization/47086
10803         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10804         IVs from statements that might throw.
10805
10806 2011-01-10  Jan Hubicka  <jh@suse.cz>
10807
10808         PR lto/45375
10809         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10810
10811 2011-01-10  Jan Hubicka  <jh@suse.cz>
10812
10813         PR lto/45375
10814         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10815         when correcting profile.
10816
10817 2011-01-10  Jan Hubicka  <jh@suse.cz>
10818
10819         PR lto/46083
10820         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10821         DECL_FINI_PRIORITY.
10822         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10823         Restore DECL_FINI_PRIORITY.
10824
10825 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10826
10827         * doc/gimple.texi: Fix quoting of multi-word return values in
10828         @deftypefn statements.  Ensure presence of return value.  Wrap
10829         overlong @deftypefn lines.
10830         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10831         descriptions of removed functions.
10832         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10833         of multi-word return value in @deftypefn statement.
10834
10835 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10836
10837         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10838         (Conditional Expressions, Logical Operators)
10839         (Statement and operand traversals): Do not indent smallexample
10840         code.  Fix duplicate function argument in example.
10841
10842 2011-01-10  Jeff Law  <law@redhat.com>
10843
10844         PR tree-optimization/47141
10845         * ipa-split.c (split_function): Handle case where we are
10846         returning a value and the return block has a virtual operand phi.
10847
10848 2011-01-10  Jan Hubicka  <jh@suse.cz>
10849
10850         PR tree-optimization/47234
10851         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10852         (pass_feedback_split_functions): Declare.
10853         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10854         tree-profile.
10855         * ipa-split.c (gate_split_functions): Update comments; disable
10856         split-functions for profile_arc_flag and branch_probabilities.
10857         (gate_feedback_split_functions): New function.
10858         (execute_feedback_split_functions): New function.
10859         (pass_feedback_split_functions): New global var.
10860
10861 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10862
10863         PR lto/46760
10864         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10865         calling gimple_call_set_cannot_inline.
10866
10867 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10868
10869         * config/darwin-sections.def: Remove unused section.
10870
10871 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10872
10873         PR c++/47218
10874         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10875
10876 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10877
10878         PR objc/47232
10879         * c-parser.c (c_parser_declaration_or_fndef): Improved
10880         error message.
10881
10882 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10883
10884         * config/i386/winnt.c (i386_pe_start_function): Make sure
10885         to switch back to function's section.
10886
10887 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10888
10889         PR gcc/46902
10890         PR testsuite/46912
10891         * plugin.c: Move include of dlfcn.h from here...
10892         * system.h: ... to here.
10893
10894 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10895
10896         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10897         file name.
10898         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10899         two extra empty pages in PDF output.
10900
10901 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10902
10903         PR objc/47078
10904         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10905         for error recovery purposes behave as if it was not specified so
10906         that the default type is usd.
10907
10908 2011-01-07  Jan Hubicka  <jh@suse.cz>
10909
10910         PR tree-optmization/46469
10911         * ipa.c (function_and_variable_visibility): Clear needed flags on
10912         nodes with external decls; handle weakrefs merging correctly.
10913
10914 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10915
10916         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10917         not false.
10918
10919 2011-01-07  Jan Hubicka  <jh@suse.cz>
10920
10921         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10922         and no longer claim that gold is required for linker plugin.
10923         * configure: Regenerate.
10924         * gcc.c (PLUGIN_COND): New macro.
10925         (LINK_COMMAND_SPEC): Use it.
10926         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10927         * config.in (HAVE_LTO_PLUGIN): New.
10928         * configure.ac (--with-lto-plugin): New parameter; autodetect
10929         HAVE_LTO_PLUGIN.
10930
10931 2011-01-07  Jan Hubicka  <jh@suse.cz>
10932
10933         PR tree-optimization/46367
10934         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10935         when we can update original.
10936         (cgraph_mark_inline_edge): Sanity check.
10937         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10938
10939 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10940
10941         * config/spu/spu.h (ASM_COMMENT_START): Define.
10942
10943 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10944
10945         PR driver/42445
10946         * gcc.c (%>S): New.
10947         (SWITCH_KEEP_FOR_GCC): Likewise.
10948         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10949         (do_spec_1): Handle "%>".
10950
10951         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10952
10953 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10954
10955         PR target/47201
10956         * config/i386/i386.c (ix86_delegitimize_address): If
10957         simplify_gen_subreg fails, return orig_x.
10958
10959         PR bootstrap/47187
10960         * value-prof.c (gimple_stringop_fixed_value): Handle
10961         lhs of the call properly.
10962
10963 2011-01-07  Jan Hubicka  <jh@suse.cz>
10964
10965         PR lto/45375
10966         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10967
10968 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10969
10970         * target.def (function_switched_text_sections): New hook.
10971         * doc/tm.texi: Regenerated.
10972         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10973         * final.c (default_function_switched_text_sections): New.
10974         (final_scan_insn): Call function_switched_text_sections when a
10975         mid-function section change occurs.
10976         * output.h (default_function_switched_text_sections): Declare.
10977         * config/darwin-protos.h (darwin_function_switched_text_sections):
10978         Likewise.
10979         * config/darwin.c (darwin_function_switched_text_sections): New.
10980         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10981
10982 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10983
10984         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10985         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10986         the secondary code fragment when outputting for DWARF == 2.
10987
10988 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10989
10990         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10991         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10992         Remove.
10993         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10994         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10995
10996 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10997
10998         PR debug/46704
10999         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11000         when it is not empty.
11001
11002 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11003
11004         Bobcat Enablement
11005         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11006         (case ${target}): Add btver1.
11007         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11008         -march=native recognize btver1 processors.
11009         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11010         btver1 def_and_undef
11011         * config/i386/i386.c (struct processor_costs btver1_cost): New
11012         btver1 cost table.
11013         (m_BTVER1): New definition.
11014         (m_AMD_MULTIPLE): Includes m_BTVER1.
11015         (initial_ix86_tune_features): Add btver1 tune.
11016         (processor_target_table): Add btver1 entry.
11017         (static const char *const cpu_names): Add btver1 entry.
11018         (software_prefetching_beneficial_p): Add btver1.
11019         (ix86_option_override_internal): Add btver1 instruction sets.
11020         (ix86_issue_rate): Add btver1.
11021         (ix86_adjust_cost): Add btver1.
11022         * config/i386/i386.h (TARGET_BTVER1): New definition.
11023         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11024         (enum processor_type): Add PROCESSOR_BTVER1.
11025         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11026
11027 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11028
11029         PR target/43309
11030         * config/i386/i386.c (legitimize_tls_address)
11031         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11032         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11033         (tls_initial_exec_64_sun): New pattern.
11034
11035 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11036
11037         * doc/invoke.texi (Overall Options): Improve wording and markup
11038         of the description of -wrapper.
11039
11040 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11041
11042         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11043         rdynamic, threads): New Driver options.
11044
11045 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11046
11047         PR target/38118
11048         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11049         if coming from .tdata.
11050         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11051
11052 2011-01-06  Jan Hubicka  <jh@suse.cz>
11053
11054         PR lto/47188
11055         * collect2.c (main): Do not enable LTOmode when plugin is active.
11056
11057 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11058
11059         PR other/45915
11060         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11061         --version output if supported.
11062         * configure: Regenerate.
11063
11064 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11065
11066         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11067         Driver options.
11068
11069 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11070
11071         PR c/47150
11072         * c-convert.c (convert): When converting a complex expression
11073         other than COMPLEX_EXPR to a different complex type, ensure
11074         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11075         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11076         when converting COMPLEX_TYPE.
11077
11078 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11079
11080         PR tree-optimization/47139
11081         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11082         only the last reduction value is used outside the loop.  Update
11083         documentation.
11084
11085 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11086
11087         * config/rtems.opt: New.
11088         * config.gcc (*-*-rtems*): Use rtems.opt.
11089
11090 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11091
11092         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11093         processors do not support 3DNow instructions.
11094
11095 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11096
11097         * config/spu/spu.c (spu_option_override): Set parameter
11098         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11099
11100 2011-01-05  Jan Hubicka  <jh@suse.cz>
11101
11102         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11103         at the command line.
11104
11105 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11106
11107         PR lto/47162
11108         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11109         deltas on streamed outgoing edges.
11110         (output_node_opt_summary): Output info for outgoing edges only when
11111         the node is in new parameter set.
11112         (output_cgraph_opt_summary): New parameter set, passed to the two
11113         aforementioned functions.  Update its forward declaration and its
11114         callee too.
11115
11116 2011-01-05  Tom Tromey  <tromey@redhat.com>
11117
11118         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11119         operator to c_finish_omp_atomic.
11120         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11121         (build_unary_op): Update.
11122         (build_modify_expr): Update.
11123         (build_asm_expr): Update.
11124
11125 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11126
11127         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11128         newly inserted insns.
11129         (pad_bb): Likewise.
11130         (spu_emit_branch_hint): Likewise.
11131         (insert_hbrp_for_ilb_runout): Likewise.
11132         (spu_machine_dependent_reorg): Call df_finish_pass after
11133         schedule_insns returns.
11134
11135 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11136
11137         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11138
11139 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11140
11141         PR tree-optimization/47005
11142         * tree-sra.c (struct access): Add 'non_addressable' bit.
11143         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11144         (decide_one_param_reduction): Return 0 if the parameter is passed by
11145         reference and one of the accesses in the group is non_addressable.
11146
11147 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11148
11149         PR tree-optimization/47056
11150         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11151         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11152         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11153
11154 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11155
11156         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11157         initializer.  Skip view conversions from aggregate types.
11158
11159 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11160
11161         PR bootstrap/47055
11162         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11163
11164 2011-01-04  Philipp Thomas  <pth@suse.de>
11165
11166         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11167         obvious typo.
11168
11169 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11170
11171         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11172         on empty epilogue sequences.
11173
11174 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11175
11176         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11177         non-static): New Driver options.
11178
11179 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11180
11181         PR driver/47137
11182         * gcc.c (default_compilers[]): Set combinable field to 0
11183         for all assembly languages.
11184
11185 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11186
11187         * config/mips/loongson3a.md: New file.
11188         * config/mips/mips.md: Include loongson3a.md.
11189         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11190         TUNE_LOONGSON_3A.
11191
11192 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11193
11194         PR middle-end/47017
11195         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11196         instead of convert_memory_address_addr_space on the base expression.
11197
11198 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11199
11200         * config/spu/spu.c (spu_option_override): Update error text
11201         for bad -march= / -mtune= values.
11202
11203 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11204
11205         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11206         if branch-hint optimization will be performed.
11207
11208 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11209
11210         PR tree-optimization/47148
11211         * ipa-split.c (split_function): Convert arguments to
11212         DECL_ARG_TYPE if possible.
11213
11214         PR tree-optimization/47155
11215         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11216         when computing uns.
11217
11218         PR rtl-optimization/47157
11219         * combine.c (try_combine): If undobuf.other_insn becomes
11220         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11221         and set *new_direct_jump_p too.
11222
11223 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11224
11225         PR tree-optimization/47021
11226         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11227
11228 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11229
11230         * gcc.c (process_command): Update copyright notice dates.
11231         * gcov.c (print_version): Likewise.
11232         * gcov-dump.c (print_version): Likewise.
11233         * mips-tfile.c (main): Likewise.
11234         * mips-tdump.c (main): Likewise.
11235
11236 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11237
11238         PR tree-optimization/46801
11239         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11240         aggregate fields start at byte boundary instead of the bit-field flag.
11241
11242 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11243
11244         PR driver/47137
11245         * gcc.c (main): Revert revision 168407.
11246
11247 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11248
11249         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11250
11251 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11252
11253         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11254         vector optab to expand vector/scalar shift, update gimple to vector.
11255
11256 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11257
11258         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11259         a thunk.
11260
11261 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11262
11263         PR tree-optimization/46984
11264         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11265         HOST_WIDE_INT.
11266         (cgraph_create_indirect_edge): Fixed line length.
11267         (cgraph_indirect_call_info): Declare.
11268         (cgraph_make_edge_direct) Update declaration.
11269         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11270         (cgraph_create_indirect_edge): Use it.
11271         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11272         callees.
11273         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11274         the new thunk_delta representation.
11275         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11276         HOST_WIDE_INT.
11277         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11278         (ipa_read_indirect_edge_info): Likewise.
11279         * lto-cgraph.c (output_edge_opt_summary): New function.
11280         (output_node_opt_summary): Call it on all outgoing edges.
11281         (input_edge_opt_summary): New function.
11282         (input_node_opt_summary): Call it on all outgoing edges.
11283
11284 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11285
11286         PR driver/47137
11287         * gcc.c (main): Don't check have_o when settting combine_inputs.
11288
11289 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11290
11291         * regrename.c: Add general comment describing the pass.
11292         (struct du_head): Remove 'length' field.
11293         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11294         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11295         Force renaming to the preferred class (if any) in the first pass and do
11296         not consider registers that belong to it in the second pass.
11297         (create_new_chain): Do not set 'length' field.
11298         (scan_rtx_reg): Likewise.
11299
11300 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11301
11302         PR tree-optimization/47140
11303         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11304         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11305         to bit_value_binop.
11306
11307         PR rtl-optimization/47028
11308         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11309         parm_birth_insn instead of at the beginning of first bb.
11310
11311 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11312
11313         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11314         Remove the word "see" before "@pxref".
11315         * doc/rtl.texi: Remove the word "see" before "@pxref".
11316
11317 2011-01-01  Jan Hubicka  <jh@suse.cz>
11318
11319         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11320         memory.
11321
11322 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11323
11324         PR target/38662
11325         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11326
11327 \f
11328 Copyright (C) 2011 Free Software Foundation, Inc.
11329
11330 Copying and distribution of this file, with or without modification,
11331 are permitted in any medium without royalty provided the copyright
11332 notice and this notice are preserved.