OSDN Git Service

Fix long line and tidy up
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4
5 2011-04-20  Tristan Gingold  <gingold@adacore.com>
6
7         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8
9 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
10
11         PR target/18145
12
13         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
14         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18
19         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20         New prototype.
21
22         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
23         (avr_asm_named_section, avr_asm_output_aligned_common,
24         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
25         New functions to update...
26         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
27         (avr_asm_init_sections): Overwrite section callbacks for
28         data_section, bss_section.
29         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
30         from here to...
31         (avr_file_end): ...here.
32
33 2011-04-20  Richard Guenther  <rguenther@suse.de>
34
35         PR middle-end/48695
36         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
37         objects and types here.  Adjust for their offset before
38         comparing.
39
40 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
41
42         * tree-vect-stmts.c (vectorizable_store): Only chain one related
43         statement per copy.
44
45 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
46
47         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
48         (GIMPLE_H): Include $(INTERNAL_FN_H).
49         (OBJS-common): Add internal-fn.o.
50         (internal-fn.o): New rule.
51         * internal-fn.def: New file.
52         * internal-fn.h: Likewise.
53         * internal-fn.c: Likewise.
54         * gimple.h: Include internal-fn.h.
55         (GF_CALL_INTERNAL): New gf_mask.
56         (gimple_statement_call): Put fntype into a union with a new
57         internal_fn field.
58         (gimple_build_call_internal): Declare.
59         (gimple_build_call_internal_vec): Likewise.
60         (gimple_call_same_target_p): Likewise.
61         (gimple_call_internal_p): New function.
62         (gimple_call_internal_fn): Likewise.
63         (gimple_call_fntype): Return null for internal calls.
64         (gimple_call_set_fntype): Assert that the function is not internal.
65         (gimple_call_set_fn): Likewise.
66         (gimple_call_set_fndecl): Likewise.
67         (gimple_call_set_internal_fn): New function.
68         (gimple_call_addr_fndecl): Handle null functions.
69         (gimple_call_return_type): Likewise null types.
70         * gimple.c (gimple_build_call_internal_1): New function.
71         (gimple_build_call_internal): Likewise.
72         (gimple_build_call_internal_vec): Likewise.
73         (gimple_call_same_target_p): Likewise.
74         (gimple_call_flags): Handle calls to internal functions.
75         (gimple_call_fnspec): New function.
76         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
77         (gimple_has_side_effects): Handle null functions.
78         (gimple_rhs_has_side_effects): Likewise.
79         (gimple_call_copy_skip_args): Handle calls to internal functions.
80         * cfgexpand.c (expand_call_stmt): Likewise.
81         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
82         * gimple-fold.c (gimple_fold_call): Handle null functions.
83         (gimple_fold_stmt_to_constant_1): Don't fold
84         calls to internal functions.
85         * gimple-low.c (gimple_check_call_args): Handle calls to internal
86         functions.
87         * gimple-pretty-print.c (dump_gimple_call): Likewise.
88         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
89         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
90         (do_warn_unused_result): Likewise.
91         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
92         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
93         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
94         the target of a call.
95         (initialize_hash_element): Update accordingly.
96         (hashable_expr_equal_p): Use gimple_call_same_target_p.
97         (iterative_hash_hashable_expr): Handle calls to internal functions.
98         (print_expr_hash_elt): Likewise.
99         * tree-ssa-pre.c (can_value_number_call): Likewise.
100         (eliminate): Handle null functions.
101         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
102         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
103         (find_func_aliases): Likewise.
104         * value-prof.c (gimple_ic_transform): Likewise.
105         (gimple_indirect_call_to_profile): Likewise.
106         * lto-streamer-in.c (input_gimple_stmt): Likewise.
107         * lto-streamer-out.c (output_gimple_stmt): Likewise.
108
109 2011-04-19  Jan Hubicka  <jh@suse.cz>
110
111         * ipa-inline-transform.c (save_inline_function_body): Add comments.
112         * ipa-inline.c (inline_small_functions): Compute summaries first,
113         populate heap later.
114
115 2011-04-19  Jan Hubicka  <jh@suse.cz>
116
117         * cgraph.h (save_inline_function_body): Remove.
118         * ipa-inline-transform.c: New file, broke out of...
119         * ipa-inline.c: ... this one; Update toplevel comment.
120         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
121         make global.
122         (update_noncloned_frequencies): Move to ipa-inline-transform.c
123         (cgraph_mark_inline_edge): Rename to inline_call; move to
124         ipa-inline-transform.c.
125         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
126         move to ipa-inline-transform.c
127         (recursive_inlining, inline_small_functions, flatten_function,
128         ipa_inline, inline_always_inline_functions,
129         early_inline_small_functions): Update.
130         (inline_transform): Move to ipa-inline-transform.c.
131         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
132         Declare.
133         * Makefile.in (ipa-inline-transform.o): New file.
134         * cgraphunit.c (save_inline_function_body): Move to
135         ipa-inline-transform.c
136
137 2011-04-19  DJ Delorie  <dj@redhat.com>
138
139         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
140         registers if we already know there aren't any.
141         (m32c_emit_epilogue): Don't emit a barrier here.
142         (m32c_emit_eh_epilogue): Likewise.
143         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
144         operands at expand time.
145         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
146         int" wchar type.
147         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
148         duplicates.  Provide aliases instead.
149         * config/m32c/prologue.md (eh_return): Emit a barrier here.
150         (eh_epilogue): Add a "(return)" here as a hint to other parts of
151         the compiler.
152
153 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
154
155         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
156         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
157         (general_or_i64_p, sparc_register_move_cost): New function.
158
159 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
160
161         * doc/install.texi (Configuration, --enable-threads): Remove mach.
162         Add lynx, mipssde.
163         Sort table.
164
165 2011-04-19  Xinliang David Li  <davidxl@google.com>
166         
167         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
168         not negative.
169
170 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
171
172         PR target/48678
173         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
174         is a SUBREG with non-MODE_INT mode inside of it.
175
176 2011-04-19  Martin Jambor  <mjambor@suse.cz>
177
178         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
179         also according to actual contants.
180         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
181         (gimple_fold_call): Use it.
182         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
183
184 2011-04-19  Martin Jambor  <mjambor@suse.cz>
185
186         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
187         non-pointer assignments.
188
189 2011-04-19  Martin Jambor  <mjambor@suse.cz>
190
191         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
192         account anc_offset and otr_type from the indirect edge info.
193         * ipa-prop.c (get_ancestor_addr_info): New function.
194         (compute_complex_ancestor_jump_func): Assignment analysis moved to
195         get_ancestor_addr_info, call it.
196         (ipa_note_param_call): Do not initialize information about polymorphic
197         calls, return the indirect call graph edge.  Remove the last
198         parameter, adjust all callers.
199         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
200         parameters.  Initialize polymorphic information in the indirect edge.
201
202 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
203
204         PR lto/48148
205         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
206         the types if they have different enumeration identifiers.
207
208 2011-04-19  Jan Hubicka  <jh@suse.cz>
209
210         * cgraph.h (cgraph_optimize_for_size_p): Declare.
211         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
212         * predict.c (cgraph_optimize_for_size_p): Break out from ...
213         (optimize_function_for_size_p) ... here.
214
215 2011-04-19  Richard Guenther  <rguenther@suse.de>
216
217         PR lto/48207
218         * tree.c (free_lang_data): Do not reset the decl-assembler-name
219         langhook.
220
221 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
222
223         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
224         if DECL_NO_INLINE_WARNING_P is set on the function.
225
226 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
227
228         PR fortran/47976
229         * reload1.c (inc_for_reload): Return void. All callers changed.
230         (emit_input_reload_insns): Don't try to delete previous output
231         reloads to a register, or record spill_reg_store for autoincs.
232
233 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
234
235         * gengtype.h: Updated copyright year.
236         (struct input_file_st): Add inpisplugin field.
237         (type_fileloc): New function.
238         * gengtype.c
239         (write_typed_struct_alloc_def): Add gcc_assert.
240         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
241         (write_typed_alloc_defns): Don't output for plugin files.
242         (input_file_by_name): Clear inpisplugin field.
243         (main): Set inpisplugin field for plugin files.
244
245 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
246
247         * gengtype-state.c (string_eq): New.
248         (read_state): Use string_eq instead of strcmp when creating the
249         state_ident_tab.
250
251 2011-04-19  Wei Guozhi  <carrot@google.com>
252
253         PR target/47855
254         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
255         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
256         linkage.
257         * config/arm/constraints.md (Uu): New constraint.
258         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
259
260 2011-04-19  Tristan Gingold  <gingold@adacore.com>
261
262         * config.gcc (-*-*-*vms): Added.
263         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
264         definitions moved.
265         * config/vms/vms-ld.c: New file.
266         * config/vms/vms-ar.c: New file.
267         * config/vms/t-vmsnative: New file.
268
269 2011-04-18  Xinliang David Li  <davidxl@google.com>
270
271         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
272
273 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
274
275         PR middle-end/48661
276         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
277         if TREE_TYPE (v) is non-NULL.
278
279         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
280         gimple_get_virt_mehtod_for_binfo.
281         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
282         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
283         callers.
284         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
285
286 2011-04-18  Michael Matz  <matz@suse.de>
287             Steve Ellcey  <sje@cup.hp.com>
288
289         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
290         use its mode as source mode if it isn't VOIDmode.
291
292 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
293
294         * doc/passes.texi: Fill crossref nodes.
295
296 2011-04-18  Jim Meyering  <meyering@redhat.com>
297
298         Fix doubled-word typos in comments and strings
299         * config/alpha/vms-unwind.h: s/for for/for/
300         * config/arm/unwind-arm.h: Likewise.
301         * config/microblaze/microblaze.c: Likewise.
302         * config/sh/constraints.md: s/in in/in/
303         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
304
305 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
306
307         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
308         (AVX_FLOAT_MODE_P): Ditto.
309         (AVX128_VEC_FLOAT_MODE_P): Ditto.
310         (AVX256_VEC_FLOAT_MODE_P): Ditto.
311         (AVX_VEC_FLOAT_MODE_P): Ditto.
312         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
313         (UNSPEC_MASKSTORE): Ditto.
314         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
315         Merge from <sse>_movmsk<ssemodesuffix> and
316         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
317         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
318         iterator.
319         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
320         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
321         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
322
323 2011-04-18  Jan Hubicka  <jh@suse.cz>
324
325         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
326
327         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
328         (want_inline_function_called_once_p): Break out the logic from
329         ipa_inline.
330         (edge_badness): Ensure that profile is not misupdated.
331         (lookup_recursive_calls): Prioritize by call frequencies.
332         (inline_small_functions): Move program size estimates here;
333         actually process whole queue even when unit growth has been
334         met. (to properly compute inline_failed reasons and for the
335         case unit size decrease.) Revisit comments on recursive inlining.
336         (ipa_inline): Remove unit summary code; first inline hot calls
337         of functions called once, cold calls next.
338         (order, nnodes): Remove unused variables.
339         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
340         (GTFILES): Remove ipa-inline.c
341         * sel-sched.c (fill_insns): Silence uninitialized var warning.
342
343 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
344
345         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
346
347 2011-04-18  Jie Zhang  <jie@codesourcery.com>
348             Richard Earnshaw  <rearnsha@arm.com>
349
350         * arm.c (neon_builtin_type_bits): Remove.
351         (typedef enum neon_builtin_mode): New.
352         (T_MAX): Don't define.
353         (typedef enum neon_builtin_datum): Remove bits, codes[],
354         num_vars and base_fcode.  Add mode, code and fcode.
355         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
356         VAR10): Change accordingly.
357         (neon_builtin_data[]): Change accordingly
358         (arm_init_neon_builtins): Change accordingly.
359         (neon_builtin_compare): Remove.
360         (locate_neon_builtin_icode): Remove.
361         (arm_expand_neon_builtin): Change accordingly.
362
363         * arm.h (enum arm_builtins): Move to ...
364         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
365
366         * arm.c (arm_builtin_decl): Declare.
367         (TARGET_BUILTIN_DECL): Define.
368         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
369         (arm_builtin_decls[]): New.
370         (arm_init_neon_builtins): Store builtin declarations in
371         arm_builtin_decls[].
372         (arm_init_tls_builtins): Likewise.
373         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
374         (arm_builtin_decl): New.
375
376 2011-04-18  Richard Guenther  <rguenther@suse.de>
377
378         * tree.c (upper_bound_in_type): Build properly canonicalized
379         INTEGER_CSTs.
380         (lower_bound_in_type): Likewise.
381
382 2011-04-18  Richard Guenther  <rguenther@suse.de>
383
384         * gimple.h (gimple_call_addr_fndecl): New function.
385         (gimple_call_fndecl): Use it.
386         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
387         for direct calls.
388         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
389         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
390
391 2011-04-18  Richard Guenther  <rguenther@suse.de>
392
393         PR middle-end/48650
394         * tree.c (build_string): STRING_CST is now derived from tree_typed.
395
396 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
397
398         PR lto/48492
399         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
400         DECL_IN_CONSTANT_POOL without RTL.
401
402 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
403             Ira Rosen  <ira.rosen@linaro.org>
404
405         PR target/48252
406         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
407         to match neon_vzip/vuzp/vtrn_internal.
408         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
409         outputs explicitly dependent on both inputs.
410         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
411
412 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
413
414         PR tree-optimization/48616
415         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
416         whether the shift is by scalar or vector based on whether all SLP
417         scalar stmts have the same rhs.
418
419 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
420
421         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
422         memory operands.
423
424 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
425
426         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
427         registers.
428
429 2011-04-17  Jan Hubicka  <jh@suse.cz>
430
431         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
432         * cgrpahunit.c (cgraph_finalize_function): Do not set
433         finalized_by_frontend.
434         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
435         finalized_by_frontend.
436
437 2011-04-17  Jan Hubicka  <jh@suse.cz>
438
439         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
440         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
441         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
442         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
443         method.
444         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
445         gimple-fold.c
446         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
447
448 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
449
450         PR lto/48538
451         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
452         is non-null before accessing it.
453         (input_cgraph): Remove trailing spaces.
454
455 2011-04-17  Revital Eres  <revital.eres@linaro.org>
456
457         * params.def (sms-min-sc): New param flag.
458         * modulo-sched.c (sms_schedule): Use it.
459         * doc/invoke.texi (sms-min-sc): Document it.
460
461 2011-04-17  Jan Hubicka  <jh@suse.cz>
462
463         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
464         present, also set gimple_call_set_cannot_inline.
465         * ipa-inline.c: Update toplevel comment.
466         (MAX_TIME): Remove.
467         (cgraph_clone_inlined_nodes): Fix linebreaks.
468         (cgraph_check_inline_limits): Restructure to ...
469         (caller_growth_limits): ... this one; be more tolerant
470         on growth in nested inline chains; add explanatory comment;
471         fix stack accounting thinko introduced by previous patch.
472         (cgraph_default_inline_p): Remove.
473         (report_inline_failed_reason): New function.
474         (can_inline_edge_p): New function.
475         (can_early_inline_edge_p): New function.
476         (leaf_node_p): Move upwards in file.
477         (want_early_inline_function_p): New function.
478         (want_inline_small_function_p): New function.
479         (want_inline_self_recursive_call_p): New function.
480         (cgraph_edge_badness): Rename to ...
481         (edge_badness) ... this one; fix linebreaks.
482         (update_edge_key): Update call of edge_baddness; add
483         detailed dump about queue updates.
484         (update_caller_keys): Use can_inline_edge_p and
485         want_inline_small_function_p.
486         (cgraph_decide_recursive_inlining): Rename to...
487         (recursive_inlining): Use can_inline_edge_p and
488         want_inline_self_recursive_call_p; simplify and remove no longer
489         valid FIXME.
490         (cgraph_set_inline_failed): Remove.
491         (add_new_edges_to_heap): Use can_inline_edge_p and
492         want_inline_small_function_p.
493         (cgraph_decide_inlining_of_small_functions): Rename to ...
494         (inline_small_functions): ... this one; cleanup; use
495         can/want predicates; cleanup debug ouput; work edges till fibheap
496         is exhausted and do not stop once unit growth is reached; remove
497         later loop processing remaining edges.
498         (cgraph_flatten): Rename to ...
499         (flatten_function): ... this one; use can_inline_edge_p
500         and can_early_inline_edge_p predicates.
501         (cgraph_decide_inlining): Rename to ...
502         (ipa_inline): ... this one; remove unreachable nodes before
503         inlining functions called once; simplify the pass.
504         (cgraph_perform_always_inlining): Rename to ...
505         (inline_always_inline_functions): ... this one; use
506         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
507         (cgraph_decide_inlining_incrementally): Rename to ...
508         (early_inline_small_functions): ... this one; simplify
509         using new predicates; cleanup; make dumps prettier.
510         (cgraph_early_inlining): Rename to ...
511         (early_inliner): newer inline regular functions into always-inlines;
512         fix updating of call stmt summaries.
513         (pass_early_inline): Update for new names.
514         (inline_transform): Fix formating.
515         (gate_cgraph_decide_inlining): Rename to ...
516         (pass_ipa_inline): ... this one.
517         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
518         * ipa-inline-analysis.c (dump_inline_summary): Update.
519         (compute_inline_parameters): Do not compute disregard_inline_limits;
520         look for mismatching arguments.
521         (estimate_growth): Fix handlig of non-trivial self recursion.
522         (inline_read_summary): Do not read info->disregard_inline_limits.
523         (inline_write_summary): Do not write info->disregard_inline_limits.
524         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
525         and move all checks into can_inline_edge_p predicate; re-enable code
526         comparing optimization levels.
527         (expand_call_inline): Do not test inline_forbidden_into_p.
528         * Makefile.in (ipa-inline.o): Update arguments.
529
530 2011-04-17  Revital Eres  <revital.eres@linaro.org>
531
532         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
533
534 2011-04-17  Revital Eres  <revital.eres@linaro.org>
535
536         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
537
538 2011-04-17  Michael Matz  <matz@suse.de>
539
540         PR tree-optimization/48622
541         PR lto/48645
542         * ipa-inline-analysis.c (inline_read_summary): Read size/time
543         in same order as they're written.
544
545 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
546
547         * config/pa/predicates.md: Reorganize and simplify predicates.
548         Eliminate duplicate code checks.
549         (arith_operand): Rename to arith14_operand
550         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
551         * config/pa/pa.md: Use renamed operands.
552         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
553         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
554         arith11_operand, adddi3_operand, indexed_memory_operand,
555         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
556         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
557         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
558         move_dest_operand, move_src_operand, prefetch_cc_operand,
559         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
560         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
561         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
562         div_operand, int5_operand, movb_comparison_operator,
563         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
564         arith_double_operand, ireg_operand, lhs_lshift_operand,
565         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
566         integer_store_memory_operand): Likewise.
567         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
568         (integer_store_memory_operand, read_only_operand,
569         function_label_operand, borx_reg_operand,
570         non_hard_reg_operand): Likewise.
571         (eq_neq_comparison_operator): Delete unused operator.
572         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
573         function_label_operand.
574         (emit_move_sequence): Likewise.
575
576 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
577
578         * config/i386/sse.md (sseunpackmode): New mode attribute.
579         (ssepackmode): Ditto.
580         (vec_pack_trunc_<mode>): Macroize expander from
581         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
582         (vec_unpacks_lo_<mode>): Macroize expander from
583         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
584         (vec_unpacks_hi_<mode>): Macroize expander from
585         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
586         (vec_unpacku_lo_<mode>): Macroize expander from
587         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
588         (vec_unpacku_hi_<mode>): Macroize expander from
589         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
590         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
591         ix86_expand_sse4_unpack.
592         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
593
594 2011-04-16  Jan Hubicka  <jh@suse.cz>
595
596         * cgraphbuild.c: Include ipa-inline.h.
597         (reset_inline_failed): Use initialize_inline_failed.
598         * cgraph.c: Include ipa-inline.h.
599         (cgraph_create_node_1): Do not initialize estimated_growth.
600         (initialize_inline_failed): More to ipa-inline-analysis.c
601         (dump_cgraph_node): Do not dump inline flags.
602         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
603         and disregard_inline_limits flags.
604         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
605         time, size, estimated_growth.
606         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
607         Update.
608         * cgraphunit.c (cgraph_decide_is_function_needed): Use
609         DECL_DISREGARD_INLINE_LIMITS.
610         (cgraph_analyze_function): Do not initialize
611         node->local.disregard_inline_limits.
612         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
613         inlinable, versionable and disregard_inline_limits.
614         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
615         cgraph_check_inline_limits, cgraph_default_inline_p,
616         cgraph_edge_badness, update_caller_keys, update_callee_keys,
617         add_new_edges_to_heap): Update.
618         (cgraph_decide_inlining_of_small_function): Update; set
619         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
620         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
621         cgraph_decide_inlining_incrementally): Update.
622         * ipa-inline.h (inline_summary): Add inlinable, versionable,
623         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
624         time, size and estimated_growth parameters.
625         (estimate_edge_growth): Update.
626         (initialize_inline_failed): Declare.
627         * ipa-split.c: Include ipa-inline.h
628         (execute_split_functions): Update.
629         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
630         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
631         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
632         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
633         estimated_growth to INT_MIN.
634         (inline_node_duplication_hook): Likewise.
635         (dump_inline_summary): Dump new fields.
636         (compute_inline_parameters): Update.
637         (estimate_edge_time, estimate_time_after_inlining,
638         estimate_size_after_inlining, estimate_growth, inline_read_summary,
639         inline_write_summary):
640         (initialize_inline_failed): Move here from cgraph.c.
641         * tree-sra.c: Include ipa-inline.h.
642         (ipa_sra_preliminary_function_checks): Update.
643         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
644         ipa-inline.h.
645
646 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
647
648         * config/i386/sse.md (V16): New mode iterator.
649         (VI1, VI8): Ditto.
650         (AVXMODEQI, AVXMODEDI): Remove.
651         (sse2, sse3): New mode attribute.
652         (mov<mode>): Use V16 mode iterator.
653         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
654         (push<mode>1): Use V16 mode iterator.
655         (movmisalign<mode>): Ditto.
656         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
657         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
658         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
659         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
660         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
661         avx_movdqu<avxmodesuffix>.
662         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
663         *avx_movdqu<avxmodesuffix>.
664         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
665         avx_lddqu<avxmodesuffix>.
666         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
667         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
668         avx_movnt<AVXMODEDI:mode>.
669         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
670         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
671
672 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
673
674         PR target/48629
675         * haifa-sched.c (prune_ready_list, schedule_block): Use
676         sched_pressure_p rather than flag_sched_pressure.
677
678 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
679
680         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
681         cgraph_get_node instead of cgraph_get_create_node.
682
683 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
684
685         * cfgexpand.c (expand_debug_expr): Use
686         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
687
688 2011-04-15  Michael Matz  <matz@suse.de>
689
690         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
691         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
692         * function.c (gimplify_parameters): Ditto.
693         * gimplify.c (gimplify_vla_decl): Ditto.
694
695         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
696         (gimple_call_set_alloca_for_var): New inline function.
697         (gimple_call_alloca_for_var_p): Ditto.
698         * gimple.c (gimple_build_call_from_tree): Remember
699         CALL_ALLOCA_FOR_VAR_P state.
700         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
701
702         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
703         calls if they were for VLA objects.
704
705 2011-04-15  Martin Jambor  <mjambor@suse.cz>
706
707         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
708         of ADR_EXPRs.
709
710 2011-04-15  Martin Jambor  <mjambor@suse.cz>
711
712         PR middle-end/48601
713         * tree-emutls.c (lower_emutls_function_body): Call
714         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
715         result is non-NULL.
716
717 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
718
719         * c-decl.c (detect_field_duplicates): Call
720         objc_detect_field_duplicates instead of objc_get_interface_ivars.
721
722 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
723
724         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
725         * gimple.c (gimple_asm_clobbers_memory_p): Define.
726         * ipa-pure-const.c (check_stmt): Call it.
727         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
728
729 2011-04-15  Richard Guenther  <rguenther@suse.de>
730
731         PR tree-optimization/48290
732         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
733         Properly decide inhibiting propagation based on the valueized
734         operand.  Do loop-closed SSA form preserving here ...
735         (init_copy_prop): ... not here.
736
737 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
738
739         PR target/48612
740         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
741         (*ieee_smax<mode>3): Likewise.
742
743 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
744
745         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
746         Replace match_operand with match_dup for the third operand in
747         these expanders.
748
749 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
750
751         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
752         to track processing of conditionals.  Update all callers.
753         (try_combine, simplify_if_then_else): Update.
754
755 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
756
757         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
758         -fsched-pressure.
759
760 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
761
762         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
763         instead of match_operand for operand 3.
764
765 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
766
767         * recog.h (insn_operand_data): Add an "allows_mem" field.
768         * genoutput.c (output_operand_data): Initialize it.
769         * optabs.c (maybe_legitimize_operand_same_code): New function.
770         (maybe_legitimize_operand): Use it when matching the original
771         op->value.
772
773 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
774
775         * gimplify.c: Fix issues in comments throughout.
776         (voidify_wrapper_expr): Fix long line.
777         (build_stack_save_restore): Likewise.
778         (gimplify_loop_expr): Likewise.
779         (gimplify_compound_lval): Likewise.
780         (gimplify_init_ctor_eval): Likewise.
781         (gimplify_modify_expr_rhs): Likewise.
782         (omp_notice_threadprivate_variable): Likewise.
783
784 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
785
786         * cfgexpand.c (expand_call_stmt): Convert the function type to the
787         original one if this is not a builtin function.
788
789 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
790
791         PR target/48605
792         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
793         offset it as needed based on top 2 bits in operands[3], change
794         MEM mode to SFmode and mask those 2 bits away from operands[3].
795
796 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
797
798         * c-parser.c (c_parser_objc_protocol_definition): Updated for
799         change from objc_declare_protocols() to objc_declare_protocol().
800
801 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
802
803         * config/i386/sse.md (sse4_1): New mode attribute.
804         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
805         avx_blend<ssemodesuffix><avxmodesuffix> and
806         sse4_1_blend<ssemodesuffix> using VF mode iterator.
807         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
808         avx_blendv<ssemodesuffix><avxmodesuffix> and
809         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
810         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
811         avx_dp<ssemodesuffix><avxmodesuffix> and
812         sse4_1_dp<ssemodesuffix> using VF mode iterator.
813         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
814         (sse4_1_packusdw): Merge with *avx_packusdw.
815         (sse4_1_pblendvb): Merge with *avx_pblendvb.
816         (sse4_1_pblendw): Merge with *avx_pblendw.
817         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
818         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
819         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
820         VF mode iterator.
821         (sse4_1_round<ssescalarmodesuffix>): Merge with
822         *avx_round<ssescalarmodesuffix>.
823         (aesenc): Merge with *avx_aesenc.
824         (aesenclast): Merge with *avx_aesenclast.
825         (aesdec): Merge with *avx_aesdec.
826         (aesdeclast): Merge with *avx_aesdeclast.
827         (pclmulqdq): Merge with *pclmulqdq.
828         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
829         New predicate.
830         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
831
832 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
833
834         PR middle-end/48608
835         * cfgexpand.c (get_decl_align_unit): Renamed to ...
836         (align_local_variable): This.  Update DECL_ALIGN.
837         (add_stack_var): Updated.
838         (expand_one_stack_var): Likewise.
839
840 2011-04-14  Richard Guenther  <rguenther@suse.de>
841
842         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
843         Remove.
844         (dse_initialize_block_local_data, dse_leave_block,
845         record_voperand_set, get_stmt_uid): Likewise.
846         (dse_possible_dead_store_p): Allow any kind of killing stmt.
847         (dse_optimize_stmt): Remove voperand set handling code.
848         Simplify and improve to handle any kind of killing stmt.
849         (dse_record_phi): Remove.
850         (dse_enter_block): Simplify.
851         (tree_ssa_dse): Likewise.
852         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
853
854 2011-04-14  Jan Hubicka  <jh@suse.cz>
855
856         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
857         * cgraph.h (struct inline_summary): Move to ipa-inline.h
858         (cgraph_local_info): Remove inline_summary.
859         * ipa-cp.c: Include ipa-inline.h.
860         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
861         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
862         accesor.
863         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
864         (input_overwrite_node): Do not set inline summary.
865         (input_node): Do not stream inline summary.
866         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
867         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
868         growth; we do not have inline parameters computed for that anyway.
869         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
870         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
871         (inline_summary_t): New type and VECtor.
872         (debug_inline_summary, dump_inline_summaries): Declare.
873         (inline_summary): Use VOCtor.
874         (estimate_edge_growth): Kill hack computing call stmt size directly.
875         * lto-section-in.c (lto_section_name): Add inline section.
876         * ipa-inline-analysis.c: Include lto-streamer.h
877         (node_removal_hook_holder, node_duplication_hook_holder): New holders
878         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
879         (inline_summary_vec): Define.
880         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
881         dump_inline_summaries): New functions.
882         (estimate_function_body_sizes): Properly compute size/time of outgoing
883         calls.
884         (compute_inline_parameters): Alloc inline_summary; do not compute
885         size/time of incomming calls.
886         (estimate_edge_time): Avoid missing time summary hack.
887         (inline_read_summary): Read inline summary info.
888         (inline_write_summary): Write inline summary info.
889         (inline_free_summary): Free all hooks and inline summary vector.
890         * lto-streamer.h: Add LTO_section_inline_summary section.
891         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
892         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
893
894 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
895
896         * tree-vectorizer.h (vect_strided_store_supported): Add a
897         HOST_WIDE_INT argument.
898         (vect_strided_load_supported): Likewise.
899         (vect_permute_store_chain): Return void.
900         (vect_transform_strided_load): Likewise.
901         (vect_permute_load_chain): Delete.
902         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
903         count argument.  Check that the count is a power of two.
904         (vect_strided_load_supported): Likewise.
905         (vect_permute_store_chain): Return void.  Update after above changes.
906         Assert that the access is supported.
907         (vect_permute_load_chain): Likewise.
908         (vect_transform_strided_load): Return void.
909         * tree-vect-stmts.c (vectorizable_store): Update calls after
910         above interface changes.
911         (vectorizable_load): Likewise.
912         (vect_analyze_stmt): Don't check for strided powers of two here.
913
914 2011-04-14  Richard Guenther  <rguenther@suse.de>
915
916         PR tree-optimization/48590
917         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
918         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
919         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
920         BUILT_IN_STACK_SAVE.
921         * tree-ssa-dce.c (propagate_necessity): Handle
922         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
923
924 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
925
926         * c-parser.c (c_parser_objc_class_declaration): Updated call to
927         objc_declare_class.
928
929 2011-04-14  Richard Guenther  <rguenther@suse.de>
930
931         * tree.h (get_object_alignment_1): Declare.
932         * builtins.c (get_object_alignment_1): Split out worker from ...
933         (get_object_alignment): ... here.
934         * fold-const.c (get_pointer_modulus_and_residue): Use
935         get_object_alignment_1.
936
937 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
938
939         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
940         type parameter.
941         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
942         parameter.  Generalise code to handle arrays as well as vectors.
943         (vect_setup_realignment): Update accordingly.
944         * tree-vect-stmts.c (vectorizable_store): Likewise.
945         (vectorizable_load): Likewise.
946
947 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
948
949         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
950         within the per-copy loop.
951
952 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
953
954         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
955         in the dump file.
956
957 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
958
959         * doc/options.texi (Negative): Explicitly mention that the
960         Negative chain must be circular.
961
962 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
963
964         * function.h (block_chainon): Declare.
965         * function.c (block_chainon): Define.
966
967 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
968             Eric Weddington  <eric.weddington@atmel.com>
969             Georg-Johann Lay <avr@gjlay.de>
970
971         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
972         New Includes
973         (avr_init_builtins, avr_expand_builtin,
974         avr_expand_delay_cycles, avr_expand_unop_builtin,
975         avr_expand_binop_builtin ): New functions.
976         (avr_builtin_id): New enum
977         (struct avr_builtin_description): New struct
978         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
979         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
980
981         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
982         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
983         UNSPECV_DELAY_CYCLES): new enumeration values
984         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
985         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
986         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
987         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
988         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
989         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
990         "fmulsu"): New insns
991
992         * config/avr/avr-c.c: fix line endings
993         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
994         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
995         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
996         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
997         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
998
999         * doc/extend.texi (AVR Built-in Functions): New node
1000         (Target Builtins): Add documentation of AVR
1001         built-in functions.
1002
1003 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1004
1005         PR target/44643
1006         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1007         alone. Error if non-const data has attribute progmem.
1008
1009 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1010
1011         * tree.h (struct tree_constructor): Include tree_typed instead of
1012         tree_common.
1013         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1014         TS_TYPED instead of TS_COMMON.
1015
1016 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1017
1018         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1019         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1020         (sse2_psadbw): Merge with *avx_psadbw.
1021         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1022         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1023         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1024         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1025         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1026         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1027         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1028         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1029         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1030         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1031         (ssse3_palignrti): Merge with *avx_palignrti.
1032
1033 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1034
1035         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1036         * tree-ssanames.c (fini_ssanames): VEC_free it.
1037         (make_ssa_name_fn): Update for VECness of free_ssanames.
1038         (release_ssa_name, release_dead_ssa_names): Likewise.
1039         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1040         tree_common.
1041         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1042         TS_TYPED instead of TS_COMMON.
1043
1044 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1045
1046         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1047         statistics_counter_event.
1048         * tree-ssa-copyrename.c (stats): Define.
1049         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1050         statistics_counter_event.
1051         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1052         (bswap_stats, widen_mul_stats): Define.
1053         (insert_reciprocals): Increment rdivs_inserted.
1054         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1055         rfuncs_inserted.  Add calls to statistics_counter_event.
1056         (execute_cse_sincos_1): Increment inserted.
1057         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1058         statistics_counter_event.
1059         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1060         of bswap_stats.  Add calls to statistics_counter_event.
1061         (convert_mult_to_widen): Increment widen_mults_inserted.
1062         (convert_plusminus_to_widen): Increment maccs_inserted.
1063         (convert_mult_to_fma): Increment fmas_inserted.
1064         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1065         calls to statistics_counter_event.
1066
1067 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1068
1069         PR rtl-optimization/48455
1070         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1071         `temp_costs->mem_cost'.
1072
1073 2011-04-13  Jan Hubicka  <jh@suse.cz>
1074
1075         * ipa-inline.h: New file.
1076         * ipa-inline-analysis.c: New file. Broken out of ...
1077         * ipa-inline.c: ... this file; update toplevel comment;
1078         include ipa-inline.h
1079         (inline_summary): Move to ipa-inline.h
1080         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1081         ipa-inline-analysis.c.
1082         (cgraph_estimate_time_after_inlining): Rename to
1083         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1084         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1085         to estimate_edge_growth.
1086         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1087         rename to estimate_size_after_inlining.
1088         (cgraph_mark_inline_edge): Update for new naming convention.
1089         (cgraph_check_inline_limits): Likewise.
1090         (cgraph_edge_badness): Likewise.
1091         (cgraph_decide_recursive_inlining): Likewise.
1092         (cgraph_decide_inlining_of_small_functions): Likewise.
1093         (cgraph_decide_inlining_incrementally): Likewise.
1094         (cgraph_estimate_growth): Rename to estimate_growth; move to
1095         ipa-inline-analysis.c.
1096         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1097         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1098         (compute_inline_parameters): Likewise.
1099         (compute_inline_parameters_for_current): Likewise.
1100         (pass_inline_parameters): Likewise.
1101         (inline_indirect_intraprocedural_analysis): Likewise.
1102         (analyze_function): Rename to inline_analyze_function; likewise.
1103         (add_new_function): Move to ipa-inline-analysis.c.
1104         (inline_generate_summary): Likewise.
1105         (inline_read_summary): Likewise.
1106         (inline_write_summary): Likewise.
1107         * Makefile.in (ipa-inline-analysis.c): New file.
1108
1109 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1110
1111         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1112         * configure: Regenerate.
1113
1114 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1115
1116         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1117         instead of tree_common.
1118         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1119         Likewise.
1120         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1121         TS_TYPED rather than TS_COMMON.
1122         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1123
1124 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1125
1126         PR target/45263
1127         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1128         r20 around calls of __tablejump_elpm__
1129
1130 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1131
1132         PR middle-end/48591
1133         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1134         NULL.
1135         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1136
1137 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1138
1139         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1140         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1141         (cfi_vec): New typedef.
1142         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1143         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1144         (cie_cfi_vec): New static variable.
1145         (cie_cfi_head): Delete.
1146         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1147         declaration changed. Use vector rather than list operations.
1148         (new_cfi): Don't initialize the dw_cfi_next field.
1149         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1150         rather than list operations.
1151         (lookup_cfa): Use vector rather than list operations.
1152         (output_cfis): New argument upto. Accept a cfi_vec rather than
1153         a dw_cfi_ref list head as argument. All callers changed.
1154         Iterate over the vector using upto as a maximum index.
1155         (output_all_cfis): New static function.
1156         (output_fde): Use vector rather than list operations. Use the
1157         new upto argument for output_cfis rather than manipulating a
1158         list.
1159         (dwarf2out_begin_prologue): Change initializations to match
1160         new struct members.
1161         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1162         from the vector length rather than searching for the end of a list.
1163         Use output_all_cfis.
1164         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1165
1166 2011-04-13  Nick Clifton  <nickc@redhat.com>
1167
1168         * config/rx/rx.md (movmemsi): Do not use this pattern when
1169         volatile pointers are involved.
1170
1171 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1172
1173         * config/i386/sse.md (pinsrbits): Remove.
1174         (sse2_packsswb): Merge with *avx_packsswb.
1175         (sse2_packssdw): Merge with *avx_packssdw.
1176         (sse2_packuswb): Merge with *avx_packuswb.
1177         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1178         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1179         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1180         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1181         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1182         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1183         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1184         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1185         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1186         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1187         (sse2_loadld): Merge with *avx_loadld.
1188         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1189         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1190         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1191         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1192         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1193
1194 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1195
1196         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1197         calling TREE_CHAIN.
1198         * print-tree.c (print_node): Likewise.
1199         * tree-inline.c (copy_tree_r): Likewise.
1200         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1201         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1202         instead of TS_COMMON.
1203         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1204         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1205         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1206         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1207         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1208         ...and these...
1209         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1210         * tree.h: ...here.
1211         (TREE_CHAIN): Check for a TS_COMMON structure.
1212         (TREE_TYPE): Check for a TS_TYPED structure.
1213
1214 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1215
1216         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1217         cgraph_get_create_node instead of cgraph_node.
1218
1219 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1220
1221         * c-parser.c (c_parser_initelt): Updated call to
1222         objc_build_message_expr.
1223         (c_parser_postfix_expression): Likewise.
1224
1225 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1226
1227         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1228         MASK_MS_BITFIELD_LAYOUT bit.
1229
1230 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1231
1232         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1233         assert it is always true.
1234         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1235         moves.
1236
1237 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1238
1239         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1240         compiling Objective-C to be more efficient.
1241
1242 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1243
1244         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1245         argv_copied.
1246
1247 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1248
1249         * recog.h, genoutput.c, optabs.c: Revert last patch.
1250
1251 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1252
1253         PR target/48090
1254         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1255
1256 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1257
1258         * recog.h (insn_operand_data): Add an "allows_mem" field.
1259         * genoutput.c (output_operand_data): Initialize it.
1260         * optabs.c (maybe_legitimize_operand_same_code): New function.
1261         (maybe_legitimize_operand): Use it when matching the original
1262         op->value.
1263
1264 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1265
1266         * genpreds.c (process_define_predicate): Move most processing
1267         to gensupport.c.  Continue to validate the expression.
1268         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1269         (process_define_predicate): Move processing to gensupport.c.
1270         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1271         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1272         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1273         argument.
1274         (valid_predicate_name_p): New function, split out from old
1275         genpreds.c:process_define_predicate.
1276         (process_define_predicate): New function, combining code from
1277         old genpreds.c and genrecog.c functions.
1278         (process_rtx): Call it for DEFINE_PREDICATE and
1279         DEFINE_SPECIAL_PREDICATE.
1280
1281 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1282
1283         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1284         size of a '%A' memory reference.
1285         (T_DREG, T_QREG): New neon_builtin_type_bits.
1286         (arm_init_neon_builtins): Assert that the load and store operands
1287         are neon_struct_operands.
1288         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1289         (NEON_ARG_MEMORY): New builtin_arg.
1290         (neon_dereference_pointer): New function.
1291         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1292         Handle NEON_ARG_MEMORY.
1293         (arm_expand_neon_builtin): Update after above interface changes.
1294         Use NEON_ARG_MEMORY for loads and stores.
1295         * config/arm/predicates.md (neon_struct_operand): New predicate.
1296         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1297         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1298         (V_four_elem): Tweak formatting.
1299         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1300         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1301         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1302         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1303         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1304         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1305         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1306         Use %A in the output template.
1307         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1308         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1309         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1310         the width of the memory access.  Remove post-increment.
1311         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1312
1313 2011-04-12  Nick Clifton  <nickc@redhat.com>
1314
1315         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1316         instruction for interrupt handlers if the target is the basic V850
1317         architecture.
1318         (expand_epilogue): Likewise.
1319
1320 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1321
1322         PR rtl-optimization/48549
1323         * combine.c (propagate_for_debug): Also stop after BB_END of
1324         this_basic_block.  Process LAST and just stop processing after it.
1325         (combine_instructions): If last_combined_insn has been deleted,
1326         set last_combined_insn to its PREV_INSN.
1327
1328 2011-04-12  Richard Guenther  <rguenther@suse.de>
1329
1330         PR tree-optimization/46076
1331         * gimple.h (struct gimple_statement_call): Add fntype field.
1332         (gimple_call_fntype): Adjust.
1333         (gimple_call_set_fntype): New function.
1334         * gimple.c (gimple_build_call_1): Set the call function type.
1335         * gimplify.c (gimplify_call_expr): Preserve the function
1336         type the frontend used for the call.
1337         (gimplify_modify_expr): Likewise.
1338         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1339         function type.
1340         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1341         function type.
1342         * tree-ssa.c (useless_type_conversion_p): Function pointer
1343         conversions are useless.
1344
1345 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1346
1347         * cgraph.h (cgraph_node): Remove function declaration.
1348         (cgraph_create_node): Declare.
1349         (cgraph_get_create_node): Likewise.
1350         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1351         Updated all callers.
1352         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1353         the decl does not already exist.  Call cgraph_get_create_node instead
1354         of cgraph_node.
1355         (cgraph_get_create_node): New function.
1356         (cgraph_same_body_alias): Update comment.
1357         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1358         assert it does not return NULL.
1359         (cgraph_update_edges_for_call_stmt): Likewise.
1360         (cgraph_clone_edge): Likewise.
1361         (cgraph_create_virtual_clone): Likewise.
1362         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1363         instead of cgraph_node.
1364         (cgraph_add_new_function): Call cgraph_create_node or
1365         cgraph_get_create_node instead of cgraph_node.
1366         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1367         instead of cgraph_node.
1368         (record_eh_tables): Likewise.
1369         (mark_address): Likewise.
1370         (mark_load): Likewise.
1371         (build_cgraph_edges): Call cgraph_get_create_node instead
1372         of cgraph_node.
1373         (rebuild_cgraph_edges): Likewise.
1374         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1375         instead of cgraph_node.
1376         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1377         cgraph_node.
1378         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1379         cgraph_create_node instead of cgraph_node.
1380         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1381         of cgraph_node.
1382         * lto-cgraph.c (input_node): Likewise.
1383         * lto-streamer-in.c (input_function): Likewise.
1384         * varasm.c (mark_decl_referenced): Likewise.
1385         (assemble_alias): Likewise.
1386
1387 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1388
1389         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1390         instead of cgraph_node and assert it does not return NULL.
1391         * lto-streamer-in.c (lto_read_body): Likewise.
1392         * omp-low.c (new_omp_context): Likewise.
1393         (create_task_copyfn): Likewise.
1394         * tree-emutls.c (lower_emutls_function_body): Likewise.
1395         * matrix-reorg.c (transform_allocation_sites): Likewise.
1396
1397 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1398
1399         PR c/48552
1400         * c-typeck.c (build_asm_expr): Error out on attempts to use
1401         void type outputs or inputs for constraints that allow reg or
1402         don't allow memory.
1403
1404 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1405             Richard Earnshaw  <rearnsha@arm.com>
1406
1407         PR target/48250
1408         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1409         to use sign-magnitude offsets. Reject unsupported unaligned
1410         cases. Add detailed description in comments.
1411         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1412         condition from TARGET_32BIT to TARGET_ARM.
1413
1414 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1415
1416         * tree.h (struct typed_tree): New.
1417         (struct tree_common): Include it instead of tree_base.
1418         (TREE_TYPE): Update for new location of type field.
1419         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1420         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1421         (union tree_node): Add typed field.
1422         * treestruct.def (TS_TYPED): New.
1423         * lto-streamer.c (check_handled_ts_structures): Handle it.
1424         * tree.c (MARK_TS_TYPED): New macro.
1425         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1426
1427 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1428
1429         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1430         (force_nonfallthru): Do not alter the loop nest if no basic block
1431         was created.
1432
1433 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1434
1435         * config/i386/sse.md (VI): New mode iterator.
1436         (SSEMODEI): Remove.
1437         (AVX256MODEI): Ditto.
1438         (AVXMODEF4P): Ditto.
1439         (avxvecpsmode): Ditto.
1440         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1441         (sse2_andnot<mode>3): New expander.
1442         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1443         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1444         (<any_logic:code><mode>3): Use VI mode iterator.
1445         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1446         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1447         (*andnottf3): Handle AVX three-operand constraints.
1448         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1449
1450 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1451             Robert Millan  <rmh@gnu.org>
1452
1453         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1454         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1455         GNU_USER_DYNAMIC_LINKER64): Define.
1456         (REG_NAME): Don't undefine.
1457         (MD_UNWIND_SUPPORT): Undefine.
1458         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1459         (REG_NAME): Don't undefine.
1460         (MD_UNWIND_SUPPORT): Undefine.
1461         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1462
1463 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1464
1465         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1466         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1467
1468 2011-04-11  Xinliang David Li  <davidxl@google.com>
1469
1470         * value-profile.c (check_ic_target): New function.
1471         (gimple_ic_transform): Sanity check indirect call target.
1472         * gimple-low.c (gimple_check_call_args): Interface change.
1473         (gimple_check_call_matching_types): New function.
1474         * tree-inline.c (tree_can_inline_p): Call new function.
1475
1476 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1477
1478         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1479         tree-pretty-print.h & realmpfr.h.
1480
1481 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1482
1483         PR middle-end/48464
1484         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1485         (setup_allocno_and_important_classes): Ditto.
1486
1487 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1488
1489         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1490         GNU_USER_DYNAMIC_LINKER.
1491         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1492         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1493         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1494         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1495         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1496         GNU_USER_TARGET_OS_CPP_BUILTINS.
1497         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1498         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1499         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1500         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1501         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1502         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1503         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1504         GNU_USER_TARGET_OS_CPP_BUILTINS.
1505         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1506         GNU_USER_DYNAMIC_LINKER.
1507         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1508         GNU_USER_TARGET_OS_CPP_BUILTINS.
1509         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1510         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1511         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1512         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1513         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1514         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1515         GNU_USER_DYNAMIC_LINKER64): Remove.
1516         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1517         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1518         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1519         GNU_USER_DYNAMIC_LINKER.
1520         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1521         GNU_USER_TARGET_OS_CPP_BUILTINS.
1522         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1523         GNU_USER_TARGET_OS_CPP_BUILTINS.
1524         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1525         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1526         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1527         GNU_USER_TARGET_OS_CPP_BUILTINS.
1528         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1529         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1530         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1531         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1532         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1533         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1534         GNU_USER_DYNAMIC_LINKER.
1535         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1536         GNU_USER_TARGET_OS_CPP_BUILTINS.
1537         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1538         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1539         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1540         GNU_USER_DYNAMIC_LINKER.
1541         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1542         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1543         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1544         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1545         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1546         GNU_USER_DYNAMIC_LINKER.
1547         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1548         GNU_USER_DYNAMIC_LINKERN32.
1549         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1550         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1551         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1552         GNU_USER_DYNAMIC_LINKER32.
1553         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1554         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1555         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1556         GNU_USER_DYNAMIC_LINKER.
1557         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1558         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1559         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1560         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1561         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1562         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1563         GNU_USER_DYNAMIC_LINKER32.
1564         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1565         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1566         GNU_USER_DYNAMIC_LINKER.
1567         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1568         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1569         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1570         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1571         GNU_USER_DYNAMIC_LINKER64.
1572         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1573         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1574         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1575         GNU_USER_DYNAMIC_LINKER.
1576         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1577         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1578         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1579         GNU_USER_DYNAMIC_LINKER.
1580         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1581         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1582         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1583         GNU_USER_DYNAMIC_LINKER32.
1584         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1585         GNU_USER_DYNAMIC_LINKER64.
1586         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1587         GNU_USER_DYNAMIC_LINKER64.
1588         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1589         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1590         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1591         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1592         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1593
1594 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1597         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1598         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1599         GNU_USER_DYNAMIC_LINKER.
1600         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1601         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1602         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1603         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1604         GNU_USER_DYNAMIC_LINKER64.
1605         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1606         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1607         GNU_USER_LINK_EMULATION.
1608         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1609         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1610         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1611         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1612         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1613         CPP_SPEC, CC1_SPEC): Remove.
1614         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1615         (GNU_USER_DYNAMIC_LINKER): Define.
1616         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1617         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1618         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1619         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1620         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1621         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1622         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1623         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1624         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1625         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1626         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1627         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1628         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1629         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1630         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1631         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1632         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1633         GNU_USER_DYNAMIC_LINKER.
1634         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1635         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1636         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1637         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1638         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1639         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1640         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1641         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1642         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1643         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1644
1645 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1646
1647         PR target/9601
1648         PR target/11772
1649         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1650         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1651         comment.
1652         (ix86_is_msabi_thiscall): Removed.
1653         (ix86_is_type_thiscall): Likewise.
1654         (ix86_get_callcvt): New function.
1655         (ix86_comp_type_attributes): Simplify check.
1656         (ix86_function_regparm): Use ix86_get_callcvt for calling
1657         convention attribute checks.
1658         (ix86_return_pops_args): Likewise.
1659         (ix86_static_chain): Likewise.
1660         (x86_this_parameter): Likewise.
1661         (x86_output_mi_thunk): Likewise.
1662         (ix86_function_type_abi): Optimize check for types without attributes.
1663         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1664         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1665         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1666         by flag-values.
1667         (IX86_BASE_CALLCVT): Helper macro.
1668         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1669         Use ix86_get_callcvt for calling convention attribute checks and avoid
1670         symbol-decoration for stdcall in TARGET_RTD case.
1671         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1672         Likewise.
1673         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1674         for declaration.
1675
1676 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1677
1678         * config/i386/sse.md (VI_128): New mode iterator.
1679         (VI12_128): Rename from SSEMODE12.
1680         (VI14_128): Rename from SSEMODE14.
1681         (VI124_128): New mode iterator.
1682         (VI24_128): Rename from SSEMODE248.
1683         (VI248_128): Rename from SSEMODE248.
1684         (SSEMODE124C8): Remove.
1685         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1686         (*sse2_<plusminus_insn><mode>3): Merge with
1687         *avx_<plusminus_insn><mode>3.
1688         (*mulv8hi3): Merge with *avx_mulv8hi3.
1689         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1690         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1691         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1692         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1693         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1694         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1695         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1696         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1697         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1698         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1699         (*<smaxmin:code>v8hi3): Ditto.
1700         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1701         (*<smaxmin:code>v16qi3): Ditto.
1702         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1703         (*sse2_eq<mode>3): Ditto.
1704         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1705         (*sse2_gt<mode>3): Ditto.
1706         (vcondv2di): Split out of vcond<mode>.
1707         (vconduv2di): Split out of vcondu<mode>.
1708
1709 2011-04-11  Richard Guenther  <rguenther@suse.de>
1710
1711         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1712         before calling tree_low_cst.
1713
1714 2011-04-11  Richard Guenther  <rguenther@suse.de>
1715
1716         * stor-layout.c (layout_type): Compute all array index size operations
1717         in the original type.
1718         (initialize_sizetypes): Add comment.
1719         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1720
1721 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1722
1723         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1724
1725 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1726
1727         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1728         of cgraph_node, handle NULL return value.
1729         (cgraph_global_info): Likewise.
1730         (cgraph_rtl_info): Likewise.
1731         * tree-inline.c (estimate_num_insns): Likewise.
1732         * gimplify.c (unshare_body): Likewise.
1733         (unvisit_body): Likewise.
1734         (gimplify_body): Likewise.
1735         * predict.c (optimize_function_for_size_p): Likewise.
1736         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1737         (call_may_clobber_ref_p_1): Likewise.
1738         * varasm.c (function_section_1): Likewise.
1739         (assemble_start_function): Likewise.
1740
1741 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1742
1743         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1744         of cgraph_node.
1745         * final.c (rest_of_clean_state): Likewise.
1746         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1747         * passes.c (pass_init_dump_file): Likewise.
1748         (execute_all_ipa_transforms): Likewise.
1749         (function_called_by_processed_nodes_p): Likewise.
1750         * predict.c (maybe_hot_frequency_p): Likewise.
1751         (probably_never_executed_bb_p): Likewise.
1752         (compute_function_frequency): Likewise.
1753         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1754         (unnest_nesting_tree_1): Likewise.
1755         (lower_nested_functions): Likewise.
1756         * tree-optimize.c (execute_fixup_cfg): Likewise.
1757         (tree_rest_of_compilation): Likewise.
1758         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1759         * tree-sra.c (ipa_early_sra): Likewise.
1760         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1761         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1762         * ipa.c (record_cdtor_fn): Likewise.
1763         * ipa-inline.c (cgraph_early_inlining): Likewise.
1764         (compute_inline_parameters_for_current): Likewise.
1765         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1766         * ipa-pure-const.c (local_pure_const): Likewise.
1767         * ipa-split.c (split_function): Likewise.
1768         (execute_split_functions): Likewise.
1769         * cgraphbuild.c (build_cgraph_edges): Likewise.
1770         (rebuild_cgraph_edges): Likewise.
1771         (cgraph_rebuild_references): Likewise.
1772         (remove_cgraph_callee_edges): Likewise.
1773         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1774         (verify_cgraph_node): Likewise.
1775         (cgraph_analyze_functions): Likewise.
1776         (cgraph_preserve_function_body_p): Likewise.
1777         (save_inline_function_body): Likewise.
1778         (save_inline_function_body): Likewise.
1779         * tree-inline.c (copy_bb): Likewise.
1780         (optimize_inline_calls): Likewise.
1781
1782 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1783
1784         PR tree-optimization/48195
1785         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1786         ipa_check_create_edge_args.
1787         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1788         ipa_check_create_edge_args.
1789         * ipa-inline.c (inline_generate_summary): Do not call
1790         ipa_check_create_node_params and ipa_check_create_edge_args.
1791         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1792         ipa_check_create_edge_args.
1793
1794 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1795
1796         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1797         instead of loop.
1798         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1799         * function.c (record_hard_reg_sets): Likewise.
1800         * ira.c (compute_regs_asm_clobbered): Likewise.
1801         * sched-deps.c (sched_analyze_1): Likewise.
1802         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1803
1804 2011-04-09  Xinliang David Li  <davidxl@google.com>
1805
1806         PR tree-optimization/PR48484
1807         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1808         has_valid_pred lazily
1809
1810 2011-04-09  Duncan Sands  <baldrick@free.fr>
1811
1812         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1813
1814 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1815
1816         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1817         cost of I0 to zero at the end, if any.
1818
1819 2011-04-08  Xinliang David Li  <davidxl@google.com>
1820
1821         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1822         to insane profile data.
1823
1824 2011-04-08  Xinliang David Li  <davidxl@google.com>
1825
1826         * ipa-cp.c (ipcp_update_profiling): Correct
1827          negative scale factor due to insane profile data.
1828
1829 2011-04-08  Xinliang David Li  <davidxl@google.com>
1830
1831         * final.c (dump_basic_block_info): New function.
1832         (final): Dump basic block.
1833         (final_scan_insn): Remove old dump.
1834
1835 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1836
1837         PR target/47829
1838         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1839         crtbegin/crtend.
1840
1841 2011-04-08  Michael Matz  <matz@suse.de>
1842
1843         PR middle-end/48389
1844         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1845         functions.
1846         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1847         * rtl.h (rebuild_jump_labels_chain): Declare.
1848         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1849         insns inserted on edges.
1850
1851 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1852
1853         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1854         * config/arm/arm-arches.def: New.
1855         * config/arm/arm-opts.h: New.
1856         * config/arm/genopt.sh: New.
1857         * config/arm/arm-tables.opt: New (generated).
1858         * config/arm/arm.c (arm_handle_option, arm_target_help,
1859         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1860         (all_architectures): Get most table contents from arm-arches.def.
1861         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1862         arm_selected_tune here.
1863         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1864         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1865         (march=, mcpu=, mtune=): Use Enum and Var.
1866         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1867         (arm.o): Update dependencies.
1868
1869 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1870
1871         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1872         of header_file.
1873         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1874         (write_typed_alloc_defns): Likewise.
1875         (main): Calls write_typed_alloc_defns with output_header.
1876
1877 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1878
1879         PR inline-asm/48435
1880         * ira-color.c (setup_profitable_hard_regs): Add comments.
1881         Don't take prohibited hard regs into account.
1882         (setup_conflict_profitable_regs): Rename to
1883         get_conflict_profitable_regs.
1884         (check_hard_reg_p): Check prohibited hard regs.
1885
1886 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1887
1888         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1889         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1890         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1891
1892 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1893
1894         PR target/48366
1895         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1896         move from floating point to shift amount register.
1897         (emit_move_sequence): Remove secondary reload support for floating
1898         point to shift amount amount register copies.
1899         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1900         amount register copies.
1901         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1902         register, return false if mode isn't a scalar integer mode.
1903         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1904
1905 2011-04-08  Richard Guenther  <rguenther@suse.de>
1906
1907         * gimple.c (gimple_call_flags): Remove kludge.
1908
1909 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1910
1911         * sel-sched.c (sel_region_init): Move call to
1912         sel_setup_region_sched_flags after setup_current_loop_nest.
1913
1914 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1915
1916         PR rtl-optimization/48272
1917         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1918         init_insn_reg_pressure_info.  Adjust a caller.
1919         * sched-int.h (init_insn_reg_pressure_info): Declare.
1920         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1921         when sched-pressure is enabled.
1922
1923 2011-04-08  Richard Guenther  <rguenther@suse.de>
1924
1925         * gimple.c (gimple_set_modified): Do not queue calls to
1926         MODIFIED_NORETURN_CALLS here ...
1927         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1928
1929 2011-04-08  Richard Guenther  <rguenther@suse.de>
1930
1931         PR lto/48467
1932         * toplev.c (lang_dependent_init): Do not open asm_out_file
1933         in WPA mode, nor perform debug machinery initialization.
1934         (finalize): Do not unlink asm_out_file in WPA mode.
1935
1936 2011-04-08  Richard Guenther  <rguenther@suse.de>
1937
1938         * gimple.h (gimple_call_fntype): New function.
1939         (gimple_call_return_type): Use it.
1940         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1941         * gimple-low.c (gimple_check_call_args): Likewise.
1942         * gimple.c (gimple_call_flags): Likewise.
1943         (gimple_call_arg_flags): Likewise.
1944         (gimple_call_return_flags): Likewise.
1945         * tree-cfg.c (verify_gimple_call): Likewise.
1946         (do_warn_unused_result): Likewise.
1947         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1948         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1949
1950 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1951
1952         PR rtl-optimization/48235
1953         * sel-sched.c (code_motion_process_successors): Recompute the last
1954         insn in basic block if control flow changed.
1955         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1956         Update condition for ilist_remove.
1957
1958 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1959
1960         PR rtl-optimization/48302
1961         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1962         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1963         it to record added preheader blocks.
1964         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1965         on to sel_add_loop_preheaders.
1966         (sel_region_init): Move call to setup_current_loop_nest after
1967         sel_init_bbs.
1968
1969 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1970
1971         PR target/48273
1972         * cfgloop.h (loop_has_exit_edges): New helper.
1973         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1974         non-clonable.
1975         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1976         that have no exit edges.
1977
1978 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1979
1980         PR rtl-optimization/48442
1981         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1982         all callers.  Adjust assert.
1983
1984 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1985
1986         PR tree-optimization/48377
1987         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1988         is_packed to true even for types with smaller TYPE_ALIGN than
1989         TYPE_SIZE.
1990
1991 2011-04-08  Richard Guenther  <rguenther@suse.de>
1992
1993         PR bootstrap/48513
1994         * doc/tm.texi: Re-generate.
1995
1996 2011-04-08  Wei Guozhi  <carrot@google.com>
1997
1998         PR target/47855
1999         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2000         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2001         * config/arm/arm.md (*push_multi): Change the length computation to
2002         call a C function.
2003
2004 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2005
2006         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2007         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2008         * doc/tm.texi: Regenerate.
2009         * system.h (ASM_OUTPUT_BSS): Poison.
2010         * varasm.c (asm_output_bss): Remove function.
2011         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2012
2013         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2014         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2015         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2016         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2017         Likewise.
2018         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2019         Likewise.
2020         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2021         Likewise.
2022         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2023
2024 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2025
2026         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2027         EnumValue lines.
2028
2029 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2030
2031         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2032         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2033         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2034         OPT_mcpu32.
2035         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2036         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2037         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2038         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2039         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2040         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2041         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2042         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2043         options.  Don't map other m68k options manually.  Don't handle
2044         old-style options as canonical.
2045         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2046         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2047
2048 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2049
2050         * basic-block.h (force_nonfallthru): Move to...
2051         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2052         (force_nonfallthru): ...here.
2053         * cfghooks.c (force_nonfallthru): New function.
2054         * cfgrtl.c (force_nonfallthru): Rename into...
2055         (rtl_force_nonfallthru): ...this.
2056         (commit_one_edge_insertion): Do not set AUX field.
2057         (commit_edge_insertions): Do not discover new basic blocks.
2058         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2059         (cfg_layout_rtl_cfg_hooks): Likewise.
2060         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2061         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2062         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2063
2064 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2065
2066         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2067         Remove macros.
2068
2069 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2070
2071         * config/i386/sse.md: Update copyright year.
2072         (avxcvtvecmode): Remove.
2073         (sse_movhlps): Merge with *avx_movhlps.
2074         (sse_movlhps): Merge with *avx_movlhps.
2075         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2076         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2077         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2078         (sse_loadhps): Merge with *avx_loadhps.
2079         (sse_storelps): Merge with *avx_storelps.
2080         (sse_loadlps): Merge with *avx_loadlps.
2081         (sse_movss): Merge with *avx_movss.
2082         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2083         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2084         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2085         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2086         (vec_set<mode>_0): Ditto.
2087         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2088         (sse4_1_insertps): Merge with *avx_insertps.
2089         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2090         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2091         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2092         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2093         (sse2_storehpd): Merge with *avx_storehpd.
2094         (sse2_loadhpd): Merge with *avx_loadhpd.
2095         (sse2_loadlpd): Merge with *avx_loadlpd.
2096         (sse2_movsd): Merge with *avx_movsd.
2097         (*vec_concatv2df): Merge with *vec_concatv2df.
2098
2099 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2100
2101         PR debug/48343
2102         * combine.c (combine_instructions): Add last_combined_insn,
2103         update it if insn is after it, pass it to all try_combine calls.
2104         (try_combine): Add last_combined_insn parameter, pass it instead of
2105         i3 to propagate_for_debug.
2106
2107 2011-04-07  Nick Clifton  <nickc@redhat.com>
2108
2109         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2110         to handle MDR <-> data register transfers.
2111         (movhi_internal): Likewise.
2112
2113 2011-04-07  Alan Modra  <amodra@gmail.com>
2114
2115         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2116         previous stack info.
2117
2118 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2119
2120         PR target/43920
2121         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2122         flow_find_cross_jump.  Swap variables to implement backward replacement.
2123         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2124
2125 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2126
2127         PR target/43920
2128         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2129         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2130         and bb2.
2131         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2132         src1 or src2.  Redirect edges to the last basic block.  Update
2133         frequency and count on multiple basic blocks in case of fallthru.
2134
2135 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2136
2137         PR target/43920
2138         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2139         function.
2140         (old_insns_match_p): Change return type.  Replace return false/true
2141         with return dir_none/dir_both.  Use can_replace_by.
2142         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2143         direction from dir_p.  Register replacement direction in dir, last_dir
2144         and afterlast_dir.  Handle new return type of old_insns_match_p using
2145         merge_dir.  Return replacement direction in dir_p.
2146         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2147         return type of old_insns_match_p.
2148         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2149         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2150         flow_find_cross_jump.
2151         * basic-block.h (enum replace_direction): New type.
2152         (flow_find_cross_jump): Add parameter to declaration.
2153
2154 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2155
2156         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2157         (AVXMODEDCVTPS2DQ): Ditto.
2158         (VEC_FLOAT_MODE): Ditto.
2159         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2160         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2161         (<any_logic:code><mode>3): Use VF mode iterator.
2162         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2163         Use VF mode iterator.
2164         (copysign<mode>3): Use VF mode iterator.
2165         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2166         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2167         (*<any_logic:code><MODEF:mode>3): Merge with
2168         *avx_<any_logic:code><MODEF:mode>3.
2169         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2170         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2171         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2172         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2173         (sse2_cvtdq2ps): Use %v modifier.
2174         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2175         (avx_cvtps2dq<avxmodesuffix>): Remove.
2176         (sse2_cvtps2dq): Use %v modifier.
2177         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2178         (avx_cvttps2dq<avxmodesuffix>): Remove.
2179         (sse2_cvttps2dq): Use %v modifier.
2180         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2181         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2182         (sse2_cvtsd2siq): Fix insn template.
2183         (sse2_cvtsd2siq_2): Ditto.
2184         (sse2_cvttsd2siq): Ditto.
2185         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2186         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2187
2188 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2189
2190         * gcov-io.c: Use GCC Runtime Library Exception.
2191
2192 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2193
2194         PR debug/48466
2195         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2196         as base_reg whatever register reg has been eliminated to, instead
2197         of hardcoding STACK_POINTER_REGNUM.
2198
2199 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2200
2201         * doc/tm.texi.in: Document C target hooks as separate from general
2202         target hooks.
2203         * doc/tm.texi: Regenerate.
2204         * genhooks.c (struct hook_desc): Add docname field.
2205         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2206         docname field.
2207         (hook_array): Include c-target.def.
2208         (emit_documentation): Use docname field in output.
2209         (emit_init_macros): Take docname argument.  Only emit definitions
2210         for hooks matching docname.
2211         (main): Expect additional arguments in all cases.  Pass argument
2212         to emit_init_macros.
2213         * target.def: Move initial macro definitions and comments to
2214         target-hooks-macros.h.
2215         (gcc_targetcm): Move to c-family/c-target.def.
2216         * target.h (targetcm): Move declaration to c-family/c-target.h.
2217         * targhooks.c (default_handle_c_option): Move to
2218         c-family/c-opts.c.
2219         * targhooks.h (default_handle_c_option): Move declaration to
2220         c-family/c-common.h.
2221         * target-hooks-macros.h: New file.
2222         * config.gcc (target_has_targetcm): Define and use to add to
2223         c_target_objs and cxx_target_objs.
2224         * config/default-c.c: New file.
2225         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2226         of target.h and target-def.h.
2227         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2228         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2229         darwin_check_cfstring_format_arg): Make static.
2230         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2231         TARGET_STRING_OBJECT_REF_TYPE_P,
2232         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2233         * config/darwin-protos.h (darwin_objc_construct_string,
2234         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2235         declare.
2236         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2237         TARGET_STRING_OBJECT_REF_TYPE_P,
2238         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2239         * config/t-darwin (darwin-c.o): Update dependencies.
2240         * system.h (TARGET_HAS_TARGETCM): Poison.
2241         * Makefile.in (TARGET_H): Update.
2242         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2243         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2244         (default-c.o): New target.
2245         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2246         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2247         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2248         c-target.def.
2249         (build/genhooks.o): Update dependencies.
2250
2251 2011-04-06  Richard Guenther  <rguenther@suse.de>
2252
2253         * ipa-inline.c (enum inlining_mode): Remove.
2254         (cgraph_flatten): Use some other token.
2255         (cgraph_edge_early_inlinable_p): New function, split out from ...
2256         (cgraph_perform_always_inlining): New function, split out from ...
2257         (cgraph_decide_inlining_incrementally): ... here.
2258         (cgraph_mark_inline_edge): Adjust.
2259         (cgraph_early_inlining): Re-structure.
2260         (pass_early_inline): Require SSA form.
2261
2262 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2263             Julian Brown  <julian@codesourcery.com>
2264             Mark Shinwell  <shinwell@codesourcery.com>
2265
2266         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2267         LO_REGS only for Thumb-1.
2268         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2269         be used in short instructions when optimising for size on Thumb-2.
2270
2271 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2272
2273         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2274         associated with user returns to be preserved.
2275
2276 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2277
2278         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2279         symbol_queue_size, DBXOUT_DECR_NESTING,
2280         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2281         if XCOFF_DEBUGGING_INFO.
2282
2283 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2284
2285         * config/i386/i386.md (attribute isa): New.
2286         (attribute enabled): New.
2287         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2288         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2289         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2290         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2291         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2292         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2293         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2294         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2295
2296         * config/i386/sse.md (VF): New mode iterator.
2297         (VF1): Ditto.
2298         (VF2): Ditto.
2299         (VF_128): Ditto.
2300         (SSEMODEF4): Remove.
2301         (attribute sse): Handle V8SF and V4DF modes.
2302         (<absneg:code><mode>2): Use VF mode iterator.
2303         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2304         mode iterator.
2305         (<plusminus_insn><mode>3): Use VF mode iterator.
2306         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2307         Use VF mode iterator.
2308         (<sse>_vm<plusminus_insn><mode>3): Merge with
2309         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2310         (mul<mode>3): Use VF mode iterator.
2311         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2312         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2313         mode iterator.
2314         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2315         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2316         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2317         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2318         mode iterator.
2319         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2320         Use VF1 mode iterator.
2321         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2322         (sqrt<VF2:mode>2): New expander.
2323         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2324         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2325         and sqrtv2df2.  Use VF mode iterator.
2326         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2327         mode iterator.
2328         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2329         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2330         Use VF1 mode iterator.
2331         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2332         (<smaxmin:code><mode>3): Use VF mode iterator.
2333         (*<smaxmin:code><mode>3_finite): Merge with
2334         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2335         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2336         (<sse>_vm<smaxmin:code><mode>2): Merge with
2337         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2338         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2339         mode iterator.
2340         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2341         mode iterator.
2342         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2343         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2344         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2345         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2346         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2347         VF mode iterator.
2348         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2349         Use VF_128 mode iterator.
2350         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2351         mode iterator.
2352         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2353         VF_128 mode iterator.
2354         (vcond<mode>): Use VF mode iterator.
2355         * config/i386/predicates.md (sse_comparison_operator): Merge with
2356         avx_comparison_float_operator.  Do not declare as special_predicate.
2357         * config/i386/i386.c (struct builtin_description): Update for renamed
2358         compare patterns.
2359         (ix86_expand_args_builtin): Ditto.
2360         (ix86_expand_sse_compare_mask): Ditto.
2361
2362 2011-04-06  Richard Guenther  <rguenther@suse.de>
2363
2364         * tree-inline.c (estimate_num_insns): For calls simply account
2365         for all passed arguments and a used return value.
2366
2367 2011-04-06  Richard Guenther  <rguenther@suse.de>
2368
2369         PR tree-optimization/47663
2370         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2371         call_stmt_time fields.
2372         (cgraph_edge_inlinable_p): Declare.
2373         (cgraph_edge_recursive_p): New inline function.
2374         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2375         (cgraph_clone_edge): Copy it.
2376         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2377         Account for call stmt time.
2378         (cgraph_estimate_time_after_inlining): Take edge argument.
2379         (cgraph_estimate_edge_growth): Account call stmt size.
2380         (cgraph_estimate_size_after_inlining): Take edge argument.
2381         (cgraph_mark_inline_edge): Adjust.
2382         (cgraph_check_inline_limits): Likewise.
2383         (cgraph_recursive_inlining_p): Remove.
2384         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2385         (cgraph_decide_recursive_inlining): Take edge argument and
2386         adjust.
2387         (cgraph_decide_inlining_of_small_functions): Do not avoid
2388         diags for recursive inlining here.
2389         (cgraph_flatten): Adjust.
2390         (cgraph_decide_inlining_incrementally): Likewise.
2391         (estimate_function_body_sizes): Remove call cost handling.
2392         (compute_inline_parameters): Initialize caller edge call costs.
2393         (cgraph_estimate_edge_growth): New function.
2394         (cgraph_estimate_growth): Use it.
2395         (cgraph_edge_badness): Likewise.
2396         (cgraph_check_inline_limits): Take an edge argument.
2397         (cgraph_decide_inlining_of_small_functions): Adjust.
2398         (cgraph_decide_inlining): Likewise.
2399         * tree-inline.c (estimate_num_insns): Only account for call
2400         return value if it is used.
2401         (expand_call_inline): Avoid diagnostics on recursive inline
2402         functions here.
2403         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2404         (input_edge): Input edge call costs.
2405
2406 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2407
2408         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2409
2410 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2411
2412         * doc/invoke.texi (Spec Files): Fix typo.
2413
2414 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2415
2416         * profile.c (branch_prob): Move declaration of local variable.  Remove
2417         obsolete ??? comment.  Expand the location explicitly instead of using
2418         the LOCATION_FILE and LOCATION_LINE macros.
2419
2420 2011-04-06  Wei Guozhi  <carrot@google.com>
2421
2422         PR target/47855
2423         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2424         (arm_cond_branch): Likewise.
2425         (arm_cond_branch_reversed): Likewise.
2426         (arm_jump): Likewise.
2427         (push_multi): Likewise.
2428         * config/arm/constraints.md (Py): New constraint.
2429
2430 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2431
2432         PR bootstrap/48471
2433         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2434         Move these...
2435         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2436         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2437         #ifdef DBX_DEBUGGING_INFO.
2438
2439 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2440
2441         PR bootstrap/48403
2442         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2443         if old and new states differ.
2444
2445 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2446
2447         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2448         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2449         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2450         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2451         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2452         mcfv4e): Use Alias.
2453         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2454         ColdFire options to -mcpu= options.
2455
2456 2011-04-05  Jeff Law  <law@redhat.com>
2457
2458         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2459         check if BB is a successor of LOOP->header and return
2460         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2461
2462 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2463
2464         * cprop.c (struct reg_use): Remove.
2465         (reg_use_table): Make an array of RTX.
2466         (find_used_regs, constprop_register, local_cprop_pass,
2467         bypass_block): Simplify users of reg_use_table.
2468         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2469         on one of the uses found by find_used_regs.
2470
2471 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2472
2473         PR bootstrap/48469
2474         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2475         declaration.
2476
2477 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2478
2479         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2480         as an rtx.
2481         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2482
2483 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2484
2485         PR middle-end/48441
2486         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2487
2488 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2489
2490         * combine.c: Include obstack.h.
2491         (struct insn_link): Define.
2492         (uid_log_links): Adjust type.
2493         (FOR_EACH_LOG_LINK): New macro.
2494         (insn_link_obstack): Declare.
2495         (alloc_insn_link): Define.
2496         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2497         type of link variables.
2498         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2499         (try_combine, record_promoted_values, distribute_notes): Likewise.
2500         (distribute_links): Likewise.  Tweak prototype.
2501         (clear_log_links): Delete.
2502         (adjust_for_new_dest): Call alloc_insn_link.
2503         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2504
2505 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2506
2507         * gcse.c (modify_mem_list): Convert to an array of VECs.
2508         (canon_modify_mem_list, compute_transp): Tweak formatting.
2509         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2510         (load_killed_in_block_p): Likewise.
2511         (record_last_mem_set_info): Likewise.
2512         (clear_modify_mem_tables): Likewise.
2513
2514 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2515
2516         PR middle-end/48461
2517         * function.c (emit_use_return_register_into_block): Only define if
2518         HAVE_return.
2519
2520 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2521
2522         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2523
2524 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2525
2526         * config/rx/rx-opts.h: New.
2527         * config/rx/rx.c (rx_cpu_type): Remove.
2528         (rx_handle_option): Don't assert that global structures are in
2529         use.  Access variables via opts pointer.  Defer most handling of
2530         OPT_mint_register_.  Use error_at.
2531         (rx_option_override): Handle deferred OPT_mint_register_ here.
2532         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2533         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2534         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2535         (rx_cpu_types): New Enum and EnumValue entries.
2536         (mint-register=): Use Defer and use Var accordingly.
2537
2538 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2539
2540         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2541         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2542         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2543         Move these...
2544         (debug_free_queue, debug_nesting, symbol_queue_index):
2545         ...and these...
2546         * dbxout.c: ...to here.  Make static.
2547
2548 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2549
2550         * gcse.c (modify_pair): Define.  Define a VEC of it.
2551         (canon_modify_mem_list): Convert to an array of VECs.
2552         (free_insn_expr_list_list): Delete.
2553         (clear_modify_mem_tables): Call VEC_free instead.
2554         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2555         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2556         (canon_list_insert, compute_transp): Likewise.
2557
2558 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2559
2560         PR target/43920
2561         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2562         for size.
2563
2564 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2565
2566         PR target/43920
2567         * function.c (emit_use_return_register_into_block): New function.
2568         (thread_prologue_and_epilogue_insns): Use
2569         emit_use_return_register_into_block.
2570
2571 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2572
2573         PR target/43920
2574         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2575         insn.
2576
2577 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2578
2579         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2580
2581 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2582
2583         * config/arm/arm.md (define_constants for unspec): Replace with
2584         define_c_enum.
2585         (define_constants for unspecv): Replace with define_c_enum.
2586         * config/arm/neon.md (define_constants for unspec): Replace with
2587         define_c_enum.
2588
2589 2011-04-04  Richard Henderson  <rth@redhat.com>
2590
2591         PR bootstrap/48400
2592         * dwarf2out.c (output_line_info): Always emit line info from
2593         at least one section.
2594         (dwarf2out_init): Create text_section_line_info here ...
2595         (set_cur_line_info_table): ... not here.
2596
2597 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2598
2599         PR target/48380
2600         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2601         not called.
2602
2603         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2604
2605 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2606
2607         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2608         (expr_equiv_p): Remove.
2609         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2610         (hash_scan_set): Update call to insert_set_in_table.
2611         (dump_hash_table): Dump <dest, src> pair.
2612         (lookup_set): Simplify.  Lookup <dest, src> pair.
2613         (compute_transp): Remove, fold heavily simplified code into...
2614         (compute_local_properties): ...here.  Expect COMP and TRANSP
2615         unconditionally.
2616         (find_avail_set): Take set directly from struct expr.
2617         (find_bypass-set): Likewise.
2618         (bypass_block): Likewise.
2619         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2620
2621         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2622         checks on form of COND from find_implicit_sets to here.
2623         (find_implicit_sets): Cleanup control flow. Split critical edges
2624         if it exposes implicit sets.  Allocate/resize implicit_sets as
2625         necessary.
2626         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2627         changed something.  Run df_analyze after find_implicit_sets if any
2628         edges were split.  Do not allocate implicit_sets here.
2629
2630         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2631         (gcse_obstack): Renamed to cprop_obstack.
2632         (GNEW, GNEWVEC, GNEWVAR): Remove.
2633         (gmalloc): Remove.
2634         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2635         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2636         (gcse_alloc): Likewise, and rename to cprop_alloc.
2637         (alloc_gcse_men, free_gcse_mem): Remove.
2638         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2639         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2640         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2641
2642         * cprop.c (oprs_not_set_p): Remove.
2643         (mark_set, mark_clobber): Remove.
2644         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2645         (reg_not_set_p): New function.
2646         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2647         (cprop_insn): Likewise.
2648         (cprop_jump): Use FOR_EACH_EDGE.
2649
2650 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2651
2652         PR bootstrap/48403
2653         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2654         (rank_for_schedule): Use scheduled_insns vector instead of
2655         last_scheduled_insn.
2656         (ok_for_early_queue_removal): Likewise.
2657         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2658         we have a dbg_cnt.
2659         (choose_ready): Likewise.
2660         (commit_schedule): Use VEC_iterate.
2661         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2662         a dbg_cnt, use it and ensure the first insn is in the ready list.
2663         (haifa_sched_init): Allocate scheduled_insns.
2664         (sched_extend_ready_list): Don't allocate it; reserve space.
2665         (haifa_sched_finish): Free it.
2666
2667 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2668
2669         * optc-gen.awk: Always remove type from Variable entry before
2670         recording in var_seen.
2671
2672 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2673
2674         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2675         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2676         call to tidy_fallthru_edges.
2677
2678 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2679
2680         * doc/options.texi (ToLower): Document.
2681         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2682         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2683         * opts.h (cl_option): Add cl_tolower field.
2684         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2685         arguments with lowercase strings.
2686         * config/rx/rx.opt (mcpu=): Add ToLower.
2687         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2688         argument.
2689
2690 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2691
2692         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2693
2694 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2695
2696         * config/vax/vax.c: Include reload.h.
2697
2698 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2699
2700         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2701         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2702         (sparc_preferred_reload_class): New function.
2703
2704 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2705
2706         PR debug/48401
2707         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2708         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2709
2710 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2711
2712         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2713         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2714
2715 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2716
2717         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2718         (ASM_OUTPUT_ALIGNED_BSS): Define.
2719
2720 2011-04-03  Michael Matz  <matz@suse.de>
2721
2722         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2723         and next_slot members.
2724         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2725         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2726         (lto_streamer_cache_append): Declare.
2727         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2728         unsigned index, remove offset parameter, ensure that we append
2729         or update existing entries.
2730         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2731         parameter, update next_slot for append.
2732         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2733         parameter.
2734         (lto_streamer_cache_insert_at): Likewise.
2735         (lto_streamer_cache_append): New function.
2736         (lto_streamer_cache_lookup): Use unsigned index.
2737         (lto_streamer_cache_get): Likewise.
2738         (lto_record_common_node): Don't test tree_node_can_be_shared.
2739         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2740         (lto_streamer_cache_delete): Don't free offsets member.
2741         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2742         (lto_output_string_with_length): Use lto_output_data_stream.
2743         (lto_output_tree_header): Remove ix parameter, don't write it.
2744         (lto_output_builtin_tree): Likewise.
2745         (lto_write_tree): Adjust callers to above, don't track and write
2746         offset, write unsigned index.
2747         (output_unreferenced_globals): Don't emit all global vars.
2748         (write_global_references): Use unsigned indices.
2749         (lto_output_decl_state_refs): Likewise.
2750         (write_symbol): Likewise.
2751         * lto-streamer-in.c (lto_input_chain): Move earlier.
2752         (input_function): Use unsigned index.
2753         (input_alias_pairs): Don't read and then ignore all global vars.
2754         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2755         don't pass it back, use lto_streamer_cache_append.
2756         (lto_register_var_decl_in_symtab): Use unsigned index.
2757         (lto_register_function_decl_in_symtab): Likewise.
2758         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2759         index.
2760         (lto_get_builtin_tree): Don't read index, use
2761         lto_streamer_cache_append.
2762         (lto_read_tree): Adjust call to lto_materialize_tree.
2763
2764         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2765         don't use function calls in arguments to MIN.
2766
2767         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2768         twice.
2769
2770         * gimple.c (gimple_type_leader_entry): Mark deletable.
2771
2772 2011-04-03  Alan Modra  <amodra@gmail.com>
2773
2774         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2775
2776 2011-04-03  Michael Matz  <matz@suse.de>
2777
2778         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2779         an integer.
2780         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2781
2782 2011-04-03  Michael Matz  <matz@suse.de>
2783
2784         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2785         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2786         without function context.
2787         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2788         current_function_decl and cfun.
2789
2790 2011-04-03  Michael Matz  <matz@suse.de>
2791
2792         * tree.c (decl_init_priority_insert): Don't create entry for
2793         default priority.
2794         (decl_fini_priority_insert): Ditto.
2795         (fields_compatible_p, find_compatible_field): Remove.
2796         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2797         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2798
2799 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2800
2801         * combine.c (try_combine): Remove useless local variable.
2802
2803 2011-04-03  Richard Guenther  <rguenther@suse.de>
2804             Ira Rosen  <ira.rosen@linaro.org>
2805
2806         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2807         non-variable offsets and compare the remaining bases of the two
2808         accesses instead of looking for exact same data-ref.
2809
2810 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2811
2812         PR target/48416
2813         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2814
2815         * i386.c (ix86_is_msabi_thiscall): New helper function.
2816         (ix86_is_type_thiscall): New helper function.
2817         (ix86_comp_type_attributes): Handle thiscall for method-functions
2818         special.
2819         (init_cumulative_args): Likewise.
2820         (find_drap_reg): Likewise.
2821         (ix86_static_chain): Likewise.
2822         (x86_this_parameter): Likewise.
2823         (x86_output_mi_thunk): Likewise.
2824
2825 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2826             Nicolas Setton  <setton@adacore.com>
2827             Eric Botcazou  <ebotcazou@adacore.com>
2828
2829         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2830         (add_gnat_descriptive_type_attribute): New function.
2831         (gen_array_type_die): Call it.
2832         (gen_enumeration_type_die): Likewise.
2833         (gen_struct_or_union_type_die): Likewise.
2834         (modified_type_die): Likewise.
2835         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2836         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2837         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2838
2839 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2840
2841         PR bootstrap/48148
2842         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2843         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2844
2845         Revert:
2846         2011-03-17  Richard Guenther  <rguenther@suse.de>
2847
2848         PR bootstrap/48148
2849         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2850         origin for decls in other ltrans units.
2851         (input_varpool_node): Likewise.
2852
2853 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2854
2855         PR middle-end/48335
2856         * expr.c (expand_assignment): Handle all possibilities
2857         if TO_RTX is CONCAT.
2858         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2859         (store_split_bit_field): If SUBREG_REG (op0) or
2860         op0 itself has smaller mode than word, return it
2861         for offset 0 and const0_rtx for out-of-bounds stores.
2862         If word is const0_rtx, skip it.
2863
2864 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2865
2866         * config/h8300/h8300.c (print_operand_address): Rename to...
2867         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2868         Call h8300_print_operand and h8300_print_operand_address instead of
2869         print_operand and print_operand_address. Declare.
2870         (print_operand): Renake to...
2871         (h8300_print_operand): ...this. Make static. Adjust comments.
2872         Call h8300_print_operand instead of print_operand. Declare.
2873         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2874         (h8300_register_move_cost): Likewise.
2875         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2876         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2877         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2878         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2879         * config/h8300/h8300-protos.h (print_operand): Delete.
2880         (print_operand_address): Delete.
2881
2882 2011-04-01  Richard Henderson  <rth@redhat.com>
2883
2884         PR 48400
2885         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2886         in strict mode before dwarf4.  Re-order tests to early out
2887         before switching sections.
2888
2889 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2890
2891         * config/h8300/constraints.md: New file.
2892         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2893         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2894         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2895         * config/h8300/predicates.md (bit_operand): Likewise.
2896         (incdec_operand): Use satisfies_constraint_M and
2897         satisfies_constraint_O.  Don't use C code block.
2898         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2899         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2900         (compute_mov_length): Use satisfies_constraint_G.
2901         (fix_bit_operand): Use satisfies_constraint_U.
2902         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2903         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2904         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2905         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2906         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2907         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2908         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2909         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2910         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2911         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2912         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2913         (EXTRA_MEMORY_CONSTRAINT): Delete.
2914
2915 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2916             Michael Meissner  <meissner@linux.vnet.ibm.com>
2917
2918         PR target/48262
2919         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2920         operands, as per the specifications.
2921
2922         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2923         (vec_extract_evenv4sf): Ditto.
2924         (vec_extract_evenv8hi): Ditto.
2925         (vec_extract_evenv16qi): Ditto.
2926         (vec_extract_oddv4si): Ditto.
2927
2928 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2929
2930         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2931         high_pc attribute if the CU has no associated code. Only output
2932         DW_AT_entry_pc for CU if not generating strict dwarf and
2933         dwarf_version < 4.
2934
2935 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2936
2937         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2938         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2939         out of ...
2940         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2941         * final.c (final_start_function): Call the new function rather
2942         than using a NULL argument for dwarf2out_frame_debug.
2943
2944         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2945         that contains the prologue.
2946
2947         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2948         changed.  Print it in debugging output.
2949
2950         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2951
2952         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2953         Split most of the code into...
2954         (begin_move_insn): ... here.  New function.
2955         (ebb_sched_info): Add a pointer to it.
2956         * haifa-sched.c (scheduled_insns): New static variable.
2957         (sched_extend_ready_list): Allocate it.
2958         (schedule_block): Use it to record the order of scheduled insns.
2959         Perform RTL changes to move insns only after all scheduling
2960         decisions have been made.
2961         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2962         begin_move_insn field.
2963         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2964         * sched-int.h (struct haifa_sched_info): Remove second argument
2965         from begin_schedule_ready hook.  Add new member begin_move_insn.
2966         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2967         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2968
2969         * haifa-sched.c (prune_ready_list): New function, broken out of
2970         schedule_block.
2971         (schedule_block): Use it.
2972
2973 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2974
2975         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2976
2977 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2978
2979         * config.gcc (*-*-mingw*): Allow as option the
2980         posix threading model.
2981         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2982         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2983         definition.
2984         (CPP_SPEC): Add pthread/no-pthread handling.
2985         (LIB_SPEC): Likewise.
2986         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2987         (LIB_SPEC): Likewise.
2988         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2989         flag to pass -pthread option for shared libgcc build.
2990         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2991         for shared libgcc build.
2992         * config/i386/t-mingw-pthread: New file.
2993         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2994         New define to enable use of library pthread by default.
2995         * config/i386/mingw.opt (pthread): New driver option.
2996         (no-pthread): New driver option.
2997         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2998         * config/i386/mingw-w64.opt: Likewise.
2999
3000 2011-04-01  Gary Funck <gary@intrepid.com>
3001
3002         * c-decl.c (grokdeclarator): Fix formatting.
3003
3004 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3005
3006         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3007         instead of n_operands.
3008         (set_storage_via_setmem): Likewise.
3009         * optabs.c (maybe_gen_insn): Likewise.
3010         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3011         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3012         (mips_expand_builtin_direct): Likewise.
3013         * config/spu/spu.c (expand_builtin_args): Likewise.
3014
3015 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3016
3017         * recog.h (insn_data_d): Add n_generator_args.
3018         * genoutput.c (data): Likewise.
3019         (output_insn_data): Print it.
3020         (max_opno, num_dups): Delete.
3021         (scan_operands): Just fill in "d->operand[...]".
3022         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3023
3024 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3025
3026         * gensupport.h (pattern_stats): New structure.
3027         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3028         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3029         (max_operand_1, max_operand_vec): Delete.
3030         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3031
3032 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3033
3034         * emit-rtl.c (emit_pattern_after_setloc): New function.
3035         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3036         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3037         (emit_pattern_after): New function.
3038         (emit_insn_after, emit_jump_insn_after): Call it.
3039         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3040         (emit_pattern_before_setloc): New function.
3041         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3042         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3043         Likewise.
3044         (emit_pattern_before): New function.
3045         (emit_insn_before, emit_jump_insn_before): Call it.
3046         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3047
3048 2011-03-31  Richard Henderson  <rth@redhat.com>
3049
3050         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3051         (dw_separate_line_info_entry): Remove.
3052         (enum dw_line_info_opcode): New.
3053         (dw_line_info_entry): Use it.
3054         (dw_line_info_table, dw_line_info_table_p): New.
3055         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3056         (line_info_table, line_info_label_num): Remove.
3057         (line_info_table_in_use): Remove.
3058         (separate_line_info_table): Remove.
3059         (separate_line_info_table_allocated): Remove.
3060         (separate_line_info_table_in_use): Remove.
3061         (LINE_INFO_TABLE_INCREMENT): Remove.
3062         (line_info_label_num): New.
3063         (cur_line_info_table): New.
3064         (text_section_line_info, cold_text_section_line_info): New.
3065         (separate_line_info): New.
3066         (SEPARATE_LINE_CODE_LABEL): Remove.
3067         (print_dwarf_line_table): Remove.
3068         (debug_dwarf): Don't dump it.
3069         (output_one_line_info_table): New.
3070         (output_line_info): Use it.
3071         (new_line_info_table): New.
3072         (set_cur_line_info_table): New.
3073         (dwarf2out_switch_text_section): Use it.
3074         (dwarf2out_begin_function): Likewise.
3075         (push_dw_line_info_entry): New.
3076         (dwarf2out_source_line): Rewrite for new line info tables.
3077         (dwarf2out_init): Remove dead initailizations.
3078
3079 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3080
3081         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3082         various flags.
3083         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3084         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3085         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3086         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3087         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3088         * opt-functions.awk (flag_init, switch_bit_fields): New.
3089         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3090         generate CL_MISSING_OK or CL_SAVE.
3091         * optc-gen.awk: Update to generate bit-field output as well as
3092         flags field.
3093         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3094         bit-field instead of CL_REJECT_DRIVER flag.
3095         * opts-common.c (generate_canonical_option,
3096         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3097         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3098         instead of CL_REJECT_NEGATIVE flag.
3099         * toplev.c (print_switch_values): Use cl_report bit-field instead
3100         of CL_REPORT flag.
3101
3102 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3103
3104         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3105         a zero minimum index only if it is redundant.
3106
3107 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3108
3109         PR rtl-optimization/48381
3110         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3111         instead of ira_class_hard_reg_index for calculating conflicting
3112         hard registers.
3113
3114 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3115
3116         * cprop.c: Clean up hash table building.
3117         (reg_avail_info): Remove.
3118         (oprs_available_p): Remove.
3119         (record_last_reg_set_info): Remove.
3120         (record_last_set_info): Remove.
3121         (reg_available_p): New function.
3122         (gcse_constant_p): Do not treat unfolded conditions as constants.
3123         (make_set_regs_unavailable): New function.
3124         (hash_scan_set): Simplify with new reg_available_p.
3125         (compute_hash_table_work): Traverse insns stream only once.
3126         Do not compute reg_avail_info. Traverse insns in reverse order.
3127         Record implicit sets after recording explicit sets from the block.
3128
3129 2011-03-31  Michael Matz  <matz@suse.de>
3130
3131         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3132
3133 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3134
3135         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3136         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3137         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3138         (h8300_mode_dependent_address_p): New function.
3139         (h8300_get_index): Make static.
3140
3141 2011-03-31  Jeff Law  <law@redhat.com>
3142
3143         * reload1.c (elimination_effects): Fix typo in recent change.
3144
3145         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3146         typo potentially leading to null pointer dereference.
3147
3148         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3149         (setup_save_areas): Corresponding changes to avoid useless
3150         assignments.
3151
3152         * jump.c (reversed_comparison_code_parts): Avoid successive return
3153         statements when REVERSE_CONDITION is defined.
3154
3155         * expr.c (expand_assignment): Avoid useless assignments.
3156         (expand_expr_real_1): Likewise.
3157         (expand_expr_real_2): Avoid useless statements.
3158
3159         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3160
3161         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3162
3163         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3164         statements.
3165
3166         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3167
3168 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3169
3170         PR target/47109
3171         * doc/tm.texi.in (TARGET_VERSION): Remove.
3172         * doc/tm.texi: Regenerate.
3173         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3174         * collect2.c (main): Don't use TARGET_VERSION.
3175         * mips-tdump.c (main): Don't use TARGET_VERSION.
3176         * mips-tfile.c (main): Don't use TARGET_VERSION.
3177         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3178         * config/rs6000/vxworksae.h: Remove.
3179         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3180         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3181         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3182         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3183         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3184         * config/arm/arm.h (TARGET_VERSION): Remove.
3185         * config/arm/coff.h (TARGET_VERSION): Remove.
3186         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3187         * config/arm/elf.h (TARGET_VERSION): Remove.
3188         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3189         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3190         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3191         * config/arm/pe.h (TARGET_VERSION): Remove.
3192         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3193         * config/arm/semi.h (TARGET_VERSION): Remove.
3194         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3195         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3196         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3197         * config/avr/avr.h (TARGET_VERSION): Remove.
3198         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3199         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3200         * config/frv/frv.h (TARGET_VERSION): Remove.
3201         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3202         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3203         * config/i386/darwin.h (TARGET_VERSION): Remove.
3204         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3205         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3206         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3207         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3208         * config/i386/gnu.h (TARGET_VERSION): Remove.
3209         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3210         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3211         * config/i386/linux.h (TARGET_VERSION): Remove.
3212         * config/i386/linux64.h (TARGET_VERSION): Remove.
3213         * config/i386/lynx.h (TARGET_VERSION): Remove.
3214         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3215         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3216         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3217         * config/i386/netware.h (TARGET_VERSION): Remove.
3218         * config/i386/nto.h (TARGET_VERSION): Remove.
3219         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3220         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3221         * config/ia64/elf.h (TARGET_VERSION): Remove.
3222         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3223         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3224         * config/ia64/linux.h (TARGET_VERSION): Remove.
3225         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3226         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3227         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3228         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3229         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3230         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3231         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3232         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3233         * config/m68k/linux.h (TARGET_VERSION): Remove.
3234         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3235         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3236         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3237         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3238         * config/mep/mep.h (TARGET_VERSION): Remove.
3239         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3240         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3241         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3242         * config/mips/linux.h (TARGET_VERSION): Remove.
3243         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3244         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3245         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3246         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3247         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3248         * config/pa/pa.h (TARGET_VERSION): Remove.
3249         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3250         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3251         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3252         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3253         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3254         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3255         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3256         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3257         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3258         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3259         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3260         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3261         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3262         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3263         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3264         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3265         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3266         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3267         * config/s390/linux.h (TARGET_VERSION): Remove.
3268         * config/s390/s390.h (TARGET_VERSION): Remove.
3269         * config/s390/tpf.h (TARGET_VERSION): Remove.
3270         * config/score/score.h (TARGET_VERSION): Remove.
3271         * config/sh/linux.h (TARGET_VERSION): Remove.
3272         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3273         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3274         * config/sh/sh.h (TARGET_VERSION): Remove.
3275         * config/sh/sh64.h (TARGET_VERSION): Remove.
3276         * config/sh/superh.h (TARGET_VERSION): Remove.
3277         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3278         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3279         * config/sparc/linux.h (TARGET_VERSION): Remove.
3280         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3281         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3282         TARGET_NAME32, TARGET_NAME): Remove.
3283         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3284         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3285         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3286         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3287         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3288         * config/spu/spu.h (TARGET_VERSION): Remove.
3289         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3290         * config/v850/v850.h (TARGET_VERSION): Remove.
3291         * config/vax/linux.h (TARGET_VERSION): Remove.
3292         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3293         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3294         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3295
3296 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3297
3298         PR target/48142
3299         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3300         frame-related from frame-unrelated adjustments to the stack pointer.
3301
3302 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3303
3304         * common.opt (fdebug-types-section): Move earlier.
3305         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3306
3307 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3308
3309         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3310         var.
3311
3312 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3313
3314         * tree.h (CASE_CHAIN): Define.
3315         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3316         (gimple_redirect_edge_and_branch): Likewise.
3317
3318 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3319
3320         PR middle-end/48367
3321         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3322         calculation.
3323
3324 2011-03-30  Jeff Law  <law@redhat.com>
3325
3326         * PR bootstrap/48371
3327         * reload1.c (reload): Fix botch in last change.
3328
3329         * reload.h (struct reload): Fix typo introduced in last change.
3330
3331 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3332
3333         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3334         Undocumented.  Remove help text.
3335         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3336         -mhard-float.
3337
3338 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3339
3340         * doc/options.texi (NegativeAlias): Document.
3341         (Alias): Mention NegativeAlias.
3342         * opt-functions.awk: Handle NegativeAlias.
3343         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3344         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3345         * opts.h (CL_NEGATIVE_ALIAS): Define.
3346         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3347         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3348         OPT_mspe_.
3349         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3350         Alias entries.
3351         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3352         mno-spe and mno-isel instead of mspe=no and -misel=no.
3353
3354 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3355
3356         * common.opt (fdebug-types-section): New flag.
3357         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3358         * dwarf2out.c (use_debug_types): New define.
3359         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3360         (print_die): Guard output of type unit signatures using
3361         use_debug_types.
3362         (build_abbrev_table): Replace assert of dwarf_version >= 4
3363         with assert on use_debug_types.
3364         (size_of_die): Likewise.
3365         (unmark_dies): Likewise.
3366         (value_format): Decide AT_ref_external form on use_debug_types.
3367         (output_die): Replace dwarf_version version check guard with
3368         use_debug_types where appropriate.
3369         (modified_type_die): Likewise.
3370         (gen_reference_type_die): Likewise.
3371         (dwarf2out_start_source_file): Likewise.
3372         (dwarf2out_end_source_file): Likewise.
3373         (prune_unused_types_walk_attribs): Likewise.
3374         (dwarf2out_finish): Likewise.
3375
3376 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3377
3378         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3379
3380 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3381
3382         PR rtl-optimization/48332
3383         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3384         mode of input operand N and modeN to its actual mode.
3385
3386 2011-03-30  Jeff Law  <law@redhat.com>
3387
3388         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3389         define accessor macro.
3390         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3391         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3392         (reg_equiv_init): Likewise.
3393         (reg_equivs_size): New variable.
3394         (reg_equiv_init_size): Remove.
3395         (allocate_initial_values): Move prototype to here from....
3396         * integrate.h (allocate_initial_values): Remove prototype.
3397         * integrate.c: Include reload.h.
3398         (allocate_initial_values): Corresponding changes.
3399         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3400         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3401         (update_equiv_regs): Corresponding changes.
3402         (ira): Corresponding changes.
3403         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3404         (push_secondary_reload): Corresponding changes.
3405         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3406         (make_memloc, find_reloads_address): Corresponding changes.
3407         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3408         (find_reloads_address_1): Corresponding changes.
3409         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3410         (refers_to_regno_for_reload_p): Corresponding changes.
3411         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3412         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3413         * reload1.c: Include ggc.h.
3414         (grow_reg_equivs): New function.
3415         (replace_pseudos_in, reload): Corresponding changes.
3416         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3417         (eliminate_regs_1, elimination_effects): Corresponding changes.
3418         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3419         (delete_output_reload): Likewise.
3420         * caller-save.c (mark_referenced_regs): Corresponding changes.
3421         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3422         * frv/predicates.md (frv_load_operand): Corresponding changes.
3423         * microblaze/microblaze.c (double_memory_operand): Corresponding
3424         changes.
3425         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3426         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3427         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3428         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3429         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3430         changes.
3431         * pa/pa.c (emit_move_sequence): Corresponding changes.
3432         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3433
3434 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3435
3436         PR target/47551
3437         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3438         structure modes.  Don't check neon_vector_mem_operand for
3439         vector or structure modes.
3440
3441 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3442             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3443
3444         PR target/43590
3445         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3446         operand 1 and reshuffle the operands to match.
3447         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3448
3449 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3450
3451         PR driver/48208
3452         * config/c.opt (F): Added 'Driver' to -F option.
3453
3454         PR driver/48260
3455         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3456           handler function.
3457         * config/darwin.opt: Added '-arch' option.
3458
3459 2011-03-30  Nick Clifton  <nickc@redhat.com>
3460
3461         * config/rx/rx.md: Add peepholes and patterns to combine
3462         extending loads and simple arithmetic instructions.
3463         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3464         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3465         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3466         modes to use pre-decrement and post-increment addressing.
3467         (rx_is_restricted_memory_address): Add range checking of REG+INT
3468         addresses.
3469         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3470         (rx_memory_move_cost): Adjust cost of stores.
3471         (rx_adjust_insn_length): New function.
3472
3473 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3474
3475         PR c/48305
3476         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3477         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3478         matching arg00/arg01 types.
3479
3480 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3481
3482         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3483         last_location to UNKNOWN_LOCATION.
3484
3485 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3486
3487         PR target/48349
3488         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3489         FLOAT_SSE_REGS.
3490
3491 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3492             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3493
3494         PR bootstrap/48337
3495         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3496         Init(PROCESSOR_V7).
3497         (sparc_cpu): Likewise.
3498         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3499         PROCESSOR_V7.
3500
3501 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3502
3503         PR target/48336
3504         PR middle-end/48342
3505         PR rtl-optimization/48345
3506         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3507         hard regs for given mode from profitable regs when doing secondary
3508         allocation.
3509
3510 2011-03-29  Jeff Law  <law@redhat.com>
3511
3512         PR bootstrap/48327
3513         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3514         do_not_duplicate field.
3515         (lookup_redirection_data): Corresponding changes.
3516         (create_duplicates): Always create a template block.
3517         (redirect_edges): Remove code which reused the original block
3518         when it was going to become unreachable code.
3519         (thread_block): Don't set do_not_duplicate field.
3520
3521 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3522
3523         * lto-opts.c (register_user_option_p, lto_register_user_option):
3524         Make type argument unsigned.
3525         * lto-streamer.h (lto_register_user_option): Make type argument
3526         unsigned.
3527         * opth-gen.awk: Make CL_* macros unsigned.
3528         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3529         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3530         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3531         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3532         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3533         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3534         (find_opt): Make lang_mask argument unsigned.
3535
3536 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3537
3538         PR rtl-optimization/48331
3539         PR rtl-optimization/48334
3540         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3541         for any used algorithm.
3542
3543 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3544
3545         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3546         to parent_max.
3547
3548 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3549
3550         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3551         (alpha_option_override): Don't set alpha_sr_alias_set.
3552         (emit_frame_store_1): Use gen_frame_mem rather than calling
3553         set_mem_alias_set.
3554         (alpha_expand_epilogue): Ditto.
3555
3556 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3557
3558         PR tree-optimization/48290
3559         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3560         vectorization, check that relevant phis in the basic block after
3561         the inner loop are really inner loop's exit phis.
3562
3563 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3564
3565         PR debug/48190
3566         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3567         (cached_dw_loc_list_def): New structure.
3568         (cached_dw_loc_list): New typedef.
3569         (cached_dw_loc_list_table): New variable.
3570         (cached_dw_loc_list_table_hash): New function.
3571         (cached_dw_loc_list_table_eq): Likewise.
3572         (add_location_or_const_value_attribute): Take a bool cache_p.
3573         Cache the list when the parameter is true.
3574         (gen_formal_parameter_die): Update caller.
3575         (gen_variable_die): Likewise.
3576         (dwarf2out_finish): Likewise.
3577         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3578         while generating debug info for the decl.
3579         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3580         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3581         (resolve_addr): Cache the result of resolving a chain of
3582         location lists.
3583
3584 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3585
3586         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3587         conflict object hard regset nodes have intersecting hard reg sets.
3588
3589         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3590         after regstat_init_n_sets_and_refs.
3591
3592         * ira.c: Add more comments at the top.
3593         (setup_stack_reg_pressure_class, setup_pressure_classes):
3594         Add comments how we compute the register pressure classes.
3595         (setup_allocno_and_important_classes): Add more comments.
3596         (setup_class_translate_array, reorder_important_classes)
3597         (setup_reg_class_relations): Add comments.
3598
3599         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3600         start of the file.
3601
3602         * ira-color.c: Add 2011 to the Copyright line.
3603         (assign_hard_reg):  Add more comments.
3604         (improve_allocation): Ditto.
3605
3606         * ira-costs.c: Add 2011 to the Copyright line.
3607         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3608         comments.
3609         (setup_regno_cost_classes_by_mode): Ditto.
3610
3611         Initial patches from ira-improv branch:
3612
3613         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3614
3615         * ira-build.c (ira_create_object): Remove initialization of
3616         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3617         (ira_create_allocno): Remove initialization of
3618         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3619         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3620         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3621         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3622         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3623         Initialize ALLOCNO_ADD_DATA.
3624         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3625         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3626         ALLOCNO_REG.
3627         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3628         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3629
3630         * ira.c (ira_reallocate): Remove.
3631         (setup_pressure_classes): Call
3632         ira_init_register_move_cost_if_necessary.  Use
3633         ira_register_move_cost instead of ira_get_register_move_cost.
3634         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3635         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3636
3637         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3638         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3639         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3640         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3641         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3642         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3643         Fix formatting.
3644         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3645         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3646         (struct allocno_color_data): New.
3647         (allocno_color_data_t): New typedef.
3648         (allocno_color_data): New definition.
3649         (ALLOCNO_COLOR_DATA): New macro.
3650         (struct object_color_data): New.
3651         (object_color_data_t): New typedef.
3652         (object_color_data): New definition.
3653         (OBJECT_COLOR_DATA): New macro.
3654         (update_copy_costs, calculate_allocno_spill_cost): Call
3655         ira_init_register_move_cost_if_necessary.  Use
3656         ira_register_move_cost instead of ira_get_register_move_cost.
3657         (move_spill_restore, update_curr_costs): Ditto.
3658         (allocno_spill_priority): Make it inline.
3659         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3660         (struct coalesce_data, coalesce_data_t): New.
3661         (allocno_coalesce_data): New definition.
3662         (ALLOCNO_COALESCE_DATA): New macro.
3663         (merge_allocnos, coalesced_allocno_conflict_p): Use
3664         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3665         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3666         (coalesce_allocnos): Ditto.
3667         (setup_coalesced_allocno_costs_and_nums): Ditto.
3668         (collect_spilled_coalesced_allocnos): Ditto.
3669         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3670         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3671         (coalesce_spill_slots): Ditto.
3672         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3673         free allocno_coalesce_data.
3674
3675         * ira-conflicts.c: Fix formatting.
3676         (process_regs_for_copy): Call
3677         ira_init_register_move_cost_if_necessary.  Use
3678         ira_register_move_cost instead of ira_get_register_move_cost.
3679         (build_object_conflicts): Optimize.
3680
3681         * ira-costs.c (record_reg_classes): Optimize.  Call
3682         ira_init_register_move_cost_if_necessary.  Use
3683         ira_register_move_cost, ira_may_move_in_cost, and
3684         ira_may_move_out_cost instead of ira_get_register_move_cost and
3685         ira_get_may_move_cost.
3686         (record_address_regs): Ditto.
3687         (scan_one_insn): Optimize.
3688         (find_costs_and_classes): Optimize.
3689         (process_bb_node_for_hard_reg_moves): Call
3690         ira_init_register_move_cost_if_necessary.  Use
3691         ira_register_move_cost instead of ira_get_register_move_cost.
3692
3693         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3694         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3695         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3696         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3697         definitions.
3698         (ira_initiate_emit_data, ira_finish_emit_data)
3699         (create_new_allocno): New functions.
3700         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3701         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3702         Use ira_register_move_cost instead of ira_get_register_move_cost.
3703
3704         * ira-int.h: Fix some comments.
3705         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3706         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3707         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3708         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3709         add_data.
3710         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3711         bitfield after mode.  Make hard_regno a short int.  Make
3712         hard_regno short.  Remove first_coalesced_allocno and
3713         next_coalesced_allocno.  Move mem_optimized_dest_p,
3714         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3715         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3716         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3717         temp, colorable_p.  Add new member add_data.
3718         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3719         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3720         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3721         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3722         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3723         (ALLOCNO_ADD_DATA): New macro.
3724         (ira_emit_data_t): New typedef.
3725         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3726         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3727         from struct ira_allocno.
3728         (ALLOCNO_EMIT_DATA): New macro.
3729         (ira_allocno_emit_data, allocno_emit_reg): New.
3730         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3731         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3732         (OBJECT_ADD_DATA): New macro.
3733         (ira_reallocate): Remove.
3734         (ira_initiate_emit_data, ira_finish_emit_data): New.
3735         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3736         (ira_init_register_move_cost_if_necessary): New.
3737         (ira_object_conflict_iter_next): Merge into
3738         ira_object_conflict_iter_cond.
3739         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3740
3741         * ira-live.c (process_single_reg_class_operands): Call
3742         ira_init_register_move_cost_if_necessary.  Use
3743         ira_register_move_cost instead of ira_get_register_move_cost.
3744
3745         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3746
3747         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3748
3749         * ira-costs.c: Fix formatting.
3750         (cost_classes, cost_classes_num): Remove.
3751         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3752         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3753         (cost_classes_del, cost_classes_htab): New.
3754         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3755         (initiate_regno_cost_classes, setup_cost_classes): New.
3756         (setup_regno_cost_classes_by_aclass): New.
3757         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3758         (record_reg_classes): Use regno_cost_classes instead of
3759         cost_classes.  Move checking opposite operand up.
3760         (record_address_regs): Use regno_cost_classes
3761         instead of cost_classes.
3762         (scan_one_insn): Ditto.  Use always general register.
3763         (print_allocno_costs): Use regno_cost_classes instead of
3764         cost_classes.
3765         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3766         (find_costs_and_classes): Set up cost classes for each registers.
3767         Use also their mode for this.  Use regno_cost_classes instead of
3768         cost_classes.
3769         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3770         cost_classes.
3771         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3772         (ira_costs, ira_set_pseudo_classes): Call
3773         initiate_regno_cost_classes and finish_regno_cost_classes.
3774
3775         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3776
3777         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3778
3779         * target.def (ira_cover_classes): Remove.
3780
3781         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3782
3783         * doc/tm.texi.in: Ditto.
3784
3785         * ira-conflicts.c: Remove mentioning cover classes from the file.
3786         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3787         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3788
3789         * targhooks.c (default_ira_cover_classes): Remove.
3790
3791         * targhooks.h (default_ira_cover_classes): Ditto.
3792
3793         * haifa-sched.c: Remove mentioning cover classes from the file.
3794         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3795         ira_pressure_classes and ira_pressure_classes_num instead of
3796         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3797         sched_regno_pressure_class instead of sched_regno_cover_class.
3798         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3799         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3800
3801         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3802         classes from the file.
3803         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3804         (struct object_hard_regs, struct object_hard_regs_node): New.
3805         (struct ira_object): New members profitable_hard_regs,
3806         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3807         (struct ira_allocno): Rename cover_class to aclass.  Rename
3808         cover_class_cost and updated_cover_class_cost to class_cost and
3809         updated_class_cost.  Remove splay_removed_p and
3810         left_conflict_size.  Add new members colorable_p.
3811         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3812         (ALLOCNO_COLORABLE_P): New macro.
3813         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3814         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3815         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3816         (OBJECT_...): Rename parameter C to O.
3817         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3818         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3819         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3820         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3821         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3822         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3823         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3824         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3825         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3826         x_ira_reg_class_subunion.
3827         (ira_max_memory_move_cost, ira_max_register_move_cost)
3828         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3829         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3830         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3831         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3832         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3833         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3834         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3835         (ira_tune_allocno_costs_and_cover_classes): Rename to
3836         ira_tune_allocno_costs.
3837         (ira_debug_hard_regs_forest): New.
3838         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3839         (ira_object_conflict_iter_next): Fix comments.
3840         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3841         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3842         cover_class to aclass.
3843         (ira_allocate_and_accumulate_costs): Ditto.
3844         (ira_allocate_and_set_or_copy_costs): Ditto.
3845
3846         * opts.c (decode_options): Remove ira_cover_class check.
3847
3848         * ira-color.c: Remove mentioning cover classes from the file.  Use
3849         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3850         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3851         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3852         (splay-tree.h): Remove include.
3853         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3854         before copy_freq_compare_func.
3855         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3856         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3857         New definitions.
3858         (hard_regs_roots, hard_regs_node_vec): Ditto.
3859         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3860         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3861         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3862         (create_new_object_hard_regs_node): Ditto.
3863         (add_new_object_hard_regs_node_to_forest): Ditto.
3864         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3865         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3866         Ditto.
3867         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3868         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3869         (remove_unused_object_hard_regs_nodes): Ditto.
3870         (enumerate_object_hard_regs_nodes): Ditto.
3871         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3872         (object_hard_regs_subnode_t): Ditto.
3873         (struct object_hard_regs_subnode): Ditto.
3874         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3875         (setup_object_hard_regs_subnode_index): Ditto.
3876         (get_object_hard_regs_subnodes_num): Ditto.
3877         (form_object_hard_regs_nodes_forest): Ditto.
3878         (finish_object_hard_regs_nodes_tree): Ditto.
3879         (finish_object_hard_regs_nodes_forest): Ditto.
3880         (allocnos_have_intersected_live_ranges_p): Rename to
3881         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3882         (pseudos_have_intersected_live_ranges_p): Rename to
3883         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3884         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3885         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3886         (update_copy_costs): Remove assert.  Skip cost update if the hard
3887         reg does not belong the class.
3888         (assign_hard_reg): Process only profitable hard regs.
3889         (uncolorable_allocnos_num): Make it scalar.
3890         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3891         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3892         and ira_reg_class_max_nregs.
3893         (bucket_allocno_compare_func): Check frequency first.
3894         (sort_bucket): Add compare function as a parameter.
3895         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3896         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3897         (push_allocno_to_stack): Rewrite for checking new allocno
3898         colorability.
3899         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3900         (push_only_colorable): Pass new parameter to sort_bucket.
3901         (push_allocno_to_spill): Remove.
3902         (allocno_spill_priority_compare): Make it inline and rewrite.
3903         (splay_tree_allocate, splay_tree_free): Remove.
3904         (allocno_spill_sort_compare): New function.
3905         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3906         build and use splay tree.  Choose first allocno in uncolorable
3907         allocno bucket to spill.  Remove setting spill cost.
3908         (all_conflicting_hard_regs): Remove.
3909         (setup_allocno_available_regs_num): Check only profitable hard
3910         regs.  Print info about hard regs nodes.
3911         (setup_allocno_left_conflicts_size): Remove.
3912         (put_allocno_into_bucket): Don't call
3913         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3914         (improve_allocation): New.
3915         (color_allocnos): Call setup_profitable_hard_regs,
3916         form_object_hard_regs_nodes_forest, improve_allocation,
3917         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3918         (print_loop_title): Use pressure classes.
3919         (color_allocnso): Ditto.
3920         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3921         and allocnos_for_spilling.
3922         (ira_sort_regnos_for_alter_reg): Don't setup members
3923         {first,next}_coalesced_allocno.
3924         (color): Remove allocating and freeing removed_splay_allocno_vec.
3925         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3926         prohibited_class_mode_regs.
3927
3928         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3929         formatting.
3930         (update_allocno_pressure_excess_length): Use pressure classes.
3931         (inc_register_pressure, dec_register_pressure): Check for pressure
3932         class.
3933         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3934         pressure class.  Use ira_reg_class_nregs instead of
3935         ira_reg_class_max_nregs.
3936         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3937         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3938         (single_reg_class): Use ira_reg_class_nregs instead of
3939         ira_reg_class_max_nregs.
3940         (process_bb_node_lives): Use pressure classes.
3941
3942         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3943         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3944         (change_loop): Use pressure classes.
3945         (modify_move_list): Call ira_set_allocno_class instead of
3946         ira_set_allocno_cover_class.
3947
3948         * ira-build.c: Remove mentioning cover classes from the file.  Use
3949         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3950         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3951         ALLOCNO_UPDATED_CLASS_COST instead of
3952         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3953         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3954         (ira_create_allocno): Remove initialization of
3955         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3956         ALLOCNO_COLORABLE_P.
3957         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3958         Update conflict regs for the objects.
3959         (create_cap_allocno): Remove assert.  Don't propagate
3960         ALLOCNO_AVAILABLE_REGS_NUM.
3961         (ira_free_allocno_costs): New function.
3962         (finish_allocno): Change a part of code into call of
3963         ira_free_allocno_costs.
3964         (low_pressure_loop_node_p): Use pressure classes.
3965         (object_range_compare_func): Don't compare classes.
3966         (setup_min_max_conflict_allocno_ids): Ditto.
3967
3968         * loop-invariant.c: Remove mentioning cover classes from the file.
3969         Use ira_pressure_classes and ira_pressure_classes_num instead of
3970         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3971         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3972         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3973         Use reg_allocno_class instead of reg_cover_class.
3974         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3975         STACK_REG_COVER_CLASS.
3976         (get_regno_cover_class): Rename to get_regno_pressure_class.
3977         (move_loop_invariants): Initialize and finalize regstat.
3978
3979         * ira.c: Remove mentioning cover classes from the file.  Add
3980         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3981         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3982         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3983         setup_class_subset_and_memory_move_costs.
3984         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3985         (setup_cover_and_important_classes): Rename to
3986         setup_allocno_and_important_classes.
3987         (setup_class_translate_array): New.
3988         (setup_class_translate): Call it for allocno and pressure classes.
3989         (cover_class_order): Rename to allocno_class_order.
3990         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3991         of ira_class_translate.
3992         (reorder_important_classes): Set up ira_important_class_nums.
3993         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3994         (print_class_cover): Rename to print_classes.  Add parameter.
3995         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3996         Print pressure classes too.
3997         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3998         setup_reg_subclasses.
3999         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4000         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4001         (setup_prohibited_class_mode_regs): Use
4002         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4003         (clarify_prohibited_class_mode_regs): New function.
4004         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4005         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4006         (ira_init_once): Initialize them.
4007         (free_register_move_costs): Process them.
4008         (ira_init): Move calls of find_reg_classes and
4009         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4010         Call clarify_prohibited_class_mode_regs.
4011         (ira_no_alloc_reg): Remove.
4012         (too_high_register_pressure_p): Use pressure classes.
4013
4014         * sched-deps.c: Remove mentioning cover classes from the file.
4015         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4016         ira_pressure_classes and ira_pressure_classes_num instead of
4017         ira_reg_class_cover_size and ira_reg_class_cover.
4018         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4019         sched_regno_pressure_class instead of sched_regno_cover_class.
4020         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4021         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4022
4023         * ira.h: Add 2010 to Copyright.
4024         (ira_no_alloc_reg): Remove external.
4025         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4026         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4027         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4028         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4029         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4030         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4031         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4032         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4033         x_ira_no_alloc_regs.
4034         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4035         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4036         ira_allocno_classes_num and ira_allocno_classes.
4037         (ira_class_translate): Rename to ira_allocno_class_translate.
4038         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4039         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4040         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4041         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4042         (ira_no_alloc_regs): New.
4043
4044         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4045         classes from the file.  Use ALLOCNO_CLASS instead of
4046         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4047         ALLOCNO_COVER_CLASS_COST.
4048         (regno_cover_class): Rename to regno_aclass.
4049         (record_reg_classes): Use ira_reg_class_subunion instead of
4050         ira_reg_class_union.
4051         (record_address_regs): Check overflow.
4052         (scan_one_insn): Ditto.
4053         (print_allocno_costs): Print total mem cost fore regional allocation.
4054         (print_pseudo_costs): Use REG_N_REFS.
4055         (find_costs_and_classes): Use classes intersected with them on the
4056         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4057         ira_reg_class_union.  Use ira_allocno_class_translate and
4058         regno_aclass instead of ira_class_translate and regno_cover_class.
4059         Modify code for finding regno_aclass.  Setup preferred classes for
4060         the next pass.
4061         (setup_allocno_cover_class_and_costs): Rename to
4062         setup_allocno_class_and_costs.  Use regno_aclass instead of
4063         regno_cover_class.  Use ira_set_allocno_class instead of
4064         ira_set_allocno_cover_class.
4065         (init_costs, finish_costs): Use regno_aclass instead of
4066         regno_cover_class.
4067         (ira_costs): Use setup_allocno_class_and_costs instead of
4068         setup_allocno_cover_class_and_costs.
4069         (ira_tune_allocno_costs_and_cover_classes): Rename to
4070         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4071         by processing objects.  Use ira_reg_class_max_nregs instead of
4072         ira_reg_class_nregs.
4073
4074         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4075
4076         * sched-int.h: Remove mentioning cover classes from the file.
4077         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4078
4079         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4080         classes from the file.
4081         (struct reg_pref): Rename coverclass into allocnoclass.
4082         (reg_cover_class): Rename to reg_allocno_class.
4083
4084         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4085
4086         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4087
4088         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4089
4090         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4091
4092         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4093
4094         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4095
4096         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4097
4098         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4099
4100         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4101
4102         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4103
4104         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4105         (i386_ira_cover_classes): Ditto.
4106
4107         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4108
4109         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4110
4111         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4112
4113         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4114
4115         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4116
4117         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4118
4119         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4120         (mips_ira_cover_classes): Ditto.
4121
4122         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4123
4124         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4125
4126         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4127
4128         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4129
4130         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4131
4132         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4133         (IRA_COVER_CLASSES_VSX): Ditto.
4134
4135         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4136         (rs6000_ira_cover_classes): Ditto.
4137
4138         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4139
4140         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4141
4142         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4143
4144         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4145
4146         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4147
4148         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4149
4150         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4151
4152         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4153
4154         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4155
4156         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4157
4158 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4159
4160         PR debug/48253
4161         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4162         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4163         dw_fde_unlikely_section_end_label, cold_in_std_section,
4164         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4165         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4166         fields.
4167         (output_fde): Use dw_fde_second_{begin,end} if second is
4168         true, otherwise dw_fde_{begin,end}.
4169         (output_call_frame_info): Test dw_fde_second_begin != NULL
4170         instead of dw_fde_switched_sections.
4171         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4172         fields, initialize new fields.  Initialize in_std_section
4173         unconditionally from the first partition.
4174         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4175         dw_fde_second_begin is non-NULL.
4176         (dwarf2out_switch_text_section): Stop initializing removed
4177         dw_fde_struct fields, initialize new fields, initialize
4178         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4179         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4180         (struct var_loc_list_def): Add last_before_switch field.
4181         (arange_table, arange_table_allocated, arange_table_in_use,
4182         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4183         (size_of_aranges): Count !in_std_section and !second_in_std_section
4184         hunks in fdes, instead of looking at arange_table_in_use.
4185         (output_aranges): Add aranges_length argument, don't call
4186         size_of_aranges here.  Instead of using aranges_table*
4187         emit ranges for fdes when !in_std_section resp.
4188         !second_in_std_section.
4189         (dw_loc_list): Break ranges crossing section switch.
4190         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4191         use dw_fde_second_end instead of dw_fde_end as end of last range.
4192         (gen_subprogram_die): Don't call add_arange.  Use
4193         dw_fde_{begin,end} for first partition and if switched
4194         section dw_fde_second_{begin,end} for the second.
4195         (var_location_switch_text_section_1,
4196         var_location_switch_text_section): New functions.
4197         (dwarf2out_begin_function): Initialize cold_text_section even
4198         when function_section () isn't text_section.
4199         (prune_unused_types): Don't walk arange_table.
4200         (dwarf2out_finish): Don't needlessly test
4201         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4202         If info_section_emitted, call size_of_aranges and if it indicates
4203         non-empty .debug_aranges, call output_aranges with the computed
4204         size.  Stop using removed dw_fde_struct fields, use
4205         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4206         for second.
4207
4208         PR debug/48203
4209         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4210         create ENTRY_VALUE if incoming or address of incoming's MEM
4211         is a hard REG.
4212         * dwarf2out.c (mem_loc_descriptor): Don't emit
4213         DW_OP_GNU_entry_value of DW_OP_fbreg.
4214         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4215         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4216         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4217         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4218         ENTRY_VALUE_EXPs.
4219         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4220         is a REG_P or MEM_P with REG_P address, compute hash directly
4221         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4222         (preserve_only_constants): Don't clear VALUES forwaring
4223         ENTRY_VALUE to some other VALUE.
4224
4225 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4226
4227         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4228         instead of GEN_INT.
4229
4230 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4231
4232         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4233         block before expanding the statement.
4234         (expand_gimple_stmt_1): Likewise.  Set them here...
4235         (expand_gimple_stmt): ...and not here.  Tidy.
4236         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4237         unknown.
4238
4239 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4240
4241         * Makefile.in: New rule for cprop.o.
4242         * gcse.c: Move constant/copy propagation to cprop.c.
4243         (compute_local_properties): Only handle expression tables.
4244         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4245         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4246         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4247         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4248         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4249         compute_cprop_data, find_used_regs, try_replace_reg,
4250         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4251         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4252         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4253         find_bypass_set, reg_killed_on_edge, bypass_block,
4254         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4255         execute_rtl_cprop, pass_rtl_cprop): Move to...
4256         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4257         moved from gcse.c to here with minor cleanups in duplicated code.
4258
4259 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4260
4261         * config/i386/i386.c (flag_opts): Fix a typo in
4262         -mavx256-split-unaligned-store.
4263
4264 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4265
4266         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4267         LIBCALL_VALUE): Remove macros.
4268         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4269         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4270         (h8300_function_value, h8300_libcall_value,
4271         h8300_function_value_regno_p): New functions.
4272
4273 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4274
4275         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4276
4277 2011-03-28  Jeff Law  <law@redhat.com>
4278
4279         * tree-ssa-threadupdate.c (redirect_edges): Call
4280         create_edge_and_update_destination_phis as needed.
4281         (create_edge_and_update_destination_phis): Accept new BB argument.
4282         All callers updated.
4283         (thread_block): Do not update the profile when threading around
4284         intermediate blocks.
4285         (thread_single_edge): Likewise.
4286         (determine_bb_domination_status): If BB is not a successor of the
4287         loop header, return NONDOMINATING.
4288         (register_jump_thread): Note when we register a jump thread around
4289         an intermediate block.
4290         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4291         (thread_across_edge): Use it.
4292
4293 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4294
4295         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4296         when for_return is 2.
4297
4298 2011-03-28  Jeff Law  <law@redhat.com>
4299
4300         * var-tracking.c (canonicalize_values_mark): Delete unused
4301         lhs assignment.
4302         (canonicalize_values_star, set_variable_part): Likewise.
4303         (clobber_variable_part, delete_variable_part): Likewise.
4304
4305 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4306
4307         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4308
4309 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4310
4311         * tree-inline.c (expand_call_inline): Do not check that destination
4312         node is analyzed.
4313         (optimize_inline_calls): Assert that destination node is analyzed.
4314         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4315         not call tree_lowering_passes.
4316         * cgraph.h (cgraph_analyze_function): Declare.
4317         * cgraphunit.c (cgraph_analyze_function): Make public.
4318
4319 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4320
4321         * config/sparc/sparc-opts.h: New.
4322         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4323         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4324         (sparc_option_override): Store processor_type enumeration rather
4325         than string in cpu_default.  Remove name and enumeration from
4326         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4327         without using sparc_select.  Use target_flags_explicit instead of
4328         fpu_option_set.
4329         * config/sparc/sparc.h (enum processor_type): Move to
4330         sparc-opts.h.
4331         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4332         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4333         HeaderInclude entry.
4334         (mcpu=, mtune=): Use Var and Enum.
4335         (sparc_processor_type): New Enum and EnumValue entries.
4336
4337 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4338             Iain Sandoe  <iains@gcc.gnu.org>
4339
4340         PR target/48245
4341         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4342
4343 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4344
4345         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4346         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4347         Insert new statements at it in lieu of STMT.
4348         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4349         * tree-vect-stmts.c (vectorizable_store): Likewise.
4350         (vectorizable_load): Likewise.
4351
4352 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4353
4354         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4355         (divtf3): Ditto.
4356         (multf3): Ditto.
4357         (subtf3): Ditto.
4358
4359 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4360
4361         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4362         unaligned 256bit load/store.
4363         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4364         (*avx_movdqu<avxmodesuffix>): Likewise.
4365
4366 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4367
4368         PR target/48288
4369         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4370         * config/pa/pa.md (iordi3): Use new predicate in expander.
4371         (iorsi3): Likewise.
4372
4373 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4374
4375         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4376         FUNCTION_VALUE_REGNO_P): Remove macros.
4377         * config/mips/mips-protos.h (mips_function_value): Remove.
4378         * config/mips/mips.c (mips_function_value): Rename to...
4379         (mips_function_value_1): ... this. Make static.  Handle receiving
4380         the function type in 'fn_decl_or_type' argument.
4381         (mips_function_value, mips_libcall_value,
4382         mips_function_value_regno_p): New function.
4383         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4384         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4385
4386 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4389         and -mavx256-split-unaligned-store.
4390         (ix86_option_override_internal): Split 32-byte AVX unaligned
4391         load/store by default.
4392         (ix86_avx256_split_vector_move_misalign): New.
4393         (ix86_expand_vector_move_misalign): Use it.
4394
4395         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4396         -mavx256-split-unaligned-store.
4397
4398         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4399         256bit load/store.  Generate unaligned store on misaligned memory
4400         operand.
4401         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4402         256bit load/store.
4403         (*avx_movdqu<avxmodesuffix>): Likewise.
4404
4405         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4406         -mavx256-split-unaligned-store.
4407
4408 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4409
4410         PR target/38598
4411         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4412         Update commentary.
4413
4414 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4415
4416         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4417         opno arguments with an expand_operand.  Use create_input_operand.
4418         (mips_prepare_builtin_target): Delete.
4419         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4420         functions.
4421         (mips_expand_builtin_direct): Use create_output_operand and
4422         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4423         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4424         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4425
4426 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4427
4428         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4429         function.
4430         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4431
4432 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4433
4434         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4435         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4436         basic blocks and call commit_edge_insertions directly.
4437         (fixup_abnormal_edges): Move from here to...
4438         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4439         on the edges and return whether some have actually been inserted.
4440         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4441         compensation code.
4442
4443 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4444
4445         PR rtl-optimization/48144
4446         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4447         (merge_expr_data): ... here.
4448         (av_set_intersect): Rename to av_set_code_motion_filter.
4449         Update all callers.  Call merge_history_vect when an expression
4450         is found in both sets.
4451         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4452
4453 2011-03-26  Alan Modra  <amodra@gmail.com>
4454
4455         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4456         cmodel medium addresses.
4457         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4458         64-bit gpr loads and stores.
4459         (rs6000_secondary_reload_ppc64): New function.
4460         * config/rs6000/rs6000-protos.h: Declare it.
4461         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4462
4463 2011-03-26  Alan Modra  <amodra@gmail.com>
4464
4465         PR target/47487
4466         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4467         GNU Go in traceback table.
4468
4469 2011-03-25  Richard Henderson  <rth@redhat.com>
4470
4471         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4472         if there are exactly 6 operands.
4473         (set_storage_via_setmem): Similarly.
4474
4475 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4476
4477         * collect2.c (write_c_file_stat): Handle backslash
4478         as right-hand directory separator.
4479         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4480         checking just for slash.
4481         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4482         instead of checking for trailing slash.
4483         * gcc.c (record_temp_file): Use filename_cmp instead
4484         of strcmp.
4485         (do_spec_1): Likewise.
4486         (replace_outfile_spec_function): Likewise.
4487         (is_directory): Use filename_ncmp instead of strncmp.
4488         (print_multilib_info): Likewise.
4489         * gcov.c (find_source): Use filename_cmp instead
4490         instead of strcmp.
4491         (make_gcov_file_name): Fix order of slash/backslash
4492         checks.
4493         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4494         (add_standard_paths): Likewise.
4495         * mips-tfile.c (saber_stop): Handle backslash.
4496         * prefix.c (update_path): Use filename_ncmp instead of
4497         strncmp.
4498         * profile.c (output_location): Use filename_cmp instead
4499         of strcmp.
4500         * read-md.c (handle_toplevel_file): Handle backslash.
4501         * tlink.c (frob_extension):  Likewise.
4502         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4503         strcmp.
4504         * tree-dump.c (dequeue_and_dump): Handle backslash.
4505         * tree.c (get_file_function_name): Likewise.
4506         * gengtype.c (read_input_list): Likewise.
4507         (get_file_realbasename): Likewise.
4508         (get_output_file_with_visibility): Use filename_cmp
4509         instead of strcmp.
4510
4511 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4512
4513         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4514         case to VFPv1.
4515
4516 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4517
4518         * fold-const.c (expr_location_or): New function.
4519         (fold_truth_not_expr): Call it.
4520
4521 2011-03-25  Jeff Law  <law@redhat.com>
4522
4523         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4524         va_end.
4525         * c-family/c-common.c (def_fn_type): Likewise.
4526         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4527         * emit-rtl.c (gen_rtvec): Likewise.
4528         * lto/lto-lang.c (def_fn_type): Likewise.
4529
4530 2011-03-25  Richard Guenther  <rguenther@suse.de>
4531
4532         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4533         also generate copies.
4534         (fini_copy_prop): Handle constant values properly.
4535
4536 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4537
4538         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4539         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4540         (hash_loc_operands, compare_loc_operands): Handle
4541         DW_OP_GNU_entry_value.
4542
4543 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4544
4545         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4546         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4547         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4548         comment and use macro TARGET_64BIT_MS_ABI instead.
4549         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4550         and change default behavior for 32-bit MS_ABI.
4551         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4552         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4553         32-bit, too.
4554         (ix86_cfun_abi): Likewise.
4555         (ix86_maybe_switch_abi): Adjust comment.
4556         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4557         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4558         instead of checking for SYSV_ABI.
4559         (ix86_nsaved_sseregs): Likewise.
4560         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4561         to 16 bytes.
4562         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4563         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4564         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4565         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4566         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4567
4568 2011-03-25  Richard Guenther  <rguenther@suse.de>
4569
4570         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4571         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4572         (verify_gimple): Remove.
4573         * tree-cfg.c (verify_gimple_call): Merge verification
4574         from verify_stmts.
4575         (verify_gimple_phi): Merge verification from verify_stmts.
4576         (verify_gimple_label): New function.
4577         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4578         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4579         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4580         (verify_stmts): Rename to verify_gimple_in_cfg.
4581         (verify_gimple_in_cfg): New function.
4582         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4583         * tree-ssa.c (verify_ssa): Likewise.
4584         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4585
4586 2011-03-25  Richard Guenther  <rguenther@suse.de>
4587
4588         * passes.c (init_optimization_passes): Add FRE pass after
4589         early SRA.
4590
4591 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4592             Andrew Stubbs  <ams@codesourcery.com>
4593
4594         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4595         for Cortex-A8.
4596         (arm_movdi_vfp_cortexa8): New pattern.
4597         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4598         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4599         instructions when tuning for Cortex-A8.  Set attribute "arch".
4600         * config/arm/arm.md: Move include arm-tune.md up a bit.
4601         (define_attr "arch"): Add "onlya8" and "nota8" values.
4602         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4603
4604 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4605
4606         PR bootstrap/48282
4607         Revert:
4608         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4609
4610         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4611         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4612         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4613         * passes.c (init_optimization_passes): Move
4614         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4615
4616 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4617
4618         * c-typeck.c (comptypes_internal): Replace target
4619         hook call of comp_type_attributes by version in tree.c file.
4620         * gimple.c (gimple_types_compatible_p_1): Likewise.
4621         * tree-ssa.c (useless_type_conversion_p): Likewise.
4622         * tree.c (build_type_attribute_qual_variant): Likewise.
4623         (attribute_value_equal): New static helper function.
4624         (comp_type_attributes): New function.
4625         (merge_attributes): Use attribute_value_equal for comparison.
4626         (attribute_list_contained): Likewise.
4627         * tree.h (comp_type_attributes): New prototype.
4628
4629 2011-03-25  Richard Guenther  <rguenther@suse.de>
4630
4631         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4632         of complex types at -O0.
4633         (verify_gimple_assign_binary): Likewise.
4634         (verify_gimple_assign_ternary): Likewise.
4635
4636 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4637
4638         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4639         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4640
4641 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4642
4643         PR debug/48041
4644         * dwarf2out.c (output_abbrev_section): Only write table when
4645         abbrev_die_table_in_use > 1.
4646
4647 2011-02-24  Richard Henderson  <rth@redhat.com>
4648
4649         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4650         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4651         (alpha_expand_unaligned_load_words): Use extql.
4652         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4653         (emit_insxl): Handle all modes for consistency.
4654
4655 2011-02-24  Richard Henderson  <rth@redhat.com>
4656
4657         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4658         (alpha_expand_unaligned_load): Likewise.
4659         (alpha_expand_unaligned_store): Likewise.
4660         (alpha_expand_unaligned_load_words): Likewise.
4661         (alpha_expand_unaligned_store_words): Likewise.
4662         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4663         (alpha_split_lock_test_and_set_12): Likewise.
4664         (print_operand, alpha_fold_builtin_extxx): Likewise.
4665         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4666         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4667         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4668         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4669         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4670         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4671         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4672         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4673         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4674         (extwl, extll, extql): Similarly.
4675         (inswh, inslh, insqh): Similarly.
4676         (mskbl, mskwl, mskll, mskql): Similarly.
4677         (mskwh, msklh, mskqh): Similarly.
4678
4679 2011-02-24  Richard Henderson  <rth@redhat.com>
4680
4681         * config/alpha/alpha.md (attribute isa): Add er, ner.
4682         (attribute enabled): Handle them.
4683         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4684
4685 2011-02-24  Richard Henderson  <rth@redhat.com>
4686
4687         * config/alpha/alpha.md (attribute isa): Add vms.
4688         (attribute enabled): Handle it.
4689         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4690         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4691         (*movtf): Rename from *movtf_internal for consistency.
4692         (*movsi): Merge with *movsi_nt_vms.
4693         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4694         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4695         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4696         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4697
4698 2011-02-24  Richard Henderson  <rth@redhat.com>
4699
4700         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4701         (extendqisi2, extendhisi2): Likewise.
4702         (extendqidi2): Simplify BWX/non-BWX expansions.
4703         (extendhidi2): Similarly.
4704
4705 2011-02-24  Richard Henderson  <rth@redhat.com>
4706
4707         * config/alpha/alpha.md (attribute isa): New.
4708         (attribute enabled): New.
4709         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4710         (zero_extendqisi2, zero_extendqidi2): Similarly.
4711         (zero_extendhisi2, zero_extendhidi2): Similarly.
4712         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4713
4714 2011-02-24  Richard Henderson  <rth@redhat.com>
4715
4716         * config/alpha/predicates.md (input_operand): Revert last change;
4717         update comment to mention 32-bit VMS rather than Windows.
4718
4719 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4720
4721         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4722         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4723         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4724         * passes.c (init_optimization_passes): Move
4725         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4726
4727 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4728
4729         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4730
4731 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4732
4733         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4734         correctly.
4735
4736 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4737
4738         PR debug/48204
4739         * simplify-rtx.c (simplify_const_unary_operation): Call
4740         real_convert when changing mode class with FLOAT_EXTEND.
4741
4742 2011-03-24  Nick Clifton  <nickc@redhat.com>
4743
4744         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4745         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4746         * config/rx/rx.c (rx_option_override): Set align_jumps,
4747         align_loops and align_labels if not set by the user.
4748         (rx_align_for_label): New function.
4749         (rx_max_skip_for_label): New function.
4750         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4751         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4752         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4753         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4754         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4755
4756 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4757
4758         PR rtl-optimization/48263
4759         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4760         and original commutative_p handling.  Use maybe_gen_insn.
4761
4762 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4763
4764         * reload.c (find_reloads_subreg_address): Add address_reloaded
4765         parameter and return true there if the full address has been
4766         reloaded.
4767         (find_reloads_toplev): Pass address_reloaded flag.
4768         (find_reloads_address_1): Don't use address_reloaded parameter.
4769
4770 2011-03-24  Jeff Law  <law@redhat.com>
4771
4772         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4773         unused variable "ann".
4774         (remove_unused_locals): Likewise.
4775
4776         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4777         statement.
4778
4779         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4780         after it is freed.
4781
4782 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4783
4784         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4785         for invalid symbolic addresses.
4786         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4787         larl operands.
4788
4789 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4790
4791         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4792         the argument in calls to fold_truth_not_expr.
4793
4794 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4795
4796         * tree.c (record_node_allocation_statistics): New function.
4797         (make_node_stat, copy_node_stat, build_string): Call it.
4798         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4799         (build1_stat, build_omp_clause): Likewise.
4800
4801 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4802
4803         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4804         last commit.
4805
4806 2011-03-24  Richard Guenther  <rguenther@suse.de>
4807
4808         PR tree-optimization/48271
4809         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4810         blocks that still exist.
4811
4812 2011-03-24  Richard Guenther  <rguenther@suse.de>
4813
4814         PR tree-optimization/48270
4815         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4816         not free datarefs before ddrs.
4817
4818 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4819
4820         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4821         from the address built for a reference with variable offset.
4822
4823 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4824
4825         PR target/48237
4826         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4827         alternatives that can be handled with movq or movabsq insn.
4828         (*movdf_internal): Disable for !TARGET_64BIT.
4829         (*movdf_internal_nointeger): Ditto.
4830         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4831
4832 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4833
4834         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4835         (FUNCTION_ARG_ADVANCE): Likewise.
4836         * tm.texi.in: Change references to them to hook references.
4837         * tm.texi: Regenerate.
4838         * targhooks.c (default_function_arg): Eliminate check for target macro.
4839         (default_function_incoming_arg): Likewise.
4840         (default_function_arg_advance): Likewise.
4841         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4842         (function_arg_advance): Likewise.
4843         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4844
4845 2011-03-24  Richard Guenther  <rguenther@suse.de>
4846
4847         PR middle-end/48269
4848         * tree-object-size.c (addr_object_size): Do not double-account
4849         for MEM_REF offsets.
4850
4851 2011-03-24  Diego Novillo  <dnovillo@google.com>
4852
4853         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4854         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4855         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4856         Update all users.
4857         (lto_input_string): Rename from input_string.  Make extern.
4858         Update all users.
4859         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4860         output_string_with_length.
4861         Output 0 to indicate a non-NULL string.  Update all callers to
4862         not emit 0.
4863         (lto_output_string): Rename from output_string.  Make extern.
4864         Update all users.
4865         (lto_output_decl_state_streams): Make extern.
4866         (lto_output_decl_state_refs): Make extern.
4867         * lto-streamer.h (lto_input_string): Declare.
4868         (lto_input_data_block): Declare.
4869         (lto_output_string): Declare.
4870         (lto_output_string_with_length): Declare.
4871         (lto_output_decl_state_streams): Declare.
4872         (lto_output_decl_state_refs): Declare.
4873
4874 2011-03-24  Richard Guenther  <rguenther@suse.de>
4875
4876         PR tree-optimization/46562
4877         * tree.c (build_invariant_address): New function.
4878         * tree.h (build_invariant_address): Declare.
4879         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4880         a renamed function moved ...
4881         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4882         Take valueization callback parameter.
4883         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4884         * gimple-fold.h: New file.
4885         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4886         (ccp_fold, fold_const_aggregate_ref,
4887         fold_ctor_reference, fold_nonarray_ctor_reference,
4888         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4889         get_base_constructor): Move ...
4890         * gimple-fold.c: ... here.
4891         (gimple_fold_stmt_to_constant_1): New function
4892         split out from ccp_fold.  Take a valueization callback parameter.
4893         Valueize all operands.
4894         (gimple_fold_stmt_to_constant): New wrapper function.
4895         (fold_const_aggregate_ref_1): New function split out from
4896         fold_const_aggregate_ref.  Take a valueization callback parameter.
4897         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4898         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4899         invariant POINTER_PLUS_EXPRs to invariant form.
4900         (vn_valueize): New function.
4901         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4902         * tree-vrp.c (vrp_valueize): New function.
4903         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4904         to fold statements to constants.
4905         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4906         function declarations.
4907         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4908         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4909
4910 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4911
4912         * config/h8300/predicates.md (jump_address_operand): Fix register
4913         mode check.
4914
4915 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4916
4917         * doc/invoke.texi (max-stores-to-sink): Document.
4918         * params.h (MAX_STORES_TO_SINK): Define.
4919         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4920         if either vectorization or if-conversion is disabled.
4921         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4922         tree-vect-data-refs.c vect_equal_offsets.
4923         (dr_equal_offsets_p): New function.
4924         (find_data_references_in_bb): Remove static.
4925         * tree-data-ref.h (find_data_references_in_bb): Declare.
4926         (dr_equal_offsets_p): Likewise.
4927         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4928         (vect_drs_dependent_in_basic_block): Update calls to
4929         vect_equal_offsets.
4930         (vect_check_interleaving): Likewise.
4931         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4932         (cond_if_else_store_replacement): Rename to...
4933         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4934         documentation.
4935         (cond_if_else_store_replacement): New function.
4936         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4937         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4938
4939 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4940
4941         PR target/46934
4942         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4943         to subtract lower bound instead of GEN_INT().
4944
4945 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4946
4947         PR other/48179
4948         PR other/48221
4949         PR other/48234
4950         * doc/extend.texi (Alignment): Move section to match order in TOC.
4951         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4952         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4953
4954 2011-03-23  Jeff Law  <law@redhat.com>
4955
4956         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4957         before removing the edge.
4958
4959         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4960         it may have been freed by redirect_branch_edge or
4961         redirect_edge_succ_nodup.
4962
4963 2011-03-23  Richard Guenther  <rguenther@suse.de>
4964
4965         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4966         (check_va_list_escapes): Likewise.
4967         (check_all_va_list_escapes): Likewise.
4968
4969 2011-03-23  Richard Guenther  <rguenther@suse.de>
4970
4971         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4972         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4973         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4974         (alias.o): Likewise.
4975         (ipa-type-escape.o): Remove.
4976         (ipa-struct-reorg.o): Likewise.
4977         (GTFILES): Remove ipa-struct-reorg.c.
4978         * alias.c: Do not include ipa-type-escape.h.
4979         * tree-ssa-alias.c: Likewise.
4980         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4981         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4982         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4983         and ipa-type-escape passes.
4984         * tree-pass.h (pass_ipa_type_escape): Remove.
4985         (pass_ipa_struct_reorg): Likewise.
4986         * ipa-struct-reorg.h: Remove.
4987         * ipa-struct-reorg.c: Likewise.
4988         * ipa-type-escape.h: Likewise.
4989         * ipa-type-escape.c: Likewise.
4990         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4991         (--param struct-reorg-cold-struct-ratio): Likewise.
4992         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4993         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4994         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4995
4996 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4997
4998         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4999         cpu attribute value.
5000         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5001         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5002         * config/s390/s390.c (processor_flags_table): New constant array.
5003         (s390_handle_arch_option): Remove.
5004         (s390_handle_option): Remove s390_handle_arch_option invocations
5005         and OPT_mwarn_framesize_ handling.
5006         (s390_option_override): Remove s390_handle_arch_option invocation.
5007         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5008         warnings.
5009         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5010         * config/s390/s390.opt (s390_tune, s390_arch)
5011         (march=): Replace s390_arch_option enum and values with
5012         processor_type.  Set variable name to s390_arch.  Set
5013         initialization value.
5014         (mtune=): Replace s390_arch_option with processor_type.  Set
5015         variable name to s390_tune.  Set initialization value.
5016
5017 2011-03-23  Julian Brown  <julian@codesourcery.com>
5018
5019         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5020         accesses which are not naturally aligned.
5021
5022 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5023
5024         PR target/47553
5025         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5026
5027 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5028
5029         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5030         parameter from "int" to "enum insn_code".
5031         (expand_operand_type): New enum.
5032         (expand_operand): New structure.
5033         (create_expand_operand): New function.
5034         (create_fixed_operand, create_output_operand): Likewise
5035         (create_input_operand, create_convert_operand_to): Likewise.
5036         (create_convert_operand_from, create_address_operand): Likewise.
5037         (create_integer_operand): Likewise.
5038         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5039         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5040         (expand_insn, expand_jump_insn): Likewise.
5041         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5042         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5043         (expand_movstr, expand_builtin___clear_cache): Likewise.
5044         (expand_builtin_lock_release): Likewise.
5045         * explow.c (allocate_dynamic_stack_space): Likewise.
5046         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5047         and use the default handling in that case.
5048         * expmed.c (check_predicate_volatile_ok): Delete.
5049         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5050         (emit_cstore): Likewise.
5051         * expr.c (emit_block_move_via_movmem): Likewise.
5052         (set_storage_via_setmem, expand_assignment): Likewise.
5053         (emit_storent_insn, try_casesi): Likewise.
5054         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5055         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5056         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5057         (expand_twoval_unop, expand_twoval_binop): Likewise.
5058         (expand_unop_direct, emit_indirect_jump): Likewise.
5059         (emit_conditional_move, vector_compare_rtx): Likewise.
5060         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5061         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5062         (expand_sync_lock_test_and_set): Likewise.
5063         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5064         (emit_unop_insn): Likewise.
5065         (expand_copysign_absneg): Change icode to an insn_code.
5066         (create_convert_operand_from_type): New function.
5067         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5068         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5069         (expand_insn, expand_jump_insn): Likewise.
5070         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5071         than const_int_operand for operand 2.
5072
5073 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5074
5075         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5076         if possible.
5077
5078 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5079
5080         * emit-rtl.c (emit_pattern_before_noloc): New function.
5081         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5082         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5083         (emit_pattern_after_noloc): New function.
5084         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5085         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5086
5087 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5088
5089         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5090         (__ffsDI2): Likewise.
5091
5092 2011-03-22  Richard Henderson  <rth@redhat.com>
5093
5094         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5095         of !TARGET_ABI_OPEN_VMS.
5096         (alpha_trampoline_init, alpha_start_function): Likewise.
5097         (alpha_expand_epilogue, alpha_file_start): Likewise.
5098         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5099         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5100         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5101         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5102         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5103
5104 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5105
5106         * config/s390/s390-opts.h: New.
5107         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5108         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5109         s390_stack_guard): Remove.
5110         (s390_handle_arch_option): Return void.  Take enum
5111         s390_arch_option value instead of string and searching array.
5112         (s390_handle_option): Don't assert that global structures are in
5113         use.  Access variables via opts pointer.  Use error_at.  Don't use
5114         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5115         s390_handle_arch_option.
5116         (s390_option_override): Update call to s390_handle_arch_option.
5117         (s390_emit_prologue): Use %d format for s390_stack_size in
5118         diagnostic.  Use %wd for HOST_WIDE_INT.
5119         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5120         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5121         * config/s390/s390.opt (config/s390/s390-opts.h): New
5122         HeaderInclude entry.
5123         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5124         s390_arch_flags, s390_warn_framesize): New Variable entries.
5125         (s390_arch_option): New Enum and EnumValue entries.
5126         (march=): Use Enum instead of Var.
5127         (mstack-guard=, mstack-size=): Use UInteger and Var.
5128         (mtune=): Use Enum.
5129
5130 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5131
5132         * config/score/score.c (score_handle_option): Don't assert that
5133         global structures are in use.  Access target_flags via opts
5134         pointer.  Use value of -march= option to determine target_flags
5135         settings.
5136         * config/score/score.opt (march=): Use Enum.
5137         (score_arch): New Enum and EnumValue entries.
5138
5139 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5140
5141         * config/mep/mep.c (option_mtiny_specified): Remove.
5142         (mep_option_override): Move register handling for -mivc2 from
5143         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5144         instead of option_mtiny_specified.
5145         (mep_handle_option): Access target_flags via opts pointer.  Don't
5146         assert that global structures are in use.  Defer part of -mivc2
5147         handling and move it to mep_option_override.
5148         * config/mep/mep.opt (IVC2): New Mask entry.
5149         (mivc2): Use Var and Defer instead of Mask.
5150
5151 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5152
5153         * config/v850/v850-opts.h: New.
5154         * config/v850/v850.c (small_memory): Replace with
5155         small_memory_physical_max array.  Make that array static const.
5156         (v850_handle_memory_option): Take integer value of argument.  Take
5157         gcc_options pointer, option text and location.  Return void.
5158         Update for changes to small memory structures.
5159         (v850_handle_option): Access target_flags via opts pointer.  Don't
5160         assert that global structures are in use.  Update calls to
5161         v850_handle_memory_option.
5162         (v850_encode_data_area): Update references to small memory settings.
5163         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5164         (enum small_memory_type): Move to v850-opts.h.
5165         * config/v850/v850.opt (config/v850/v850-opts.h): New
5166         HeaderInclude entry.
5167         (small_memory_max): New Variable entry.
5168         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5169         (mtda, mzda): Likewise.
5170
5171 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5172
5173         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5174         pointer.  Don't assert that global structures are in use.
5175
5176 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5177
5178         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5179         via opts pointer.  Don't assert that global structures are in use.
5180
5181 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5182
5183         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5184         (munix=93): Use Var.
5185         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5186         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5187         * config/pa/pa-opts.h: New.
5188         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5189         (pa_handle_option): Don't assert that global structures are in
5190         use.  Access target_flags via opts pointer.  Don't handle
5191         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5192         OPT_munix_98 here.
5193         (pa_option_override): Handle deferred OPT_mfixed_range_.
5194
5195 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5196
5197         * config/mn10300/mn10300-opts.h: New.
5198         * config/mn10300/mn10300.c (mn10300_processor,
5199         mn10300_tune_string): Remove.
5200         (mn10300_handle_option): Don't assert that global structures are
5201         in use.  Access mn10300_processor via opts pointer.  Don't handle
5202         OPT_mtune_ here.
5203         * config/mn10300/mn10300.h (enum processor_type): Move to
5204         mn10300-opts.h.
5205         (mn10300_processor): Remove.
5206         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5207         HeaderInclude entry.
5208         (mn10300_processor): New Variable entry.
5209         (mtune=): Use Var.
5210
5211 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5212
5213         * config/microblaze/microblaze.c: Don't include opts.h.
5214         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5215         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5216         (mno-clearbss): Use Var and Warn.
5217
5218 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5219
5220         * config/m32r/m32r-opts.h: New.
5221         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5222         (m32r_handle_option): Don't assert that global structures are in
5223         use.  Access target_flags and m32r_cache_flush_func via opts
5224         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5225         OPT_mno_flush_trap here.
5226         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5227         include of m32r-opts.h.
5228         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5229         HeaderInclude entry.
5230         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5231         (mmodel=): Use Enum and Var.
5232         (m32r_model): New Enum and EnumValue entries.
5233         (mno-flush-trap): Use Var.
5234         (msdata=): Use Enum and Var.
5235         (m32r_sdata): New Enum and EnumValue entries.
5236
5237 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * config/m32c/m32c.c: Don't include opts.h.
5240         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5241         m32c_handle_option): Remove.
5242         (m32c_option_override): Check global_options_set.x_target_memregs
5243         instead of target_memregs_set.
5244         * config/m32c/m32c.h (target_memregs): Remove.
5245         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5246         variable.
5247
5248 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5249
5250         * config/iq2000/iq2000-opts.h: New.
5251         * config/iq2000/iq2000.c: Don't include opts.h.
5252         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5253         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5254         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5255         HeaderInclude entry.
5256         (iq2000_tune): New Variable entry.
5257         (march=): Add comment.  Use Enum.
5258         (iq2000_arch): New Enum and EnumValue entries.
5259         (mcpu=): Use Enum and Var.
5260         (iq2000_tune): New Enum and EnumValue entries.
5261
5262 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5263
5264         * config/ia64/ia64-opts.h: New.
5265         * config/ia64/ia64.c (ia64_tune): Remove.
5266         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5267         here.  Use error_at.
5268         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5269         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5270         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5271         HeaderInclude entry.
5272         (ia64_tune): New Variable entry.
5273         (mfixed-range=): Use Defer and Var.
5274         (mtune=): Use Enum and Var.
5275         (ia64_tune): New Enum and EnumValue entries.
5276
5277 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5278
5279         * config/frv/frv-opts.h: New.
5280         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5281         frv-opts.h.
5282         (frv_cpu_type): Remove.
5283         * config/frv/frv.c: Don't include opts.h.
5284         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5285         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5286         (frv_cpu_type): New Variable entry.
5287         (frv_cpu): New Enum and EnumValue entries.
5288
5289 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5290
5291         * config/cris/cris.c (cris_handle_option): Access target_flags via
5292         opts pointer.  Don't assert that global structures are in use.
5293         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5294         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5295
5296 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5297
5298         * config/bfin/bfin-opts.h: New.
5299         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5300         bfin_si_revision, bfin_workarounds): Remove.
5301         (bfin_cpus): Make static const.
5302         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5303         not bfin_lib_id_given.
5304         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5305         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5306         pointer. Use error_at.  Don't assert that global structures are in use.
5307         * config/bfin/bfin.h: Include bfin-opts.h.
5308         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5309         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5310         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5311         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5312         entries.
5313
5314 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5315
5316         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5317         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5318         or -msoft-float here.
5319         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5320         -msoft-float and -mhard-float.
5321         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5322         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5323         msoft-float.
5324         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5325         -msoft-float.
5326         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5327         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5328         not mhard-float.
5329         (LIBGCC_SPEC): Don't handle -msoft-float.
5330         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5331         -mhard-float.
5332         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5333         msoft-float.
5334         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5335         -mfloat-abi=*, not -msoft-float and -mhard-float.
5336         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5337         -msoft-float.
5338         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5339         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5340         mhard-float and msoft-float.
5341         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5342         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5343         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5344         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5345         mhard-float.
5346         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5347         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5348         msoft-float.
5349         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5350         not mhard-float.
5351         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5352         not msoft-float.
5353
5354 2011-03-22  Richard Henderson  <rth@redhat.com>
5355
5356         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5357         TARGET_ABI_WINDOWS_NT.
5358         (alpha_output_function_end_prologue): Likewise.
5359         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5360         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5361         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5362         (trap, *movsi_nt_vms): Likewise.
5363         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5364         (*tablejump_osf_nt_internal): Remove.
5365         * config/alpha/predicates.md (input_operand): Only test Pmode.
5366
5367 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5368
5369         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5370         via opts pointer.  Use error_at.  Don't assert that global
5371         structures are in use.
5372
5373 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5376         (ix86_handle_option): Access ix86_isa_flags and
5377         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5378         global structures are in use.
5379         (ix86_function_specific_save, ix86_function_specific_restore):
5380         Update ix86_isa_flags_explicit field name.
5381         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5382         (ix86_isa_flags_explicit): Rename TargetSave entry to
5383         x_ix86_isa_flags_explicit.
5384
5385 2011-03-22  Richard Henderson  <rth@redhat.com>
5386
5387         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5388         (alpha_option_override, direct_return): Likewise.
5389         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5390         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5391         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5392         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5393         (alpha_expand_epilogue, alpha_end_function): Likewise.
5394         (alpha_init_libfuncs): Likewise.
5395         (struct machine_function): Remove unicosmk members.
5396         (print_operand) ['t']: Remove.
5397         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5398         unicosmk_output_module_name, unicosmk_output_common,
5399         current_section_align, unicosmk_output_text_section_asm_op,
5400         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5401         unicosmk_section_type_flags, unicosmk_unique_section,
5402         unicosmk_asm_named_section, unicosmk_insert_attributes,
5403         unicosmk_output_align, unicosmk_defer_case_vector,
5404         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5405         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5406         unicosmk_output_ssib, unicosmk_add_call_info_word,
5407         unicosmk_extern_head, unicosmk_output_default_externs,
5408         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5409         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5410         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5411         * config/alpha/alpha-protos.h: Update.
5412         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5413         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5414         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5415         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5416         (*mulsi_se, mulvsi3): Likewise.
5417         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5418         (*divmodsi_internal, call, call_value, realign): Likewise.
5419         (moddi3, umoddi3): Likewise; remove duplicate expander.
5420         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5421         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5422         (*movdi_nofix): Remove r/U alternative.
5423         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5424         * config/alpha/constraints.md ("U"): Remove.
5425         * config/alpha/predicates.md (call_operand"): Don't test
5426         TARGET_ABI_UNICOSMK.
5427
5428 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5429
5430         * target.def (handle_option): Take gcc_options and
5431         cl_decoded_option pointers and location_t.
5432         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5433         * doc/tm.texi: Regenerate.
5434         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5435         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5436         * lto-opts.c (lto_reissue_options): Generate option structure for
5437         targetm.handle_option call.
5438         * opts.c (target_handle_option): Update call to
5439         targetm.handle_option.  Remove assertions about values now passed
5440         down to hook.
5441         * targhooks.c (default_target_handle_option): New.
5442         * targhooks.h (default_target_handle_option): Declare.
5443         * config/alpha/alpha.c: Include opts.h.
5444         (alpha_handle_option): Update to new hook interface.
5445         * config/arm/arm.c: Include opts.h.
5446         (arm_handle_option): Update to new hook interface.
5447         * config/arm/t-arm (arm.o): Update dependencies.
5448         * config/bfin/bfin.c: Include opts.h.
5449         (bfin_handle_option): Update to new hook interface.
5450         * config/cris/cris.c: Include opts.h.
5451         (cris_handle_option): Update to new hook interface.
5452         * config/frv/frv.c: Include opts.h.
5453         (frv_handle_option): Update to new hook interface.
5454         * config/i386/i386.c: Include opts.h.
5455         (ix86_handle_option): Update to new hook interface.
5456         (ix86_valid_target_attribute_inner_p): Generate option structure
5457         for call to ix86_handle_option.
5458         * config/i386/t-i386 (i386.o): Update dependencies.
5459         * config/ia64/ia64.c: Include opts.h.
5460         (ia64_handle_option): Update to new hook interface.
5461         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5462         * config/iq2000/iq2000.c: Include opts.h.
5463         (iq2000_handle_option): Update to new hook interface.
5464         * config/m32c/m32c.c: Include opts.h.
5465         (m32c_handle_option): Update to new hook interface.
5466         * config/m32r/m32r.c: Include opts.h.
5467         (m32r_handle_option): Update to new hook interface.
5468         * config/m68k/m68k.c: Include opts.h.
5469         (m68k_handle_option): Update to new hook interface.
5470         * config/mep/mep.c: Include opts.h.
5471         (mep_handle_option): Update to new hook interface.
5472         * config/microblaze/microblaze.c: Include opts.h.
5473         (microblaze_handle_option): Update to new hook interface.
5474         * config/mips/mips.c: Include opts.h.
5475         (mips_handle_option): Update to new hook interface.
5476         * config/mn10300/mn10300.c: Include opts.h.
5477         (mn10300_handle_option): Update to new hook interface.
5478         * config/pa/pa.c: Include opts.h.
5479         (pa_handle_option): Update to new hook interface.
5480         * config/pdp11/pdp11.c: Include opts.h.
5481         (pdp11_handle_option): Update to new hook interface.
5482         * config/rs6000/rs6000.c: Include opts.h.
5483         (rs6000_handle_option): Update to new hook interface.
5484         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5485         * config/rx/rx.c: Include opts.h.
5486         (rx_handle_option): Update to new hook interface.
5487         * config/s390/s390.c: Include opts.h.
5488         (s390_handle_option): Update to new hook interface.
5489         * config/score/score.c: Include opts.h.
5490         (score_handle_option): Update to new hook interface.
5491         * config/sh/sh.c: Include opts.h.
5492         (sh_handle_option): Update to new hook interface.
5493         * config/sparc/sparc.c: Include opts.h.
5494         (sparc_handle_option): Update to new hook interface.
5495         * config/v850/v850.c: Include opts.h.
5496         (v850_handle_option): Update to new hook interface.
5497
5498 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5499
5500         * gcc.c (driver_unknown_option_callback): Only permit and save
5501         unknown -Wno- options.
5502         (driver_wrong_lang_callback): Save options directly instead of via
5503         driver_unknown_option_callback.
5504
5505 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5506
5507         * combine.c (simplify_set): Try harder to find the best CC mode when
5508         simplifying a nested COMPARE on the RHS.
5509
5510 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5511
5512         * config/alpha/gnu.h: Remove.
5513         * config/arc: Remove directory.
5514         * config/arm/netbsd.h: Remove.
5515         * config/arm/t-pe: Remove.
5516         * config/crx: Remove directory.
5517         * config/i386/netbsd.h: Remove.
5518         * config/m68hc11: Remove directory.
5519         * config/m68k/uclinux-oldabi.h: Remove.
5520         * config/mcore/mcore-pe.h: Remove.
5521         * config/mcore/t-mcore-pe: Remove.
5522         * config/netbsd-aout.h: Remove.
5523         * config/rs6000/gnu.h: Remove.
5524         * config/sh/sh-symbian.h: Remove.
5525         * config/sh/symbian-base.c: Remove.
5526         * config/sh/symbian-c.c: Remove.
5527         * config/sh/symbian-cxx.c: Remove.
5528         * config/sh/symbian-post.h: Remove.
5529         * config/sh/symbian-pre.h: Remove.
5530         * config/sh/t-symbian: Remove.
5531         * config/svr3.h: Remove.
5532         * config/vax/netbsd.h: Remove.
5533         * config.build: Don't handle i[34567]86-*-pe.
5534         * config.gcc: Remove handling of deprecations for most deprecated
5535         targets.
5536         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5537         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5538         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5539         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5540         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5541         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5542         Remove cases.
5543         * config.host: Don't handle i[34567]86-*-pe.
5544         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5545         (ASM_SPEC32): Don't handle -mcall-gnu.
5546         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5547         -mcall-gnu.
5548         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5549         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5550         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5551         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5552         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5553         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5554         conditional on SYMBIAN.
5555         * configure.ac: Don't handle powerpc*-*-gnu*.
5556         * configure: Regenerate.
5557         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5558         * doc/install-old.texi (m6811, m6812): Don't mention.
5559         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5560         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5561         (m68k-uclinuxoldabi): Don't mention.
5562         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5563         Remove.
5564         (-mcall-gnu): Remove.
5565         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5566         families): Remove constraint documentation.
5567
5568 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5569
5570         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5571         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5572         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5573
5574 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5575
5576         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5577         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5578         * config/avr/avr.c (init_cumulative_args)
5579         (avr_function_arg_advance): Use it.
5580         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5581         sibcall epilogues.
5582         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5583         (avr_function_ok_for_sibcall): ...this new function.
5584         (avr_lookup_function_attribute1): New static Function.
5585         (avr_naked_function_p, interrupt_function_p)
5586         (signal_function_p, avr_OS_task_function_p)
5587         (avr_OS_main_function_p): Use it.
5588         * config/avr/avr.md ("sibcall", "sibcall_value")
5589         ("sibcall_epilogue"): New expander.
5590         ("*call_insn", "*call_value_insn"): New insn.
5591         ("call_insn", "call_value_insn"): Remove
5592         ("call", "call_value", "epilogue"): Change expander to handle
5593         sibling calls.
5594
5595 2011-03-21  Nick Clifton  <nickc@redhat.com>
5596
5597         * doc/invoke.texi (Overall Options): Move closing brace to end of
5598         options list.
5599         (Optimization Options): Add missing @gol.
5600         (Directory Options): Likewise.
5601         (i386 and x86-64 Options): Likewise.
5602         (RS6000 and PowerPC Options): Likewise.
5603         (i386 and x86-64 Windows Options): Likewise.
5604         (V850 Options): Add text missing from descriptions.
5605
5606 2011-03-22  Richard Henderson  <rth@redhat.com>
5607
5608         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5609         (avr_incoming_return_addr_rtx): New.
5610         (emit_push_byte): New.
5611         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5612         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5613         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5614         (emit_pop_byte): New.
5615         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5616         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5617         (INCOMING_RETURN_ADDR_RTX): New.
5618         (INCOMING_FRAME_SP_OFFSET): New.
5619         (ARG_POINTER_CFA_OFFSET): New.
5620         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5621         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5622         (pophi): Remove.
5623
5624         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5625
5626 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5627
5628         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5629         (FUNCTION_ARG_ADVANCE): Likewise.
5630         * tm.texi.in: Change references to them to hook references.
5631         * tm.texi: Regenerate.
5632         * targhooks.c (default_function_arg): Eliminate check for target
5633         macro.
5634         (default_function_incoming_arg): Likewise.
5635         (default_function_arg_advance): Likewise.
5636         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5637         (function_arg_advance): Likewise.
5638         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5639
5640 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5641
5642         * tree.c (build_call_1): New function.
5643         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5644
5645 2011-03-22  Richard Guenther  <rguenther@suse.de>
5646
5647         PR tree-optimization/48228
5648         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5649         for single-arg PHIs.
5650
5651 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5652
5653         PR rtl-optimization/48143
5654         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5655         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5656         sse2_cvtps2pd): Likewise.
5657
5658 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5659
5660         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5661
5662 2011-03-22  Richard Guenther  <rguenther@suse.de>
5663
5664         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5665         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5666         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5667         and REALIGN_LOAD_EXPR.
5668         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5669         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5670         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5671         DOT_PROD_EXPR case ...
5672         (expand_expr_real_2): ... here.
5673         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5674         and REALIGN_LOAD_EXPR.
5675         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5676         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5677         (vect_create_epilog_for_reduction): Likewise.
5678         (vectorizable_reduction): Likewise.
5679         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5680         * tree-vect-stmts.c (vectorizable_load): Likewise.
5681
5682 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5683
5684         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5685
5686 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5687
5688         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5689         handling for PLTOFF/GOTOFF.
5690
5691 2011-03-22  Nick Clifton  <nickc@redhat.com>
5692
5693         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5694         trailing backslash from the end of the macro definition.
5695
5696 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5697
5698         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5699         and PLT unspecs.
5700
5701 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5702
5703         * expr.h (prepare_operand): Move to...
5704         * optabs.h (prepare_operand): ...here and change the insn code
5705         parameter from "int" to "enum insn_code".
5706         (insn_operand_matches): Declare.
5707         * expr.c (init_expr_target): Use insn_operand_matches.
5708         (compress_float_constant): Likewise.
5709         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5710         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5711         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5712         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5713         Likewise.
5714         (gen_cond_trap): Likewise.
5715         (prepare_operand): Likewise.  Change icode to an insn_code.
5716         (insn_operand_matches): New function.
5717         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5718         * reload1.c (gen_reload): Likewise.
5719         * targhooks.c (default_secondary_reload): Likewise.
5720
5721 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5722
5723         * config/alpha/alpha.md (unspec): New define_c_enum.
5724         (unspecv): Ditto.
5725
5726 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5727
5728         PR debug/48214
5729         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5730         between a call and its CALL_ARG_LOCATION note.
5731
5732 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5733
5734         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5735
5736 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5737
5738         PR c/42544
5739         PR c/48197
5740         * c-common.c (shorten_compare): If primopN is first sign-extended
5741         to opN and then zero-extended to result type, set primopN to opN.
5742
5743 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5744
5745         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5746         for barrier handlers.
5747
5748 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5749
5750         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5751         UNSPEC constants to be in the unspec enumeration, and redefine
5752         all UNSPECV constants to be in the unspecv enumeration, so that
5753         dumps print which unspec/unspec_volatile this is.
5754         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5755         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5756         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5757         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5758         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5759
5760         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5761         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5762         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5763         * config/rs6000/sync.md (isync, lwsync): Ditto.
5764
5765 2011-03-21  Richard Guenther  <rguenther@suse.de>
5766
5767         * params.def (lto-min-partition): Fix typo.
5768
5769 2011-03-21  Richard Guenther  <rguenther@suse.de>
5770
5771         PR c/47939
5772         * c-decl.c (grokdeclarator): Drop to the main variant only
5773         for array types.  Drop flag_gen_aux_info check.
5774
5775 2011-03-21  Richard Guenther  <rguenther@suse.de>
5776
5777         PR translation/47911
5778         * params.def (lto-partitions): Fix typo.
5779         (lto-min-partition): Fix wording.
5780
5781 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5782
5783         * config/rs6000/t-freebsd: Remove duplication from file.
5784
5785 2011-03-21  Richard Guenther  <rguenther@suse.de>
5786
5787         PR middle-end/47661
5788         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5789
5790 2011-03-21  Richard Guenther  <rguenther@suse.de>
5791
5792         PR lto/48210
5793         * params.def (lto-partitions): Require at least 1 partition.
5794
5795 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5796
5797         * gthr-solaris.h: Remove.
5798         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5799         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5800         (LIB_SPEC): Likewise.
5801         * config/sol2.opt (threads): Remove.
5802         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5803         (sparc*-*-solaris2*): Likewise.
5804         * configure.ac (enable_threads): Enable solaris support.
5805         * configure: Regenerate.
5806         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5807         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5808         solaris.
5809
5810 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5811
5812         * config.gcc: Obsolete *-*-solaris2.8*.
5813         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5814
5815 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5816
5817         PR bootstrap/48135
5818         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5819         reference.  Solaris 8 perl works.
5820
5821 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5822
5823         PR bootstrap/48135
5824         * doc/install.texi (Prerequisites): Move jar etc. up.
5825         Explain support library version requirements.
5826
5827 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5828
5829         PR bootstrap/48135
5830         * doc/install.texi (Prerequisites): Move Perl to build
5831         requirements.  Always necessary on Solaris 2 with Sun ld.
5832
5833 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5834
5835         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5836         binutils 2.21.
5837         (Specific, i?86-*-solaris2.[89]): Likewise.
5838         (Specific, i?86-*-solaris2.10): Likewise.
5839         (Specific, mips-sgi-irix6): Likewise.
5840         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5841         Update for binutils 2.21.
5842
5843 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5844
5845         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5846         Allow -fuse-linker-plugin for non-default plugin linker.
5847         * configure: Regenerate.
5848
5849 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5850
5851         PR bootstrap/48167
5852         * gengtype.c (files_rules): Added rule for cp/parser.h.
5853
5854 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5855
5856         PR target/48213
5857         * config/s390/s390.c (s390_delegitimize_address): Don't call
5858         lowpart_subreg if orig_x has BLKmode.
5859
5860 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5861
5862         PR target/12171
5863         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5864         * tree.h (attribute_spec): Add new member affects_type_identity.
5865         * attribs.c (empty_attribute_table): Adjust attribute_spec
5866         initializers.
5867         * config/alpha/alpha.c: Likewise.
5868         * config/arc/arc.c: Likewise.
5869         * config/arm/arm.c: Likewise.
5870         * config/avr/avr.c: Likewise.
5871         * config/bfin/bfin.c: Likewise.
5872         * config/crx/crx.c: Likewise.
5873         * config/darwin.h: Likewise.
5874         * config/h8300/h8300.c: Likewise.
5875         * config/i386/cygming.h: Likewise.
5876         * config/i386/i386.c: Likewise.
5877         * config/ia64/ia64.c: Likewise.
5878         * config/m32c/m32c.c: Likewise.
5879         * config/m32r/m32r.c: Likewise.
5880         * config/m68hc11/m68hc11.c: Likewise.
5881         * config/m68k/m68k.c: Likewise.
5882         * config/mcore/mcore.c: Likewise.
5883         * config/mep/mep.c: Likewise.
5884         * config/microblaze/microblaze.c: Likewise.
5885         * config/mips/mips.c: Likewise.
5886         * config/rs6000/rs6000.c: Likewise.
5887         * config/rx/rx.c: Likewise.
5888         * config/sh/sh.c: Likewise.
5889         * config/sol2.h: Likewise.
5890         * config/sparc/sparc.c: Likewise.
5891         * config/spu/spu.c: Likewise.
5892         * config/stormy16/stormy16.c: Likewise.
5893         * config/v850/v850.c: Likewise.
5894
5895 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5896
5897         * simplify-rtx.c (simplify_binary_operation_1): Handle
5898         (xor (and A B) C) case when B and C are both constants.
5899
5900 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5901
5902         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5903
5904 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5905
5906         PR bootstrap/48168
5907         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5908
5909 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5910
5911         PR rtl-optimization/48156
5912         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5913         assume df and df_lr are not NULL.
5914
5915 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5916
5917         PR debug/48023
5918         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5919         between a call and its CALL_ARG_LOCATION note.
5920
5921 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5922
5923         PR debug/48178
5924         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5925         between a call and its corresponding CALL_ARG_LOCATION note.
5926
5927 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5928
5929         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5930         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5931         * haifa-sched.c (setup_ref_regs): Ditto.
5932         * caller-save.c (add_used_regs_1): Ditto.
5933         * dse.c (look_for_hardregs): Ditto.
5934         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5935         * sched-rgn.c (check_live_1): Ditto.
5936
5937 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5938
5939         * c-decl.c (diagnose_mismatched_decls): Give an error for
5940         redefining a typedef with variably modified type.
5941
5942 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5943
5944         * c-decl.c (grokfield): Don't allow typedefs for structures or
5945         unions with no tag by default.
5946         * doc/extend.texi (Unnamed Fields): Update.
5947
5948 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5949
5950         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5951         Rewrite using indirect functions.
5952         (lwp_slwpcb): Ditto.
5953         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5954         (avx_vinsertf128<mode>): Ditto.
5955
5956 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5957
5958         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5959         unspecs.
5960
5961 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5962
5963         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5964         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5965
5966 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5967
5968         PR rtl-optimization/48170
5969         * gcse.c (hoist_code): Remove bogus asserts.
5970
5971 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5972
5973         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5974         computation for prologue/epilogue.
5975
5976 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5977
5978         * Makefile.in (check-consistency): Remove.
5979
5980 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5981
5982         PR debug/48176
5983         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5984         arange_table_in_use is 0, but either text_section_used or
5985         cold_text_section_used is true.  Don't call it if
5986         !info_section_emitted.
5987
5988 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5989
5990         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5991         FUNCTION_VALUE_REGNO_P): Remove.
5992         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5993         Remove.
5994         * config/avr/avr.c (avr_ret_register): Make static inline.
5995         (avr_function_value_regno_p): New function.
5996         (avr_libcall_value): Make static. Add 'func' argument.
5997         (avr_function_value): Make static. Rename 'func' argument to
5998         'fn_decl_or_type', forward it to avr_libcall_value. Call
5999         avr_ret_register function instead of RET_REGISTER macro.
6000         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6001
6002 2011-03-18  Jason Merrill  <jason@redhat.com>
6003
6004         PR c++/23372
6005         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6006
6007 2011-03-18  Richard Guenther  <rguenther@suse.de>
6008
6009         * doc/install.texi (--enable-gold): Remove.
6010         (--with-plugin-ld): Document.
6011         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6012
6013 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6014
6015         PR middle-end/47790
6016         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6017         again after expansion changes.
6018
6019 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6020
6021         * combine.c (try_combine): Do simplification only call of
6022         subst() on i2 even when i1 is present. Update comments.
6023
6024 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6025
6026         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6027         and UNSPEC_PCREL_SYMOFF.
6028
6029 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6030
6031         * config/s390/s390.md: Use define_c_enum for the unspec constant
6032         definitions.
6033
6034 2011-03-18  Richard Henderson  <rth@redhat.com>
6035             Jakub Jelinek  <jakub@redhat.com>
6036
6037         PR bootstrap/48161
6038         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6039         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6040
6041 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6042
6043         PR middle-end/47725
6044         * combine.c (cant_combine_insn_p): Don't check zero/sign
6045         extended hard registers.
6046
6047 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6048
6049         PR middle-end/47725
6050         * combine.c (cant_combine_insn_p): Check zero/sign extended
6051         hard registers.
6052
6053 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6054
6055         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6056         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6057         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6058         Change return type to bool.
6059         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6060
6061 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6062
6063         PR debug/48163
6064         * var-tracking.c (prepare_call_arguments): If CALL target
6065         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6066         pc instead of looking it up using cselib_lookup and use
6067         Pmode for it if x has VOIDmode.
6068         * dwarf2out.c (gen_subprogram_die): If also both first and
6069         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6070
6071         PR debug/48163
6072         * function.c (assign_parms): For data.passed_pointer parms
6073         use MEM of data.entry_parm instead of data.entry_parm itself
6074         as DECL_INCOMING_RTL.
6075         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6076         also when passed and declared mode is the same, DECL_RTL
6077         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6078         a MEM too.
6079
6080 2011-03-16  Jeff Law  <law@redhat.com>
6081
6082         PR rtl-optimization/37273
6083         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6084         handle them like argument loads from stack slots.  Do not double
6085         count memory for memory constants and argument loads from stack slots.
6086
6087 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6088
6089         PR debug/48160
6090         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6091
6092 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6093
6094         PR target/48171
6095         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6096
6097 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6098
6099         PR bootstrap/48153
6100         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6101         if dwarf_strict.
6102         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6103         Clear call_arg_locations and call_arg_loc_last always.
6104
6105         PR middle-end/48152
6106         * var-tracking.c (prepare_call_arguments): If argument needs to be
6107         passed by reference, adjust argtype and mode.
6108
6109 2011-03-17  Richard Guenther  <rguenther@suse.de>
6110
6111         PR middle-end/48134
6112         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6113         a value make sure to fold the statement.
6114
6115 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6116
6117         PR target/43872
6118         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6119         return condition with !cfun->calls_alloca.
6120
6121 2011-03-17  Richard Guenther  <rguenther@suse.de>
6122
6123         PR bootstrap/48148
6124         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6125         origin for decls in other ltrans units.
6126         (input_varpool_node): Likewise.
6127
6128 2011-03-17  Richard Guenther  <rguenther@suse.de>
6129
6130         PR middle-end/48165
6131         * tree-object-size.c (compute_object_offset): Properly return
6132         the offset operand of MEM_REFs as sizetype.
6133
6134 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6135
6136         PR rtl-optimization/48141
6137         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6138         * dse.c: Include params.h.
6139         (active_local_stores_len): New variable.
6140         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6141         to NULL.
6142         (record_store, check_mem_read_rtx): Decrease it when removing
6143         from the chain.
6144         (scan_insn): Likewise.  Increase it when adding to chain, if it
6145         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6146         set active_local_stores to NULL before the addition.
6147         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6148
6149         PR rtl-optimization/48141
6150         * dse.c (record_store): If no positions are needed in an insn
6151         that cannot be deleted, at least unchain it from active_local_stores.
6152
6153 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6154
6155         PR debug/47510
6156         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6157         (lookup_type_die_strip_naming_typedef): ... here.
6158         (get_context_die): Use it.
6159         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6160         the anonymous struct named by the naming typedef.
6161
6162 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6163
6164         PR target/48154
6165         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6166         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6167
6168 2011-03-16  Jeff Law  <law@redhat.com>
6169
6170         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6171         check for operands of conditional.  Allow type to be a pointer.
6172
6173 2011-03-16  Richard Guenther  <rguenther@suse.de>
6174
6175         PR tree-optimization/48149
6176         * fold-const.c (fold_binary_loc): Fold
6177         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6178
6179 2011-03-16  Richard Guenther  <rguenther@suse.de>
6180
6181         PR tree-optimization/26134
6182         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6183         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6184         (non_rewritable_mem_ref_base): Handle complex type component
6185         accesses, constrain offsets for vector and complex extracts
6186         more properly.
6187
6188 2011-03-16  Richard Guenther  <rguenther@suse.de>
6189
6190         PR tree-optimization/48146
6191         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6192         operands avoiding the need for renaming.
6193
6194 2011-03-16  Richard Guenther  <rguenther@suse.de>
6195
6196         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6197         constant folding.  Move MEM_REF canonicalization first.
6198         Rely on fold_const_aggregate_ref for initializer folding.
6199         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6200
6201 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6202
6203         PR middle-end/48136
6204         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6205         arg0/arg1 or their arguments are always fold converted to matching
6206         types.
6207
6208         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6209         to nargs.
6210
6211 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6212
6213         PR lto/46944
6214         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6215         Handle in-tree gold.
6216         (ld_vers): Extract binutils version for gold.
6217         (gcc_cv_ld_hidden): Handle gold here.
6218         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6219         * configure: Regenerate.
6220         * config.in: Regenerate.
6221         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6222         -fuse-linker-plugin otherwise.
6223         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6224         (LINK_COMMAND_SPEC): Use it.
6225         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6226
6227 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6228
6229         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6230         * calls.c: Remove debug.h include.
6231         (emit_call_1): Don't call virtual_call_token debug hook.
6232         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6233         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6234         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6235         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6236         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6237         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6238         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6239         dwarf2out_virtual_call): Remove.
6240         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6241         copy_call_info and virtual_call hooks.
6242         (dwarf2out_init): Don't initialize vcall_insn_table,
6243         debug_dcall_section and debug_vcall_section.
6244         (prune_unused_types): Don't mark nodes from dcall_table.
6245         (dwarf2out_finish): Don't output dcall or vcall tables.
6246         * final.c (final_scan_insn): Don't call direct_call or
6247         virtual_call debug hooks.
6248         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6249         virtual_call_token, copy_call_info and virtual_call hooks.
6250         (debug_nothing_uid): Remove prototype.
6251         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6252         copy_call_info and virtual_call hooks.
6253         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6254         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6255         * debug.c (do_nothing_debug_hooks): Likewise.
6256         (debug_nothing_uid): Remove.
6257         * doc/invoke.texi (-fenable-icf-debug): Remove.
6258         * common.opt (-fenable-icf-debug): Likewise.
6259
6260         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6261         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6262         call's MEM.  Handle functions returning aggregate through a hidden
6263         first pointer.  For virtual calls add clobbered pc to call arguments
6264         chain.
6265         * dwarf2out.c (gen_subprogram_die): Emit
6266         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6267         can't be emitted.
6268
6269         PR debug/45882
6270         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6271         * rtl.h (ENTRY_VALUE_EXP): Define.
6272         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6273         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6274         * print-rtl.c (print_rtx): Likewise.
6275         * gengtype.c (adjust_field_rtx_def): Likewise.
6276         * var-tracking.c (vt_add_function_parameter): Adjust
6277         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6278         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6279         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6280         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6281         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6282
6283         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6284         Call var_location debug hook even on CALL_INSNs.
6285         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6286         * rtl.def (ENTRY_VALUE): New.
6287         * dwarf2out.c: Include cfglayout.h.
6288         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6289         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6290         (struct call_arg_loc_node): New type.
6291         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6292         tail_call_site_count): New variables.
6293         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6294         DW_TAG_GNU_call_site_parameter.
6295         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6296         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6297         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6298         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6299         and DW_AT_GNU_all_source_call_sites.
6300         (mem_loc_descriptor): Handle ENTRY_VALUE.
6301         (add_src_coords_attributes): Don't add enything if
6302         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6303         (dwarf2out_abstract_function): Save and clear call_arg_location,
6304         call_site_count and tail_call_site_count around dwarf2out_decl call.
6305         (gen_call_site_die): New function.
6306         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6307         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6308         (dwarf2out_function_decl): Clear call_arg_locations,
6309         call_arg_loc_last, set call_site_count and tail_call_site_count
6310         to -1 and free block_map.
6311         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6312         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6313         followed by any real instructions.
6314         (dwarf2out_begin_function): Set call_site_count and
6315         tail_call_site_count to 0.
6316         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6317         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6318         attempt to force a DIE for it and worst case remove the attribute.
6319         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6320         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6321         the decl itself.
6322         * var-tracking.c: Include tm_p.h.
6323         (vt_stack_adjustments): For calls call note_register_arguments.
6324         (argument_reg_set): New variable.
6325         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6326         ensure the VALUE is resolved.
6327         (call_arguments): New variable.
6328         (prepare_call_arguments): New function.
6329         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6330         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6331         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6332         always use the best expression.
6333         (vt_expand_loc): Add ignore_cur_loc argument.
6334         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6335         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6336         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6337         note for all calls.
6338         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6339         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6340         argument.  Don't call cselib_preserve_only_values and
6341         cselib_reset_table.
6342         (note_register_arguments): New function.
6343         (vt_initialize): Compute argument_reg_set.  Call
6344         vt_add_function_parameters before processing basic blocks instead of
6345         afterwards.  For calls call prepare_call_arguments before calling
6346         cselib_process_insn.
6347         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6348         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6349         (var-tracking.o): Depend on $(TM_P_H).
6350         * cfglayout.h (insn_scope): New prototype.
6351         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6352         * cfglayout.c (insn_scope): No longer static.
6353         * insn-notes.def (CALL_ARG_LOCATION): New.
6354         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6355         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6356         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6357         nothing for DECL_EXTERNAL BLOCK_VARS.
6358
6359 2011-03-16  Alan Modra  <amodra@gmail.com>
6360
6361         PR target/45844
6362         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6363         create invalid offset address for vsx splat insn.
6364         * config/rs6000/predicates.md (splat_input_operand): New.
6365         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6366
6367 2011-03-15  Xinliang David Li  <davidxl@google.com>
6368
6369         PR c/47837
6370         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6371         (normalize_preds): New function.
6372         (is_use_properly_guarded): Normalize def predicates.
6373
6374 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6375
6376         PR target/46788
6377         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6378         in the output template.
6379
6380 2011-03-15  Richard Guenther  <rguenther@suse.de>
6381
6382         PR middle-end/47650
6383         * tree-pretty-print.c (dump_function_declaration): Properly
6384         dump unprototyped and varargs function types.
6385
6386 2011-03-15  Richard Guenther  <rguenther@suse.de>
6387
6388         PR tree-optimization/13954
6389         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6390         and friends.
6391
6392 2011-03-15  Richard Guenther  <rguenther@suse.de>
6393
6394         PR tree-optimization/48037
6395         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6396         selects into BIT_FIELD_REFs.
6397         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6398         vector select.
6399
6400 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6401
6402         PR tree-optimization/48129
6403         * builtins.c (fold_builtin_snprintf): Convert to type of
6404         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6405         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6406
6407 2011-03-15  Richard Guenther  <rguenther@suse.de>
6408
6409         PR tree-optimization/41490
6410         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6411         value but with VUSE.
6412         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6413         return statements.
6414         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6415         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6416         * tree-tailcall.c (find_tail_calls): Ignore returns.
6417
6418 2011-03-15  Richard Guenther  <rguenther@suse.de>
6419
6420         PR middle-end/48031
6421         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6422         or variable-indexed array accesses when in gimple form.
6423
6424 2011-03-15  Richard Guenther  <rguenther@suse.de>
6425
6426         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6427
6428 2011-03-15  Alan Modra  <amodra@gmail.com>
6429
6430         PR target/48032
6431         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6432         presume symbol_refs without a symbol_ref_decl are suitably
6433         aligned, nor other trees we may see here.  Handle anchor symbols.
6434         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6435         Check cmodel=medium addresses.  Adjust all calls.
6436         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6437         creating cmodel=medium optimized access to locals.
6438         * config/rs6000/constraints.md (R): Pass QImode to
6439         legitimate_constant_pool_address_p.
6440         * config/rs6000/predicates.md (input_operand): Pass mode to
6441         legitimate_constant_pool_address_p.
6442         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6443         Update prototype.
6444
6445 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6446
6447         PR target/48053
6448         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6449         64-bit constants being loaded into registers other than GPRs such
6450         as loading 0 into a VSX register.
6451
6452 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6453
6454         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6455
6456 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6457
6458         PR middle-end/47917
6459         * builtins.c (fold_builtin_snprintf): New function.
6460         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6461         (fold_builtin_4): Likewise.
6462
6463         PR middle-end/38878
6464         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6465         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6466         and C - X == X also strip nops from +/-/p+ operand.
6467         When optimizing -X == C, fold C to arg0's type.
6468
6469         PR debug/47946
6470         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6471         emit it as add_AT_int instead of add_AT_unsigned.
6472
6473 2011-03-14  Tom Tromey  <tromey@redhat.com>
6474
6475         * unwind-dw2.c: Include sys/sdt.h if it exists.
6476         (_Unwind_DebugHook): Use STAP_PROBE2.
6477         * config.in, configure: Rebuild.
6478         * configure.ac: Check for sys/sdt.h.
6479
6480 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6481
6482         * config/i386/i386.md (ROUND_FLOOR): New constant.
6483         (ROUND_CEIL): Ditto.
6484         (ROUND_TRUNC): Ditto.
6485         (ROUND_MXCSR): Ditto.
6486         (ROUND_NO_EXC): Ditto.
6487         (rint<mode>2): Use new defines instead of numerical constants.
6488         (floor<mode>2): Ditto.
6489         (ceil<mode>2): Ditto.
6490         (btrunc<mode>2): Ditto.
6491         * config/i386/i386-builtin-types.def: Define ROUND function type
6492         aliases.
6493         * config/i386/i386.c (enum ix86_builtins): Add
6494         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6495         (struct builtin_description): Add
6496         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6497         (ix86_expand_sse_round): New static function.
6498         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6499         function types.
6500         (ix86_builtin_vectorized_function): Handle
6501         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6502
6503 2011-03-14  Tom Tromey  <tromey@redhat.com>
6504
6505         * c-parser.c (c_parser_asm_string_literal): Clear
6506         warn_overlength_strings.
6507
6508 2011-03-14  Tom Tromey  <tromey@redhat.com>
6509
6510         * c-parser.c (disable_extension_diagnostics): Save
6511         warn_overlength_strings.
6512         (restore_extension_diagnostics): Restore warn_overlength_strings.
6513
6514 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6515
6516         * BASE-VER: Change to 4.7.0.
6517
6518 2011-03-14  Richard Guenther  <rguenther@suse.de>
6519
6520         PR middle-end/48098
6521         * tree.c (build_vector_from_val): Adjust assert to requirements
6522         and reality.
6523
6524 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6525
6526         PR bootstrap/48102
6527         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6528
6529 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6530
6531         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6532         terms of target_flags_explicit. Adjust copyright year.
6533
6534         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6535         * config/rs6000/t-freebsd: New file. Add override for
6536         LIB2FUNCS_EXTRA.
6537
6538 2011-03-13  Chris Demetriou  <cgd@google.com>
6539
6540         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6541         (-fno-diagnostics-show-option): this, to reflect current default.
6542         (-Werror=): Update text about -fno-diagnostics-show-option.
6543
6544 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6545
6546         PR target/48053
6547         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6548         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6549         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6550         mode is not V2DImode or V2DFmode.
6551         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6552         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6553         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6554         registers to 0.
6555         (movdi_internal64): Likewise.
6556
6557 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6558
6559         PR tree-optimization/47127
6560         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6561         parameter.
6562         (set_cloog_options): Same.
6563         (scop_to_clast): Same.
6564         (print_clast_stmt): Do not call cloog_state_malloc and
6565         cloog_state_free.
6566         (print_generated_program): Same.
6567         (gloog): Same.
6568         * graphite-clast-to-gimple.h (cloog_state): Declared.
6569         (scop_to_clast): Adjust declaration.
6570         * graphite.c (cloog_state): Defined here.
6571         (graphite_initialize): Call cloog_state_malloc.
6572         (graphite_finalize): Call cloog_state_free.
6573
6574 2011-03-11  Jason Merrill  <jason@redhat.com>
6575
6576         * attribs.c (lookup_attribute_spec): Take const_tree.
6577         * tree.h: Adjust.
6578
6579 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6580
6581         * config/sparc/sparc.c (sparc_option_override): Use
6582         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6583
6584 2011-03-11  Richard Guenther  <rguenther@suse.de>
6585
6586         PR tree-optimization/48067
6587         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6588         multiplication result will be only used once on the target
6589         stmt.
6590
6591 2011-03-11  Richard Guenther  <rguenther@suse.de>
6592
6593         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6594
6595 2011-03-11  Richard Guenther  <rguenther@suse.de>
6596
6597         PR lto/48073
6598         * tree.c (find_decls_types_r): Do not walk types only reachable
6599         from IDENTIFIER_NODEs.
6600
6601 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6602
6603         PR middle-end/48044
6604         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6605         all vnode->force_output nodes as needed.
6606
6607 2011-03-11  Jason Merrill  <jason@redhat.com>
6608
6609         PR c++/48069
6610         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6611         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6612
6613 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6614
6615         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6616         cgraph_node.
6617
6618 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6619
6620         PR tree-optimization/48063
6621         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6622         inline functions called once if !tree_can_inline_p (node->callers).
6623
6624 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6625
6626         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6627         extra_objs.
6628         * config/score/score3.c: Delete.
6629         * config/score/score3.h: Delete.
6630         * config/score/mul-div.S: Delete.
6631         * config/score/sfp-machine.h: Add new file.
6632         * config/score/constraints.md: Add new file.
6633         * config/score/t-score-softfp: Add new file.
6634         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6635         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6636         (score7_extra_constraint): Delete.
6637         (score7_option_override): Remove unused code.
6638         * config/score/score.c: Remove score3 and score5 define and code.
6639         * config/score/score.h: Remove score3 and score5 define and code.
6640         * config/score/score.md: Remove score3 template and unusual insn.
6641         * config/score/score.opt: Remove score3 and score5 options.
6642
6643 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6644
6645         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6646         when _HPUX_SOURCE is defined.
6647         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6648
6649 2011-03-10  Jason Merrill  <jason@redhat.com>
6650
6651         PR c++/48029
6652         * stor-layout.c (layout_type): Don't set structural equality
6653         on arrays of incomplete type.
6654         * tree.c (type_hash_eq): Handle comparing them properly.
6655
6656 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6657
6658         PR debug/48043
6659         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6660         result mode matches original rtl mode.
6661
6662 2011-03-10  Nick Clifton  <nickc@redhat.com>
6663
6664         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6665         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6666
6667 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6668
6669         PR rtl-optimization/47866
6670         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6671         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6672         if target wasn't scalar.
6673         * function.c (assign_stack_temp_for_type): Assert that neither
6674         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6675         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6676         macro.
6677         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6678
6679 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6680
6681         * config/s390/s390-protos.h (s390_label_align): New prototype.
6682         * config/s390/s390.c (s390_label_align): New function.
6683         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6684
6685 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6686
6687         PR target/47755
6688         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6689         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6690         (output_vec_const_move): Ditto.
6691
6692 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6693
6694         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6695         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6696         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6697         Change 'rclass' argument and result type to reg_class_t.
6698         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6699
6700 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6701
6702         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6703         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6704         (TARGET_MEMORY_MOVE_COST): Define.
6705         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6706
6707 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6708
6709         PR debug/47881
6710         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6711         removed anything.
6712
6713         PR tree-optimization/48022
6714         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6715         for EQ/NE_EXPR.
6716
6717 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6718
6719         PR debug/47991
6720         * var-tracking.c (find_use_val): Return NULL for
6721         cui->sets && cui->store_p BLKmode MEMs.
6722
6723 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6724
6725         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6726         Remove.
6727         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6728         xstormy16_print_operand_address): Remove.
6729         * config/stormy16/stormy16.c (xstormy16_print_operand,
6730         xstormy16_print_operand_address): Make static.
6731         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6732
6733 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6734
6735         PR target/47862
6736         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6737         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6738         before definition.
6739
6740 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6741
6742         PR bootstrap/48000
6743         * cfgloopmanip.c (fix_bb_placements): Return immediately
6744         if FROM is BASE_LOOP's header.
6745
6746 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6747
6748         * gimplify.c (gimplify_function_tree): Fix building calls
6749         to __builtin_return_address.
6750
6751 2011-03-07  Alan Modra  <amodra@gmail.com>
6752
6753         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6754         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6755         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6756         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6757         return_mode args.
6758         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6759         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6760         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6761         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6762         * config/rs6000/rs6000.c
6763         (rs6000_elf_end_indicate_exec_stack): Rename to..
6764         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6765         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6766         (rs6000_file_start): ..here.
6767         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6768         file scope variables.
6769         (call_ABI_of_interest): New function.
6770         (init_cumulative_args): Set above vars when function return value
6771         is a float, vector, or small struct.
6772         (rs6000_function_arg_advance_1): Likewise for function args.
6773         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6774         references float args.
6775
6776 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6777
6778         * doc/cfg.texi: Remove "See" before @ref.
6779         * doc/invoke.texi: Likewise.
6780
6781 2011-03-05  Jason Merrill  <jason@redhat.com>
6782
6783         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6784
6785 2011-03-05  Anthony Green  <green@moxielogic.com>
6786
6787         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6788
6789 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6790
6791         PR rtl-optimization/47899
6792         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6793         to flow_loop_nested_p when moving the loop upward.
6794
6795 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6796
6797         PR target/47719
6798         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6799
6800 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6801
6802         PR tree-optimization/47967
6803         * ipa-cp.c (build_const_val): Return NULL instead of creating
6804         VIEW_CONVERT_EXPR for mismatching sizes.
6805         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6806         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6807         give up on versioning.
6808
6809 2011-03-05  Alan Modra  <amodra@gmail.com>
6810
6811         PR target/47986
6812         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6813         full cmodel medium/large lo_sum + high addresses.
6814
6815 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6816
6817         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6818         pool references in UNSPEC_LTREL_OFFSET.
6819
6820 2011-03-04  Jan Hubicka  <jh@suse.cz>
6821
6822         PR lto/47497
6823         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6824         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6825         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6826         Add node pointers.
6827         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6828         cgraph_add_thunk): Add node pointers.
6829         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6830         associated to right node.
6831         (input_node): Update use of cgraph_same_body_alias
6832         and cgraph_add_thunk.
6833
6834 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6835
6836         * config/i386/i386.opt (mprefer-avx128): New flag.
6837         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6838         modes when the flag -mprefer-avx128 is on.
6839
6840 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6841
6842         * dwarf2out.c (compare_loc_operands): Fix address handling.
6843
6844 2011-03-04  Alan Modra  <amodra@gmail.com>
6845
6846         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6847
6848 2011-03-04  Richard Guenther  <rguenther@suse.de>
6849
6850         PR middle-end/47968
6851         * expmed.c (extract_bit_field_1): Prefer vector modes that
6852         vec_extract patterns can handle.
6853
6854 2011-03-04  Richard Guenther  <rguenther@suse.de>
6855
6856         PR middle-end/47975
6857         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6858
6859 2011-03-04  Richard Henderson  <rth@redhat.com>
6860
6861         * explow.c (emit_stack_save): Remove 'after' parameter.
6862         (emit_stack_restore): Likewise.
6863         * expr.h: Update to match.
6864         * builtins.c, calls.c, stmt.c: Likewise.
6865         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6866         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6867         * function.c (expand_function_end): Insert the emit_stack_save
6868         sequence before parm_birth_insn instead of after.
6869
6870 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6871
6872         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6873         (ssse3_pmaddubsw128): Ditto.
6874         (ssse3_pmaddubsw): Ditto.
6875
6876 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6877
6878         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6879
6880 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6881
6882         PR c/47963
6883         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6884         on TYPE_SIZE_UNIT if it is a DECL.
6885
6886         PR debug/47283
6887         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6888         first operand is not is_gimple_mem_ref_addr, try to fold it.
6889         If the operand still isn't is_gimple_mem_ref_addr, clear
6890         MEM_EXPR on op0.
6891
6892 2011-03-03  Richard Guenther  <rguenther@suse.de>
6893
6894         PR middle-end/47283
6895         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6896         match comment.
6897         (refs_may_alias_p_1): For release branches return true if
6898         we are confused by our input.
6899
6900 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6901
6902         * config/s390/s390.c (s390_function_value): Rename to ...
6903         (s390_function_and_libcall_value): ... this.
6904         (s390_function_value): New function.
6905         (s390_libcall_value): New function.
6906         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6907         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6908         target macro definitions.
6909         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6910
6911 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6912
6913         * config/i386/freebsd64.h (CC1_SPEC): Define.
6914         * config/i386/linux64.h (CC1_SPEC): Define.
6915         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6916
6917 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6918
6919         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6920         Remove.
6921         * config/stormy16/stormy16.c: Include reload.h.
6922         (xstormy16_memory_move_cost): New function.
6923         (TARGET_MEMORY_MOVE_COST): Define.
6924
6925 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6926
6927         PR rtl-optimization/47925
6928         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6929         with side effects.  Remove the more-specific check for volatile asms.
6930
6931 2011-03-02  Alan Modra  <amodra@gmail.com>
6932
6933         PR target/47935
6934         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6935         toc relative addresses for valid offsets.
6936
6937 2011-03-01  Richard Guenther  <rguenther@suse.de>
6938
6939         PR tree-optimization/47890
6940         * tree-vect-loop.c (get_initial_def_for_induction): Set
6941         related stmt properly.
6942
6943 2011-03-01  Richard Guenther  <rguenther@suse.de>
6944
6945         PR lto/47924
6946         * lto-streamer.c (lto_record_common_node): Also register
6947         the canonical type.
6948
6949 2011-03-01  Richard Guenther  <rguenther@suse.de>
6950
6951         PR lto/46911
6952         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6953         Do not stream DECL_ABSTRACT_ORIGIN.
6954         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6955         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6956         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6957         Do not stream DECL_ABSTRACT_ORIGIN.
6958         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6959         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6960
6961 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6962
6963         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6964         FUNCTION_VALUE_REGNO_P): Remove.
6965         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6966         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6967         Add 'outgoing' argument.
6968         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6969         function.
6970         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6971         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6972
6973 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6974
6975         PR debug/28047
6976         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6977         (lookup_filename): Likewise.
6978         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6979
6980 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6981             Jakub Jelinek  <jakub@redhat.com>
6982
6983         PR middle-end/47893
6984         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6985         (assign_stack_local_1): Change last argument type to int.
6986         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6987         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6988         don't record padding space into frame_space_list nor use those areas.
6989         (assign_stack_local): Adjust caller.
6990         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6991         of assign_stack_local, pass 0 as last argument.
6992         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6993         callers.
6994
6995 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6996
6997         PR debug/47283
6998         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6999         Use target address_mode and pointer_mode hooks instead of hardcoded
7000         Pmode and ptr_mode.  Handle some simple cases of extending if
7001         POINTERS_EXTEND_UNSIGNED < 0.
7002         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7003         Call convert_debug_memory_address.
7004         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7005         convert_debug_memory_address.
7006
7007         PR middle-end/46790
7008         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7009         * configure: Regenerated.
7010         * config.in: Regenerated.
7011         * varasm.c (default_function_section): Return NULL
7012         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7013
7014 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7015
7016         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7017         the description to match the printed values.
7018
7019 2011-02-28  Richard Guenther  <rguenther@suse.de>
7020
7021         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7022         of the copied scope tree.
7023
7024 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7025
7026         * doc/extend.texi (Function Attributes): Avoid deeply (and
7027         wrongly) nested tables.
7028
7029 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7030
7031         PR middle-end/47903
7032         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7033         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7034         r isn't op0 nor op1.
7035
7036 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7037
7038         * config/avr/avr.md: Remove magic comment for emacs.
7039
7040 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7041
7042         PR target/45261
7043         * config/avr/avr.c (avr_option_override): Use error on bad options.
7044         (avr_help): New function.
7045         (TARGET_HELP): Define.
7046
7047 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7048
7049         PR target/42240
7050         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7051         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7052
7053 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7054
7055         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7056         (ARM Options): Ditto.
7057         (i386 and x86-64 Options): Ditto.
7058         (RX Options): Ditto.
7059         (SPARC Options): Ditto.
7060
7061 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7062
7063         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7064         FreeBSD 6 and later.  Generally use cpu generic.
7065
7066 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7067
7068         * doc/cpp.texi: Update copyright years.
7069
7070 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7071
7072         PR target/46898
7073         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7074
7075 2011-02-25  Jon Beniston  <jon@beniston.com>
7076
7077         PR target/46898
7078         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7079         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7080         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7081         (lm32_block_move_inline): Add type cast to remove warning.
7082         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7083         (gen_int_relational): Move declarations to start of function.
7084
7085 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7086
7087         PR tree-optimization/45470
7088         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7089         can throw internally only.
7090         * tree-vect-stmts.c (vectorizable_call): Likewise.
7091
7092 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7093
7094         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7095         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7096         * config/stormy16/stormy16-protos.h
7097         (xstormy16_preferred_reload_class): Remove.
7098         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7099         static. Change 'rclass' argument and return type to reg_class_t.
7100         (TARGET_PREFERRED_RELOAD_CLASS,
7101         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7102
7103 2011-02-24  Richard Guenther  <rguenther@suse.de>
7104
7105         * lto-streamer-in.c (input_bb): Do not find referenced vars
7106         in debug statements.
7107
7108 2011-02-23  Jason Merrill  <jason@redhat.com>
7109
7110         * common.opt (fabi-version): Document v5 and v6.
7111
7112 2011-02-23  Richard Guenther  <rguenther@suse.de>
7113
7114         PR tree-optimization/47849
7115         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7116
7117 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7118
7119         * opts-common.c (decode_cmdline_option): Print empty string
7120         argument as "" in decoded->orig_option_with_args_text.
7121         * gcc.c (execute): Print empty string argument as ""
7122         in the verbose output.
7123         (do_spec_1): Keep empty string argument.
7124
7125 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7126
7127         * config.gcc: Declare score-* and crx-* obsolete.
7128
7129 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7130
7131         PR rtl-optimization/47763
7132         * web.c (web_main): Ignore naked clobber when replacing register.
7133
7134 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7135
7136         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7137         Remove.
7138
7139 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7140
7141         PR doc/47848
7142         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7143
7144 2011-02-22  Mike Stump  <mikestump@comcast.net>
7145
7146         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7147         assembler.
7148         * configure: Regenerate.
7149
7150 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7151
7152         PR rtl-optimization/46002
7153         * ira-color.c (update_copy_costs): Change class intersection
7154         test to reg_class_contents[] test of 'hard_regno'.
7155
7156 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7157
7158         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7159         than Driver option.
7160         * config/hpux11.opt (mt): Likewise.
7161         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7162         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7163         * config/vax/elf.opt (mno-asm-pic): Likewise.
7164         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7165
7166 2011-02-21  Mike Stump  <mikestump@comcast.net>
7167
7168         PR target/47822
7169         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7170         tree so we can get save the type.
7171         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7172         for CFString instead of trying to use past the end of the builtins.
7173         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7174         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7175         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7176         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7177         Rename to darwin_builtin_cfstring.
7178         (darwin_init_cfstring_builtins): Return the built type.
7179
7180 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7181
7182         PR target/47840
7183         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7184         (_mm256_insert_epi64): Use _mm_insert_epi64.
7185
7186 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7187
7188         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7189         * config/stormy16/stormy16-protos.h
7190         (xstormy16_mode_dependent_address_p): Remove.
7191         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7192         Make static. Change return type to bool. Change argument type to
7193         const_rtx. Remove dead code.
7194         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7195
7196 2011-02-21  Richard Guenther  <rguenther@suse.de>
7197
7198         PR lto/47820
7199         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7200         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7201         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7202         TUs context.
7203         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7204         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7205
7206 2011-02-20  Richard Guenther  <rguenther@suse.de>
7207
7208         PR lto/47822
7209         * tree.c (free_lang_data_in_decl): Clean builtins from
7210         the TU decl BLOCK_VARS.
7211
7212 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7213
7214         PR debug/47620
7215         PR debug/47630
7216         * haifa-sched.c (fix_tick_ready): Skip tick computation
7217         for debug insns.
7218
7219 2011-02-19  Richard Guenther  <rguenther@suse.de>
7220
7221         PR lto/47647
7222         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7223         Remove lazy BLOCK_VARS streaming.
7224         (lto_input_ts_block_tree_pointers): Likewise.
7225         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7226
7227 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7228
7229         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7230
7231 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7232
7233         * config/i386/biarch32.h, config/i386/mach.h,
7234         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7235
7236 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7237
7238         PR target/47800
7239         * config/i386/i386.md (peephole2 for shift and plus): Use
7240         operands[1] original mode in the first insn.
7241
7242 2011-02-18  Mike Stump  <mikestump@comcast.net>
7243
7244         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7245
7246 2011-02-18  Jan Hubicka  <jh@suse.cz>
7247
7248         PR middle-end/47788
7249         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7250         to zero when the function is not inlinable at all.
7251
7252 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7253
7254         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7255         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7256         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7257         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7258         * config/pa/t-pa64: Likewise.
7259         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7260
7261 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7262
7263         PR driver/47787
7264         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7265
7266 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7267
7268         PR target/47792
7269         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7270
7271 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7272
7273         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7274         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7275         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7276         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7277         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7278         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7279         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7280         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7281         m32r_legitimate_address_p): New functions.
7282         * config/m32r/constraints.md (constraint "S"): Don't use
7283         STORE_PREINC_PREDEC_P.
7284         (constraint "U"): Don't use LOAD_POSTINC_P.
7285
7286 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7287
7288         PR rtl-optimization/46178
7289         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7290         compute ira_hard_regno_cover_class[].
7291
7292 2011-02-18  Richard Guenther  <rguenther@suse.de>
7293
7294         PR lto/47798
7295         * lto-streamer.h (lto_global_var_decls): Declare.
7296         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7297         statics for global var processing.
7298
7299 2011-02-18  Richard Guenther  <rguenther@suse.de>
7300
7301         PR tree-optimization/47737
7302         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7303         edge dominance check.
7304
7305 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7306
7307         PR debug/47780
7308         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7309         avoid invalid rtx sharing.
7310
7311 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7312
7313         * doc/cpp.texi (Obsolete Features): Add background on the
7314         origin of assertions.
7315
7316 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7317
7318         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7319         objc_abi == 2.
7320         * config/darwin.c (output_objc_section_asm_op): Added support for
7321         ABI v1 and v2.
7322         (is_objc_metadata): New.
7323         (darwin_objc2_section): New.
7324         (darwin_objc1_section): New.
7325         (machopic_select_section): Added support for ABI v1 and v2.
7326         (darwin_emit_objc_zeroed): New.
7327         (darwin_output_aligned_bss): Detect objc metadata and treat it
7328         appropriately.
7329         (darwin_asm_output_aligned_decl_common): Same.
7330         (darwin_asm_output_aligned_decl_local): Same.
7331         * config/darwin-sections.def: Updated for ABI v1 and v2.
7332         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7333         compiling Objective-C code for the NeXT runtime, default to using
7334         ABI version 0 for 32-bit, and version 2 for 64-bit.
7335
7336 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7337
7338         * common.opt (optimize_fast): New Variable.
7339         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7340         instead of local variable ofast.
7341
7342 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7343
7344         * doc/invoke.texi (fobjc-abi-version): Documented.
7345         (fobjc-nilcheck): Documented.
7346         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7347         version.
7348
7349 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7350
7351         PR driver/47390
7352         * common.opt (export-dynamic): New Driver option.
7353         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7354
7355 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7356
7357         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7358
7359 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7360             Jan Hubicka  <jh@suse.cz>
7361
7362         PR debug/47106
7363         PR debug/47402
7364         * cfgexpand.c (account_used_vars_for_block): Remove.
7365         (estimated_stack_frame_size): Use referenced vars.
7366         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7367         that were referenced in the original function.  Test src_fn
7368         rather than cfun.  Drop redundant get_var_ann.
7369         (setup_one_parameter): Drop redundant get_var_ann.
7370         (declare_return_variable): Likewise.
7371         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7372         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7373         * ipa-inline.c (compute_inline_parameters): Do not compute
7374         disregard_inline_limits here.
7375         (compute_inlinable_for_current, pass_inlinable): New.
7376         (pass_inline_parameters): Require PROP_referenced_vars.
7377         * cgraphunit.c (cgraph_process_new_functions): Don't run
7378         compute_inline_parameters explicitly unless function is in SSA form.
7379         (cgraph_analyze_function): Set .disregard_inline_limits.
7380         * tree-sra.c (convert_callers): Compute inliner parameters
7381         only for functions already in SSA form.
7382
7383 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7384
7385         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7386         -mlittle-endian-data.
7387
7388 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7389
7390         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7391         -mno-fpu, not -fpu and -no-fpu.
7392         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7393         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7394
7395 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7396
7397         PR target/43653
7398         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7399         input reload with PLUS RTX.
7400
7401 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7402
7403         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7404         of InverseVar(MDMX).
7405
7406 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7407
7408         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7409         --m4-340.
7410
7411 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7412
7413         * config/mn10300/mn10300.opt (mno-crt0): New.
7414
7415 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7416
7417         * config/m68k/uclinux.opt (static-libc): New Driver option.
7418
7419 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7420
7421         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7422
7423 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7424
7425         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7426         %{muser-extend-enabled}.
7427
7428 2011-02-16  Richard Guenther  <rguenther@suse.de>
7429
7430         PR tree-optimization/47738
7431         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7432         the TODO from tree_predictive_commoning.
7433
7434 2011-02-15  Jeff Law  <law@redhat.com>
7435
7436         Revert
7437         2011-01-25  Jeff Law  <law@redhat.com>
7438
7439         PR rtl-optimization/37273
7440         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7441         handle them like argument loads from stack slots.  Do not double
7442         count memory for memory constants and argument loads from stack slots.
7443
7444 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7445
7446         PR middle-end/47725
7447         * combine.c (cant_combine_insn_p): Revert the last change.
7448
7449 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7450
7451         PR target/47755
7452         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7453         mode for vector constants.  Remove code that checks for TImode.
7454
7455 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7456
7457         PR debug/47106
7458         PR debug/47402
7459         * cgraph.h (compute_inline_parameters): Return void.
7460         * ipa-inline.c (compute_inline_parameters): Adjust.
7461
7462 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7463
7464         PR debug/47106
7465         PR debug/47402
7466         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7467         rather than decl.
7468         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7469         * ipa-inline.c (compute_inline_parameters): Adjust.
7470
7471 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7472
7473         PR debug/47106
7474         PR debug/47402
7475         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7476         Adjust all users.  Pass FN to...
7477         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7478         fn argument.
7479         * ipa-struct-reorg.c: Adjust.
7480         * tree-dfa.c: Adjust.
7481         * tree-into-ssa.c: Adjust.
7482         * tree-sra.c: Adjust.
7483         * tree-ssa-alias.c: Adjust.
7484         * tree-ssa-live.c: Adjust.
7485         * tree-ssa.c: Adjust.
7486         * tree-ssanames.c: Adjust.
7487         * tree-tailcall.c: Adjust.
7488
7489 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7490
7491         PR debug/47106
7492         PR debug/47402
7493         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7494         Adjust all callers.
7495         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7496         * tree-flow-inline.h: Adjust.
7497         * gimple-pretty-print.c: Adjust.
7498         * tree-into-ssa.c: Adjust.
7499         * tree-ssa.c: Adjust.
7500         * cfgexpand.c: Adjust.
7501
7502 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7503
7504         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7505         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7506         (EXTRA_CONSTRAINT): Delete.
7507         * config/iq2000/constraints.md: New file.
7508         * config/iq2000/iq2000.md: Include it.
7509         (define_insn ""): Delete.
7510         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7511         unsupported constraint letters from patterns.
7512         (call_value, call_value_internal1): Likewise.
7513         (call_value_multiple_internal1): Likewise.
7514
7515 2011-02-15  Nick Clifton  <nickc@redhat.com>
7516
7517         * config/mn10300/mn10300.c: Include tm-constrs.h.
7518         (struct liw_data): New data structure describing an LIW candidate
7519         instruction.
7520         (extract_bundle): Use struct liw_data.  Allow small integer
7521         operands for some instructions.
7522         (check_liw_constraints): Use struct liw_data.  Remove swapped
7523         parameter.  Add comments describing the checks.  Fix bug when
7524         assigning the source of liw1 to the source of liw2.
7525         (liw_candidate): Delete.  Code moved into extract_bundle.
7526         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7527         before swapping.
7528         * config/mn10300/predicates.md (liw_operand): New predicate.
7529         Allows registers and small integer constants.
7530         * config/mn10300/constraints.md (O): New constraint.  Accetps
7531         integers in the range -8 to +7 inclusive.
7532         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7533         for moving a small integer into a register.  Give this alternative
7534         LIW attributes.
7535         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7536         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7537         using the J,K,L and M constraints,
7538         (liw): Remove SI mode on second operands to allow for HI and QI
7539         mode values.
7540         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7541         instruction.
7542
7543 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7544
7545         PR middle-end/47725
7546         * combine.c (cant_combine_insn_p): Check zero/sign extended
7547         hard registers.
7548
7549 2011-02-15  Richard Guenther  <rguenther@suse.de>
7550
7551         PR tree-optimization/47743
7552         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7553         for a non-type-compatible VN lookup bail out.
7554
7555 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7556
7557         * config/fr30/constraints.md: New file.
7558         * config/fr30/fr30.md: Include it.
7559         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7560         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7561         (EXTRA_CONSTRAINT): Delete.
7562
7563 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7564
7565         * config/frv/constraints.md: New file.
7566         * config/frv/predicates.md: Include it.
7567         * config/frv/frv.c (reg_class_from_letter): Delete.
7568         (frv_option_override): Don't initialize it.
7569         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7570         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7571         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7572         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7573         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7574         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7575         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7576         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7577         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7578         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7579         (REG_CLASS_FROM_CONSTRAINT): Delete.
7580
7581 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7582
7583         PR middle-end/47581
7584         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7585         if frame size is 0 in a leaf function.
7586
7587 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7588
7589         PR pch/14940
7590         * config/alpha/host-osf.c: New file.
7591         * config/alpha/x-osf: New file.
7592         * config.host (alpha*-dec-osf*): Use it.
7593
7594 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7595
7596         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7597         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7598         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7599         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7600         type to const_rtx.
7601         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7602
7603 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7604
7605         * config/stormy16/constraints.md: New file.
7606         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7607         Use satisfies_constraint_Q and satisfies_constraint_R.
7608         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7609         Delete.
7610         (xstormy16_legitiamte_address_p): Declare.
7611         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7612         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7613         (EXTRA_CONSTRAINT): Delete.
7614         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7615         Un-staticize.
7616         (xstormy16_extra_constraint_p): Delete.
7617
7618 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7619
7620         PR tree-optimization/46494
7621         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7622         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7623         (pass_rtl_loop_done): Add TODO_verify_flow.
7624         * fwprop.c (pass_rtl_fwprop): Likewise.
7625         * modulo-sched.c (pass_sms): Likewise.
7626         * tree-ssa-dom.c (pass_dominator): Likewise.
7627         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7628         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7629         (pass_tree_loop_done): Likewise.
7630         * tree-ssa-pre.c (execute_pre): Likewise.
7631         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7632         * tree-ssa-sink.c (pass_sink_code): Likewise.
7633         * tree-vrp.c (pass_vrp): Likewise.
7634
7635 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7636
7637         * config/v850/constraints.md: New file.
7638         * config/v850/v850.md: Include it.
7639         * config/v850/predicates.md (reg_or_0_operand): Use
7640         satisfies_constraint_G.
7641         (special_symbolref_operand): Use satisfies_constraint_K.
7642         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7643         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7644         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7645         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7646         (EXTRA_CONSTRAINT): Delete.
7647         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7648         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7649         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7650
7651 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7652
7653         PR target/47696
7654         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7655         description.
7656
7657 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7658
7659         * config/mcore/constraints.md: New file.
7660         * config/mcore/mcore.md: Include it.
7661         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7662         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7663         (REG_CLASS_FROM_LETTER): Delete.
7664         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7665         insn_const_int_ok_for_constraint.
7666         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7667         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7668         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7669         (EXTRA_CONSTRAINT): Delete.
7670
7671 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7672
7673         PR ada/41929
7674         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7675         (IS_SIGHANDLER): Define.
7676         (sparc64_is_sighandler): New function, split off from
7677         sparc64_fallback_frame_state.
7678         (sparc_is_sighandler): New function, split off from
7679         sparc_fallback_frame_state.
7680         (sparc64_fallback_frame_state): Merge with ...
7681         (sparc_fallback_frame_state): ... this into ...
7682         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7683         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7684         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7685         stack instead of hardcoded offsets.
7686
7687 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7688
7689         PR target/45808
7690         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7691
7692 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7693
7694         * configure: Regenerate.
7695
7696 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7697
7698         PR driver/45731
7699         * gcc.c (asm_options): Correct spec matching --target-help.
7700
7701 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7702
7703         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7704         to gimple call error.
7705
7706 2011-02-12  Mike Stump  <mikestump@comcast.net>
7707
7708         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7709         comments in backslash regions.
7710
7711 2011-02-12  Mike Stump  <mikestump@comcast.net>
7712             Jakub Jelinek  <jakub@redhat.com>
7713             Iain Sandoe  <iains@gcc.gnu.org>
7714
7715         PR target/47324
7716         * dwarf2out.c (output_cfa_loc): When required, apply the
7717         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7718         (output_loc_sequence): Likewise.
7719         (output_loc_operands_raw): Likewise.
7720         (output_loc_sequence_raw): Likewise.
7721         (output_cfa_loc): Likewise.
7722         (output_loc_list): Suppress register number adjustment when
7723         calling output_loc_sequence()
7724         (output_die): Likewise.
7725
7726 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7727
7728         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7729         Remove macros.
7730         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7731         xtensa_memory_move_cost): New functions.
7732         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7733
7734 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7735
7736         PR lto/47225
7737         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7738         in the current directory.
7739         * configure: Rebuilt.
7740
7741 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7742
7743         * config/darwin.c (darwin_override_options): Add a hunk missed
7744         from the commit of r168571.  Trim comment line lengths and
7745         correct indents of the preceding block.
7746
7747 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7748
7749         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7750         the switch.
7751
7752 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7753
7754         * common.opt (nostartfiles): New Driver option.
7755
7756 2011-02-11  Xinliang David Li  <davidxl@google.com>
7757
7758         PR tree-optimization/47707
7759         * tree-chrec.c (convert_affine_scev): Keep type precision.
7760
7761 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7762
7763         PR tree-optimization/47420
7764         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7765
7766 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7767
7768         PR rtl-optimization/47614
7769         * rtl.h (check_for_inc_dec): Declare.
7770         * dse.c (check_for_inc_dec): Externalize...
7771         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7772         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7773
7774 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7775
7776         PR driver/47678
7777         * gcc.c (main): Do not compile inputs if there were errors in
7778         option handling.
7779         * opts-common.c (read_cmdline_option): Check for wrong language
7780         after other error checks.
7781
7782 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7783
7784         * cgraph.c: Fix comment typos.
7785         * cgraph.h: Likewise.
7786         * cgraphunit.c: Likewise.
7787         * ipa-cp.c: Likewise.
7788         * ipa-inline.c: Likewise.
7789         * ipa-prop.c: Likewise.
7790         * ipa-pure-const.c: Likewise.
7791         * ipa-ref.c: Likewise.
7792         * ipa-reference.c: Likewise.
7793
7794 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7795
7796         PR debug/47684
7797         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7798
7799 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7800
7801         PR testsuite/47400
7802         * doc/sourcebuild.texi (Require Support): Document
7803         dg-require-ascii-locale.
7804
7805 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7806
7807         * doc/lto.texi (Write summary): Fix missing parentheses.
7808
7809 2011-02-10  DJ Delorie  <dj@redhat.com>
7810
7811         * config/m32c/m32c.c (m32c_option_override): Disable
7812         -fcombine-stack-adjustments until flag value tracking and compare
7813         optimization can be rewritten.
7814
7815 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7816
7817         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7818         PROCESSOR_POWER7.
7819         (PROCESSOR_DEFAULT64): Likewise.
7820
7821 2011-02-10  Richard Henderson  <rth@redhat.com>
7822
7823         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7824         change from 2011-02-03.
7825         * config/rx/rx.c (flags_from_code): Likewise.
7826         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7827         is valid, n/pz otherwise.
7828         (rx_select_cc_mode): Return CCmode if Y is not zero.
7829
7830 2011-02-10  Richard Guenther  <rguenther@suse.de>
7831
7832         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7833
7834 2011-02-10  Richard Guenther  <rguenther@suse.de>
7835
7836         PR tree-optimization/47677
7837         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7838
7839 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7840
7841         PR target/47665
7842         * combine.c (make_compound_operation): Only change shifts into
7843         multiplication for SCALAR_INT_MODE_P.
7844
7845 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7846
7847         PR testsuite/47622
7848         Revert
7849         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7850         PR debug/42631
7851         * web.c (entry_register): Don't clobber the number of the
7852         first uninitialized reference in used[].
7853
7854 2011-02-09  Richard Guenther  <rguenther@suse.de>
7855
7856         PR tree-optimization/47664
7857         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7858         all edges again.
7859
7860 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7861
7862         PR target/46481
7863         PR target/47032
7864         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7865         PROCESSOR_POWER7.
7866         (PROCESSOR_DEFAULT64): Same.
7867         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7868
7869 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7870
7871         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7872
7873 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7874
7875         PR middle-end/45505
7876         * tree-sra.c (struct access): New flags grp_scalar_read and
7877         grp_scalar_write.  Changed description of assignment read and write
7878         flags.
7879         (dump_access): Dump new flags, reorder all of them.
7880         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7881         to detect multiple scalar reads.
7882         (analyze_access_subtree): Use the new scalar read write flags instead
7883         of the old flags.  Adjusted comments.
7884
7885 2011-02-08  DJ Delorie  <dj@redhat.com>
7886
7887         PR target/47548
7888         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7889         patterns.
7890
7891 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7892
7893         * config/m68k/uclinux.opt: New.
7894         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7895
7896 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * config/cris/elf.opt (sim): New Driver option.
7899
7900 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7901
7902         * config/xtensa/elf.opt: New.
7903         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7904
7905 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7906
7907         * config/vax/elf.opt: New.
7908         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7909
7910 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7911
7912         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7913
7914 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7915
7916         * config/gnu-user.opt: New.
7917         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7918         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7919         *-*-uclinux*): Use gnu-user.opt.
7920
7921 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7922
7923         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7924         * config/i386/gnu.h (CPP_SPEC): Likewise.
7925
7926 2011-02-08  Ian Lance Taylor  <iant@google.com>
7927
7928         * common.opt (fcx-limited-range): Add SetByCombined flag.
7929         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7930         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7931         (fassociative-math, freciprocal-math): Likewise.
7932         (funsafe-math-optimizations): Likewise.
7933         * opth-gen.awk: Handle SetByCombined.
7934         * optc-gen.awk: Likewise.
7935         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7936         (set_unsafe_math_optimizations_flags): Likewise.
7937         * doc/options.texi (Option properties): Document SetByCombined.
7938
7939 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7940
7941         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7942         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7943         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7944         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7945         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7946
7947 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7948
7949         PR tree-optimization/46834
7950         PR tree-optimization/46994
7951         PR tree-optimization/46995
7952         * graphite-sese-to-poly.c (used_outside_reduction): New.
7953         (detect_commutative_reduction): Call used_outside_reduction.
7954         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7955         translate_scalar_reduction_to_array only when at least one
7956         loop-phi/close-phi tuple has been detected.
7957
7958 2011-02-08  Richard Guenther  <rguenther@suse.de>
7959
7960         PR middle-end/47639
7961         * tree-vect-generic.c (expand_vector_operations_1): Update
7962         stmts here ...
7963         (expand_vector_operations): ... not here.  Cleanup EH info
7964         and the CFG if required.
7965
7966 2011-02-08  Richard Guenther  <rguenther@suse.de>
7967
7968         PR tree-optimization/47641
7969         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7970         require type compatibility.
7971
7972 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7973
7974         * gimple-low.c (lower_function_body): Don't remove the location of
7975         the return statement here.
7976         (lower_gimple_return): Do it here instead but only if the return
7977         statement is actually used twice.
7978
7979 2011-02-08  Richard Guenther  <rguenther@suse.de>
7980
7981         PR tree-optimization/47632
7982         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7983         unused up_to_stmt parameter, return whether cfg-cleanup is
7984         necessary, remove EH info properly.
7985         (forward_propagate_into_gimple_cond): Adjust caller.
7986         (forward_propagate_into_cond): Likewise.
7987         (forward_propagate_comparison): Likewise.
7988         (tree_ssa_forward_propagate_single_use_vars): Make
7989         forward_propagate_comparison case similar to the two others.
7990
7991 2011-02-08  Nick Clifton  <nickc@redhat.com>
7992
7993         * config/mn10300/mn10300.opt (mliw): New command line option.
7994         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7995         (liw_bundling): New automaton.
7996         (liw): New attribute.
7997         (liw_op): New attribute.
7998         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7999         (movsi_internal): Add LIW attributes.
8000         (andsi3): Likewise.
8001         (iorsi3): Likewise.
8002         (xorsi3): Likewise.
8003         (addsi3): Separate register and immediate alternatives.
8004         Add LIW attributes.
8005         (subsi3): Likewise.
8006         (cmpsi): Likewise.
8007         (aslsi3): Likewise.
8008         (lshrsi3): Likewise.
8009         (ashrsi3): Likewise.
8010         (liw): New pattern.
8011         * config/mn10300/mn10300.c (liw_op_names): New
8012         (mn10300_print_operand): Handle 'W' operand descriptor.
8013         (extract_bundle): New function.
8014         (check_liw_constraints): New function.
8015         (liw_candidate): New function.
8016         (mn10300_bundle_liw): New function.
8017         (mn10300_reorg): New function.
8018         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8019         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8020         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8021         __LIW__ or __NO_LIW__.
8022         * doc/invoke.texi: Describe the -mliw command line option.
8023
8024 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8025
8026         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8027         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8028         pthread_mutex_unlock): Remove.
8029         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8030         * config/pa/t-pa64: Likewise.
8031         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8032         shared libc if not linking against libpthread.
8033         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8034
8035 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8036
8037         PR target/47558
8038         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8039         on 10.6 and later to ensure that we always use the unwinder from
8040         the system.  Only add -no_compact_unwind when tarteting darwin
8041         10.6 or later.
8042
8043 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8044
8045         PR target/46997
8046         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8047         (vec_interleave_lowv2sf): Ditto.
8048         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8049         (vec_extract_oddv2sf): Ditto.
8050
8051 2011-02-07  Mike Stump  <mikestump@comcast.net>
8052
8053         PR target/42333
8054         Add __ieee_divdc3 entry point.
8055         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8056         entry point.
8057         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8058         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8059         * config/darwin.c (darwin_rename_builtins): Add.
8060         * config/darwin-protos.h (darwin_rename_builtins): Add.
8061
8062 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8063
8064         PR target/47636
8065         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8066         for the condition.
8067
8068 2011-02-07  Mike Stump  <mikestump@comcast.net>
8069
8070         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8071
8072 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8073
8074         PR target/47534
8075         * config/avr/libgcc.S (exit): Move .endfunc
8076
8077 2011-02-07  Richard Guenther  <rguenther@suse.de>
8078
8079         PR tree-optimization/47615
8080         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8081         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8082         (run_scc_vn): Initialize it.
8083         (visit_reference_op_load): Use it.
8084         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8085
8086 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8087
8088         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8089         DImode trapping arithmetic libfuncs.
8090
8091 2011-02-07  Richard Guenther  <rguenther@suse.de>
8092
8093         PR tree-optimization/47621
8094         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8095         two duplicates ...
8096         (execute_update_addresses_taken): ... here.  Make it more
8097         conservative in what we accept.
8098
8099 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8100
8101         * config/sparc/freebsd.h (ASM_SPEC): Define.
8102         * config/sparc/vxworks.h (ASM_SPEC): Define.
8103
8104 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8107
8108 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8109
8110         * doc/invoke.texi: Remove reference to compiler internals from
8111         user documentation.
8112
8113         * reg-notes.def: Remove REG_VALUE_PROFILE.
8114         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8115
8116 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8117
8118         PR middle-end/47610
8119         * varasm.c (default_section_type_flags): If decl is NULL,
8120         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8121
8122 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8123
8124         PR debug/42631
8125         * web.c (entry_register): Don't clobber the number of the
8126         first uninitialized reference in used[].
8127
8128 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8129
8130         PR tree-optimization/46194
8131         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8132         (build_classic_dist_vector_1): Do not represent classic distance
8133         vectors when the access functions are variating in different loops.
8134
8135 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8136
8137         * config/mips/iris6.opt: New.
8138         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8139
8140 2011-02-04  Richard Henderson  <rth@redhat.com>
8141             Steve Ellcey  <sje@cup.hp.com>
8142
8143         PR target/46997
8144         * config/ia64/predicates.md (mux1_brcst_element): New.
8145         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8146         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8147         (ia64_unpack_sign): New.
8148         (ia64_expand_unpack): Rewrite using new routines.
8149         (ia64_expand_widen_sum): Ditto.
8150         (ia64_expand_dot_prod_v8qi): Ditto.
8151         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8152         routines, add endian check.
8153         (pmpy2_even): Rename from pmpy2_r, add endian check.
8154         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8155         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8156         (vec_widen_smult_hi_v4hi): Ditto.
8157         (vec_widen_umult_lo_v4hi): Ditto.
8158         (vec_widen_umult_hi_v4hi): Ditto.
8159         (mulv2si3): Change endian checks.
8160         (sdot_prodv4hi): Rewrite with new calls.
8161         (udot_prodv4hi): New.
8162         (vec_pack_ssat_v4hi): Add endian check.
8163         (vec_pack_usat_v4hi): Ditto.
8164         (vec_pack_ssat_v2si): Ditto.
8165         (max1_even): Rename from max1_r, add endian check.
8166         (max1_odd): Rename from max1_l, add endian check.
8167         (*mux1_rev): Format change.
8168         (*mux1_mix): Ditto.
8169         (*mux1_shuf): Ditto.
8170         (*mux1_alt): Ditto.
8171         (*mux1_brcst_v8qi): Use new predicate.
8172         (vec_extract_evenv8qi): Remove endian check.
8173         (vec_extract_oddv8qi): Ditto.
8174         (vec_interleave_lowv4hi): Format change.
8175         (vec_interleave_highv4hi): Ditto.
8176         (mix2_even): Rename from mix2_r, add endian check.
8177         (mix2_odd): Rename from mux2_l, add endian check.
8178         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8179         (vec_extract_evenodd_helper): Format change.
8180         (vec_extract_evenv4hi): Remove endian check.
8181         (vec_extract_oddv4hi): Remove endian check.
8182         (vec_interleave_lowv2si): Format change.
8183         (vec_interleave_highv2si): Format change.
8184         (vec_initv2si): Remove endian check.
8185         (vecinit_v2si): Add endian check.
8186         (reduc_splus_v2sf): Add endian check.
8187         (reduc_smax_v2sf): Ditto.
8188         (reduc_smin_v2sf): Ditto.
8189         (vec_initv2sf): Remove endian check.
8190         (fpack): Add endian check.
8191         (fswap): Add endian check.
8192         (vec_interleave_highv2sf): Add endian check.
8193         (vec_interleave_lowv2sf): Add endian check.
8194         (fmix_lr): Add endian check.
8195         (vec_setv2sf): Format change.
8196         (*vec_extractv2sf_0_be): Use shift to extract operand.
8197         (*vec_extractv2sf_1_be): New.
8198         (vec_pack_trunc_v4hi): Add endian check.
8199         (vec_pack_trunc_v2si): Format change.
8200
8201 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8202
8203         PR inline-asm/23200
8204         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8205         do bb, locus and block comparison and disallow loads if it is not set.
8206         (stmt_is_replaceable_p): New function.
8207         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8208         callers.
8209         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8210         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8211         SSA_NAME_DEF_STMT.
8212         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8213
8214 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8215
8216         * config/rs6000/xilinx.opt: New.
8217         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8218
8219 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8220
8221         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8222
8223 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8224
8225         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8226         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8227         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8228         secondary_reload_info, xtensa_secondary_reload): Remove.
8229         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8230         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8231         (xtensa_preferred_reload_class): Make static. Change return and
8232         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8233         Use CONST_DOUBLE_P predicate.
8234         (xtensa_preferred_output_reload_class): New function.
8235         (xtensa_secondary_reload): Make static.
8236
8237 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8238
8239         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8240         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8241         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8242
8243 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8244
8245         PR middle-end/31490
8246         * output.h (SECTION_RELRO): Define.
8247         (SECTION_MACH_DEP): Adjust.
8248         (get_variable_section): New prototype.
8249         * varpool.c (varpool_finalize_named_section_flags): New function.
8250         (varpool_assemble_pending_decls): Call it.
8251         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8252         * cgraphunit.c (cgraph_output_in_order): Call
8253         varpool_finalize_named_section_flags.
8254         * varasm.c (get_section): Allow section flags conflicts between
8255         relro and read-only sections if the section hasn't been declared yet.
8256         Set SECTION_OVERRIDE after diagnosing section type conflict.
8257         (get_variable_section): No longer static.
8258         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8259         readonly sections that need relocations.
8260         (decl_readonly_section_1): New function.
8261         (decl_readonly_section): Use it.
8262
8263         Revert:
8264         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8265                     Steve Ellcey  <sje@cup.hp.com>
8266
8267         PR middle-end/31490
8268         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8269         if section attribute used.
8270
8271 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8272
8273         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8274         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8275         (darwin_init_sections): Remove assertion.
8276
8277 2011-02-03  Nick Clifton  <nickc@redhat.com>
8278
8279         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8280         lt and ge.
8281         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8282         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8283         instead of "n" and "pz".
8284         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8285         CC_FLAG_S.
8286
8287 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8288
8289         PR target/47312
8290         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8291         fma, expand FMA_EXPR as fma{,f,l} call.
8292
8293         PR lto/47274
8294         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8295         copy them into a unsigned char variable and pass address of it to
8296         lto_output_data_stream.
8297
8298         PR target/47564
8299         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8300         around backend_init_target and lang_dependent_init_target calls.
8301         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8302         (verify_cgraph_node): Don't call set_cfun here.  Use
8303         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8304         Set error_found for incorrectly represented calls to thunks.
8305
8306 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8307
8308         PR debug/43092
8309         PR rtl-optimization/43494
8310         * rtl.h (for_each_inc_dec_fn): New type.
8311         (for_each_inc_dec): Declare.
8312         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8313         (for_each_inc_dec_find_inc_dec): New fn.
8314         (for_each_inc_dec_find_mem): New fn.
8315         (for_each_inc_dec): New fn.
8316         * dse.c (struct insn_size): Remove.
8317         (replace_inc_dec, replace_inc_dec_mem): Remove.
8318         (emit_inc_dec_insn_before): New fn.
8319         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8320         (canon_address): Pass mem modes to cselib_lookup.
8321         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8322         (cselib_lookup_from_insn): Likewise.
8323         (cselib_subst_to_values): Likewise.
8324         * cselib.c (find_slot_memmode): New var.
8325         (cselib_find_slot): New fn.  Use it instead of
8326         htab_find_slot_with_hash everywhere.
8327         (entry_and_rtx_equal_p): Use find_slot_memmode.
8328         (autoinc_split): New fn.
8329         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8330         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8331         Deal with autoinc.  Special-case recursion into MEMs.
8332         (cselib_hash_rtx): Likewise.
8333         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8334         address and MEM modes.
8335         (cselib_subst_to_values): Add memmode, pass it on.
8336         Deal with autoinc.
8337         (cselib_lookup): Add memmode argument, pass it on.
8338         (cselib_lookup_from_insn): Add memmode.
8339         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8340         (struct cselib_record_autoinc_data): New.
8341         (cselib_record_autoinc_cb): New fn.
8342         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8343         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8344         (cselib_process_insn): ... here.
8345         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8346         to cselib_lookup.
8347         (add_uses): Likewise, also to cselib_subst_to_values.
8348         (add_stores): Likewise.
8349         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8350         cselib_subst_to_values.
8351         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8352         * gcse.c (do_local_cprop): Adjusted.
8353         * postreload.c (reload_cse_simplify_set): Adjusted.
8354         (reload_cse_simplify_operands): Adjusted.
8355         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8356
8357 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8358
8359         PR tree-optimization/45122
8360         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8361         unsafe assumptions when there's more than one loop exit.
8362
8363 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8364
8365         PR target/47272
8366         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8367         Document using vector double with the load/store builtins, and
8368         that the load/store builtins always use Altivec instructions.
8369
8370         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8371         to use altivec memory instructions, even on VSX.
8372         (vector_altivec_store_<mode>): Ditto.
8373
8374         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8375         function.
8376
8377         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8378         V2DF, V2DI support to load/store overloaded builtins.
8379
8380         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8381         altivec load/store builtins for V2DF/V2DI types.
8382
8383         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8384         set avoid indexed addresses on power6 if -maltivec.
8385         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8386         vector_altivec_load/vector_altivec_store builtins.
8387         (altivec_expand_st_builtin): Ditto.
8388         (altivec_expand_builtin): Add VSX memory builtins.
8389         (rs6000_init_builtins): Add V2DI types to internal types.
8390         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8391         load/store builtins.
8392         (rs6000_address_for_altivec): Insure memory address is appropriate
8393         for Altivec.
8394
8395         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8396         vec_vsx_ld and vec_vsx_st.
8397         (vsx_store_<mode>): Ditto.
8398
8399         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8400         variables to hold long long types for VSX vector memory builtins.
8401         (RS6000_BTI_unsigned_long_long): Ditto.
8402         (long_long_integer_type_internal_node): Ditti.
8403         (long_long_unsigned_type_internal_node): Ditti.
8404
8405         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8406         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8407         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8408
8409         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8410         short cuts.
8411         (vec_vsx_st): Ditto.
8412
8413 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8414
8415         * config/pa/pa-hpux10.opt: New.
8416         * config/hpux11.opt (pthread): New Driver option.
8417         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8418         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8419
8420 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8421
8422         * config/ia64/vms.opt: New.
8423         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8424
8425 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8426
8427         PR target/47580
8428         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8429         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8430         generator functions.
8431         (vsx_floatuns<VSi><mode>2): Ditto.
8432         (vsx_fix_trunc<mode><VSi>2): Ditto.
8433         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8434
8435 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8436
8437         * config/i386/djgpp.opt (posix): New Driver option.
8438
8439 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8440
8441         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8442         Move to the unsupported targets list.
8443
8444 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8445
8446         PR rtl-optimization/47525
8447         * df-scan.c: Update copyright years.
8448         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8449         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8450
8451 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8452
8453         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8454         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8455         (ASM_OUTPUT_ASCII): Remove.
8456         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8457
8458 2011-02-02  Jeff Law  <law@redhat.com>
8459
8460         PR middle-end/47543
8461         * reload.c (find_reloads_address): Handle reg+d address where both
8462         components are invalid by reloading the entire address.
8463
8464 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8465             Richard Guenther  <rguenther@suse.de>
8466
8467         PR tree-optimization/40979
8468         PR bootstrap/47044
8469         * passes.c (init_optimization_passes): After LIM call copy_prop
8470         and DCE to clean up.
8471         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8472
8473 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8474
8475         PR tree-optimization/47576
8476         PR tree-optimization/47555
8477         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8478         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8479         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8480         * tree-scalar-evolution.c (follow_ssa_edge): Use
8481         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8482
8483 2011-02-02  Richard Guenther  <rguenther@suse.de>
8484
8485         PR tree-optimization/47566
8486         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8487
8488 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8489
8490         PR debug/47106
8491         PR debug/47402
8492         * tree-inline.c (declare_return_variable): Remove unused caller
8493         variable.
8494
8495         PR debug/47106
8496         PR debug/47402
8497         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8498         * cfgexpand.c (account_used_vars_for_block): Use them.
8499         * tree-nrv.c (tree_nrv): Likewise.
8500         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8501         (dump_scope_block): Likewise.
8502         (remove_unused_locals): Likewise.
8503
8504         PR debug/47106
8505         PR debug/47402
8506         * tree-inline.c (declare_return_variable): Add result decl to
8507         local decls only once.
8508         * gimple-low.c (record_vars_into): Mark newly-created variables
8509         as referenced.
8510
8511 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8512
8513         PR debug/47498
8514         PR debug/47501
8515         PR debug/45136
8516         PR debug/45130
8517         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8518         debug insns.
8519         (no_real_insns_p, schedule_block, set_priorities): Drop special
8520         treatment of boundary debug insns.
8521         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8522         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8523         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8524         (BOUNDARY_DEBUG_INSN_P): Likewise.
8525         (SCHEDULE_DEBUG_INSN_P): Likewise.
8526         * sched-rgn.c (init_ready_list): Drop special treatment of
8527         boundary debug insns.
8528         * final.c (rest_of_clean_state): Clear notes' BB.
8529
8530 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8531
8532         * config/openbsd.opt (assert=): New Driver option.
8533
8534 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8535
8536         * config/i386/nto.opt: New.
8537         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8538
8539 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8540
8541         * config/i386/netware.opt: New.
8542         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8543
8544 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8545
8546         * config/interix.opt (posix): New Driver option.
8547
8548 2011-02-01  DJ Delorie  <dj@redhat.com>
8549
8550         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8551
8552         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8553         class for A0/A1.
8554
8555 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8556
8557         PR tree-optimization/47561
8558         * toplev.c (process_options): Print the Graphite flags.  Add
8559         flag_loop_flatten to the list of options requiring Graphite.
8560
8561 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8562
8563         * config/i386/cygming.opt (posix): New Driver option.
8564
8565 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8566
8567         * config/arm/vxworks.opt: New.
8568         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8569
8570 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8571
8572         * config/alpha/elf.opt: New.
8573         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8574         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8575
8576 2011-02-01  Richard Guenther  <rguenther@suse.de>
8577
8578         PR tree-optimization/47559
8579         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8580         store-motion on references that can throw.
8581
8582 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8583
8584         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8585         * tree-pass.h (TDF_CSELIB): New macro.
8586         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8587         cselib_lookup): Check for it rather than for TDF_DETAILS.
8588
8589 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8590
8591         PR driver/47547
8592         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8593         is HOST_BIT_BUCKET.
8594
8595         * opts.c (finish_options): Don't add x_aux_base_name if it is
8596         HOST_BIT_BUCKET.
8597
8598 2011-02-01  Richard Guenther  <rguenther@suse.de>
8599
8600         PR tree-optimization/47555
8601         Revert
8602         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8603
8604         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8605
8606 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8607
8608         PR gcc/46692
8609         * config/lm32/t-lm32: Add multilib for all CPU options.
8610
8611 2011-02-01  Richard Guenther  <rguenther@suse.de>
8612
8613         PR tree-optimization/47541
8614         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8615         sure to have a field at offset zero.
8616
8617 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8618
8619         * config/arc/arc.opt (EB, EL): New Driver options.
8620
8621 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8622
8623         * config/alpha/osf5.opt: New.
8624         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8625
8626 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8627
8628         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8629
8630 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8631
8632         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8633         -floop-interchange.
8634         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8635         is an alias of -floop-interchange and that it requires the
8636         Graphite infrastructure.
8637         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8638         flag_loop_interchange based on the value of flag_tree_loop_linear.
8639
8640 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8641             Richard Guenther  <rguenther@suse.de>
8642
8643         PR tree-optimization/47538
8644         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8645         type instead of r1type, except for comparisons.  For right
8646         shifts and comparisons punt if there are mismatches in
8647         sizetype vs. non-sizetype types.
8648
8649 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8650
8651         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8652         avx_runtime.
8653
8654 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8655
8656         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8657         version number.
8658         * configure: Regenerate.
8659
8660 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8661
8662         * configure.ac (gcc_cv_ld_static_option): Define.
8663         (gcc_cv_ld_dynamic_option): Define.
8664         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8665         instead.
8666         (HAVE_LD_STATIC_DYNAMIC): Update message.
8667         (LD_STATIC_OPTION): Define.
8668         (LD_DYNAMIC_OPTION): Define.
8669         * configure: Regenerate.
8670         * config.in: Regenerate.
8671         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8672         HAVE_LD_STATIC_DYNAMIC]: Use them.
8673
8674 2011-01-31  Nick Clifton  <nickc@redhat.com>
8675
8676         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8677         registers inside interrupt handlers if the handler is not a leaf
8678         function.
8679
8680 2011-01-31  Nick Clifton  <nickc@redhat.com>
8681
8682         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8683         reg_renumber returning an INVALID_REGNUM.
8684
8685 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8686
8687         PR libgcj/44341
8688         * doc/install.texi: Document host options discarded when cross
8689         configuring target libraries.
8690
8691 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8692
8693         Reverted:
8694         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8695         PR debug/45136
8696         PR debug/45130
8697         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8698         debug insns.
8699         (no_real_insns_p, schedule_block, set_priorities): Drop special
8700         treatment of boundary debug insns.
8701         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8702         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8703         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8704         (BOUNDARY_DEBUG_INSN_P): Likewise.
8705         (SCHEDULE_DEBUG_INSN_P): Likewise.
8706         * sched-rgn.c (init_ready_list): Drop special treatment of
8707         boundary debug insns.
8708         * final.c (rest_of_clean-state): Clear notes' BB.
8709
8710 2011-01-31  Alan Modra  <amodra@gmail.com>
8711
8712         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8713         toc relative expressions as we do in print_operand_address.
8714
8715 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8716
8717         * doc/extend.texi: Follow spelling conventions.
8718         * doc/invoke.texi: Fix a typo.
8719
8720 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8721
8722         * config/hpux11.opt: New.
8723         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8724         ia64*-*-hpux*): Use hpux11.opt.
8725
8726 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8727
8728         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8729         to tmake_file.
8730
8731 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8732
8733         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8734         support sites.
8735
8736 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8737
8738         * doc/install.texi (Binaries): Remove outdated reference for
8739         Motorola 68HC11/68HC12 downloads.
8740
8741 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8742
8743         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8744         Drepper's paper.
8745
8746 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8747
8748         PR bootstrap/47147
8749         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8750         used by NetBSD.
8751
8752 2011-01-28  Ahmad Sharif  <asharif@google.com>
8753
8754         * value-prof.c (check_counter): Corrected error message.
8755
8756 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8757
8758         * config/arm/arm.c (arm_legitimize_reload_address): New.
8759         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8760         arm_legitimize_reload_address.
8761         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8762
8763 2011-01-28  Ian Lance Taylor  <iant@google.com>
8764
8765         * godump.c (go_define): Ignore macros whose definitions include
8766         two adjacent operands.
8767
8768 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8769
8770         PR target/42894
8771         * varasm.c (force_const_mem): Store copy of x in desc->constant
8772         instead of x itself.
8773         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8774         itself into REG_EQUAL note.
8775
8776 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8777
8778         * config/freebsd.opt (posix, rdynamic): New Driver options.
8779
8780 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8781
8782         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8783         -Bstatic/-Bdynamic.
8784         * configure: Regenerate.
8785
8786 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8787
8788         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8789         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8790
8791 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8792
8793         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8794         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8795         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8796         (s390_preferred_reload_class): Make static. Change return and
8797         'rclass' argument type to reg_class_t.
8798
8799 2011-01-27  Jan Hubicka  <jh@suse.cz>
8800
8801         PR middle-end/46949
8802         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8803         (process_function_and_variable_attributes): Check defined weakrefs.
8804
8805 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8806
8807         PR tree-optimization/47228
8808         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8809         build_ref_for_offset.
8810
8811 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8812
8813         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8814
8815 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8816
8817         PR rtl-optimization/46856
8818         * postreload.c (reload_combine_recognize_const_pattern): Do not
8819         separate cc0 setter and user on cc0 targets.
8820
8821 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8822
8823         PR c/43082
8824         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8825         passed a VOID_TYPE expression, immediately emit an error and
8826         return error_mark_node.
8827
8828 2011-01-26  Jeff Law  <law@redhat.com>
8829
8830         PR rtl-optimization/47464
8831         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8832         rather than may_trap_p as needed.
8833
8834 2011-01-26  DJ Delorie  <dj@redhat.com>
8835
8836         PR rtl-optimization/46878
8837         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8838         setter/user dependency as well.
8839
8840 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8841
8842         PR rtl-optimization/44469
8843         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8844         after removing trivially dead basic blocks.
8845
8846 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8847
8848         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8849         * config/frv/frv.h (LINK_SPEC): Likewise.
8850         * config/i386/netware.h (LINK_SPEC): Likewise.
8851         * config/m68k/linux.h (ASM_SPEC): Likewise.
8852         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8853         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8854         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8855         * config/sparc/linux.h (ASM_SPEC): Likewise.
8856         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8857         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8858
8859 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8860
8861         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8862         * config/frv/frv.h (ASM_SPEC): Likewise.
8863         * config/m68k/linux.h (ASM_SPEC): Likewise.
8864         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8865         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8866         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8867         * config/sparc/linux.h (ASM_SPEC): Likewise.
8868         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8869         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8870
8871 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8872
8873         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8874         * config/frv/frv.h (LINK_SPEC): Likewise.
8875         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8876
8877 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8878
8879         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8880         * config/frv/frv.h (ASM_SPEC): Likewise.
8881         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8882         * config/m68k/linux.h (ASM_SPEC): Likewise.
8883         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8884         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8885         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8886         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8887         * config/sparc/linux.h (ASM_SPEC): Likewise.
8888         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8889         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8890         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8891
8892 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8893
8894         PR target/46997
8895         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8896         (*mux2): Ditto.
8897         (vec_extract_evenodd_help): Ditto.
8898         (vec_extract_evenv4hi): Ditto.
8899         (vec_extract_oddv4hi): Ditto.
8900         (vec_interleave_lowv2si): Ditto.
8901         (vec_interleave_highv2si): Ditto.
8902         (vec_extract_evenv2si): Ditto.
8903         (vec_extract_oddv2si: Ditto.
8904         (vec_pack_trunc_v2si): Ditto.
8905
8906 2011-01-22  Jan Hubicka  <jh@suse.cz>
8907
8908         PR target/47237
8909         * cgraph.h (cgraph_local_info): New field can_change_signature.
8910         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8911         signature can change.
8912         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8913         can change.
8914         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8915         (cgraph_function_versioning): We can not change signature of functions
8916         that don't allow that.
8917         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8918         (lto_input_node): Likewise.
8919         * ipa-inline.c (compute_inline_parameters): Compute
8920         local.can_change_signature.
8921         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8922         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8923         functions that can not change signature.
8924         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8925         init_cumulative_args): Do not use local calling conventions
8926         for functions that can not change signature.
8927
8928 2011-01-22  Jan Hubicka  <jh@suse.cz>
8929
8930         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8931
8932 2011-01-26  Richard Guenther  <rguenther@suse.de>
8933
8934         PR tree-optimization/47190
8935         * cgraphunit.c (process_common_attributes): New function.
8936         (process_function_and_variable_attributes): Use it.
8937
8938 2011-01-26  Richard Guenther  <rguenther@suse.de>
8939
8940         PR lto/47423
8941         * cgraphbuild.c (record_eh_tables): Record reference to personality
8942         function.
8943
8944 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8945
8946         PR debug/45454
8947         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8948         non-debug insns from moving up.
8949
8950 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8951
8952         PR target/40125
8953         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8954         t-dlldir{,-x} fragment for build and add it to tmake_file.
8955         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8956         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8957         * config/i386/t-dlldir: New file.
8958         (SHLIB_DLLDIR): Define.
8959         * config/i386/t-dlldir-x: New file.
8960         (SHLIB_DLLDIR): Define.
8961         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8962         (SHLIB_INSTALL): Use it.
8963
8964 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8965
8966         PR target/47246
8967         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8968         lower bound of the allowed Thumb-2 coprocessor load/store
8969         index range to -256. Add explaining comment.
8970
8971 2011-01-25  Ian Lance Taylor  <iant@google.com>
8972
8973         * godump.c (go_define): Improve lexing of macro expansion to only
8974         accept expressions which match Go spec.
8975
8976 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8977
8978         PR c++/43601
8979         * tree.c (handle_dll_attribute): Handle it.
8980         * doc/extend.texi (@item dllexport): Mention it.
8981         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8982
8983 2011-01-25  Ian Lance Taylor  <iant@google.com>
8984
8985         PR tree-optimization/26854
8986         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8987         (decl_jump_unsafe): Move higher in file, with no other change.
8988         (bind): Set has_jump_unsafe_decl if appropriate.
8989         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8990         (check_earlier_gotos): Likewise.
8991         (c_check_switch_jump_warnings): Likewise.
8992
8993 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8994
8995         * doc/invoke.texi (Warning Options): Add missing hyphen.
8996         (-fprofile-dir): Minor grammatical fixes.
8997         (-fbranch-probabilities): Likewise.
8998
8999 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9000
9001         PR debug/45136
9002         PR debug/45130
9003         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9004         debug insns.
9005         (no_real_insns_p, schedule_block, set_priorities): Drop special
9006         treatment of boundary debug insns.
9007         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9008         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9009         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9010         (BOUNDARY_DEBUG_INSN_P): Likewise.
9011         (SCHEDULE_DEBUG_INSN_P): Likewise.
9012         * sched-rgn.c (init_ready_list): Drop special treatment of
9013         boundary debug insns.
9014         * final.c (rest_of_clean-state): Clear notes' BB.
9015
9016 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9017
9018         * Makefile.in (LAMBDA_H): Removed.
9019         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9020         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9021         lambda-trans.o, and tree-loop-linear.o.
9022         (lto-symtab.o): Remove dependence on LAMBDA_H.
9023         (tree-loop-linear.o): Remove rule.
9024         (lambda-mat.o): Same.
9025         (lambda-trans.o): Same.
9026         (lambda-code.o): Same.
9027         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9028         (tree-vect-slp.o): Same.
9029         * hwint.h (gcd): Moved here.
9030         (least_common_multiple): Same.
9031         * lambda-code.c: Removed.
9032         * lambda-mat.c: Removed.
9033         * lambda-trans.c: Removed.
9034         * lambda.h: Removed.
9035         * tree-loop-linear.c: Removed.
9036         * lto-symtab.c: Do not include lambda.h.
9037         * omega.c (gcd): Removed.
9038         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9039         * tree-data-ref.c (print_lambda_vector): Moved here.
9040         (lambda_vector_copy): Same.
9041         (lambda_matrix_copy): Same.
9042         (lambda_matrix_id): Same.
9043         (lambda_vector_first_nz): Same.
9044         (lambda_matrix_row_add): Same.
9045         (lambda_matrix_row_exchange): Same.
9046         (lambda_vector_mult_const): Same.
9047         (lambda_vector_negate): Same.
9048         (lambda_matrix_row_negate): Same.
9049         (lambda_vector_equal): Same.
9050         (lambda_matrix_right_hermite): Same.
9051         * tree-data-ref.h: Do not include lambda.h.
9052         (lambda_vector): Moved here.
9053         (lambda_matrix): Same.
9054         (dependence_level): Same.
9055         (lambda_transform_legal_p): Removed declaration.
9056         (lambda_collect_parameters): Same.
9057         (lambda_compute_access_matrices): Same.
9058         (lambda_vector_gcd): Same.
9059         (lambda_vector_new): Same.
9060         (lambda_vector_clear): Same.
9061         (lambda_vector_lexico_pos): Same.
9062         (lambda_vector_zerop): Same.
9063         (lambda_matrix_new): Same.
9064         * tree-flow.h (least_common_multiple): Removed declaration.
9065         * tree-parloops.c (lambda_trans_matrix): Moved here.
9066         (LTM_MATRIX): Same.
9067         (LTM_ROWSIZE): Same.
9068         (LTM_COLSIZE): Same.
9069         (LTM_DENOMINATOR): Same.
9070         (lambda_trans_matrix_new): Same.
9071         (lambda_matrix_vector_mult): Same.
9072         (lambda_transform_legal_p): Same.
9073         * tree-pass.h (pass_linear_transform): Removed declaration.
9074         * tree-ssa-loop.c (tree_linear_transform): Removed.
9075         (gate_tree_linear_transform): Removed.
9076         (pass_linear_transform): Removed.
9077         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9078         flag_loop_interchange.
9079
9080 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9081
9082         PR tree-optimization/47265
9083         PR tree-optimization/47443
9084         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9085         if name still has some uses.
9086
9087 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9088
9089         PR tree-optimization/47382
9090         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9091         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9092
9093 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9094
9095         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9096         sjlj_except_unwind_info.
9097
9098 2011-01-25  Richard Guenther  <rguenther@suse.de>
9099
9100         PR tree-optimization/47426
9101         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9102         visible functions results escape.
9103
9104 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9105
9106         PR target/45701
9107         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9108         (arm_get_frame_offsets): Use it.
9109
9110 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9111             Jakub Jelinek  <jakub@redhat.com>
9112
9113         PR tree-optimization/47271
9114         * tree-if-conv.c (bb_postdominates_preds): New.
9115         (if_convertible_bb_p): Call bb_postdominates_preds.
9116         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9117         (predicate_scalar_phi): Call bb_postdominates_preds.
9118
9119 2011-01-25  Nick Clifton  <nickc@redhat.com>
9120
9121         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9122         * config/rx/rx.c (rx_function_value): Likewise.
9123         (rx_promote_function_mode): Likewise.
9124         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9125         in order to make it legitimate.
9126         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9127         make sure that the first operand is the same as the result register.
9128         (addsi3_unspec): Delete.
9129         (subdi3): Do not accept immediate operands.
9130         (subdi3_internal): Likewise.
9131
9132 2011-01-25  Jeff Law  <law@redhat.com>
9133
9134         PR rtl-optimization/37273
9135         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9136         handle them like argument loads from stack slots.  Do not double
9137         count memory for memory constants and argument loads from stack slots.
9138
9139 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9140
9141         PR tree-optimization/47427
9142         PR tree-optimization/47428
9143         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9144         coalesce if the new root var would be TREE_READONLY.
9145
9146 2011-01-25  Richard Guenther  <rguenther@suse.de>
9147
9148         PR middle-end/47414
9149         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9150         correct type for TBAA.
9151
9152 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9153
9154         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9155         (close_phi_written_to_memory): Call for_each_index with
9156         dr_indices_valid_in_loop.
9157
9158 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9159
9160         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9161         when it is initialized.
9162
9163 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9164
9165         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9166         call to graphite_find_data_references_in_stmt.
9167         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9168         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9169         call to graphite_find_data_references_in_stmt.
9170         (analyze_drs_in_stmts): Same.
9171         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9172         in which the scalar analysis of indices is performed.
9173         (create_data_ref): Same.  Update call to dr_analyze_indices.
9174         (find_data_references_in_stmt): Update call to create_data_ref.
9175         (graphite_find_data_references_in_stmt): Same.
9176         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9177         declaration.
9178         (create_data_ref): Same.
9179         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9180         call to create_data_ref.
9181
9182 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9183
9184         * graphite-sese-to-poly.c (build_poly_scop): Move
9185         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9186
9187 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9188
9189         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9190         VAR_DECL, PARM_DECL, and RESULT_DECL.
9191
9192 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9193
9194         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9195         in a reduction PBB.
9196         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9197         that have already been marked as PBB_IS_REDUCTION.
9198
9199 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9200
9201         * graphite-scop-detection.c (same_close_phi_node): New.
9202         (remove_duplicate_close_phi): New.
9203         (make_close_phi_nodes_unique): New.
9204         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9205
9206 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9207
9208         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9209         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9210         of both data references to be the same.
9211
9212 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9213
9214         * graphite-dependences.c (build_lexicographical_constraint): Remove
9215         the gdim parameter.
9216         (build_lexicographical_constraint): Adjust call to
9217         ppl_powerset_is_empty.
9218         (dependence_polyhedron): Same.
9219         (graphite_legal_transform_dr): Same.
9220         (graphite_carried_dependence_level_k): Same.
9221         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9222         parameter.
9223         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9224
9225 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9226
9227         * graphite-sese-to-poly.c
9228         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9229         (close_phi_written_to_memory): New.
9230         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9231         and unshare_expr.
9232
9233 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9234
9235         * doc/install.texi: Update the expected version number of PPL to 0.11.
9236         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9237         #if PPL_VERSION_MINOR < 11.
9238
9239 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9240
9241         * graphite-dependences.c: Include graphite-cloog-util.h.
9242         (new_poly_ddr): Inlined into dependence_polyhedron.
9243         (free_poly_ddr): Moved close by new_poly_ddr.
9244         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9245         Early return NULL when ppl_powerset_is_empty returns true.
9246         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9247         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9248         (graphite_legal_transform_dr): Call new_poly_ddr.
9249         (graphite_carried_dependence_level_k): Same.
9250         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9251         (dot_transformed_deps_stmt_1): Removed.
9252         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9253         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9254         (dot_deps_1): Call dot_deps_2.
9255         * Makefile.in (graphite-dependences.o): Add missing dependence on
9256         graphite-cloog-util.h.
9257
9258 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9259
9260         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9261         (build_lexicographical_constraint): Same.
9262         (dependence_polyhedron_1): Same.
9263         (graphite_legal_transform_dr): Same.
9264         (graphite_carried_dependence_level_k): Same.
9265         * graphite-ppl.c (ppl_powerset_is_empty): New.
9266         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9267         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9268
9269 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9270
9271         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9272         the "a followed by b" relation and document it.
9273
9274 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9275
9276         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9277         iteration when the bag of constraints is empty.
9278
9279 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9280
9281         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9282
9283 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9284
9285         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9286         nest and two loop depths as parameters.
9287         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9288         lst_perfect_nestify.
9289
9290 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9291
9292         * graphite-dependences.c (print_pddr): Call
9293         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9294
9295 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9296
9297         * graphite-ppl.c (debug_gmp_value): New.
9298         * graphite-ppl.h (debug_gmp_value): Declared.
9299
9300 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9301
9302         * doc/install.texi: Document availability of cloog-0.16.
9303
9304 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9305
9306         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9307         invalid postdominance info.
9308
9309 2011-01-24  Jan Hubicka  <jh@suse.cz>
9310
9311         PR c/21659
9312         * doc/extend.texi (weak pragma): Drop claim that it must
9313         appear before definition.
9314         * varasm.c (merge_weak, declare_weak): Only sanity check
9315         that DECL is not output at a time it is declared weak.
9316
9317 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9318
9319         * machmode.def: Fixed comments.
9320
9321 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9322
9323         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9324
9325 2011-01-24  Paul Koning  <ni1d@arrl.net>
9326
9327         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9328         WORDS_BIG_ENDIAN.
9329
9330 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9331
9332         PR target/46519
9333         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9334         (block_info): Add scanned and prev.
9335         (move_or_delete_vzeroupper_2): Return if the basic block
9336         has been scanned and the upper 128bit state is unchanged
9337         from the last scan.
9338         (move_or_delete_vzeroupper_1): Return true if the exit
9339         state is changed.
9340         (move_or_delete_vzeroupper): Visit basic blocks using the
9341         work-list based algorithm based on vt_find_locations in
9342         var-tracking.c.
9343
9344         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9345
9346 2011-01-24  Nick Clifton  <nickc@redhat.com>
9347
9348         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9349         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9350         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9351         then define __v850e1__.
9352         * doc/invoke.texi: Document -mv850es.
9353
9354 2011-01-24  Richard Henderson  <rth@redhat.com>
9355
9356         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9357         compound unordered comparisons.
9358         * config/rx/rx.c (rx_split_fp_compare): Remove.
9359         * config/rx/rx-protos.h: Update.
9360         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9361         (cbranchsf4): Don't call rx_split_fp_compare.
9362         (*cbranchsf4): Use rx_split_cbranch.
9363         (*cmpsf): Don't accept "i" constraint.
9364         (*conditional_branch): Only valid after reload.
9365         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9366
9367 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9368
9369         PR target/47385
9370         * config/rs6000/altivec.md (vector constant splitters): Add
9371         support for creating vector single precision constants if -mvsx is
9372         used and we would create the constant using Altivec primitives.
9373
9374 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9375             Richard Sandiford  <rdsandiford@googlemail.com>
9376
9377         PR rtl-optimization/47166
9378         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9379         mechanism for PRE_MODIFY and POST_MODIFY.
9380         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9381         reloadreg.
9382
9383 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9384
9385         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9386
9387 2011-01-22  Jan Hubicka  <jh@suse.cz>
9388
9389         PR lto/47333
9390         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9391
9392 2011-01-22  Jan Hubicka  <jh@suse.cz>
9393
9394         PR tree-optimization/43884
9395         PR lto/44334
9396         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9397         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9398
9399 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9400
9401         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9402         * config/s390/s390.c (s390_register_move_cost,
9403         s390_memory_move_cost): New.
9404         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9405
9406 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9407
9408         PR middle-end/47401
9409         * except.c (sjlj_assign_call_site_values): Move setting the
9410         crtl->uses_eh_lsda flag to ...
9411         (sjlj_mark_call_sites): ... here.
9412         (sjlj_emit_function_enter): Support NULL dispatch label.
9413         (sjlj_build_landing_pads): In a function with no landing pads
9414         that still has must-not-throw regions, generate code to register
9415         a personality function with empty LSDA.
9416
9417 2011-01-21  Richard Henderson  <rth@redhat.com>
9418
9419         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9420
9421         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9422
9423         * compare-elim.c: New file.
9424         * Makefile.in (OBJS-common): Add it.
9425         (compare-elim.o): New.
9426         * common.opt (fcompare-elim): New.
9427         * opts.c (default_options_table): Add OPT_fcompare_elim.
9428         * tree-pass.h (pass_compare_elim_after_reload): New.
9429         * passes.c (init_optimization_passes): Add it.
9430         * recog.h: Protect against re-inclusion.
9431         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9432         * doc/invoke.texi (-fcompare-elim): Document it.
9433         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9434         * doc/tm.texi: Rebuild.
9435
9436 2011-01-22  Nick Clifton  <nickc@redhat.com>
9437
9438         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9439         rx_split_fp_compare.
9440
9441 2011-01-22  Nick Clifton  <nickc@redhat.com>
9442
9443         * config/rx/rx.md (UNSPEC_CONST): New.
9444         (deallocate_and_return): Wrap the amount popped off the stack in
9445         an UNSPEC_CONST in order to stop it being rejected by
9446         -mmax-constant-size.
9447         (pop_and_return): Add a "(return)" rtx.
9448         (call): Drop the immediate operand.
9449         (call_internal): Likewise.
9450         (call_value): Likewise.
9451         (call_value_internal): Likewise.
9452         (sibcall_internal): Likewise.
9453         (sibcall_value_internal): Likewise.
9454         (sibcall): Likewise.  Generate an explicit call using
9455         sibcall_internal.
9456         (sibcall_value): Likewise.
9457         (mov<>): FAIL if a constant operand is not legitimate.
9458         (addsi3_unpsec): New pattern.
9459
9460         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9461         (ok_for_max_constant): New function.
9462         (gen_safe_add): New function.
9463         (rx_expand_prologue): Use gen_safe_add.
9464         (rx_expand_epilogue): Likewise.
9465         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9466         UNSPEC CONSTs.
9467
9468 2011-01-21  Jeff Law  <law@redhat.com>
9469
9470         PR tree-optimization/47053
9471         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9472         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9473         statements are deleted.
9474         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9475         is nonempty, then purge dead edges and cleanup the CFG.
9476
9477 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9478
9479         PR debug/47402
9480         Temporarily revert:
9481         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9482         PR debug/47106
9483         * tree-dfa.c (create_var_ann): Mark variable as used.
9484
9485 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9486
9487         PR middle-end/45566
9488         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9489         notes from other section in hot/cold partitioning even if
9490         last_action is -3.  Increment call_site_base.
9491
9492         PR rtl-optimization/47366
9493         * fwprop.c (forward_propagate_into): Return bool.  If
9494         any changes are made, -fnon-call-exceptions is used and
9495         REG_EH_REGION note is present, call purge_dead_edges
9496         and return true if it purged anything.
9497         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9498         any EH edges were purged.
9499
9500 2011-01-21  Jeff Law  <law@redhat.com>
9501
9502         PR rtl-optimization/41619
9503         * caller-save.c (setup_save_areas): Break out code to determine
9504         which hard regs are live across calls by examining the reload chains
9505         so that it is always used.
9506         Eliminate code which checked REG_N_CALLS_CROSSED.
9507
9508 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9509
9510         PR tree-optimization/47355
9511         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9512         NOP has non-debug uses beyond PHIs in new_bb.
9513
9514 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9515
9516         PR debug/47106
9517         * cfgexpand.c (account_used_vars_for_block): Only account vars
9518         that are annotated as used.
9519         (estimated_stack_frame_size): Don't set TREE_USED.
9520         * tree-dfa.c (create_var_ann): Mark variable as used.
9521
9522 2011-01-21  Richard Guenther  <rguenther@suse.de>
9523
9524         PR middle-end/47395
9525         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9526
9527 2011-01-21  Richard Guenther  <rguenther@suse.de>
9528
9529         PR tree-optimization/47365
9530         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9531         (vn_reference_lookup_pieces): Adjust.
9532         (vn_reference_lookup): Likewise.
9533         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9534         (vn_reference_lookup_3): Only look through kills if in
9535         VN_WALKREWRITE mode.
9536         (vn_reference_lookup_pieces): Adjust.
9537         (vn_reference_lookup): Likewise.
9538         (visit_reference_op_load): Likewise.
9539         (visit_reference_op_store): Likewise.
9540         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9541         (compute_avail): Likewise.
9542         (eliminate): Likewise.
9543
9544 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9545
9546         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9547         DECL_IGNORED_P non-reg vars if they are used.
9548
9549         PR tree-optimization/47391
9550         * varpool.c (const_value_known_p): Return false if
9551         decl is volatile.
9552
9553 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9554
9555         PR bootstrap/47215
9556         * config/i386/i386.c (ix86_local_alignment): Handle
9557         case for va_list_type_node is nil.
9558         (ix86_canonical_va_list_type): Likewise.
9559
9560 2011-01-21  Alan Modra  <amodra@gmail.com>
9561
9562         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9563         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9564
9565 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9566
9567         * config/arm/arm.md (define_attr type): Rename f_load
9568         and f_store to f_fpa_load and f_fpa_store. Update.
9569         (write_conflict): Deal with rename fallout.
9570         (*push_fp_multi): Likewise.
9571         * config/arm/fpa.md (f_load): Use f_fpa_load.
9572         (f_store): Use f_fpa_store.
9573         (*movsf_fpa): Likewise.
9574         (*movdf_fpa): Likewise.
9575         (*movxf_fpa): Likewise.
9576         (*thumb2_movsf_fpa): Likewise.
9577         (*thumb2_movdf_fpa): Likewise.
9578         (*thumb2_movxf_fpa): Likewise.
9579         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9580         f_loadd and f_stored.
9581         (*thumb2_movdi_vfp): Likewise.
9582         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9583         (*thumb2_movsi_vfp): Likewise.
9584         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9585         Use f_loads instead of f_load.
9586         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9587
9588 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9589
9590         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9591         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9592         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9593         (xtensa_mode_dependent_address_p): New function.
9594         (constantpool_address_p): Make static. Change return type to bool.
9595         Change argument type to const_rtx. Use CONST_INT_P predicate.
9596
9597 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9598
9599         PR debug/46583
9600         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9601
9602 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9603
9604         PR debug/47283
9605         * cfgexpand.c (expand_debug_expr): Instead of generating
9606         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9607         etc. handling.
9608
9609 2011-01-20  Richard Guenther  <rguenther@suse.de>
9610
9611         PR middle-end/47370
9612         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9613         the pointer operand of MEM_REFs.
9614
9615 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9616
9617         PR tree-optimization/46130
9618         * ipa-split.c (consider_split): If return_bb contains non-virtual
9619         PHIs other than for retval or if split_function would not adjust it,
9620         refuse to split.
9621
9622 2011-01-20  Richard Guenther  <rguenther@suse.de>
9623
9624         PR tree-optimization/47167
9625         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9626         Revert previous change, only avoid enumeral type changes.
9627
9628 2011-01-19  Mike Stump  <mikestump@comcast.net>
9629
9630         * doc/tm.texi.in (BRANCH_COST): Englishify.
9631         * doc/tm.texi (BRANCH_COST): Likewise.
9632
9633 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9634
9635         PR c++/47291
9636         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9637         (gen_scheduled_generic_parms_dies): New functions.
9638         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9639         generation for the end of CU compilation.
9640         (dwarf2out_finish): Generate template parameters DIEs here.
9641
9642 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9643
9644         PR debug/46240
9645         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9646         debug bind stmt on merge edges.
9647
9648 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9649
9650         PR debug/47079
9651         PR debug/46724
9652         * function.c (instantiate_expr): Instantiate incoming rtl of
9653         implicit arguments, and recurse on VALUE_EXPRs.
9654         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9655         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9656
9657 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9658
9659         * c-parser.c (c_parser_for_statement): Initialize
9660         collection_expression.
9661
9662 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9663
9664         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9665
9666 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9667
9668         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9669         (LINK_SHLIB_SPEC): Don't use %(link_path).
9670         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9671
9672 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9673
9674         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9675         (NO_SHARED_LIB_SUPPORT): Remove.
9676         (LINK_SHLIB_SPEC): Remove one conditional definition.
9677
9678 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9679
9680         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9681         %{call_shared}.
9682         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9683         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9684         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9685         %{call_shared} and conditionals on these options not being passed.
9686         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9687         %{call_shared}.
9688
9689 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9690
9691         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9692         simplify.
9693
9694         * ipa-split.c: Spelling fixes.
9695
9696 2011-01-19  Richard Henderson  <rth@redhat.com>
9697
9698         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9699         (*mulsi3): Likewise.
9700
9701         * longlong.h [__mn10300__] (count_leading_zeros): New.
9702         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9703         [__mn10300__] (add_ssaaaa, subddmmss): New.
9704         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9705         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9706
9707 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9708
9709         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9710
9711 2011-01-19  Richard Henderson  <rth@redhat.com>
9712
9713         * config/mn10300/mn10300.md (addsi3_flags): New.
9714         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9715         (subsi3_flags, subc_internal, subdi3): New.
9716         (subdi3_internal, *subdi3_degenerate): New.
9717         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9718
9719         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9720         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9721         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9722         * config/mn10300/mn10300-protos.h: Update.
9723         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9724         (return_ret): Likewise.  Rename from return_internal_regs.
9725         (return_internal): Remove.
9726
9727         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9728         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9729         (mn10300_legitimate_constant_p): Likewise.
9730         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9731         (mn10300_frame_size): New.
9732         (mn10300_expand_prologue): Use it.
9733         (mn10300_expand_epilogue): Likewise.
9734         (mn10300_initial_offset): Likewise.
9735         * config/mn10300/mn10300-protos.h: Update.
9736         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9737         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9738         (prologue, epilogue, return_internal): Tidy output code.
9739         (mn10300_store_multiple_operation, return): Likewise.
9740         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9741         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9742         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9743         (load_pic, am33_load_pic): New.
9744         (mn10300_load_pic0, mn10300_load_pic1): New.
9745
9746         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9747         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9748         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9749         (cc_flags_for_mode, cc_flags_for_code): New.
9750         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9751         overflow flag is not valid.  Validate that the flags we need
9752         for the comparison are valid.
9753         (mn10300_output_cmp): Remove.
9754         (mn10300_output_add): New.
9755         (mn10300_select_cc_mode): Use cc_flags_for_code.
9756         (mn10300_split_cbranch): New.
9757         (mn10300_match_ccmode): New.
9758         (mn10300_split_and_operand_count): New.
9759         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9760         to the function.
9761         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9762         (addsi3): ... here.  Use mn10300_output_add.
9763         (*addsi3_flags): New.
9764         (*am33_subsi3, *mn10300_subsi3): Merge...
9765         (subsi3): ... here.  Use attribute isa.
9766         (*subsi3_flags): New.
9767         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9768         when possible.
9769         (*am33_andsi3, *mn10300_andsi3): Merge...
9770         (andsi3): ... here.
9771         (*andsi3_flags): New.
9772         (andsi3 splitters): New.
9773         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9774         (iorsi3): ... here.
9775         (*iorsi3_flags): New.
9776         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9777         (xorsi3): ... here.
9778         (*xorsi3_flags): New.
9779         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9780         (one_cmplsi2): ... here.
9781         (*one_cmplsi2_flags): New.
9782         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9783         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9784         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9785         use matching constraints to eliminate a self-comparison.
9786         (*integer_conditional_branch): Rename from integer_conditional_branch.
9787         Use int_mode_flags to match CC_REG.
9788         (*cbranchsi4_btst, *btstsi): New.
9789         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9790         mn10300_split_cbranch.
9791         (*am33_cmpsf): Rename from am33_cmpsf.
9792         (*float_conditional_branch): Rename from float_conditional_branch.
9793         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9794         (zero_extendqisi2): ... here.
9795         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9796         (zero_extendhisi2): ... here.
9797         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9798         (extendqisi2): ... here.
9799         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9800         (extendhisi2): ... here.
9801         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9802         (ashlsi3): ... here.
9803         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9804         (lshrsi3): ... here.
9805         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9806         (ashrsi3): ... here.
9807         (consecutive add peephole): Remove.
9808         * config/mn10300/predicates.md (label_ref_operand): New.
9809         (int_mode_flags): New.
9810         (CCZN_comparison_operator): New.
9811
9812         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9813         (throughput_42_latency_43): New reservation.
9814         (mulsidi3, umulsidi3): New expanders.
9815         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9816         the MDR register to allocation; separately allocate the low and
9817         high parts of the DImode result.
9818         (umulsidi3_internal): Similarly.
9819         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9820         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9821         (udivsi3, umodsi3): Remove.
9822         (udivmodsi4, divmodsi4): New expanders.
9823         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9824         (*divmodsi4): Simiarly.
9825         (ext_internal): New.
9826
9827         * config/mn10300/constraints.md ("z"): New constraint.
9828         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9829         (FIXED_REGISTERS): Don't fix MDR.
9830         (CALL_USED_REGSITERS): Reformat nicely.
9831         (REG_ALLOC_ORDER): Add MDR.
9832         (enum regclass): Add MDR_REGS.
9833         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9834         (IRA_COVER_CLASSES): Add MDR_REGS.
9835         (REGNO_REG_CLASS): Handle MDR_REG.
9836         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9837         (mn10300_register_move_cost): Likewise.
9838         * config/mn10300/mn10300.md (MDR_REG): New.
9839         (*movsi_internal): Handle moves to/from MDR_REGS.
9840
9841         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9842         POST_MODIFY.
9843         (mn10300_secondary_reload): Tidy combination reload classes.
9844         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9845         addresses for AM33.  Allow symbolic offsets for reg+imm.
9846         (mn10300_regno_in_class_p): New.
9847         (mn10300_legitimize_reload_address): New.
9848         * config/mn10300/mn10300.h (enum reg_class): Remove
9849         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9850         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9851         SP_OR_GENERAL_REGS.
9852         (REG_CLASS_NAMES): Update to match.
9853         (REG_CLASS_CONTENTS): Likewise.
9854         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9855         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9856         (REGNO_IN_RANGE_P): Remove.
9857         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9858         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9859         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9860         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9861         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9862         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9863         (REGNO_GENERAL_P): New.
9864         (HAVE_POST_MODIFY_DISP): New.
9865         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9866         (LEGITIMIZE_RELOAD_ADDRESS): New.
9867         * config/mn10300/mn10300-protos.h: Update.
9868
9869         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9870         DATA_REGS for AM33 stack-pointer destination.
9871         (mn10300_preferred_output_reload_class): Likewise.
9872         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9873         into a form appropriate for ...
9874         (TARGET_SECONDARY_RELOAD): New.
9875         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9876         * config/mn10300/mn10300-protos.h: Update.
9877         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9878         reload_insi; use the "A" constraint for the scratch; handle AM33
9879         moves of sp to non-address registers.
9880
9881         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9882         (*movqi_internal): ... here.
9883         (*am33_movhi, *mn10300_movhi): Merge into...
9884         (*movhi_internal): ... here.
9885         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9886         as the source/destination of moves from/to SP.
9887         (movsf): Only allow for AM33-2.
9888         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9889         any integer constant constraint.  Only allow for AM33-2.  Tidy
9890         all of the alternative outputs.
9891         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9892         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9893         for MN103.
9894         (udivsi3, umodsi3): New patterns for MN103 only.
9895
9896 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9897
9898         * doc/tm.texi.in: Spell out that a lack of register class unions
9899         can lead to ICEs.
9900         * doc/tm.texi: Regenerate.
9901
9902 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9903
9904         PR rtl-optimization/47337
9905         * dce.c (check_argument_store): New function.
9906         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9907
9908         PR tree-optimization/47290
9909         * tree-eh.c (infinite_empty_loop_p): New function.
9910         (cleanup_empty_eh): Use it.
9911
9912 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9913
9914         PR target/46997
9915         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9916         (a64_expand_widen_sum): Ditto.
9917         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9918         (vec_extract_evenodd_help): Ditto.
9919         (vec_extract_evenv4hi): Ditto.
9920         (vec_extract_oddv4hi): Ditto.
9921         (vec_extract_evenv2si): Ditto.
9922         (vec_extract_oddv2si): Ditto.
9923         (vec_extract_evenv2sf): Ditto.
9924         (vec_extract_oddv2sf): Ditto.
9925         (vec_pack_trunc_v4hi: Ditto.
9926         (vec_pack_trunc_v2si): Ditto.
9927         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9928         (vec_interleave_highv8qi): Ditto.
9929         (mix1_r): Ditto.
9930         (vec_extract_oddv8qi): Ditto.
9931         (vec_interleave_lowv4hi): Ditto.
9932         (vec_interleave_highv4hi): Ditto.
9933         (vec_interleave_lowv2si): Ditto.
9934         (vec_interleave_highv2si): Ditto.
9935
9936 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9937
9938         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9939         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9940         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9941         (pa_c_mode_for_suffix): New.
9942         (TARGET_EXPAND_BUILTIN): Define.
9943         (TARGET_C_MODE_FOR_SUFFIX): Define.
9944         (pa_builtins): Define.
9945         (pa_init_builtins): Register __float128 type and init new support
9946         builtins.
9947         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9948         * config/pa/quadlib.c (_U_Qfcopysign): New.
9949
9950 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9951
9952         PR middle-end/46894
9953         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9954         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9955         are defined.
9956
9957 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9958
9959         PR tree-optimization/47179
9960         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9961         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9962
9963 2011-01-18  Richard Guenther  <rguenther@suse.de>
9964
9965         PR rtl-optimization/47216
9966         * emit-rtl.c: Include tree-flow.h.
9967         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9968         of replicating it with different semantics.
9969         * Makefile.in (emit-rtl.o): Adjust.
9970
9971 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9972
9973         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9974         (cortex_a9_dp): Handle neon types correctly.
9975
9976 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9977
9978         PR rtl-optimization/47299
9979         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9980         subtarget.  Use normal multiplication if both operands are constants.
9981         * expmed.c (expand_widening_mult): Don't try to optimize constant
9982         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9983         before using it.
9984
9985 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9986
9987         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9988         spacing after 'e.g.', typos, comma, hyphenation.
9989
9990 2011-01-17  Richard Henderson  <rth@redhat.com>
9991
9992         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9993         (rx_restricted_mem_operand): New.
9994         (rx_shift_operand): Use register_operand.
9995         (rx_source_operand, rx_compare_operand): Likewise.
9996         * config/rx/rx.md (addsi3_flags): New expander.
9997         (adddi3): Rewrite as expander.
9998         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9999         (subsi3_flags): New expander.
10000         (subdi3): Rewrite as expander.
10001         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10002
10003         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10004         (rx_init_builtins): Remove sat builtin.
10005         (rx_expand_builtin): Likewise.
10006         * config/rx/rx.md (ssaddsi3): New.
10007         (*sat): Rename from sat.  Represent the CC_REG input.
10008
10009         * config/rx/predicates.md (rshift_operator): New.
10010         * config/rx/rx.c (rx_expand_insv): Remove.
10011         * config/rx/rx-protos.h: Update.
10012         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10013         operand to the canonical position.
10014         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10015         (*bitclr, *bitclr_in_memory): Similarly.
10016         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10017         (insv): Retain the zero_extract in the expansion.
10018
10019         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10020         (bswaphi2, bitinvert, revw): Likewise.
10021
10022         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10023         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10024         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10025         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10026         (bitset, bitset_in_memory): Likewise.
10027         (bitinvert, bitinvert_in_memory): Likewise.
10028         (bitclr, bitclr_in_memory): Likewise.
10029         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10030         (rx_strend, rx_cmpstrn): Likewise.
10031         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10032         (bitop peep2 patterns): Remove.
10033
10034         * config/rx/rx.c (rx_match_ccmode): New.
10035         * config/rx/rx-protos.h: Update.
10036         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10037         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10038         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10039         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10040         (fix_truncsfsi2, floatsisf2): Likewise.
10041         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10042         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10043         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10044         (*subsi3_flags, *xorsi3_flags): New.
10045
10046         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10047
10048         * config/rx/rx.c (rx_print_operand): Remove workaround for
10049         unsplit comparison operations.
10050
10051         * config/rx/rx.md (movsicc): Split after reload.
10052         (*movsicc): Merge *movsieq and *movsine via match_operator.
10053         (*stcc): New pattern.
10054
10055         * config/rx/rx.c (rx_float_compare_mode): Remove.
10056         * config/rx/rx.h (rx_float_compare_mode): Remove.
10057         * config/rx/rx.md (cstoresi4): Split after reload.
10058         (*sccc): New pattern.
10059
10060         * config/rx/predicates.md (label_ref_operand): New.
10061         (rx_z_comparison_operator): New.
10062         (rx_zs_comparison_operator): New.
10063         (rx_fp_comparison_operator): New.
10064         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10065         Validate that the flags are set properly for the comparison.
10066         (rx_gen_cond_branch_template): Remove.
10067         (rx_cc_modes_compatible): Remove.
10068         (mode_from_flags): New.
10069         (flags_from_code): Rename from flags_needed_for_conditional.
10070         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10071         (rx_select_cc_mode): Likewise.
10072         (rx_split_fp_compare): New.
10073         (rx_split_cbranch): New.
10074         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10075         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10076         (*cbranchsf4): Similarly.
10077         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10078         match_operator and rx_split_cbranch.
10079         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10080         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10081         (*cmpsi): Rename from cmpsi.
10082         (*tstsi): Rename from tstsi.
10083         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10084         (*conditional_branch): Rename from conditional_branch.
10085         (*reveresed_conditional_branch): Remove.
10086         (b<code>): Remove expander.
10087         * config/rx/rx-protos.h: Update.
10088
10089         * config/rx/rx.c (rx_compare_redundant): Remove.
10090         * config/rx/rx.md (cmpsi): Don't use it.
10091         * config/rx/rx-protos.h: Update.
10092
10093         * config/rx/rx-modes.def (CC_F): New mode.
10094         * config/rx/rx.c (rx_select_cc_mode): New.
10095         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10096         * config/rx/rx-protos.h: Update.
10097
10098 2011-01-17  Richard Henderson  <rth@redhat.com>
10099
10100         * except.c (dump_eh_tree): Fix stray ; after for statement.
10101
10102 2011-01-17  Richard Guenther  <rguenther@suse.de>
10103
10104         PR tree-optimization/47313
10105         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10106         handling before copying the body.  Properly deal with
10107         by-reference result in SSA form.
10108
10109 2011-01-17  Ian Lance Taylor  <iant@google.com>
10110
10111         PR target/47219
10112         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10113         (struct_value_alias_set): Don't define.
10114         (sparc_option_override): Don't set sparc_sr_alias_set and
10115         struct_value_alias_set.
10116         (save_or_restore_regs): Use gen_frame_mem rather than calling
10117         set_mem_alias_set.
10118         (sparc_struct_value_rtx): Likewise.
10119
10120 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10121
10122         PR target/47318
10123         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10124         (_mm_maskstore_pd): Likewise.
10125         (_mm_maskload_ps): Likewise.
10126         (_mm_maskstore_ps): Likewise.
10127         (_mm256_maskload_pd): Change mask to __m256i.
10128         (_mm256_maskstore_pd): Likewise.
10129         (_mm256_maskload_ps): Likewise.
10130         (_mm256_maskstore_ps): Likewise.
10131
10132         * config/i386/i386-builtin-types.def: Updated.
10133         (ix86_expand_special_args_builtin): Likewise.
10134
10135         * config/i386/i386.c (bdesc_special_args): Update
10136         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10137         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10138         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10139         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10140
10141         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10142         Use <avxpermvecmode> on mask register.
10143         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10144
10145 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10146             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10147             Eric Botcazou  <ebotcazou@adacore.com>
10148
10149         PR target/46655
10150         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10151         if <= USHRT_MAX in 32-bit mode.
10152
10153 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10154
10155         * doc/install.texi (Configuration, Specific): Wrap long
10156         lines in examples.  Allow line wrapping in long options
10157         and URLs where beneficial for PDF output.
10158
10159 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10160
10161         * config/mips/mips.c (mips_classify_symbol): Don't return
10162         SYMBOL_PC_RELATIVE for nonlocal labels.
10163
10164 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10165
10166         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10167
10168 2011-01-15  Jan Hubicka  <jh@suse.cz>
10169
10170         PR tree-optimization/47276
10171         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10172         declarations as needed.
10173
10174 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10175
10176         * common.opt (fdevirtualize): New flag.
10177         * doc/invoke.texi (Option Summary): Document it.
10178         * opts.c (default_options_table): Add devirtualize flag.
10179         * ipa-prop.c (detect_type_change): Return immediately if
10180         devirtualize flag is not set.
10181         (detect_type_change_ssa): Likewise.
10182         (compute_known_type_jump_func): Likewise.
10183         (ipa_analyze_virtual_call_uses): Likewise.
10184
10185 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10186
10187         PR tree-optimization/45934
10188         PR tree-optimization/46302
10189         * ipa-prop.c (type_change_info): New type.
10190         (stmt_may_be_vtbl_ptr_store): New function.
10191         (check_stmt_for_type_change): Likewise.
10192         (detect_type_change): Likewise.
10193         (detect_type_change_ssa): Likewise.
10194         (compute_complex_assign_jump_func): Check for dynamic type change.
10195         (compute_complex_ancestor_jump_func): Likewise.
10196         (compute_known_type_jump_func): Likewise.
10197         (compute_scalar_jump_functions): Likewise.
10198         (ipa_analyze_virtual_call_uses): Likewise.
10199         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10200
10201 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10202
10203         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10204         * config/i386/i386.opt (msse5): New Alias.
10205
10206 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10207
10208         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10209         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10210         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10211         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10212
10213 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10214
10215         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10216         -mcpu options.
10217         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10218         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10219         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10220         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10221         Likewise.
10222         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10223
10224 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10225
10226         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10227
10228 2011-01-14  Mike Stump  <mikestump@comcast.net>
10229
10230         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10231         * config/fr30/fr30.md: Likweise
10232         (movsi_push): Likewise.
10233         (movsi_pop): Likewise.
10234         (enter_func): Likewise.
10235         * config/moxie/moxie.md (movsi_push): Likewise.
10236         (movsi_pop): Likewise.
10237
10238 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10239
10240         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10241         %{no_archive} %{exact_version}.
10242         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10243         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10244         %{no_archive} %{exact_version}.
10245         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10246         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10247         * config/mips/vxworks.h: Likewise.
10248
10249 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10250
10251         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10252
10253 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10254
10255         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10256         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10257
10258 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10259
10260         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10261         -nodefaultlib.
10262
10263 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10264
10265         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10266         for mcpu not cpu.
10267         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10268         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10269         not cpu.
10270         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10271         Don't handle -shlib.
10272
10273 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10274
10275         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10276         (CC1_SPEC): Don't handle -profile.
10277
10278 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10279
10280         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10281         * config/mips/mips.h (CC1_SPEC): Likewise.
10282
10283 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10284
10285         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10286         * config/mips/mips.h (CC1_SPEC): Likewise.
10287
10288 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10289
10290         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10291         * config/m32r/linux.h (LINK_SPEC): Likewise.
10292         * config/mips/linux.h (LINK_SPEC): Likewise.
10293         * config/mips/linux64.h (LINK_SPEC): Likewise.
10294         * config/sparc/linux.h (LINK_SPEC): Likewise.
10295         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10296         LINK_SPEC): Likewise.
10297         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10298
10299 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10300
10301         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10302         %{version:-v}.
10303         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10304
10305 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10306
10307         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10308         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10309
10310 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10311
10312         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10313
10314 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10315
10316         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10317         supports -Bstatic/-Bdynamic.
10318         * configure: Regenerate.
10319
10320 2011-01-14  Jan Hubicka  <jh@suse.cz>
10321             Jack Howarth  <howarth@bromo.med.uc.edu>
10322
10323         PR target/46037
10324         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10325         when checking debug_info_level. Test write_symbols instead of
10326         debug_hooks->var_location when setting flag_var_tracking_uninit.
10327
10328 2011-01-14  Richard Guenther  <rguenther@suse.de>
10329
10330         PR tree-optimization/47179
10331         * target.def (ref_may_alias_errno): New target hook.
10332         * targhooks.h (default_ref_may_alias_errno): Declare.
10333         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10334         (default_ref_may_alias_errno): New function.
10335         * target.h (struct ao_ref_s): Declare.
10336         * tree-ssa-alias.c: Include target.h.
10337         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10338         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10339         (targhooks.o): Likewise.
10340         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10341         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10342
10343 2011-01-14  Richard Guenther  <rguenther@suse.de>
10344
10345         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10346
10347 2011-01-14  Richard Guenther  <rguenther@suse.de>
10348
10349         PR tree-optimization/47280
10350         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10351         return CFG changes.
10352         (tree_ssa_forward_propagate_single_use_vars): Deal with
10353         CFG changes from associate_plusminus.
10354
10355 2011-01-14  Richard Guenther  <rguenther@suse.de>
10356
10357         PR middle-end/47281
10358         Revert
10359         2011-01-11  Richard Guenther  <rguenther@suse.de>
10360
10361         PR tree-optimization/46076
10362         * tree-ssa.c (useless_type_conversion_p): Conversions from
10363         unprototyped to empty argument list function types are useless.
10364
10365 2011-01-14  Richard Guenther  <rguenther@suse.de>
10366
10367         PR tree-optimization/47286
10368         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10369
10370 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10371
10372         PR middle-end/46823
10373         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10374
10375 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10376
10377         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10378         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10379         * config/xtensa/xtensa.c (xtensa_libcall_value,
10380         xtensa_function_value_regno_p): New functions.
10381         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10382
10383 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10384
10385         PR c++/47213
10386         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10387         PE specific hook.
10388         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10389         New function prototype.
10390         * config/i386/winnt.c (i386_pe_assemble_visibility):
10391         Warn only if attribute was specified by user.
10392
10393 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10394
10395         PR target/47251
10396         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10397         floating point.
10398         (floatunsdidf2_fcfidu): Ditto.
10399
10400 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10401
10402         * config/s390/s390.c (print_operand_address): Replace 'error' with
10403         'output_operand_lossage'.
10404         (print_operand): Likewise.
10405
10406 2011-01-13  Jeff Law  <law@redhat.com>
10407
10408         PR rtl-optimization/39077
10409         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10410         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10411         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10412         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10413         * gcse.c (prune_insertions_deletions): New function.
10414         (compute_pre_data): Use it.
10415
10416 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10417
10418         PR debug/PR46973
10419         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10420         static function.
10421         (prune_unused_types_mark): Use it.
10422
10423 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10424
10425         PR rtl-optimization/45352
10426         * sel-sched.c: Update copyright years.
10427         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10428         in the advancing loop when we have issued issue_rate insns.
10429
10430 2011-01-12  Richard Henderson  <rth@redhat.com>
10431
10432         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10433         (TARGET_MD_ASM_CLOBBERS): New.
10434
10435         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10436         (TARGET_DELEGITIMIZE_ADDRESS): New.
10437
10438         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10439         (clzsi2, *bsch): New patterns.
10440
10441         * config/mn10300/mn10300.md (INT): New mode iterator.
10442         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10443
10444         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10445         flag_split_wide_types.
10446
10447         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10448         (mn10300_trampoline_init): Rewrite without a template, an immediate
10449         load and a direct branch.
10450         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10451
10452 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10453
10454         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10455         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10456         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10457         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10458
10459 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10460
10461         PR debug/47209
10462         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10463         of type.
10464
10465 2011-01-12  Jan Hubicka  <jh@suse.cz>
10466
10467         PR driver/47244
10468         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10469         (PLUGIN_COND_CLOSE): New macro.
10470         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10471
10472 2011-01-12  Richard Guenther  <rguenther@suse.de>
10473
10474         PR lto/47259
10475         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10476         register variables in a MEM_REF.
10477
10478 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10479
10480         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10481         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10482         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10483         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10484         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10485         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10486         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10487         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10488         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10489         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10490         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10491         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10492         * config/gnu-user.h: New.  Copied from linux.h.
10493         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10494         GNU_USER_TARGET_STARTFILE_SPEC.
10495         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10496         GNU_USER_TARGET_ENDFILE_SPEC.
10497         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10498         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10499         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10500         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10501         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10502         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10503         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10504         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10505         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10506         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10507         * config/arm/linux-eabi.h (CC1_SPEC): Use
10508         GNU_USER_TARGET_CC1_SPEC.
10509         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10510         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10511         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10512         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10513         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10514         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10515         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10516         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10517
10518 2011-01-12  Richard Guenther  <rguenther@suse.de>
10519
10520         PR other/46946
10521         * doc/invoke.texi (ffast-math): Document it is turned on
10522         with -Ofast.
10523
10524 2011-01-12  Jan Hubicka  <jh@suse.cz>
10525
10526         PR tree-optimization/47233
10527         * opts.c (common_handle_option): Disable ipa-reference with profile
10528         feedback.
10529
10530 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10531
10532         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10533         error message.
10534
10535 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10536
10537         * c-parser.c (c_lex_one_token): Updated and reindented some
10538         comments.  No changes in code.
10539
10540 2011-01-11  Ian Lance Taylor  <iant@google.com>
10541
10542         * godump.c (go_output_var): Don't output the variable if there is
10543         already a type with the same name.
10544
10545 2011-01-11  Ian Lance Taylor  <iant@google.com>
10546
10547         * godump.c (go_format_type): Don't generate float80.
10548
10549 2011-01-11  Richard Henderson  <rth@redhat.com>
10550
10551         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10552         declaration.  Rewrite for both speed and size.
10553         (mn10300_address_cost_1): Remove.
10554         (mn10300_register_move_cost): New.
10555         (mn10300_memory_move_cost): New.
10556         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10557         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10558         extensions, shifts, BSWAP, CLZ.
10559         (mn10300_wide_const_load_uses_clr): Remove.
10560         (TARGET_REGISTER_MOVE_COST): New.
10561         (TARGET_MEMORY_MOVE_COST): New.
10562         * config/mn10300/mn10300-protos.h: Update.
10563         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10564
10565         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10566         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10567         * config/mn10300/mn10300-protos.h: Update.
10568         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10569         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10570         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10571         (*test_int_bitfield, *test_byte_bitfield): Remove.
10572         (*bit_test, *subreg_bit_test): Remove.
10573         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10574
10575         * config/mn10300/constraints.md ("c"): Rename from "A".
10576         ("A", "D"): New constraint letters.
10577         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10578         (fmssf4, fnmasf4, fnmssf4): Likewise.
10579
10580         * config/mn10300/mn10300.md (isa): New attribute.
10581         (enabled): New attribute.
10582
10583         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10584         (abssf2, negsf2): Define only for hardware fp.
10585         (sqrtsf2): Reformat.
10586         (addsf3, subsf3, mulsf3): Merge expander and insn.
10587
10588         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10589         (DEBUGGER_AUTO_OFFSET): Remove.
10590         (DEBUGGER_ARG_OFFSET): Remove.
10591
10592         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10593         Emit register stores with the same offsets as the hardware.
10594         (mn10300_store_multiple_operation): Don't check that the register
10595         save offsets are monotonic.
10596         * config/mn10300/mn10300-protos.h: Update.
10597
10598         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10599
10600         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10601         in terms of the value on the stack, not the MDR register.
10602
10603 2011-01-11  Jan Hubicka  <jh@suse.cz>
10604
10605         PR lto/45721
10606         PR lto/45375
10607         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10608         (symbol_alias_set_destroy, symbol_alias_set_contains,
10609         propagate_aliases_backward): Declare.
10610         * lto-streamer-out.c (struct sets): New sturcture.
10611         (trivally_defined_alias): New function.
10612         (output_alias_pair_p): Rewrite.
10613         (output_unreferenced_globals): Fix output of alias pairs.
10614         (produce_symtab): Likewise.
10615         * ipa.c (function_and_variable_visibility): Set weak alias destination
10616         as needed in lto.
10617         * varasm.c (symbol_alias_set_t): Remove.
10618         (symbol_alias_set_destroy): Export.
10619         (propagate_aliases_forward, propagate_aliases_backward): New functions
10620         based on ...
10621         (compute_visible_aliases): ... this one; remove.
10622         (trivially_visible_alias): New
10623         (trivially_defined_alias): New.
10624         (remove_unreachable_alias_pairs): Rewrite.
10625         (finish_aliases_1): Reorganize code checking if alias is defined.
10626         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10627         in LTO mode.
10628
10629 2011-01-11  Richard Guenther  <rguenther@suse.de>
10630
10631         PR tree-optimization/46076
10632         * tree-ssa.c (useless_type_conversion_p): Conversions from
10633         unprototyped to empty argument list function types are useless.
10634
10635 2011-01-11  Richard Guenther  <rguenther@suse.de>
10636
10637         PR middle-end/45235
10638         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10639         volatile MEMs as MEM_READONLY_P.
10640
10641 2011-01-11  Richard Guenther  <rguenther@suse.de>
10642
10643         PR tree-optimization/47239
10644         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10645
10646 2011-01-11  Jeff Law  <law@redhat.com>
10647
10648         PR tree-optimization/47086
10649         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10650         IVs from statements that might throw.
10651
10652 2011-01-10  Jan Hubicka  <jh@suse.cz>
10653
10654         PR lto/45375
10655         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10656
10657 2011-01-10  Jan Hubicka  <jh@suse.cz>
10658
10659         PR lto/45375
10660         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10661         when correcting profile.
10662
10663 2011-01-10  Jan Hubicka  <jh@suse.cz>
10664
10665         PR lto/46083
10666         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10667         DECL_FINI_PRIORITY.
10668         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10669         Restore DECL_FINI_PRIORITY.
10670
10671 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10672
10673         * doc/gimple.texi: Fix quoting of multi-word return values in
10674         @deftypefn statements.  Ensure presence of return value.  Wrap
10675         overlong @deftypefn lines.
10676         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10677         descriptions of removed functions.
10678         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10679         of multi-word return value in @deftypefn statement.
10680
10681 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10682
10683         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10684         (Conditional Expressions, Logical Operators)
10685         (Statement and operand traversals): Do not indent smallexample
10686         code.  Fix duplicate function argument in example.
10687
10688 2011-01-10  Jeff Law  <law@redhat.com>
10689
10690         PR tree-optimization/47141
10691         * ipa-split.c (split_function): Handle case where we are
10692         returning a value and the return block has a virtual operand phi.
10693
10694 2011-01-10  Jan Hubicka  <jh@suse.cz>
10695
10696         PR tree-optimization/47234
10697         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10698         (pass_feedback_split_functions): Declare.
10699         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10700         tree-profile.
10701         * ipa-split.c (gate_split_functions): Update comments; disable
10702         split-functions for profile_arc_flag and branch_probabilities.
10703         (gate_feedback_split_functions): New function.
10704         (execute_feedback_split_functions): New function.
10705         (pass_feedback_split_functions): New global var.
10706
10707 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10708
10709         PR lto/46760
10710         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10711         calling gimple_call_set_cannot_inline.
10712
10713 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10714
10715         * config/darwin-sections.def: Remove unused section.
10716
10717 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10718
10719         PR c++/47218
10720         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10721
10722 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10723
10724         PR objc/47232
10725         * c-parser.c (c_parser_declaration_or_fndef): Improved
10726         error message.
10727
10728 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10729
10730         * config/i386/winnt.c (i386_pe_start_function): Make sure
10731         to switch back to function's section.
10732
10733 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10734
10735         PR gcc/46902
10736         PR testsuite/46912
10737         * plugin.c: Move include of dlfcn.h from here...
10738         * system.h: ... to here.
10739
10740 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10741
10742         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10743         file name.
10744         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10745         two extra empty pages in PDF output.
10746
10747 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10748
10749         PR objc/47078
10750         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10751         for error recovery purposes behave as if it was not specified so
10752         that the default type is usd.
10753
10754 2011-01-07  Jan Hubicka  <jh@suse.cz>
10755
10756         PR tree-optmization/46469
10757         * ipa.c (function_and_variable_visibility): Clear needed flags on
10758         nodes with external decls; handle weakrefs merging correctly.
10759
10760 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10761
10762         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10763         not false.
10764
10765 2011-01-07  Jan Hubicka  <jh@suse.cz>
10766
10767         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10768         and no longer claim that gold is required for linker plugin.
10769         * configure: Regenerate.
10770         * gcc.c (PLUGIN_COND): New macro.
10771         (LINK_COMMAND_SPEC): Use it.
10772         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10773         * config.in (HAVE_LTO_PLUGIN): New.
10774         * configure.ac (--with-lto-plugin): New parameter; autodetect
10775         HAVE_LTO_PLUGIN.
10776
10777 2011-01-07  Jan Hubicka  <jh@suse.cz>
10778
10779         PR tree-optimization/46367
10780         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10781         when we can update original.
10782         (cgraph_mark_inline_edge): Sanity check.
10783         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10784
10785 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10786
10787         * config/spu/spu.h (ASM_COMMENT_START): Define.
10788
10789 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10790
10791         PR driver/42445
10792         * gcc.c (%>S): New.
10793         (SWITCH_KEEP_FOR_GCC): Likewise.
10794         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10795         (do_spec_1): Handle "%>".
10796
10797         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10798
10799 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10800
10801         PR target/47201
10802         * config/i386/i386.c (ix86_delegitimize_address): If
10803         simplify_gen_subreg fails, return orig_x.
10804
10805         PR bootstrap/47187
10806         * value-prof.c (gimple_stringop_fixed_value): Handle
10807         lhs of the call properly.
10808
10809 2011-01-07  Jan Hubicka  <jh@suse.cz>
10810
10811         PR lto/45375
10812         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10813
10814 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10815
10816         * target.def (function_switched_text_sections): New hook.
10817         * doc/tm.texi: Regenerated.
10818         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10819         * final.c (default_function_switched_text_sections): New.
10820         (final_scan_insn): Call function_switched_text_sections when a
10821         mid-function section change occurs.
10822         * output.h (default_function_switched_text_sections): Declare.
10823         * config/darwin-protos.h (darwin_function_switched_text_sections):
10824         Likewise.
10825         * config/darwin.c (darwin_function_switched_text_sections): New.
10826         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10827
10828 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10829
10830         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10831         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10832         the secondary code fragment when outputting for DWARF == 2.
10833
10834 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10835
10836         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10837         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10838         Remove.
10839         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10840         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10841
10842 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10843
10844         PR debug/46704
10845         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10846         when it is not empty.
10847
10848 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10849
10850         Bobcat Enablement
10851         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10852         (case ${target}): Add btver1.
10853         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10854         -march=native recognize btver1 processors.
10855         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10856         btver1 def_and_undef
10857         * config/i386/i386.c (struct processor_costs btver1_cost): New
10858         btver1 cost table.
10859         (m_BTVER1): New definition.
10860         (m_AMD_MULTIPLE): Includes m_BTVER1.
10861         (initial_ix86_tune_features): Add btver1 tune.
10862         (processor_target_table): Add btver1 entry.
10863         (static const char *const cpu_names): Add btver1 entry.
10864         (software_prefetching_beneficial_p): Add btver1.
10865         (ix86_option_override_internal): Add btver1 instruction sets.
10866         (ix86_issue_rate): Add btver1.
10867         (ix86_adjust_cost): Add btver1.
10868         * config/i386/i386.h (TARGET_BTVER1): New definition.
10869         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10870         (enum processor_type): Add PROCESSOR_BTVER1.
10871         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10872
10873 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10874
10875         PR target/43309
10876         * config/i386/i386.c (legitimize_tls_address)
10877         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10878         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10879         (tls_initial_exec_64_sun): New pattern.
10880
10881 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10882
10883         * doc/invoke.texi (Overall Options): Improve wording and markup
10884         of the description of -wrapper.
10885
10886 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10887
10888         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10889         rdynamic, threads): New Driver options.
10890
10891 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10892
10893         PR target/38118
10894         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10895         if coming from .tdata.
10896         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10897
10898 2011-01-06  Jan Hubicka  <jh@suse.cz>
10899
10900         PR lto/47188
10901         * collect2.c (main): Do not enable LTOmode when plugin is active.
10902
10903 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10904
10905         PR other/45915
10906         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10907         --version output if supported.
10908         * configure: Regenerate.
10909
10910 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10911
10912         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10913         Driver options.
10914
10915 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10916
10917         PR c/47150
10918         * c-convert.c (convert): When converting a complex expression
10919         other than COMPLEX_EXPR to a different complex type, ensure
10920         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10921         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10922         when converting COMPLEX_TYPE.
10923
10924 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10925
10926         PR tree-optimization/47139
10927         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10928         only the last reduction value is used outside the loop.  Update
10929         documentation.
10930
10931 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10932
10933         * config/rtems.opt: New.
10934         * config.gcc (*-*-rtems*): Use rtems.opt.
10935
10936 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10937
10938         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10939         processors do not support 3DNow instructions.
10940
10941 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10942
10943         * config/spu/spu.c (spu_option_override): Set parameter
10944         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10945
10946 2011-01-05  Jan Hubicka  <jh@suse.cz>
10947
10948         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10949         at the command line.
10950
10951 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10952
10953         PR lto/47162
10954         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10955         deltas on streamed outgoing edges.
10956         (output_node_opt_summary): Output info for outgoing edges only when
10957         the node is in new parameter set.
10958         (output_cgraph_opt_summary): New parameter set, passed to the two
10959         aforementioned functions.  Update its forward declaration and its
10960         callee too.
10961
10962 2011-01-05  Tom Tromey  <tromey@redhat.com>
10963
10964         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10965         operator to c_finish_omp_atomic.
10966         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10967         (build_unary_op): Update.
10968         (build_modify_expr): Update.
10969         (build_asm_expr): Update.
10970
10971 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10972
10973         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10974         newly inserted insns.
10975         (pad_bb): Likewise.
10976         (spu_emit_branch_hint): Likewise.
10977         (insert_hbrp_for_ilb_runout): Likewise.
10978         (spu_machine_dependent_reorg): Call df_finish_pass after
10979         schedule_insns returns.
10980
10981 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10982
10983         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10984
10985 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10986
10987         PR tree-optimization/47005
10988         * tree-sra.c (struct access): Add 'non_addressable' bit.
10989         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10990         (decide_one_param_reduction): Return 0 if the parameter is passed by
10991         reference and one of the accesses in the group is non_addressable.
10992
10993 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10994
10995         PR tree-optimization/47056
10996         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10997         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10998         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10999
11000 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11001
11002         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11003         initializer.  Skip view conversions from aggregate types.
11004
11005 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11006
11007         PR bootstrap/47055
11008         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11009
11010 2011-01-04  Philipp Thomas  <pth@suse.de>
11011
11012         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11013         obvious typo.
11014
11015 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11016
11017         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11018         on empty epilogue sequences.
11019
11020 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11021
11022         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11023         non-static): New Driver options.
11024
11025 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11026
11027         PR driver/47137
11028         * gcc.c (default_compilers[]): Set combinable field to 0
11029         for all assembly languages.
11030
11031 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11032
11033         * config/mips/loongson3a.md: New file.
11034         * config/mips/mips.md: Include loongson3a.md.
11035         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11036         TUNE_LOONGSON_3A.
11037
11038 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11039
11040         PR middle-end/47017
11041         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11042         instead of convert_memory_address_addr_space on the base expression.
11043
11044 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11045
11046         * config/spu/spu.c (spu_option_override): Update error text
11047         for bad -march= / -mtune= values.
11048
11049 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11050
11051         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11052         if branch-hint optimization will be performed.
11053
11054 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11055
11056         PR tree-optimization/47148
11057         * ipa-split.c (split_function): Convert arguments to
11058         DECL_ARG_TYPE if possible.
11059
11060         PR tree-optimization/47155
11061         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11062         when computing uns.
11063
11064         PR rtl-optimization/47157
11065         * combine.c (try_combine): If undobuf.other_insn becomes
11066         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11067         and set *new_direct_jump_p too.
11068
11069 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11070
11071         PR tree-optimization/47021
11072         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11073
11074 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11075
11076         * gcc.c (process_command): Update copyright notice dates.
11077         * gcov.c (print_version): Likewise.
11078         * gcov-dump.c (print_version): Likewise.
11079         * mips-tfile.c (main): Likewise.
11080         * mips-tdump.c (main): Likewise.
11081
11082 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11083
11084         PR tree-optimization/46801
11085         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11086         aggregate fields start at byte boundary instead of the bit-field flag.
11087
11088 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11089
11090         PR driver/47137
11091         * gcc.c (main): Revert revision 168407.
11092
11093 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11094
11095         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11096
11097 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11098
11099         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11100         vector optab to expand vector/scalar shift, update gimple to vector.
11101
11102 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11103
11104         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11105         a thunk.
11106
11107 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11108
11109         PR tree-optimization/46984
11110         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11111         HOST_WIDE_INT.
11112         (cgraph_create_indirect_edge): Fixed line length.
11113         (cgraph_indirect_call_info): Declare.
11114         (cgraph_make_edge_direct) Update declaration.
11115         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11116         (cgraph_create_indirect_edge): Use it.
11117         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11118         callees.
11119         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11120         the new thunk_delta representation.
11121         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11122         HOST_WIDE_INT.
11123         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11124         (ipa_read_indirect_edge_info): Likewise.
11125         * lto-cgraph.c (output_edge_opt_summary): New function.
11126         (output_node_opt_summary): Call it on all outgoing edges.
11127         (input_edge_opt_summary): New function.
11128         (input_node_opt_summary): Call it on all outgoing edges.
11129
11130 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11131
11132         PR driver/47137
11133         * gcc.c (main): Don't check have_o when settting combine_inputs.
11134
11135 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11136
11137         * regrename.c: Add general comment describing the pass.
11138         (struct du_head): Remove 'length' field.
11139         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11140         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11141         Force renaming to the preferred class (if any) in the first pass and do
11142         not consider registers that belong to it in the second pass.
11143         (create_new_chain): Do not set 'length' field.
11144         (scan_rtx_reg): Likewise.
11145
11146 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11147
11148         PR tree-optimization/47140
11149         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11150         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11151         to bit_value_binop.
11152
11153         PR rtl-optimization/47028
11154         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11155         parm_birth_insn instead of at the beginning of first bb.
11156
11157 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11158
11159         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11160         Remove the word "see" before "@pxref".
11161         * doc/rtl.texi: Remove the word "see" before "@pxref".
11162
11163 2011-01-01  Jan Hubicka  <jh@suse.cz>
11164
11165         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11166         memory.
11167
11168 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11169
11170         PR target/38662
11171         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11172
11173 \f
11174 Copyright (C) 2011 Free Software Foundation, Inc.
11175
11176 Copying and distribution of this file, with or without modification,
11177 are permitted in any medium without royalty provided the copyright
11178 notice and this notice are preserved.