OSDN Git Service

2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-06-28  Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2
3         * config.gcc (powerpc*-*-*): Handle titan.
4         * config/rs6000/rs6000.c (titan_cost): New costs.
5         (rs6000_override_options): Add "titan" to processor_target_table.
6         Add Titan to branch alignment logic.
7         Correctly set rs6000_cost for titan.
8         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
9         * config/rs6000/titan.md: New file.
10         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
11         
12 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13
14         * tree-browser.c (TB_history_stack): Convert to a VEC.
15         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
16         (TB_history_prev): Likewise.
17
18 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19
20         * vec.h (vec_heap_free): Add parentheses around free.
21
22 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
23
24         * system.h: Poison GCC_EXCEPT_H for front-end files.
25
26         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
27         langhook.
28         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
29         Define to NULL by default.
30         * except.h: Define GCC_EXCEPT_H.
31         (doing_eh): Remove prototype.
32         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
33         (lang_protect_cleanup_actions): Remove.
34         * except.c (lang_protect_cleanup_actions): Remove.
35         (doing_eh): Remove.
36         (gen_eh_region): Don't check doing_eh here.
37         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
38         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
39         instead of lang_protect_cleanup_actions.
40         * omp-low.c (maybe_catch_exception): Likewise.
41         * Makefile.in: Update dependencies.
42
43 2010-06-28  Bingfeng Mei <bmei@broadcom.com>
44
45         * cgraph.h (struct varpool_node): new used_from_object_file flag.
46         (struct cgraph_local_info): new used_from_object_file flag.
47         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
48         (cgraph_clone_node): initialize used_from_object_file.
49         (cgraph_create_virtual_clone): initialize used_from_object_file.
50         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
51         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
52         when compiling with -fwhole-program.
53         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
54         internal resolver.
55         * ipa.c (function_and_variable_visibility): Set externally_visible
56         flag of varpool_node if used_from_object_file flag is set.
57         (cgraph_externally_visible_p): check used_from_object_file flag.
58         * doc/invoke.texi (-fwhole-program option): Change description of
59         externally_visible attribute accordingly.
60         * doc/extend.texi (externally_visible): Ditto.
61
62 2010-06-27  Jan Hubicka  <jh@suse.cz>
63
64         * params.def (max-inline-insns-auto): Default to 40.
65         * doc/invoke.texi (max-inline-insns-auto): Document the change.
66
67 2010-06-27  Jan Hubicka  <jh@suse.cz>
68
69         PR middle-end/44671
70         PR middle-end/44686
71         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on signature
72         change.
73         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
74         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
75
76 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
77
78         * target.h (struct gcc_target): Add register_move_cost field.
79         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
80         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
81         * targhooks.c (default_register_move_cost): New function.
82         * targhooks.h (default_register_move_cost): Declare function.
83         * defaults.h (REGISTER_MOVE_COST): Delete.
84         * ira-int.h (ira_register_move_cost): Update comment.
85         * ira.c: (ira_register_move_cost): Update comment.
86         * reload.h (register_move_cost): Declare.
87         * reginfo.c (register_move_cost): New function.
88         (move_cost): Update comment.
89         (init_move_cost, memory_move_secondary_cost): Replace
90         REGISTER_MOVE_COST with register_move_cost.
91         * postreload.c (reload_cse_simplify_set): (Ditto.).
92         * reload.c (find_valid_class, find_reloads): (Ditto.).
93         * reload1.c (choose_reload_regs): (Ditto.).
94         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
95         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
96         * doc/md.texi (can_create_pseudo_p): Update documentation.
97
98         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
99         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
100         * config/i386/i386.h (ix86_memory_move_cost): Make static.
101         (TARGET_MEMORY_MOVE_COST): Define.
102
103         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
104         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
105         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
106         (TARGET_MEMORY_MOVE_COST): Define.
107
108 2010-06-27  Richard Guenther  <rguenther@suse.de>
109
110         PR tree-optimization/44683
111         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
112         false edge from the inverted condition.
113
114 2010-06-27  Richard Guenther  <rguenther@suse.de>
115
116         PR middle-end/44684
117         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
118         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
119         for register LHS.  Or non-store assignments.
120
121 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
122
123         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
124         (sparc_emit_set_const64): Likewise.  Remove disabled code.
125         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
126         (sparc_emit_set_const64): Likewise.
127
128 2010-06-26  Catherine Moore  <clm@codesourcery.com>
129
130         * config/mips/mips.md (alu_type): New attribute.
131         (type): Infer type from alu_type.
132         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
133         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
134         *subsi3_extended, negsi2, negdi2, *low<mode>,
135         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
136         xor<mode>3, *nor<mode>3,
137         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
138         *zero_extendhi_truncqi):  Set alu_type instead of type.
139
140 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
141
142         * config/alpha/alpha.c (alpha_need_linkage): Adjust
143         splay_tree_new_ggc call.
144         (alpha_use_linkage): Likewise.
145
146 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
147
148         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
149         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
150         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
151         (static_specs): Remove switches_need_spaces.
152         (process_command, do_self_spec): Hardcode handling "-o" instead of
153         checking switches_need_spaces.
154         * system.h (SWITCHES_NEED_SPACES): Poison.
155
156 2010-06-26  Richard Guenther  <rguenther@suse.de>
157
158         PR tree-optimization/44393
159         * tree-loop-distribution.c (generate_loops_for_partition): Fix
160         stmt removal and VOP renaming.
161         (generate_memset_zero): Remove redundant stmt updating.
162         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
163         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
164
165 2010-06-26  Jan Hubicka  <jh@suse.cz>
166
167         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
168         edges comming from header are equivalent.
169         (visit_bb): Handle PHIs correctly.
170         * tree-inline.c (copy_phis_for_bb): Be able to copy
171         PHI from entry edge.
172         (copy_cfg_body): Produce edge from entry BB before copying
173         PHIs.
174
175 2010-06-26  Richard Guenther  <rguenther@suse.de>
176
177         PR middle-end/44674
178         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
179         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
180
181 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
182
183         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
184         add_infile, alloc_switch): New.
185         (process_command): Remove variable lang_n_infiles.  Process
186         options in a single pass.  Use new functions for allocating
187         infiles and switches arrays.  Properly skip operands of
188         -Xpreprocessor and -Xassembler.
189
190 2010-06-26  Jan Hubicka  <jh@suse.cz>
191
192         PR middle-end/44671
193         * cgraphunit.c (cgraph_function_versioning): Remove wrong
194         cgraph_make_decl_local call; fix typo copying RTL data.
195
196 2010-06-25  DJ Delorie  <dj@redhat.com>
197
198         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
199         (m32c_output_aligned_common): Likewise.
200         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
201         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
202         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
203         (m32c_register_pragmas): Register it.
204         * config/m32c/m32c.c (m32c_get_pragma_address): New.
205         (m32c_insert_attributes): Set #pragma address decls volatile.
206         (pragma_entry_eq): New.
207         (pragma_entry_hash): New.
208         (m32c_note_pragma_address): New.
209         (m32c_get_pragma_address): New.
210         (m32c_output_aligned_common): New.
211         * doc/extend.texi: Document the new pragma.
212
213         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
214         also.
215         * config/m32c/predicates.md (m32c_any_operand): Check the code
216         instead of memory_operand so as to allow matching volatile MEMs.
217         (m32c_nonimmediate_operand): Likewise.
218         (mra_operand): Allow volatiles.
219
220 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
221
222         PR debug/44610
223         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
224         address if the offset is unknown.
225
226 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
227
228         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
229         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
230         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
231         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
232         to ia64_start_function. Invoke it.
233         * config/ia64/ia64.c (ia64_start_function): Call new function
234         dwarf2out_vms_debug_main_pointer.
235
236 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
237
238         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
239         statements computing the true predicate.
240
241 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
242
243         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
244         to boolean_true_node.
245         (reset_bb_predicate): New.
246         (predicate_bbs): Call reset_bb_predicate.
247
248 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
249
250         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
251         (tree_if_conversion): Returns true when something has been changed.
252         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
253         changed something.
254
255 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
256
257         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
258         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
259         * tree-if-conv.c: Include dbgcnt.h.
260         (tree_if_conversion): Use if_conversion_tree to count the number of
261         if-convertible loops.
262
263 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
264
265         * common.opt (fprefetch-loop-arrays): Re-define
266         -fprefetch-loop-arrays as a tri-state option with the initial
267         value of -1.
268         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
269         pass only when flag_prefetch_loop_arrays > 0.
270         * toplev.c (process_options): Note that, with tri-states,
271         flag_prefetch_loop_arrays>0 means prefetching is enabled.
272         * config/i386/i386.c (override_options): Enable prefetching at -O3
273         for a set of CPUs that sw prefetching is helpful.
274         (software_prefetching_beneficial_p): New.  Return TRUE if software
275         prefetching is beneficial for the given CPU.
276
277 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
278
279         PR rtl-optimization/44326
280         * implicit-zee.c (find_removable_zero_extends): Replace
281         INSN_P with NONDEBUG_INSN_P.
282
283 2010-06-25  Martin Jambor  <mjambor@suse.cz>
284
285         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
286         (struct ipa_node_params): Removed the modification_analysis_done flag.
287         (ipa_is_param_modified): Removed.
288         (ipa_analyze_node): Declare.
289         (ipa_compute_jump_functions): Remove declaration.
290         (ipa_count_arguments): Likewise.
291         (ipa_detect_param_modifications): Likewise.
292         (ipa_analyze_params_uses): Likewise.
293         * ipa-prop.c (struct param_analysis_info): New type.
294         (visit_store_addr_for_mod_analysis): Removed.
295         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
296         moved down in the file.
297         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
298         (ipa_count_arguments): Made static.
299         (mark_modified): New function.
300         (is_parm_modified_before_call): New function.
301         (compute_pass_through_member_ptrs): New parameter parms_info, call
302         is_parm_modified_before_call instead of ipa_is_param_modified.
303         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
304         it to compute_pass_through_member_ptrs.
305         (ipa_compute_jump_functions): New parameter parms_info, pass it to
306         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
307         on the callee if it is analyzed.  Made static.
308         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
309         is_parm_modified_before_call instead of ipa_is_param_modified.
310         (ipa_analyze_call_uses): New parameter parms_info, pass it to
311         ipa_analyze_indirect_call_uses.
312         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
313         ipa_analyze_call_uses.
314         (ipa_analyze_params_uses): New parameter parms_info, pass it to
315         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
316         (ipa_analyze_node): New function.
317         (ipa_print_node_params): Do not dump the modified flag.
318         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
319         it.  Do not stream the modified parameter flag.
320         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
321         it.  Do not stream the modified parameter flag.
322         * ipa-cp.c (ipcp_analyze_node): Removed.
323         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
324         with only a call to ipa_analyze_node.
325         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
326         node with only a call to ipa_analyze_node.
327
328 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
329
330         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
331
332 2010-06-25  Jan Hubicka  <jh@suse.cz>
333
334         * tree-pass.h (pass_split_functions): Declare.
335         * opts.c (decode_options): Enable function splitting at -O2
336         * timevar.def (TV_IPA_FNSPLIT): New macro.
337         * ipa-split.c: New file.
338         * common.opt (-fpartial-inlining): New flag.
339         * Makefile.in (ipa-split.o): New object file.
340         * passes.c (init_optimization_passes): Add ipa-split.
341         * params.def (partial-inlining-entry-probability): New parameters.
342         * doc/invoke.texi (-fpartial-inlining): New.
343
344 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
345
346         PR 44665
347         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
348         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
349         (gimplify_expr): Likewise.
350
351 2010-06-25  Martin Jambor  <mjambor@suse.cz>
352
353         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
354         statements instead of bailing out on them.
355         (ipa_analyze_indirect_call_uses): Do not require that loads from the
356         parameter are in the same BB as the condition.  Update comments.
357
358 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
359
360         PR middle-end/43866
361         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
362         true or always false, return NULL_TREE.
363         (tree_unswitch_single_loop): Optimize conditions even when reaching
364         max-unswitch-level parameter.  If num > 0, optimize first all conditions
365         using entry checks, then do still reachable block discovery and consider
366         only conditions in still reachable basic blocks in the loop.
367
368         PR tree-optimization/44539
369         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
370         the call doesn't have LHS, but has VDEF.
371
372 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
373
374         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
375         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
376         * gcc.c (enum add_del, struct modify_target, modify_target):
377         Remove.
378         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
379         * system.h (MODIFY_TARGET_NAME): Poison.
380
381 2010-06-25  Alan Modra  <amodra@gmail.com>
382
383         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
384         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
385         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
386         CMODEL_LARGE as default.
387         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
388         (offsettable_ok_by_alignment): Delete.
389         (rs6000_emit_move): Remove mcmodel=medium optimization.
390
391 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
392
393         With large parts from Jim Wilson:
394         PR target/43902
395         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
396         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
397         * optabs.c (optab_for_tree_code): Likewise.
398         (expand_widen_pattern_expr): Likewise.
399         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
400         out of execute_optimize_widening_mul.
401         (convert_plusminus_to_widen): New function.
402         (execute_optimize_widening_mul): Use the two new functions.
403         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
404         Remove code to generate widening multiply-accumulate.  Add support
405         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
406         * gimple-pretty-print.c (dump_ternary_rhs): New function.
407         (dump_gimple_assign): Call it when appropriate.
408         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
409         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
410         (expand_gimple_stmt_1): Likewise.
411         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
412         WIDEN_MULT_MINUS_EXPR.
413         * tree-ssa-operands.c (get_expr_operands): Likewise.
414         * tree-inline.c (estimate_operator_cost): Likewise.
415         * gimple.c (extract_ops_from_tree_1): Renamed from
416         extract_ops_from_tree.  Add new arg for a third operand; fill it.
417         (gimple_build_assign_stat): Support operations with three operands.
418         (gimple_build_assign_with_ops_stat): Likewise.
419         (gimple_assign_set_rhs_from_tree): Likewise.
420         (gimple_assign_set_rhs_with_ops_1): Renamed from
421         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
422         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
423         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
424         WIDEN_MULT_MINUS_EXPR.
425         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
426         (extract_ops_from_tree_1): Adjust declaration.
427         (gimple_assign_set_rhs_with_ops_1): Likewise.
428         (gimple_build_assign_with_ops): Pass NULL for last operand.
429         (gimple_build_assign_with_ops3): New macro.
430         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
431         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
432         functions.
433         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
434         (verify_gimple_assign): Call it.
435         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
436         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
437         functions for dealing with three-operand statements.
438         * tree.c (commutative_ternary_tree_code): New function.
439         * tree.h (commutative_ternary_tree_code): Declare it.
440         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
441         statements.
442         (gimple_assign_nonzero_warnv_p): Likewise.
443         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
444         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
445         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
446         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
447         (struct hashtable_expr): New member ternary in the union.
448         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
449         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
450         (iterative_hash_hashable_expr): Likewise.
451         (print_expr_hash_elt): Handle EXPR_TERNARY.
452         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
453         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
454         statements.  Handle GIMPLE_TERNARY_RHS.
455
456 2010-06-25  Jan Hubicka  <jh@suse.cz>
457
458         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
459
460 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
461
462         PR c/44517
463         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
464         parameters are not good.
465         (c_parser_parameter_declaration): Error unknown type name if the type
466         name can't start declaration specifiers.
467
468 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
469
470         * gcc.c (translate_options): Don't mention +e in comment.
471         (process_command): Don't handle +e specially.
472
473 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
474
475         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
476
477         * ira-build.c (merge_hard_reg_conflicts): New function.
478         (create_cap_allocno, copy_info_to_removed_store_destinations,
479         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
480         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
481         (remove_unnecessary_allocnos, remove_low_level_allocnos)
482         copy_nifo_to_removed_store_destination): Use them.
483         * ira-lives.c (make_hard_regno_born): New function, split out of
484         make_regno_born.
485         (make_allocno_born): Likewise.
486         (make_hard_regno_dead): New function, split out of make_regno_dead.
487         (make_allocno_dead): Likewise.
488         (inc_register_pressure): New function, split out of set_allocno_live.
489         (dec_register_pressure): New function, split out of clear_allocno_live.
490         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
491         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
492         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
493         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
494         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
495         mark_pseudo_regno_live.
496         (process_bb_node_lives): Use mark_pseudo_regno_live,
497         make_hard_regno_born and make_allocno_dead.
498         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
499         set_allocno_live, clear_allocno_live): Delete functions.
500
501         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
502         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
503         functions.
504         (ira_flattening): Use ira_parent_allocno.
505         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
506         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
507
508         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
509         statement.
510
511         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
512         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
513         minmax_set_iter_cond, minmax_set_iter_next,
514         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
515         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
516         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
517         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
518         uses changed.
519
520         * ira-int.h (struct live_range, live_range_t): Renamed from struct
521         ira_allocno_live_range and allocno_live_range_t; all uses changed.
522         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
523         All uses changed.
524
525 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
526
527         * thumb2.md (thumb2_tlobits_cbranch): Delete.
528         (peephole2 to convert zero_extract/compare of single bit to
529          lshift/compare): New.
530
531 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
532
533         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
534         recursive call and call to 'int_const_binop'.
535         (build_range_check, fold_cond_expr_with_comparison, unextend,
536         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
537         multiple_of_p): Adjust call to const_binop.
538
539 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
540
541         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
542         determine size of XFmode operand.
543         (XFmode extended DFmode push splitter): Ditto.
544         (XFmode extended SFmode push splitter): Ditto.
545
546 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
547
548         PR target/44588
549         * config/i386/i386.md (extract_code): New.
550         (<u>divmodqi4): Likewise.
551         (divmodhiqi3): Likewise.
552         (udivmodhiqi3): Likewise.
553         (<u>divqi3): Remvoved.
554
555 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
556
557         PR middle-end/44492
558         * recog.h (struct recog_data): Add is_asm field.
559         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
560         present in constraints of inline-asm operand and memory operand
561         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
562         (extract_insn): Initialize recog_data.is_asm.
563         * doc/md.texi (Constraints): Document operand side-effect rules.
564
565 2010-06-24  Andi Kleen  <ak@linux.intel.com>
566
567         * c-parser.c (c_parser_conditional_expression): Call
568         warn_for_omitted_condop.
569         * doc/invoke.texi: Document omitted condop warning.
570
571 2010-06-24  Nick Clifton<nickc@redhat.com>
572
573         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
574         insn in the sequence is a jump insn before setting its label.
575
576 2010-06-24  Alan Modra  <amodra@gmail.com>
577
578         * collect2.c (main): Match exactly --version and --help.
579
580 2010-06-24  DJ Delorie  <dj@redhat.com>
581
582         * config/m32c/m32c-pragma.c: Don't include rtl.h.
583
584 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
585
586         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
587         using X87MODEF mode iterator.
588         (pushsf splitter): Macroize splitter using P mode iterator.
589         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
590         mode iterator.
591
592         (*movxf_internal): Rename from *movxf_integer.
593         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
594         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
595         (*movdf_internal): Rename from *movdf_integer.
596         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
597         (*movsf_internal): Rename from *movdf_1.
598
599 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
600
601         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
602         (const_gimple_seq_node): Removed typedefs.
603
604         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
605         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
606
607 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
608
609         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
610         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
611         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
612         and CODE_FOR_vec_extract_lo_v4df.
613
614         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
615         Changed to define_insn_and_split.
616         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
617         (vec_extract_lo_v16hi): Likewise.
618         (vec_extract_lo_v32qi): Likewise.
619         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
620         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
621
622 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
623
624         PR target/44640
625         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
626         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
627         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
628         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
629         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
630
631         PR target/44640
632         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
633
634         PR other/44644
635         * df-core.c (struct df): Rename to df_d.
636         * df.h (struct df): Likewise.
637         * dse.h (struct df): Remove forward declaration.
638         * recog.h (struct insn_data): Rename to:
639         (struct_insn_data_d).  Adjusted all users.
640
641 2010-06-23  Arnaud Charlet  <charlet@adacore.com
642
643         PR ada/22220
644         * doc/install.texi: Update requirements to build GNAT.
645
646 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
647
648         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
649         enum type.
650         (m68k_sched_attr_opx_type): Remove unreachable return.
651         (m68k_sched_attr_opy_type): Likewise.
652         (m68k_sched_attr_size): Likewise.
653         (sched_get_opxy_mem_type): Likewise.
654         (m68k_sched_attr_op_mem): Likewise.
655
656 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
657
658         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
659         new statement and adjust VDEF only if necessary.  Remove superfluous
660         call to maybe_clean_or_replace_eh_stmt.
661         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
662         copy the flags.
663         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
664         * tree-inline.c (copy_bb): ...and not there.
665
666 2010-06-22  Cary Coutant  <ccoutant@google.com>
667
668         * dwarf2out.c (is_nested_in_subprogram): New function.
669         (should_move_die_to_comdat): Use it.
670         (copy_ancestor_tree): Don't mark DIEs here.
671         (copy_decls_walk): Start walk from root of newly-added tree;
672         mark DIEs here instead.
673
674 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * config/i386/i386.md (unit): Also check sseishft1.
677
678 2010-06-22  Jan Hubicka  <jh@suse.cz>
679
680         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
681         enabled.
682
683 2010-06-22  Jan Hubicka  <jh@suse.cz>
684
685         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
686         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
687         Return true if something changed.
688         * df.h (df_confluence_function_n): Return bool.
689         * df-core.c (df_worklist_propagate_forward,
690         df_worklist_propagate_backward): Track changes and ages.
691         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
692         track ages.
693         * dse.c (dse_confluence_n): Return always true.
694
695 2010-06-22  Jan Hubicka  <jh@suse.cz>
696
697         * bitmap.c (bitmap_clear_bit): Micro optimize.
698
699 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
700
701         * config/i386/i386.md (SWI1248x): New mode iterator.
702         (SWI48x): Ditto.
703         (SWI12): Ditto.
704         (SWI24): Ditto.
705
706         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
707         SWI1248x mode iterator.
708         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
709         using SWI124 mode iterator.
710         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
711         mode iterator.
712         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
713         *pushdi2_prologue_rex64 using P mode iterator.
714         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
715         using SWI48 mode iterator.
716         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
717         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
718         using SWI1248x mode iterator.
719         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
720         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
721         SWI48 mode iterator.
722         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
723         iterator.
724         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
725         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
726         SWI12 mode iterator.
727         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
728         SWI12 mode iterator.
729         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
730         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
731         SWI24 mode iterator.
732         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
733         SWI48 mode iterator.
734         (mov<mode>_insn_1): New expander.
735         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
736         using SWI48x mode iterator.
737
738         (*movoi_internal_avx): Rename from *movoi_internal.
739         (*movti_internal_rex64): Rename from *movti_rex64.
740         (*movti_internal_sse): Rename from *movti_sse.
741         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
742         (*movdi_internal): Rename from *movdi_2.
743         (*movsi_internal): Rename from *movsi_1.
744         (*movhi_internal): Rename from *movhi_1.
745         (*movqi_internal): Rename from *movqi_1.
746
747         (insv): Update the call to gen_movsi_insv_1 for rename.
748         * config/i386/i386.c (promote_duplicated_reg): Ditto.
749
750 2010-06-22  Jan Hubicka  <jh@suse.cz>
751
752         * passes.c (execute_function_todo): Move call of statistics_fini_pass
753         to ...
754         (execute_todo) ... this one.
755
756 2010-06-22  Alan Modra  <amodra@gmail.com>
757
758         PR target/44364
759         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
760         * caller-save.c (insert_restore, insert_save): Use non-validate
761         form of adjust_address.
762
763 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
764
765         PR target/39690
766         * config/pa/pa.c (override_options): Disable
767         -freorder-blocks-and-partition.
768
769 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
770
771         PR target/44615
772         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
773
774         * config/i386/i386.md (type): Add sseishft1
775
776         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
777         (ppro_insn_load): Likewise.
778         (ppro_insn_store): Likewise.
779         (ppro_insn_both): Likewise.
780
781         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
782         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
783         for type.
784         (*vec_extractv2di_1_avx): Likewise.
785         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
786         type.  Remove atom_unit.
787         (*vec_extractv2di_1_sse2): Likewise.
788
789 2010-06-21  DJ Delorie  <dj@redhat.com>
790
791         * diagnostic.h (diagnostic_classification_change_t): New.
792         (diagnostic_context): Add history and push/pop list.
793         (diagnostic_push_diagnostics): Declare.
794         (diagnostic_pop_diagnostics): Declare.
795         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
796         from pragmas in a history chain instead of the global table.
797         (diagnostic_push_diagnostics): New.
798         (diagnostic_pop_diagnostics): New.
799         (diagnostic_report_diagnostic): Scan history chain to find state
800         of diagnostics as of the diagnostic location.
801         * opts.c (set_option): Pass UNKNOWN_LOCATION to
802         diagnostic_classify_diagnostic.
803         (enable_warning_as_error): Likewise.
804         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
805         use in the history chain.
806         * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
807         allow these pragmas anywhere.
808         * doc/extend.texi: Document pragma GCC diagnostic changes.
809
810 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
811
812         * dwarf2out.c (add_linkage_name): New function.  Don't add
813         anything to DW_TAG_member DIEs.
814         (add_name_and_src_coords_attributes): Use it.
815         (gen_variable_die): Call it for C++ static data members if
816         specification is DW_TAG_member.
817
818         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
819         C++ char16_t and char32_t.
820
821         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
822         * genattrtab.c: Include vecprim.h.
823         (cached_attrs, cached_attr_count, attrs_seen_once,
824         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
825         attrs_cached_after): New variables.
826         (find_attrs_to_cache): New function.
827         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
828         (write_test_expr): Add attrs_cached argument, return it too,
829         attempt to cache non-const attributes used more than once in
830         a single case handling.
831         (write_attr_get): Use find_attrs_to_cache, for caching candidates
832         emit cached_* variables.  Adjust write_attr_set callers.
833         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
834         to find attributes that should be cached in this block.  Adjust
835         write_test_expr callers.
836         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
837         callers.
838         (make_automaton_attrs): Adjust write_test_expr caller.
839
840         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
841         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
842         (make_automaton_attrs): If find_tune_attr returns non-NULL,
843         write separate internal_dfa_insn_code_* and insn_default_latency_*
844         functions for each attribute's value and emit init_sched_attrs
845         function and function pointers.
846         * genattr.c (const_attrs, reservations): New variables.
847         (gen_attr): Add const attributes to const_attrs vector.
848         (check_tune_attr, find_tune_attr): New functions.
849         (main): Add reservations to reservations vector.  If find_tune_attr
850         returns true, add prototype for init_sched_attrs and make
851         internal_dfa_insn_code and insn_default_latency function pointers,
852         otherwise define init_sched_attrs as dummy macro.
853         * cfgexpand.c: Include insn-attr.h.
854         (gimple_expand_cfg): Call init_sched_attrs.
855
856         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
857
858         PR target/44575
859         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
860         va_arg from a set of register save slots into a temporary,
861         if the container is bigger than type size, do the copying
862         using smaller mode or using memcpy.
863
864         PR bootstrap/44426
865         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
866         prototype.
867         (sel_print_to_dot): Remove macro.
868         (sel_print): Likewise.  New prototype.
869         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
870         (sel_print): New function.
871
872 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
873
874         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
875         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
876
877 2010-06-21  Nick Clifton  <nickc@redhat.com>
878
879         * config/rx/rx.h (PTRDIFF_TYPE): Define.
880         (SMALL_REGISTER_CLASS): Define (to zero).
881         (PRINT_OPERAND): Delete.
882         (PRINT_OPERAND_ADDRESS): Delete.
883         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
884         (rx_print_operand_address): Delete prototype.
885         * config/rx/rx.c (rx_print_operand): Make static.
886         Allow %H and %L to handle CONST_DOUBLEs.
887         (rx_print_operand_address): Make static.
888         (rx_gen_move_template): Rename local variable 'template' to
889         out_template.
890         (rx_function_arg): Do not pass unknown sized objects in registers.
891         (TARGET_PRINT_OPERAND): Define.
892         (TARGET_PRINT_OPERAND_ADDRESS): Define.
893
894 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
895
896         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
897
898 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
899
900         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
901         stack-alignment for simple leaf-functions.
902
903 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
904
905         * doc/install.texi: Document bootstrap-lto.
906
907 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
908
909         PR debug/44248
910         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
911         (input_function): Drop them here, if VTA is disabled.
912
913 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
914
915         PR target/44546
916         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
917         New predicate.
918         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
919         ix86_swapped_fp_comparsion_operator instead of
920         ix86_fp_comparison_operator.
921
922         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
923         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
924         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
925         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
926         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
927         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
928
929 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
930
931         PR other/32998
932         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
933         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
934         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
935         (decode_cmdline_option): Update for this return value.  Set
936         orig_option_with_args_text field.  Set arg field for unknown
937         options.  Make static.
938         (decode_cmdline_options_to_array): New.
939         (prune_options): Update handling of find_opt return value.
940         * opts.c (read_cmdline_option): Take decoded option.  Return void.
941         (read_cmdline_options): Take decoded options.
942         (decode_options): Add parameters for decoded options.  Use
943         decode_cmdline_options_to_array.  Use decoded options for -O
944         scan.  Use integral_argument for -O parameters.  Update call to
945         read_cmdline_options.
946         (enable_warning_as_error): Update handling of find_opt return value.
947         * opts.h: Update comment on unknown options.
948         (struct cl_decoded_option): Update comments on opt_index and arg.
949         Add orig_option_with_args_text.
950         (decode_cmdline_option): Remove.
951         (decode_cmdline_options_to_array): Declare.
952         (decode_options): Update prototype.
953         * toplev.c (save_argv): Remove.
954         (save_decoded_options, save_decoded_options_count): New.
955         (read_integral_parameter): Remove.
956         (print_switch_values): Use decoded options.
957         (toplev_main): Don't set save_argv.  Update call to decode_options.
958         * toplev.h (read_integral_parameter): Remove.
959         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
960
961 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
962
963         PR target/44072
964         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
965         immediate.
966         * constraints.md (Pw, Px): New constraints.
967         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
968
969 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
970
971         * config/i386/sse.md (fma4modesuffixf4): Removed.
972         (ssemodesuffixf2s): Likewise.
973         (ssemodesuffixf4): Likewise.
974         (ssemodesuffixf2c): Likewise.
975         (ssescalarmodesuffix2s): Likewise.
976         (avxmodesuffixf2c): Likewise.
977         (ssemodesuffix): New.
978         (ssescalarmodesuffix): Likewise.
979         Update patterns with ssemodesuffix and ssescalarmodesuffix.
980
981 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
982
983         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
984
985 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
986
987         * stor-layout.c (debug_rli): Remove unused local variables.
988
989 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
990
991         PR rtl-optimization/40900
992         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
993         original expression for later reuse.
994         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
995         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
996
997 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
998
999         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
1000         double_int_fits_in_uhwi_p): Implement as static inline.
1001         (double_int_xor): New inline function.
1002         (double_int_lrotate, double_int_rrotate, double_int_max,
1003         double_int_umax, double_int_smax, double_int_min, double_int_umin,
1004         double_int_smin): Declare.
1005         (lrotate_double, rrotate_double): Remove declaration.
1006         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
1007         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
1008         (double_int_lrotate, double_int_rrotate, double_int_max,
1009         double_int_umax, double_int_smax, double_int_min, double_int_umin,
1010         double_int_smin): New function.
1011         * fold-const.c (int_const_binop): Clean up, use double_int_*
1012         functions.
1013         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
1014         double_int_* and immed_double_int_const functions.
1015
1016 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
1017
1018         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
1019         * function.c (types_used_by_cur_var_decl): Likewise.
1020         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
1021
1022 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
1023
1024         * tree.h (record_layout_info): Change type of pending_statics field
1025         to a VEC.
1026         * stor-layout.c (start_record_layout): Store NULL into
1027         pending_statics.
1028         (debug_rli): Call debug_vec_tree instead of debug_tree.
1029         (place_field): Likewise.
1030         (finish_record_layout): Likewise.
1031
1032 2010-06-18  Alan Modra  <amodra@gmail.com>
1033
1034         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
1035
1036 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1037
1038         PR target/43740
1039         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
1040         for SET source operand from SET destination operand.
1041
1042 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
1043
1044         PR rtl-optimization/39871
1045         * reload1.c (init_eliminable_invariants): For flag_pic, disable
1046         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
1047         (function_invariant_p): Rule out a plus of frame or arg pointer with
1048         a SYMBOL_REF.
1049         * ira.c (find_reg_equiv_invariant_const): Likewise.
1050
1051 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
1052
1053         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
1054         print_operand_address and puts to output the operand for CONST.
1055
1056 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
1057
1058         PR debug/44572
1059         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
1060         hook.
1061
1062 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1063
1064         * v850-protos.h (print_operand): Delete.
1065         (print_operand_address): Delete.
1066         * v850.h (PRINT_OPERAND): Delete.
1067         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1068         (PRINT_OPERAND_ADDRESS): Delete.
1069         * v850.c (print_operand_address): Rename to...
1070         (v850_print_operand_address): ...this.  Make static. Call
1071         v850_print_operand.
1072         (print_operand): Rename to...
1073         (v850_print_operand): ...this.  Make static.  Call
1074         v850_print_operand_address.
1075         (v850_print_operand_punct_valid_p): New function.
1076         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1077         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1078
1079 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1080
1081         * config/sh/sh-protos.h (print_operand): Delete.
1082         (print_operand_address): Delete.
1083         * config/sh/sh.h (PRINT_OPERAND): Delete.
1084         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1085         (PRINT_OPERAND_ADDRESS): Delete.
1086         * config/sh/sh.c (sh_print_operand_address): Make static.
1087         (sh_print_operand): Make static.  Call sh_print_operand_address
1088         and sh_print_operand.
1089         (sh_print_operand_punct_valid_p): New function.
1090         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1091         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1092
1093 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1094
1095         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
1096         (mcore_print_operand_address): Delete.
1097         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
1098         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1099         (PRINT_OPERAND_ADDRESS): Delete.
1100         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
1101         (mcore_print_operand): Make static.
1102         (mcore_print_operand_punct_valid_p): New function.
1103         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
1104         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1105
1106 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1107
1108         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
1109         (print_operand_address): Delete.
1110         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
1111         (PRINT_OPERAND_ADDRESS): Delete.
1112         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
1113         static.
1114         (m68hc11_print_operand): Make static.
1115         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1116
1117 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1118
1119         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
1120         (m32r_print_operand_address): Delete.
1121         * config/m32r/m32r.h (m32r_punct_chars): Delete.
1122         (PRINT_OPERAND): Delete.
1123         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1124         (PRINT_OPERAND_ADDRESS): Delete.
1125         * config/m32r/m32r.c (m32r_punct_chars): Make static.
1126         (m32r_print_operand_address): Make static.
1127         (m32r_print_operand): Make static.
1128         (m32r_print_operand_punct_valid_p): New function.
1129         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1130         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1131
1132 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1133
1134         * config/iq2000/iq2000-protos.h (print_operand): Delete.
1135         (print_operand_address): Delete.
1136         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
1137         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1138         (PRINT_OPERAND_ADDRESS): Delete.
1139         (iq2000_print_operand_punct): Delete.
1140         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
1141         (iq2000_print_operand_address): Make static.
1142         (iq2000_print_operand): Make static.
1143         (iq2000_print_operand_punct_valid_p): New function.
1144         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1145         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1146
1147 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1148
1149         * config/frv/frv-protos.h (frv_print_operand): Delete.
1150         (frv_print_operand_address): Delete.
1151         * config/frv/frv.h (PRINT_OPERAND): Delete.
1152         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1153         (PRINT_OPERAND_ADDRESS): Delete.
1154         * config/frv/frv.c (frv_print_operand_address): Make static.
1155         (frv_print_operand): Make static.
1156         (frv_print_operand_punct_valid_p): New function.
1157         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1158         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1159
1160 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
1161
1162         * tree.h (vec_member): Declare.
1163         * tree.c (vec_member): Define.
1164
1165 2010-06-17  Richard Guenther  <rguenther@suse.de>
1166
1167         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
1168         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
1169
1170 2010-06-17  Richard Guenther  <rguenther@suse.de>
1171
1172         * tree-inline.c (declare_return_variable): Remove bogus code.
1173
1174 2010-06-17  Richard Guenther  <rguenther@suse.de>
1175
1176         * gimplify.c (gimplify_bind_expr): Always promote complex
1177         and vector variables to registers if possible.
1178
1179 2010-06-17  Richard Guenther  <rguenther@suse.de>
1180
1181         * expr.c (get_inner_reference): Use double_int for bit_offset
1182         calculation.
1183
1184 2010-06-16  DJ Delorie  <dj@redhat.com>
1185
1186         * common.opt (-fstrict-volatile-bitfields): new.
1187         * doc/invoke.texi: Document it.
1188         * fold-const.c (optimize_bit_field_compare): For volatile
1189         bitfields, use the field's type to determine the mode, not the
1190         field's size.
1191         * expr.c (expand_assignment): Likewise.
1192         (get_inner_reference): Likewise.
1193         (expand_expr_real_1): Likewise.
1194         * expmed.c (store_fixed_bit_field): Likewise.
1195         (extract_bit_field_1): Likewise.
1196         (extract_fixed_bit_field): Likewise.
1197
1198 2010-06-16  Richard Guenther  <rguenther@suse.de>
1199
1200         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1201
1202 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
1203
1204         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1205         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1206         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1207         * debug.c: Likewise.
1208         * sdbout.c: Likewise.
1209         * vmsdbgout.c: Likewise.
1210         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1211         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1212         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1213         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1214         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1215         * dwarf2out.c (dw_fde_struct): New fields
1216         dw_fde_vms_{end,begin}_prologue.
1217         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1218         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1219         (dwarf2out_vms_end_prologue): New function.
1220         (dwarf2out_vms_begin_epilogue): New function.
1221         (dw_val_struct): New value dw_val_class_vms_delta.
1222         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1223         begin_epilogue for VMS.
1224         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1225         new static functions.
1226         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1227         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1228         static functions.
1229         (print_die): New case dw_val_class_vms_delta.
1230         (attr_checksum): Likewise.
1231         (same_dw_val_p: Likewise.
1232         (size_of_die): Likewise.
1233         (value_format): Likewise.
1234         (output_die): Likewise.
1235         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1236         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1237         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1238         dwarf2out_cfi_begin_epilogue
1239         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1240
1241 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
1242
1243         * config/cris/cris-protos.h (cris_print_operand): Delete.
1244         (cris_print_operand_address): Delete.
1245         * config/cris/cris.h (PRINT_OPERAND): Delete.
1246         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1247         (PRINT_OPERAND_ADDRESS): Delete.
1248         * config/cris/cris.c (cris_print_operand_address): Make static.
1249         (cris_print_operand): Make static.
1250         (cris_print_operand_punct_valid_p): New function.
1251         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1252         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1253
1254 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
1255
1256         * config/arm/arm-protos.h (arm_print_operand): Delete.
1257         (arm_print_operand_address): Delete.
1258         * config/arm/arm.h (PRINT_OPERAND): Delete.
1259         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1260         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1261         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1262         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
1263         (arm_print_operand): Make static.
1264         (arm_print_operand_punct_valid_p): New function.
1265         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1266         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1267
1268 2010-06-16  Nick Clifton  <nickc@redhat.com>
1269
1270         * config/rx/constraints.md (NEGint4): New constraint.
1271         * config/rx/rx.md (attr cc): Add set_zsc.
1272         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1273         initialised.
1274         (cmpsf): Likewise.
1275         (call_internal): Clobber the cc0 register.
1276         (call_value_internal): Likewise.
1277         (cstoresi4): Likewise.
1278         (movsieq): Likewise.
1279         (movsine): Likewise.
1280         (addsi3): Add alternative to handle small negative constants.
1281         (sunsi3): Likewise.
1282         (addsi3): Do not set the O bit in the cc0 register.
1283         (adddi3): Likewise.
1284         (subsi3): Likewise.
1285         (subdi3): Likewise.
1286         (andsi3): Reorder alternatives to prefer shorter forms.
1287         (mulsi3): Likewise.
1288         (iorsi3): Likewise.
1289         (negsi2): Note that the cc0 flags are set.
1290         (rotlsi3): Note that only the Z and S bits are set in cc0.
1291         (lshrsi3): Likewise.
1292         (ashlsi3): Likewise.
1293         (subsf3): Use %Q for the MEM operand.
1294         (fix_truncsfsi2): Likewise.
1295         (floatsisf2): Likewise.
1296         (bitset): Remove early clobber from destination.
1297         (bitset_in_memory): Likewise.
1298         (lrintsf2): Clobber the cc0 register.
1299         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1300         (rx_print_operand): Handle %N.
1301
1302 2010-06-16  Jan Hubicka  <jh@suse.cz>
1303
1304         * df-core.c (df_compact_blocks): Free problem_temps vector.
1305
1306 2010-06-16  Martin Jambor  <mjambor@suse.cz>
1307
1308         PR tree-optimization/43905
1309         * tree-sra.c: Include tree-inline.h.
1310         (create_abstract_origin): Removed.
1311         (modify_function): Version the call graph node instead of creating
1312         abstract origins and dealing with same_body aliases.
1313         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1314         function is versionable.
1315         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1316
1317 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1318
1319         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1320         (CHOOSE_DYNAMIC_LINKER): Update.
1321
1322 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
1323
1324         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
1325         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1326         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1327         *prefetch_3dnow_rex.
1328
1329 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
1330
1331         * target.h (struct asm_out):Add declare_constant_name field.
1332         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1333         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1334         * output.h (default_asm_declare_constant_name): Declare.
1335         (assemble_label): Update prototype.
1336         * varasm.c (assemble_constant_contents): Use
1337         targetm.asm_out.declare_constant_name target hook.
1338         (assemble_label): Add 'file' argument.
1339         (default_asm_declare_constant_name): New function.
1340         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1341         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1342         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1343
1344         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1345         * config/darwin.c (darwin_asm_declare_constant_name): New function.
1346         (machopic_output_indirection): Update assemble_label argument list.
1347         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1348         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1349
1350 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
1351
1352         PR middle-end/44391
1353         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1354         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
1355
1356 2010-06-15  Richard Guenther  <rguenther@suse.de>
1357
1358         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1359
1360 2010-06-15  Paul Brook  <paul@codesourcery.com>
1361
1362         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1363         hard-float ABI.
1364
1365 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
1366
1367         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1368         don't get a vector type for output.
1369
1370 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
1371
1372         PR fortran/44536
1373         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1374         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1375         (LANG_HOOKS_DECLS): Add it.
1376         * gimplify.c (omp_notice_variable): Call
1377         lang_hooks.decls.omp_report_decl.
1378
1379 2010-06-15  Martin Jambor  <mjambor@suse.cz>
1380
1381         PR lto/44464
1382         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1383         on the newly dead SSA name.
1384
1385 2010-06-15  Alan Modra  <amodra@gmail.com>
1386
1387         * doc/invoke.texi: Add mcmodel to powerpc options.
1388         * configure.ac: Add HAVE_LD_LARGE_TOC test.
1389         * configure: Regenerate.
1390         * config.in: Regenerate.
1391         * config/rs6000/linux64.opt (mcmodel): New.
1392         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1393         (TARGET_CMODEL, SET_CMODEL): Define.
1394         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1395         select CMODEL_MEDIUM default.
1396         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1397         (TARGET_CMODEL): Define default.
1398         * config/rs6000/rs6000.c (cmodel): New variable.
1399         (rs6000_explicit_options): Add cmodel field.
1400         (rs6000_handle_option): Handle -mcmodel.
1401         (create_TOC_reference): Add largetoc_reg param.  Generate high,
1402         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
1403         (rs6000_delegitimize_address): Recognise new toc reference rtl
1404         and minimal-toc rtl.
1405         (rs6000_legitimize_reload_address): Handle new toc references.
1406         (print_operand_address): Handle legitimate_constant_pool_address_p
1407         match before lo_sum.
1408         (rs6000_eliminate_indexed_memrefs): Tidy.
1409         (rs6000_emit_move): Tweak threshold for inlining constants.
1410         Keep rs6000_emit_allocate_stack large stack frame offsets
1411         loaded into r0 inline.
1412         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1413         (tocrel_base, tocrel_offset): New variables.
1414         (toc_relative_expr_p): Set them here.
1415         (print_operand_address): Skip over any offset on constant pool address.
1416         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1417         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1418         (offsettable_ok_by_alignment): New function.
1419         (rs6000_emit_move): Address suitably aligned local symbol_refs
1420         relative to the toc pointer for -mcmodel=medium.
1421         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
1422         strict param.  Allow lo_sum version of addressing.  Verify reg
1423         used for -mminimal-toc and -mcmodel != small.  Update all callers.
1424         * config/rs6000/constraints.md: Update for above change.
1425         * config/rs6000/predicates.md: Likewise.
1426         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1427         code.
1428         (tls_gd): Split for -mcmodel=medium/large.
1429         (tls_gd_high, tls_gd_low): New.
1430         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1431         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1432         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1433         (largetoc_high, largetoc_low): New.
1434         (cmptf_internal2): Add clobber.
1435         * config/rs6000/rs6000-protos.h: Update.
1436
1437 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
1438
1439         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
1440         true if no prefetch is going to be generated for a given group.
1441         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1442         estimate the prefetch_count.
1443         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1444         prefetch count by considering the unroll_factor and prefetch_mod
1445         for is_loop_prefetching_profitable.
1446
1447 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
1448
1449         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1450         anything if the argument is not a MEM.
1451
1452 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
1453
1454         PR debug/43650
1455         PR debug/44181
1456         PR debug/44247
1457         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1458         debug stmts.
1459         (canonicalize_loop_ivs): Likewise.
1460
1461 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
1462
1463         PR debug/43656
1464         * haifa-sched.c (setup_insn_reg_pressure_info,
1465         update_register_pressure): Reject debug insns.
1466         (ready_sort): Don't setup reg pressure for debug insns.
1467         (schedule_insn): Don't update reg pressure for debug insns.
1468
1469 2010-06-14  Richard Guenther  <rguenther@suse.de>
1470
1471         * lto-streamer.c (cached_bp): Remove.
1472         (bitpack_delete): Likewise.
1473         (bitpack_create): Likewise.
1474         (bp_get_next_word): Likewise.
1475         (bp_pack_value, bp_unpack_value): Move ...
1476         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1477         Re-implement.
1478         (struct bitpack_d): Likewise.
1479         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1480         New inline functions.
1481         * lto-streamer-out.c (lto_output_bitpack): Remove.
1482         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
1483         (pack_value_fields): Adjust.
1484         (lto_write_tree): Likewise.
1485         (output_gimple_stmt): Likewise.
1486         (output_function): Likewise.
1487         * lto-streamer-in.c (input_gimple_stmt): Adjust.
1488         (input_function): Likewise.
1489         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
1490         (lto_input_bitpack): Remove.
1491         (lto_materialize_tree): Adjust.
1492         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1493         * lto-cgraph.c (lto_output_edge): Adjust.
1494         (lto_output_node): Likewise.
1495         (lto_output_varpool_node): Likewise.
1496         (lto_output_ref): Likewise.
1497         (input_node): Likewise.
1498         (input_varpool_node): Likewise.
1499         (input_ref): Likewise.
1500         (input_edge): Likewise.
1501         (output_node_opt_summary): Likewise.
1502         (input_node_opt_summary): Likewise.
1503         * ipa-pure-const.c (pure_const_write_summary): Likewise.
1504         (pure_const_read_summary): Likewise.
1505         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1506         (ipa_read_indirect_edge_info): Likewise.
1507         (ipa_write_node_info): Likewise.
1508         (ipa_read_node_info): Likewise.
1509
1510 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1511
1512         PR target/44534
1513         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1514         (vec_extract_lo_v16hi): Likewise.
1515         (vec_extract_lo_v32qi): Likewise.
1516
1517 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
1518
1519         PR bootstrap/44426
1520         * tree.h (build_call_expr): Don't define as vararg macro, instead
1521         add a prototype.
1522         * builtins.c (build_call_nofold): Remove.
1523         (expand_builtin_int_roundingfn, expand_builtin_pow,
1524         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1525         expand_builtin_memset_args, expand_builtin_strcmp,
1526         expand_builtin_strncmp, expand_builtin_memory_chk): Use
1527         build_call_nofold_loc instead of build_call_nofold.
1528         (build_call_expr): New function.
1529
1530         PR tree-optimization/44508
1531         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1532         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1533         don't eliminate trivially dead stmts.
1534         * tree-vrp.c (vrp_finalize): Pass false as last argument
1535         to substitute_and_fold.
1536         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1537         to substitute_and_fold.
1538         * tree-ssa-ccp.c (ccp_finalize): Likewise.
1539
1540         PR bootstrap/44509
1541         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1542         * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1543         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1544         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1545         ggc_strdup instead of xstrdup.
1546
1547 2010-06-14  Ira Rosen  <irar@il.ibm.com>
1548
1549         PR tree-optimization/44507
1550         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1551         to build initial vector for BIT_AND_EXPR.
1552         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1553
1554 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
1555
1556         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1557         adjust z10prop set_attr.
1558
1559 2010-06-13  Jan Hubicka  <jh@suse.cz>
1560
1561         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1562         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1563         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1564         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1565         datastructure checks into checking asserts.
1566         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1567         * tree-ssa-sccvn.c (VN_INFO): Likewise.
1568         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1569         df_ref_create_structure): Likewise.
1570         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1571         pool_free): Use gcc_checking_assert.
1572         * alias.c (get_alias_set): Likewise.
1573         * var-tracking.c (variable_htab_free, shared_hash_copy,
1574         canonicalize_values_mark, variable_merge_over_cur): Likewise.
1575         * lto-streamer.c (bp_unpack_value): Likewise.
1576
1577 2010-06-13  Richard Guenther  <rguenther@suse.de>
1578
1579         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1580         Do not stream but initialize TYPE_CANONICAL to NULL.
1581         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1582         * gimple.c (gimple_types_compatible_p): Disregard
1583         TYPE_STRUCTURAL_EQUALITY_P.
1584         (gimple_register_type): Use TYPE_CANONICAL as cache.
1585         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1586         before registering common types.
1587         * config/i386/i386.c (ix86_function_arg_boundary): Do not
1588         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1589         * tree.h (TYPE_CANONICAL): Clarify documentation.
1590
1591 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
1592
1593         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1594         LIBCALL_VALUE): Remove macros.
1595         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1596         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1597         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1598         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1599         (ia64_function_value): Make static. Handle receiving the function
1600         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1601
1602 2010-06-12  Jan Hubicka  <jh@suse.cz>
1603
1604         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1605         at correct place.
1606
1607 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
1608
1609         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1610
1611 2010-06-12  Jan Hubicka  <jh@suse.cz>
1612
1613         * df-core.c (df_clear_bb_info): New function.
1614         (df_set_blocks): bb_info is always allocated.
1615         (df_get_bb_info): Use block_info_elt_size.
1616         (df_set_bb_info): Likewise.
1617         (df_compact_blocks): Update for new block_info.
1618         (grow_bb_info): New function.
1619         * df-problems.c (df_grow_bb_info): Move to df-core.c
1620         (df_rd_set_bb_info): Remove.
1621         (df_rd_free_bb_info): Do not free block pool.
1622         (df_rd_alloc): Do not create pool, use check for
1623         obstack presence instead of NULL pointer for new blocks.
1624         (df_rd_free): DO not free alloc pool; clear block_info.
1625         (problem_RD): Add size of block info structure.
1626         (df_lr_set_bb_info): Remove.
1627         (df_lr_free_bb_info): Do not free block pool.
1628         (df_lr_alloc): Do not create pool, use check for
1629         obstack presence instead of NULL pointer for new blocks.
1630         (df_lr_free): DO not free alloc pool; clear block_info.
1631         (problem_LR): Add size of block info structure.
1632         (df_live_set_bb_info): Remove.
1633         (df_live_free_bb_info): Do not free block pool.
1634         (df_live_alloc): Do not create pool, use check for
1635         obstack presence instead of NULL pointer for new blocks.
1636         (df_live_free): DO not free alloc pool; clear block_info.
1637         (problem_LIVE): Add size of block info structure.
1638         (problem_CHAIN): Add size of block info structure.
1639         (df_byte_lr_set_bb_info): Remove.
1640         (df_byte_lr_free_bb_info): Do not free block pool.
1641         (df_byte_lr_alloc): Do not create pool, use check for
1642         obstack presence instead of NULL pointer for new blocks.
1643         (df_byte_lr_free): DO not free alloc pool; clear block_info.
1644         (problem_BYTE_LR): Add size of block info structure.
1645         (problem_NOTE): Add size of block info structure.
1646         (df_byte_MD_set_bb_info): Remove.
1647         (df_byte_MD_free_bb_info): Do not free block pool.
1648         (df_byte_MD_alloc): Do not create pool, use check for
1649         obstack presence instead of NULL pointer for new blocks.
1650         (df_byte_MD_free): DO not free alloc pool; clear block_info.
1651         (problem_BD): Add size of block info structure.
1652         * df-scan.c (df_scan_free_internal): Free block pool.
1653         (df_scan_set_bb_info): Remove.
1654         (df_scan_free_bb_info): Check for artificial_defs instead
1655         of bb_info being non-NULL.
1656         (df_scan_alloc): DO not create df_scan_block pool.
1657         (problem_SCAN): Set size of block info.
1658         (df_bb_refs_record): Do not allocate bb_info.
1659         * df.h (df_problem): Add block_info_elt_size.
1660         (struct dataflow): Change block_info to void *.
1661         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1662         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1663         in-line structures.
1664
1665 2010-06-12  Jan Hubicka  <jh@suse.cz>
1666
1667         PR tree-optimize/44485
1668         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1669         containing use of return value of noreturn function.
1670
1671 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
1672
1673         * targhooks.c (default_function_value): Don't use
1674         FUNCTION_OUTGOING_VALUE.
1675         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1676         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1677
1678 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
1679
1680         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1681         Add crtfastmath.o to extra_parts.
1682         * config/mips/crtfastmath.c: New.
1683         * config/mips/linux.h (ENDFILE_SPEC): New.
1684
1685 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
1686
1687         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1688         old_type in parameter.
1689         (gcc_type_for_value): Update call to gcc_type_for_interval.
1690         (compute_type_for_level_1): Renamed compute_type_for_level.
1691         Update call to gcc_type_for_interval.
1692
1693 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
1694
1695         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1696         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1697
1698 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
1699
1700         * opts-common.c: Include options.h.
1701         (integral_argument): Move from opts.c.
1702         (decode_cmdline_option): New.  Based on read_cmdline_option.
1703         * opts.c (integral_argument): Move to opts-common.c.
1704         (read_cmdline_option): Move most contents to
1705         decode_cmdline_option.  Use %qs in diagnostics.
1706         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1707         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1708         decode_cmdline_option): New.
1709
1710 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
1711
1712         PR target/44481
1713         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1714         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1715         (partiysi2_cmp): Ditto.
1716         (*partiyhi2_cmp): Ditto.
1717         (*parityqi2_cmp): Remove.
1718
1719 2010-06-11  Jan Hubicka  <jh@suse.cz>
1720
1721         * bitmap.h (bmp_iter_next_bit): New.
1722         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1723
1724 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
1725             Eric Botcazou  <ebotcazou@adacore.com>
1726
1727         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1728         computed cost.
1729
1730 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
1731
1732         * config/i386/i386.md (unspec): New define_c_enum.
1733         (unspecv): Ditto.
1734
1735 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
1736
1737         * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1738         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1739         (lazy_hex_fp_value): New function.
1740         (builtin_define_with_hex_fp_value): Provide definitions lazily.
1741         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1742
1743 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
1744
1745         PR middle-end/44483
1746         * tree-if-conv.c (bb_predicate_s): New struct.
1747         (bb_predicate_p): New.
1748         (bb_has_predicate): New.
1749         (bb_predicate): New.
1750         (set_bb_predicate): New.
1751         (bb_predicate_gimplified_stmts): New.
1752         (set_bb_predicate_gimplified_stmts): New.
1753         (add_bb_predicate_gimplified_stmts): New.
1754         (init_bb_predicate): New.
1755         (free_bb_predicate): New.
1756         (is_predicated): Use bb_predicate.
1757         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1758         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
1759         before processing their successors.
1760         (clean_predicate_lists): Removed.
1761         (find_phi_replacement_condition): Use bb_predicate.
1762         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
1763         computations.
1764         (insert_gimplified_predicates): New.
1765         (combine_blocks): Call insert_gimplified_predicates.
1766         (tree_if_conversion): Call free_bb_predicate instead of
1767         clean_predicate_lists.
1768
1769 2010-10-11  Paul Brook  <paul@codesourcery.com>
1770
1771         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1772         * config/arm/arm.c (all_architectures): Change v7e-m default to
1773         cortexm4.
1774         * config/arm/arm-cores.def: Add cortex-m4.
1775         * config/arm/arm-tune.md: Regenerate.
1776
1777 2010-06-11  Jan Hubicka  <jh@suse.cz>
1778
1779         * ipa-pure-const.c (special_builtlin_state): New function.
1780         (check_call): Use it instead of special casign BUILT_IN_RETURN.
1781         (propagate_pure_const): Use it.
1782
1783 2010-06-11  Jan Hubicka  <jh@suse.cz>
1784
1785         * df-problems.c (df_live_scratch): Convert to bitmap_head.
1786         (df_live_alloc): Initialize df_live_scratch when initializing
1787         problem_data.
1788         (df_live_transfer_function): Update uses of df_live_scratch.
1789         (df_live_free): Free problem_data; clear df_live_scratch before
1790         releasing the obstack.
1791         (df_md_free): Free problem data.
1792
1793 2010-06-11  Jan Hubicka  <jh@suse.cz>
1794
1795         * doc/invoke.texi (Wsuggest-attribute): Document.
1796         (Wmissing-noreturn): Remove.
1797         * ipa-pure-const.c (warn_function_noreturn): New function.
1798         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1799         warn_missing_noreturn.
1800         * common.opt (Wsuggest-attribute=noreturn): New.
1801         * tree-flow.h (warn_function_noreturn): Declare.
1802         * tree-cfg.c (execute_warn_function_noreturn): Use
1803         warn_function_noreturn.
1804         (gate_warn_function_noreturn): New.
1805         (pass_warn_function_noreturn): Update.
1806
1807 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1808
1809         * c-typeck.c (handle_warn_cast_qual): Add loc
1810         parameter. Improve warning message.
1811         (build_c_cast): Pass location to handle_warn_cast_qual.
1812
1813 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
1814
1815         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1816         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
1817         insn mnemonic.
1818         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1819
1820 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
1821
1822         Fix bootstap on mips
1823         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1824         be naming typedefs.
1825
1826 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
1827
1828         * system.h (helper_const_non_const_cast): New inline for
1829         gcc version <= 4.0.
1830         (CONST_CAST2): For gcc version <= 4.0 use
1831         new helper to do const/non-const casting.
1832
1833 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1834
1835         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1836         * Makefile.in (OBJS-common): Include insn-enums.o.
1837         (insn-enums.o): New rule.
1838         (simple_generated_c): Add insn-enums.c.
1839         (build/genenums.o): New rule.
1840         (genprogmd): Add "enums".
1841         * genconstants.c (print_enum_type): Declare a C string array
1842         for each enum.
1843         * genenums.c: New file.
1844         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1845         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
1846         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1847
1848 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1849
1850         * doc/md.texi (define_enum_attr): Document.
1851         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1852         * read-md.h (lookup_enum_type): Declare.
1853         * read-md.c (lookup_enum_type): New function.
1854         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1855         * genattrtab.c (attr_desc): Add an enum_name field.
1856         (evaluate_eq_attr): Take the associated attribute as argument.
1857         Get the enum prefix from the enum_name field, if defined.
1858         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
1859         (simplify_test_exp): Pass attr to evaluate_eq_attr.
1860         (add_attr_value): New function, split out from...
1861         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
1862         (write_test_expr): Pass attr to evaluate_eq_attr.
1863         (write_attr_get): Use the enum_name as the enum tag, if defined.
1864         (write_attr_valueq): Use the enum_name as a prefix, if defined.
1865         (find_attr): Initialize enum_name.
1866         (main): Handle DEFINE_ENUM_ATTR.
1867         * gensupport.c (process_rtx): Likewise.
1868         * config/mips/mips.h (mips_tune_attr): Delete.
1869         * config/mips/mips.md (cpu): Use define_attr_enum.
1870
1871 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1872
1873         * doc/md.texi (define_c_enum, define_enum): Document.
1874         * read-md.h (md_constant): Add a parent_enum field.
1875         (enum_value, enum_type): New structures.
1876         (upcase_string, traverse_enum_types): Declare.
1877         * read-md.c (enum_types): New variable.
1878         (upcase_string, add_constant): New functions.
1879         (handle_constants): Don't create the hash table here.
1880         Use add_constant.
1881         (traverse_md_constants): Don't check for a null md_constants.
1882         (decimal_string, handle_enum, traverse_enum_types): New functions.
1883         (read_md_files): Initialize md_constants and md_enums.
1884         * genconstants.c (print_md_constant): Ignore info argument.
1885         Only print constants that belong to no enum.
1886         (print_enum_type): New function.
1887         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
1888         for each defined enum type.
1889         * config/mips/mips.md (processor): New define_enum.
1890         (unspec): New define_c_enum.
1891         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1892         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1893         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1894         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1895         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1896         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1897         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1898         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1899         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1900         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1901         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1902         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1903         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1904         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1905         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1906         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1907         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1908         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1909         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1910         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1911         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1912         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1913         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1914         (UNSPEC_RDDSP): Move to mips-dsp.md.
1915         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1916         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1917         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1918         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1919         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1920         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1921         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1922         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1923         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1924         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1925         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1926         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1927         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1928         Moved to mips-dspr2.md.
1929         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1930         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1931         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1932         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1933         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1934         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1935         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1936         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1937         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1938         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1939         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1940         UNSPEC_LOONGSON_PSADBH)
1941         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1942         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1943         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1944         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1945         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1946         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1947         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1948         (cpu): Update comment.
1949         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1950         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1951         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1952         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1953         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1954         UNSPEC_LOONGSON_PCMPEQ)
1955         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1956         UNSPEC_LOONGSON_PINSR_0)
1957         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1958         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1959         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1960         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1961         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1962         UNSPEC_LOONGSON_PSADBH)
1963         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1964         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1965         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1966         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1967         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1968         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1969         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1970         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1971         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1972         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1973         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1974         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1975         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1976         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1977         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1978         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1979         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1980         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1981         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1982         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1983         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1984         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1985         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1986         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1987         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1988         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1989         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1990         (UNSPEC_RDDSP): Moved from mips.md.
1991         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1992         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1993         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1994         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1995         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1996         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1997         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1998         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1999         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
2000         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
2001         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
2002         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
2003         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
2004         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
2005         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
2006         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
2007         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
2008         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
2009         (UNSPEC_SCC): Moved from mips.md.
2010         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
2011         "processor_type" to "processor".
2012         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
2013         * config/mips/mips.h (processor_type): Delete.
2014         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
2015         "processor_type" to "processor".
2016
2017 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2018
2019         * configure.ac (tm_include_list): Add insn-constants.h.
2020         * configure: Regenerate.
2021         * Makefile.in (GTM_H): Move insn-constants.h here from...
2022         (TM_H): ...here.
2023         * mkconfig.sh: Remove special handling for insn-constants.h.
2024
2025 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2026
2027         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
2028         (BUILD_MD): ...this new variable.
2029         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
2030         that include the old contents of simple_generated_h and
2031         simple_generated_c.
2032         (simple_generated_h, simple_generated_c): Include them.  Add
2033         insn-constants.h.
2034         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
2035         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
2036         Remove these dependencies from the main rule and include
2037         insn-conditions.md in the command line only if it appears
2038         in the dependency list.
2039         (insn-constants.h, s-constants): Delete.
2040         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
2041         or gensupport.h.
2042         (build/genmddeps.o): Likewise.
2043         (genprogrtl): New variable that contains everything from genprogmd
2044         except mddeps and constants.
2045         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
2046         depend on $(BUILD_MD)
2047         (genprog): New variable.  Make these programs depend on
2048         $(BUILD_ERRORS).
2049         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
2050         (main): Use read_md_files instead of init_rtx_reader_args.
2051         * genconstants.c: As for genmddeps.c.
2052         * read-md.h (read_skip_construct): Declare.
2053         * read-md.c (read_skip_construct): New function.
2054         (handle_file): Allow a null handle_directive, skipping the
2055         construct if so.
2056         (parse_include): Update the comment accordingly.
2057
2058 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2059
2060         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
2061         * genmddeps.c: Include read-md.h.
2062         (main): Call init_rtx_reader_args instead of init_md_reader_args.
2063         * genattr.c (main): Likewise.
2064         * genattrtab.c (main): Likewise.
2065         * genautomata.c (main): Likewise.
2066         * gencodes.c (main): Likewise.
2067         * genconditions.c (main): Likewise.
2068         * genconfig.c (main): Likewise.
2069         * genconstants.c (main): Likewise.
2070         * genemit.c (main): Likewise.
2071         * genextract.c (main): Likewise.
2072         * genflags.c (main): Likewise.
2073         * genopinit.c (main): Likewise.
2074         * genoutput.c (main): Likewise.
2075         * genpeep.c (main): Likewise.
2076         * genrecog.c (main): Likewise.
2077         * genpreds.c (main): Likewise.
2078         * gensupport.h (in_fname): Move to read-md.h.
2079         (init_md_reader_args_cb): Rename to...
2080         (init_rtx_reader_args_cb): ...this and return a bool.
2081         (init_md_reader_args): Rename to...
2082         (init_rtx_reader_args): ...this and return a bool.
2083         (include_callback): Move to read-md.h.
2084         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
2085         (file_name_list, first_dir_md_include): Move to read-md.c
2086         (first_bracket_include): Delete unused variable.
2087         (last_dir_md_include): Move to read-md.c.
2088         (process_include): Delete, moving code to read-md.c:handle_include.
2089         (process_rtx): Don't handle INCLUDE.
2090         (save_string): Delete.
2091         (rtx_handle_directive): New function.
2092         (init_md_reader_args_cb): Rename to...
2093         (init_rtx_reader_args_cb): ...this and return a boolean success value.
2094         Use read_md_args.
2095         (init_md_reader_args): Rename to...
2096         (init_rtx_reader_args): ...this and return a boolean success value.
2097         * rtl.def (INCLUDE): Delete.
2098         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
2099         argument.
2100         * read-rtl.c (read_conditions): Don't gobble ')' here.
2101         (read_mapping): Likewise.
2102         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
2103         Handle top-level non-rtx constructs here rather than in read_rtx_1.
2104         Store the whole queue in *X.  Remove call to init_md_reader.
2105         (read_rtx_1): Rename to...
2106         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
2107         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
2108         here.
2109         (read_nested_rtx): New function.  Handle (nil) here rather than
2110         in read_rtx_code.
2111         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
2112         gobble ')' here.
2113         * read-md.h (directive_handler_t): New type.
2114         (in_fname, include_callback): Moved from read-md.h.
2115         (read_constants, init_md_reader): Delete.
2116         (read_md_files): Declare.
2117         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
2118         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
2119         from gensupport.c.
2120         (read_constants): Rename to...
2121         (handle_constants): ...this.  Don't gobble ')' here.
2122         (handle_include, handle_file, handle_toplevel_file)
2123         (parse_include): New functions, mostly taken from gensupport.c.
2124         (init_md_reader): Subsume into...
2125         (read_md_files): ...this new function.
2126
2127 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2128
2129         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
2130         (unread_char): Decrement read_md_lineno after putting back '\n'.
2131         * read-md.c (fatal_with_file_and_line): Push back any characters
2132         that we decide not to add to the context.
2133         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
2134         fatal_expected_char in cases where '/' ends a line (for example).
2135         (read_name): Don't increment read_md_lineno here.
2136         (read_escape): Likewise.
2137         (read_quoted_string): Likewise.
2138         (read_braced_string): Likewise.
2139
2140 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2141
2142         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
2143         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
2144         * genconstants.c: Include read-md.h.
2145         * read-rtl.c (md_constants): Move to read-md.c.
2146         (md_name): Move to read-md.h.
2147         (initialize_iterators): Use leading_string_hash instead of def_hash
2148         and leading_string_eq_p instead of def_name_eq_p.
2149         (read_name): Move to read-md.c.
2150         (def_hash, def_name_eq_p): Delete.
2151         (read_constants, traverse_md_constants): Move to read-md.c.
2152         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
2153         * read-md.h: Include hashtab.h.
2154         (md_name): Moved from read-rtl.c.
2155         (md_constant): Moved from read-md.h.
2156         (leading_string_hash, leading_string_eq_p, read_name)
2157         (read_constants, traverse_md_constants): Declare.
2158         * read-md.c (md_constants): Moved from read-rtl.c.
2159         (leading_string_hash, leading_string_eq_p): New functions.
2160         (read_name, read_constants, traverse_md_constants): Moved from
2161         read-rtl.c.
2162
2163 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2164
2165         * read-rtl.c (md_name): New structure.
2166         (read_name): Take an md_name instead of a buffer pointer.
2167         Use the "string" field instead of strcpy when expanding constants.
2168         (read_constants): Remove the tmp_char argument.  Update the calls
2169         to read_name, using two local name buffers instead of the tmp_char
2170         argument.  Merge the constant-creation code.
2171         (read_conditions): Remove the tmp_char argument.  Update the calls
2172         to read_name, using a local name buffer instead of the tmp_char
2173         argument.
2174         (read_mapping): Replace tmp_char variable with a local name buffer.
2175         Update the calls to read_name.
2176         (read_rtx_1): Likewise.  Update the calls to read_constants and
2177         read_conditions.
2178
2179 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2180
2181         * Makefile.in (build/read-md.o): Depend on errors.h.
2182         * read-md.h (error_with_line): Declare.
2183         * read-md.c: Include errors.h.
2184         (message_with_line_1): New function, extracted from...
2185         (message_with_line): ...here.
2186         (error_with_line): New function.
2187         * genattrtab.c: If a call to message_with_line is followed by
2188         "have_error = 1;", replace both statements with a call to
2189         error_with_line.
2190         * genoutput.c: Likewise.
2191         * genpreds.c: Likewise.
2192         * genrecog.c: If a call to message_with_line is followed by
2193         "error_count++;", replace both statements with a call to
2194         error_with_line.
2195         (errorcount): Delete.
2196         (main): Don't check it.
2197         * gensupport.c: If a call to message_with_line is followed by
2198         "errors = 1;", replace both statements with a call to error_with_line.
2199         (errors): Delete.
2200         (process_define_cond_exec): Check have_error instead of errors.
2201         (init_md_reader_args_cb): Likewise.  Don't set errors.
2202
2203 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2204
2205         * read-md.h (read_md_file): Declare.
2206         (read_char, unread_char): New functions.
2207         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2208         (read_quoted_string, read_string): Remove FILE * argument.
2209         * read-md.c (read_md_file): New variable.
2210         (read_md_filename, read_md_lineno): Update comments and remove
2211         unnecessary initialization.
2212         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2213         (read_escape, read_quoted_string, read_braced_string, read_string):
2214         Remove FILE * argument.  Update calls accordingly, using read_char
2215         and unread_char instead of getc and ungetc.
2216         * rtl.h (read_rtx): Remove FILE * argument.
2217         * read-rtl.c (iterator_group): Remove FILE * argument from
2218         "find_builtin".
2219         (iterator_traverse_data): Remove "infile" field.
2220         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2221         (add_mapping, read_name, read_constants, read_conditions)
2222         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2223         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2224         Remove file arguments from all calls, using read_char and unread_char
2225         instead of getc and ungetc.
2226         * gensupport.c (process_include): Preserve read_md_file around
2227         the include.  Set read_md_file to the handle of the included file.
2228         Update call to read_rtx.
2229         (init_md_reader_args_cb): Set read_md_file to the handle of the file
2230         and remove local FILE *.  Update calls to read_rtx.
2231
2232 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2233
2234         * read-md.h (read_rtx_lineno): Rename to...
2235         (read_md_lineno): ...this.
2236         (read_rtx_filename): Rename to...
2237         (read_md_filename): ...this.
2238         (copy_rtx_ptr_loc): Rename to...
2239         (copy_md_ptr_loc): ...this.
2240         (print_rtx_ptr_loc): Rename to...
2241         (print_md_ptr_loc): ...this.
2242         * read-md.c: Likewise.  Update references after renaming.
2243         (string_obstack): Replace RTL with MD in comment.
2244         (set_rtx_ptr_loc): Rename to...
2245         (set_md_ptr_loc): ...this.
2246         (get_rtx_ptr_loc): Rename to...
2247         (get_md_ptr_loc): ...this.
2248         * genconditions.c: Update references after renaming.
2249         * genemit.c: Likewise.
2250         * genoutput.c: Likewise.
2251         * genpreds.c: Likewise.
2252         * gensupport.c: Likewise.
2253         * read-rtl.c: Likewise.
2254
2255 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2256
2257         * Makefile.in (READ_MD_H): New variable.
2258         (BUILD_RTL): Add build/read-md.o.
2259         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2260         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2261         (build/genattrtab.o, build/genconditions.o build/genemit.o)
2262         (build/genextract.o, build/genflags.o, build/genoutput.o)
2263         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2264         (build/read-md.o): New rule.
2265         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2266         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2267         * coretypes.h: ...here.
2268         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2269         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2270         * genattr.c: Include read-md.h.
2271         * genattrtab.c: Likewise.
2272         * genconditions.c: Likewise.
2273         * genemit.c: Likewise.
2274         * genextract.c: Likewise.
2275         * genflags.c: Likewise.
2276         * genoutput.c: Likewise.
2277         * genpreds.c: Likewise.
2278         * genrecog.c: Likewise.
2279         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2280         (join_c_conditions, print_c_condition, read_rtx_filename)
2281         (read_rtx_lineno): Move to read-md.h.
2282         * read-rtl.c: Include read-md.h.
2283         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2284         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2285         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2286         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2287         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2288         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2289         (read_braced_string, read_string): Move to read-md.c.
2290         (read_rtx): Move some initialization to init_md_reader and call
2291         init_md_reader here.
2292         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2293         Move to read-md.h.
2294         * gensupport.c: Include read-md.h.
2295         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2296         * read-md.h, read-md.c: New files.
2297
2298 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
2299
2300         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2301         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2302         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2303         * config/moxie/moxie.c (moxie_function_value): Make static.
2304         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2305         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2306
2307 2010-06-10  Martin Jambor  <mjambor@suse.cz>
2308
2309         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2310         * dbgcnt.def (tree_sra): New counter.
2311         * tree-sra.c: Include dbgcnt.h.
2312         (gate_intra_sra): Check tree_sra debug counter.
2313
2314 2010-06-10  Martin Jambor  <mjambor@suse.cz>
2315
2316         PR tree-optimization/44258
2317         * tree-sra.c (build_access_subtree): Return false iff there is a
2318         partial overlap.
2319         (build_access_trees): Likewise.
2320         (analyze_all_variable_accesses): Disqualify candidates if
2321         build_access_trees returns true for them.
2322
2323 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
2324
2325         PR debug/41371
2326         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2327         tail-recurse into canonical node.  Fast-forward over
2328         non-canonical VALUEs.
2329
2330 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
2331
2332         PR boostrap/44470
2333         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2334         (*addsi_1_zext) <TYPE_LEA>: Likewise.
2335         (add lea splitter): Likewise.
2336         (add_zext lea splitter): Likewise.
2337
2338 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
2339
2340         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2341
2342 2010-06-10  Jan Hubicka  <jh@suse.cz>
2343
2344         * df-problems.c (df_live_problem_data): Add live_bitmaps.
2345         (df_live_alloc): Initialize problem data and live_osbtacks.
2346         (df_live_finalize): Remove obstack, problem data; do not
2347         clear all bitmaps.
2348         (df_live_top_dump, df_live_bottom_dump): Do not dump old
2349         data when not allocated.
2350         (df_live_verify_solution_start): Do not allocate problem data.
2351         (df_live_verify_solution_end): Check if out is allocated.
2352         (struct df_md_problem_data): New structure.
2353         (df_md_alloc): Allocate problem data.
2354         (df_md_free): Free problem data; do not clear bitmaps.
2355
2356 2010-06-10  Jan Beulich  <jbeulich@novell.com>
2357
2358         PR bootstrap/37304
2359         * configure.ac: Replace $() with ${} when intending to expand
2360         variables rather than invoking commands.
2361         * configure: Re-generate.
2362
2363 2010-06-10  Jan Hubicka  <jh@suse.cz>
2364
2365         PR rtl-optimization/44460
2366         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2367         TYPE_NEEDS_CONSTRUCTING sanity check.
2368
2369 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
2370
2371         * doc/include/fdl.texi: Move to GFDL version 1.3.
2372
2373         * doc/cpp.texi: Move to GFDL version 1.3.
2374         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
2375         * doc/gccint.texi: Move to GFDL version 1.3.
2376         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
2377         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
2378         * doc/invoke.texi: Move to GFDL version 1.3.
2379
2380 2010-06-09  Jan Hubicka  <jh@suse.cz>
2381
2382         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2383         Break out from ...
2384         (propagate) ... here; swap the order.
2385
2386 2010-06-09  Jan Hubicka  <jh@suse.cz>
2387
2388         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2389         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2390         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2391         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2392
2393 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
2394
2395         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2396         Do not the gather memory reference in the outer loop if the step
2397         is not a constant.
2398
2399 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
2400
2401         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2402         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2403         8 to 4.  Minor change of the related comments.
2404
2405 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
2406
2407         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2408         the scev analysis when the variable is not used outside the loop
2409         in a close phi node: call compute_overall_effect_of_inner_loop.
2410
2411 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
2412
2413         * graphite-sese-to-poly.c (single_pred_cond): Renamed
2414         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
2415         (build_sese_conditions_before): Renamed call to single_pred_cond.
2416         (build_sese_conditions_after): Same.
2417
2418 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
2419
2420         * graphite-poly.h: Fix comments and indentation.
2421         * graphite-sese-to-poly.c: Same.
2422         (build_sese_conditions_before): Compute stmt and gbb only when needed.
2423         * tree-chrec.c: Fix comments and indentation.
2424         (tree-ssa-loop-niter.c): Same.
2425
2426 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2427
2428         PR rtl-optimization/42461
2429         * dce.c (deletable_insn_p): Return true for const or pure calls again.
2430         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2431
2432 2010-06-09  Jan Hubicka  <jh@suse.cz>
2433
2434         * bitmap.c (bitmap_and): Walk array forward.
2435         (bitmap_and_compl_into): Likewise.
2436         (bitmap_xor): Likewise.
2437         (bitmap_xor_into):  Likewise.
2438         (bitmap_equal_p): Likewise.
2439         (bitmap_intersect_p): Likewise.
2440         (bitmap_intersect_compl_p): Likewise.
2441         (bitmap_ior_and_into): Likewise.
2442         (bitmap_elt_copy): Likewise.
2443         (bitmap_and_compl): Likewise.
2444         (bitmap_elt_ior): Likewise.
2445
2446 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2447
2448         * opts-common.c (prune_options): Ensure replacement argv array
2449         is correctly terminated by a NULL entry.
2450
2451 2010-06-09  Jan Hubicka  <jh@suse.cz>
2452
2453         * cgraph.h (varpool_first_static_initializer,
2454         varpool_next_static_initializer): Make checking only when
2455         checking enabled.
2456         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2457         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2458         gcc_assert to gcc_checking_assert.
2459         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2460         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2461         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2462         op_iter_init_phiuse, op_iter_init_phidef,
2463         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2464         gcc_checking_assert.
2465         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2466         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2467         partition_is_global, live_on_entry, live_on_exit,
2468         live_merge_and_clear): Likewise.
2469         * system.h (gcc_checking_assert): New macro.
2470         * gimple.h (set_bb_seq): Use gcc_checking_assert.
2471
2472 2010-06-09  Jason Merrill  <jason@redhat.com>
2473
2474         * Makefile.in (TAGS): Collect tags info from c-family.
2475
2476 2010-06-09  Jan Hubicka  <jh@suse.cz>
2477
2478         * gimple.h (gcc_gimple_checking_assert): New macro.
2479         (gimple_set_def_ops, gimple_set_use_ops,
2480         gimple_set_vuse, gimple_set_vdef,
2481         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2482         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2483         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2484         gimple_asm_output_op, gimple_asm_output_op_ptr,
2485         gimple_asm_set_output_op, gimple_asm_clobber_op,
2486         gimple_asm_set_clobber_op, gimple_asm_label_op,
2487         gimple_asm_set_label_op, gimple_try_set_kind,
2488         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2489         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2490         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2491         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2492         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2493         gimple_omp_for_set_initial, gimple_omp_for_final,
2494         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2495         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2496         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2497         conditional with ENABLE_GIMPLE_CHECKING.
2498         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2499
2500 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
2501
2502         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2503         (get_computation_cost_at): Use it.
2504         (determine_use_iv_cost_condition): Likewise.
2505         (determine_iv_cost): Likewise.
2506
2507 2010-06-09  Richard Guenther  <rguenther@suse.de>
2508
2509         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2510         replace constants.
2511
2512 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
2513
2514         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2515
2516 2010-06-09  Martin Jambor  <mjambor@suse.cz>
2517
2518         PR tree-optimization/44423
2519         * tree-sra.c (dump_access): Dump also grp_assignment_read.
2520         (analyze_access_subtree): Pass negative allow_replacements to children
2521         if the current type is scalar.
2522
2523 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2524
2525         PR testsuite/42843
2526         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2527         * doc/plugins.texi (Plugin license check): Update information
2528         on type of plugin_is_GPL_compatible.
2529         * Makefile.in (PLUGINCC): Define as $(COMPILER).
2530         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2531
2532 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2533
2534         * config/arm/arm.c (thumb2_reorg): New function.
2535         (arm_reorg): Call it.
2536         * config/arm/thumb2.md (define_peephole2 for flag clobbering
2537         arithmetic operations): Delete.
2538
2539 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
2540
2541         PR target/44067
2542         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2543         e500v2 target.
2544
2545 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2546
2547         PR plugins/44459
2548         * gcc-plugin.h: Encapsulate all declarations in extern "C".
2549
2550 2010-06-08  Jan Hubicka  <jh@suse.cz>
2551
2552         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2553         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2554
2555 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
2556
2557         PR tree-optimization/39874
2558         PR middle-end/28685
2559         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2560         Declare.
2561         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2562         same_bool_result_p): New.
2563         (and_var_with_comparison, and_var_with_comparison_1,
2564         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2565         (or_var_with_comparison, or_var_with_comparison_1,
2566         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2567         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2568         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2569         of combine_comparisons.
2570         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2571
2572 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
2573
2574         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2575         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2576         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2577         pdp11_function_value_regno_p): New functions.
2578         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2579         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2580
2581 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
2582
2583         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2584         Thumb-2 in the MINUS case.
2585
2586 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2587
2588         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2589
2590         * doc/gty.texi (GTY Options): Document typed GC allocation and
2591         variable_size GTY option.
2592
2593         * ggc-internal.h: New.
2594
2595         * ggc.h: Update copyright year.
2596         (digit_string): Move to stringpool.c.
2597         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2598         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2599         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2600         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2601         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2602         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2603         (ggc_force_collect, ggc_get_size, ggc_statistics)
2604         (ggc_print_common_statistics): Move to ggc-internal.h.
2605         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2606         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2607         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2608         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2609         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2610         (ggc_alloc_zone_pass_stat): Remove.
2611         (ggc_internal_alloc_stat, ggc_internal_alloc)
2612         (ggc_internal_cleared_alloc_stat): New.
2613         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2614         (ggc_internal_vec_alloc_stat)
2615         (ggc_internal_cleared_vec_alloc_stat)
2616         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2617         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2618         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2619         (ggc_cleared_alloc_ptr_array_two_args): New.
2620         (htab_create_ggc, splay_tree_new_ggc): Redefine.
2621         (ggc_splay_alloc): Change the type of the first argument to
2622         enum gt_types_enum.
2623         (ggc_alloc_string): Make macro.
2624         (ggc_alloc_string_stat): New.
2625         (ggc_strdup): Redefine.
2626         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2627         (ggc_alloc_rtvec_sized): New.
2628         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2629         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2630         (ggc_internal_cleared_alloc_zone_stat)
2631         (ggc_internal_zone_alloc_stat)
2632         (ggc_internal_zone_cleared_alloc_stat)
2633         (ggc_internal_zone_vec_alloc_stat)
2634         (ggc_alloc_zone_rtx_def_stat)
2635         (ggc_alloc_zone_tree_node_stat)
2636         (ggc_alloc_zone_cleared_tree_node_stat)
2637         (ggc_alloc_cleared_gimple_statement_d_stat): New.
2638
2639         * ggc-common.c: Include ggc-internal.h.
2640         (ggc_internal_cleared_alloc_stat): Rename from
2641         ggc_alloc_cleared_stat.
2642         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2643         (ggc_calloc): Remove.
2644         (ggc_cleared_alloc_htab_ignore_args): New.
2645         (ggc_cleared_alloc_ptr_array_two_args): New.
2646         (ggc_splay_alloc): Add obj_type parameter.
2647         (init_ggc_heuristics): Formatting fixes.
2648
2649         * ggc-none.c: Update copyright year.
2650         (ggc_alloc_stat): Rename to ggc_alloc_stat.
2651         (ggc_alloc_cleared_stat): Rename to
2652         ggc_internal_cleared_alloc_stat.
2653         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2654
2655         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
2656         Remove references to ggc_alloc in comments.
2657         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2658         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2659         (new_ggc_zone, destroy_ggc_zone): Remove.
2660         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2661
2662         * ggc-zone.c: Include ggc-internal.h.  Remove references to
2663         ggc_alloc in comments.
2664         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2665         (ggc_internal_alloc_zone_pass_stat): New.
2666         (ggc_internal_cleared_alloc_zone_stat): New.
2667         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2668         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2669         (new_ggc_zone, destroy_ggc_zone): Remove.
2670
2671         * stringpool.c: Update copyright year.  Include ggc-internal.h
2672         (digit_vector): Make static.
2673         (digit_string): Moved from ggc.h.
2674         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2675         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2676
2677         * Makefile.in (GGC_INTERNAL_H): New.
2678         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2679         $(GGC_INTERNAL_H) to dependencies.
2680
2681         * gentype.c: Update copyright year.
2682         (walk_type): Accept variable_size GTY option.
2683         (USED_BY_TYPED_GC_P): New macro.
2684         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
2685         whitespace at the end of strings.
2686         (get_type_specifier, variable_size_p): New functions.
2687         (alloc_quantity, alloc_zone): New enums.
2688         (write_typed_alloc_def): New function.
2689         (write_typed_struct_alloc_def): Likewise.
2690         (write_typed_typed_typedef_alloc_def): Likewise.
2691         (write_typed_alloc_defns): Likewise.
2692         (output_typename, write_splay_tree_allocator_def): Likewise.
2693         (write_splay_tree_allocators): Likewise.
2694         (main): Call write_typed_alloc_defns and
2695         write_splay_tree_allocators.
2696
2697         * lto-streamer.h (lto_file_decl_data_ptr): New.
2698
2699         * passes.c (order): Define using cgraph_node_ptr.
2700
2701         * strinpool.c (struct string_pool_data): Declare nested_ptr using
2702         ht_identifier_ptr.
2703
2704         * gimple.h (union gimple_statement_d): Likewise.
2705
2706         * rtl.h (struct rtx_def): Likewise.
2707         (struct rtvec_def): Likewise.
2708
2709         * tree.h (union tree_node): Likewise.
2710
2711         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2712
2713         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2714
2715         * tree-scalar-evolution.c (scev_initialize): Likewise.
2716
2717         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2718
2719         * dwarf2asm.c (dw2_force_const_mem): Likewise.
2720
2721         * omp-low.c (lower_omp_critical): Likewise.
2722
2723         * bitmap.h (struct bitmap_head_def): Update comment to not
2724         reference ggc_alloc.
2725
2726         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2727
2728         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2729
2730         * ipa-prop.c (duplicate_ggc_array): Rename to
2731         duplicate_ipa_jump_func_array.  Use typed GC allocation.
2732         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2733
2734         * gimple.c (gimple_alloc_stat): Use
2735         ggc_alloc_cleared_gimple_statement_d_stat.
2736
2737         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2738
2739         * tree.c (make_node_stat): Use
2740         ggc_alloc_zone_cleared_tree_node_stat.
2741         (make_tree_vec_stat): Likewise.
2742         (build_vl_exp_stat): Likewise.
2743         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2744         (make_tree_binfo_stat): Likewise.
2745         (tree_cons_stat): Likewise.
2746
2747         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2748         (shallow_copy_rtx_stat): Likewise.
2749         (make_node_stat): Likewise.
2750
2751         * lto-symtab.c: Fix comment.
2752
2753         * tree-cfg.c (create_bb): Update comment to not reference
2754         ggc_alloc_cleared.
2755         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2756
2757         * varpool.c (varpool_node): Use typed GC allocation.
2758         (varpool_extra_name_alias): Likewise.
2759
2760         * varasm.c (emutls_decl): Likewise.
2761         (get_unnamed_section): Likewise.
2762         (get_noswitch_section): Likewise.
2763         (get_section): Likewise.
2764         (get_block_for_section): Likewise.
2765         (build_constant_desc): Likewise.
2766         (create_constant_pool): Likewise.
2767         (force_const_mem): Likewise.
2768
2769         * tree.c (build_vl_exp_stat): Likewise.
2770         (build_real): Likewise.
2771         (build_string): Likewise.
2772         (decl_debug_expr_insert): Likewise.
2773         (decl_value_expr_insert): Likewise.
2774         (type_hash_add): Likewise.
2775         (build_omp_clause): Likewise.
2776
2777         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2778
2779         * tree-ssa.c (init_tree_ssa): Likewise.
2780
2781         * tree-ssa-structalias.c (heapvar_insert): Likewise.
2782
2783         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2784
2785         * tree-ssa-loop-niter.c (record_estimate): Likewise.
2786
2787         * tree-ssa-alias.c (get_ptr_info): Likewise.
2788
2789         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2790
2791         * tree-phinodes.c (allocate_phi_node): Likewise.
2792
2793         * tree-iterator.c (tsi_link_before): Likewise.
2794         (tsi_link_after): Likewise.
2795
2796         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2797
2798         * tree-dfa.c (create_var_ann): Likewise.
2799
2800         * tree-cfg.c (create_bb): Likewise.
2801
2802         * toplev.c (alloc_for_identifier_to_locale): Likewise.
2803         (general_init): Likewise.
2804
2805         * stringpool.c (stringpool_ggc_alloc): Likewise.
2806         (gt_pch_save_stringpool): Likewise.
2807
2808         * sese.c (if_region_set_false_region): Likewise.
2809
2810         * passes.c (do_per_function_toporder): Likewise.
2811
2812         * optabs.c (set_optab_libfunc): Likewise.
2813         (set_conv_libfunc): Likewise.
2814
2815         * lto-symtab.c (lto_symtab_register_decl): Likewise.
2816
2817         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2818         (input_eh_region): Likewise.
2819         (input_eh_lp): Likewise.
2820         (make_new_block): Likewise.
2821         (unpack_ts_real_cst_value_fields): Likewise.
2822
2823         * lto-section-in.c (lto_new_in_decl_state): Likewise.
2824
2825         * lto-cgraph.c (input_node_opt_summary): Likewise.
2826
2827         * loop-init.c (loop_optimizer_init): Likewise.
2828
2829         * lambda.h (lambda_vector_new): Likewise.
2830
2831         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2832
2833         * ira.c (update_equiv_regs): Likewise.
2834
2835         * ipa.c (cgraph_node_set_new): Likewise.
2836         (cgraph_node_set_add): Likewise.
2837         (varpool_node_set_new): Likewise.
2838         (varpool_node_set_add): Likewise.
2839
2840         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2841         (duplicate_ipa_jump_func_array): Likewise.
2842         (ipa_read_node_info): Likewise.
2843
2844         * ipa-cp.c (ipcp_create_replace_map): Likewise.
2845
2846         * integrate.c (get_hard_reg_initial_val): Likewise.
2847
2848         * gimple.c (gimple_alloc_stat): Likewise.
2849         (gimple_build_omp_for): Likewise.
2850         (gimple_seq_alloc): Likewise.
2851         (gimple_copy): Likewise.
2852
2853         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2854         (gsi_insert_after_without_update): Likewise.
2855
2856         * function.c (add_frame_space): Likewise.
2857         (insert_temp_slot_address): Likewise.
2858         (assign_stack_temp_for_type): Likewise.
2859         (allocate_struct_function): Likewise.
2860         (types_used_by_var_decl_insert): Likewise.
2861
2862         * except.c (init_eh_for_function): Likewise.
2863         (gen_eh_region): Likewise.
2864         (gen_eh_region_catch): Likewise.
2865         (gen_eh_landing_pad): Likewise.
2866         (add_call_site): Likewise.
2867
2868         * emit-rtl.c (get_mem_attrs): Likewise.
2869         (get_reg_attrs): Likewise.
2870         (start_sequence): Likewise.
2871         (init_emit): Likewise.
2872
2873         * dwarf2out.c (new_cfi): Likewise.
2874         (queue_reg_save): Likewise.
2875         (dwarf2out_frame_init): Likewise.
2876         (new_loc_descr): Likewise.
2877         (find_AT_string): Likewise.
2878         (new_die): Likewise.
2879         (add_var_loc_to_decl): Likewise.
2880         (clone_die): Likewise.
2881         (clone_as_declaration): Likewise.
2882         (break_out_comdat_types): Likewise.
2883         (new_loc_list): Likewise.
2884         (loc_descriptor): Likewise.
2885         (add_loc_descr_to_each): Likewise.
2886         (add_const_value_attribute): Likewise.
2887         (tree_add_const_value_attribute): Likewise.
2888         (add_comp_dir_attribute): Likewise.
2889         (add_name_and_src_coords_attributes): Likewise.
2890         (lookup_filename): Likewise.
2891         (store_vcall_insn): Likewise.
2892         (dwarf2out_init): Likewise.
2893
2894         * dbxout.c (dbxout_init): Likewise.
2895
2896         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2897
2898         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2899
2900         * config/score/score7.c (score7_output_external): Likewise.
2901
2902         * config/score/score3.c (score3_output_external): Likewise.
2903
2904         * config/s390/s390.c (s390_init_machine_status): Likewise.
2905
2906         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2907         (rs6000_init_machine_status): Likewise.
2908         (output_toc): Likewise.
2909
2910         * config/pa/pa.c (pa_init_machine_status): Likewise.
2911         (get_deferred_plabel): Likewise.
2912
2913         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2914
2915         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2916
2917         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2918
2919         * config/mep/mep.c (mep_init_machine_status): Likewise.
2920         (mep_note_pragma_flag): Likewise.
2921
2922         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2923
2924         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2925
2926         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2927
2928         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2929         (i386_pe_maybe_record_exported_symbol): Likewise.
2930
2931         * config/i386/i386.c (get_dllimport_decl): Likewise.
2932         (ix86_init_machine_status): Likewise.
2933         (assign_386_stack_local): Likewise.
2934
2935         * config/frv/frv.c (frv_init_machine_status): Likewise.
2936
2937         * config/darwin.c (machopic_indirection_name): Likewise.
2938
2939         * config/cris/cris.c (cris_init_machine_status): Likewise.
2940
2941         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2942
2943         * config/avr/avr.c (avr_init_machine_status): Likewise.
2944
2945         * config/arm/arm.c (arm_init_machine_status): Likewise.
2946
2947         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2948         (alpha_need_linkage): Likewise.
2949         (alpha_use_linkage): Likewise.
2950
2951         * cgraph.c (cgraph_allocate_node): Likewise.
2952         (cgraph_create_edge_1): Likewise.
2953         (cgraph_create_indirect_edge): Likewise.
2954         (cgraph_add_asm_node): Likewise.
2955
2956         * cfgrtl.c (init_rtl_bb_info): Likewise.
2957
2958         * cfgloop.c (alloc_loop): Likewise.
2959         (rescan_loop_exit): Likewise.
2960
2961         * cfg.c (init_flow): Likewise.
2962         (alloc_block): Likewise.
2963         (unchecked_make_edge): Likewise.
2964
2965         * c-parser.c (c_parse_init): Likewise.
2966         (c_parse_file): Likewise.
2967
2968         * c-decl.c (bind): Likewise.
2969         (record_inline_static): Likewise.
2970         (push_scope): Likewise.
2971         (make_label): Likewise.
2972         (lookup_label_for_goto): Likewise.
2973         (finish_struct): Likewise.
2974         (finish_enum): Likewise.
2975         (c_push_function_context): Likewise.
2976
2977         * bitmap.c (bitmap_element_allocate): Likewise.
2978         (bitmap_gc_alloc_stat): Likewise.
2979
2980         * alias.c (record_alias_subset): Likewise.
2981         (init_alias_analysis): Likewise.
2982
2983 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
2984
2985         * fold-const.c (fold_comparison): Remove redundant parenthesis.
2986         * tree-inline.c (expand_call_inline): Pass translated return value of
2987         cgraph_inline_failed_string to diagnostic function.
2988
2989 2010-06-08  Andrew Pinski <pinskia@gmail.com>
2990             Shujing Zhao  <pearly.zhao@oracle.com>
2991
2992         PR c/37724
2993         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2994         implicit bad conversions is initialization.
2995         (error_init): Use gmsgid instead of msgid for argument name and change
2996         the call for error.
2997         (pedwarn_init): Use gmsgid instead of msgid for argument name and
2998         change the call for pedwarn.
2999         (warning_init): Use gmsgid instead of msgid for argument name and
3000         change the call for warning.
3001
3002 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
3003
3004         * config/mips/mips-protos.h (mips_print_operand): Delete.
3005         (mips_print_operand_address): Delete.
3006         * config/mips/mips.h (mips_print_operand_punct): Delete.
3007         (PRINT_OPERAND): Delete.
3008         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3009         (PRINT_OPERAND_ADDRESS): Delete.
3010         * config/mips/mips.c (mips_print_operand_punct): Make static.
3011         (mips_print_operand_address): Make static.
3012         (mips_print_operand): Make static.  Call
3013         mips_print_operand_punct_valid_p.
3014         (mips_print_operand_punct_valid_p): New function.
3015         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3016         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3017
3018 2010-06-07  Jan Hubicka  <jh@suse.cz>
3019
3020         PR middle-end/44454
3021         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
3022         are allocated.
3023
3024 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3025
3026         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
3027         name of RECORD.
3028
3029 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3030
3031         * doc/sourcebuild.texi (Effective-Target Keywords, Other
3032         attributes): Document gas.
3033
3034 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
3035
3036         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
3037         <TYPE_LEA>: Split instruction.
3038         <default>: Remove alternative 2 handling.
3039         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
3040         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
3041         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
3042
3043         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
3044         (ashift_zext lea splitter): Use DImode for multiplication.
3045
3046         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
3047         to generate addition.
3048
3049 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
3050
3051         * common.opt (fira-verbose): Use Var.
3052         (fpcc-struct-return): Use Init instead of VarExists.
3053         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
3054         toplev.c.
3055         * flags.h (flag_signed_char, flag_short_enums,
3056         flag_pcc_struct_return, flag_ira_verbose,
3057         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
3058         * toplev.c (flag_detailed_statistics, flag_signed_char,
3059         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
3060         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
3061         * toplev.h (flag_crossjumping, flag_if_conversion,
3062         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
3063         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
3064         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
3065         flag_cprop_registers, time_report, flag_ira_loop_pressure,
3066         flag_ira_coalesce, flag_ira_move_spills,
3067         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
3068
3069 2010-06-07  Jan Hubicka  <jh@suse.cz>
3070
3071         * df-core.c (df_analyze_problem): Do verification after allocation.
3072
3073         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
3074         (df_lr_alloc): Initialize problem data; move bitmaps to
3075         lr_bitmaps obstack.
3076         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
3077         (df_lr_verify_solution_start): Do not initialize problem data;
3078         allocate bitmaps in lr_bitmaps.
3079         (df_lr_verify_solution_end): Do not free problem data.
3080
3081 2010-06-07  Jan Hubicka  <jh@suse.cz>
3082
3083         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
3084         if caller is noreturn.
3085         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
3086         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
3087         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
3088         * ipa-pure-const.c (check_decl): Add IPA parameter.
3089         (state_from_flags): New function.
3090         (better_state, worse_state): New functions.
3091         (check_call): When in IPA mode, do not care about callees.
3092         (check_load, check_store): Update.
3093         (check_ipa_load, check_ipa_store): New.
3094         (check_stmt): When in IPA mode, use IPA checkers.
3095         (analyze_function): Use state_from_flags.
3096         (propagate): Check indirect edges and references.
3097
3098 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
3099
3100         PR rtl-optimization/44404
3101         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
3102         of count_occurrences to see if it's safe to modify mem_insn.
3103
3104 2010-06-07  Richard Guenther  <rguenther@suse.de>
3105
3106         * gimplify.c (gimplify_cleanup_point_expr): For empty body
3107         and EH-only cleanup drop the cleanup instead of inserting it
3108         unconditionally.
3109
3110 2010-06-07  Ira Rosen  <irar@il.ibm.com>
3111
3112         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
3113         documentation.
3114         * targhooks.c (default_builtin_vectorization_cost): New function.
3115         * targhooks.h (default_builtin_vectorization_cost): Declare.
3116         * target.h (enum vect_cost_for_stmt): Define.
3117         (builtin_vectorization_cost): Change argument and comment.
3118         * tree-vectorizer.h: Remove cost model macros.
3119         * tree-vect-loop.c: Include target.h.
3120         (vect_get_cost): New function.
3121         (vect_estimate_min_profitable_iters): Replace cost model macros with
3122         calls to vect_get_cost.
3123         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
3124         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
3125         default implementation.
3126         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
3127         calls to target hook builtin_vectorization_cost.
3128         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
3129         Likewise.
3130         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
3131         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
3132         implementation to return costs.
3133         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3134         * config/spu/spu.h: Remove vectorizer cost model macros.
3135         * config/i386/i386.h: Likewise.
3136         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
3137         a call to target hook builtin_vectorization_cost.
3138
3139 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
3140
3141         PR target/44319
3142         * config/i386/i386.c (override_options): Turn zee pass on for level 2
3143         and above and defer till target is known.
3144         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
3145         turn off otherwise.
3146
3147 2010-05-25  Jan Hubicka  <jh@suse.cz>
3148
3149         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
3150         (df_compact_blocks): Likewise.
3151         * df.h (struct df): Turn hardware_regs_used,
3152         regular_block_artificial_uses, eh_block_artificial_uses,
3153         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
3154         bitmap_head.
3155         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
3156         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
3157         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
3158         df_scan_blocks, df_insn_delete, df_insn_rescan,
3159         df_insn_rescan_debug_internal, df_insn_rescan_all,
3160         df_process_deferred_rescans, df_process_deferred_rescans,
3161         df_notes_rescan, df_get_call_refs, df_get_call_refs,
3162         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
3163         df_record_entry_block_defs, df_record_exit_block_uses,
3164         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
3165         df_scan_verify): Update.
3166
3167 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
3168
3169         PR c++/44188
3170         * c-common.c (is_typedef_decl): Move this definition ...
3171         * tree.c (is_typedef_decl): ... here.
3172         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3173         * c-common.h (is_typedef_decl): Move this declaration ...
3174         * tree.h (is_typedef_decl): ... here.
3175         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3176         * dwarf2out.c (is_naming_typedef_decl): New function.
3177         (gen_tagged_type_die): Split out of ...
3178         (gen_type_die_with_usage): ... this function. When an anonymous
3179         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3180         is emitted for the typedef.
3181         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3182         anonymous tagged types.
3183
3184 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3185
3186         PR c/20000
3187         * c-decl.c (grokdeclarator): Delete warning.
3188
3189 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3190
3191         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3192         newly built CALL_EXPR.
3193         * tree-profile.c (tree_profiling): Don't profile functions produced
3194         for built-in stuff.
3195
3196 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
3197
3198         PR bootstrap/44427
3199         PR bootstrap/44428
3200         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3201         endianness-independent.
3202
3203 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
3204
3205         * c-common.c: Move to c-family/.
3206         * c-common.def: Likewise.
3207         * c-common.h: Likewise.
3208         * c-cppbuiltin.c: Likewise.
3209         * c-dump.c: Likewise.
3210         * c-format.c: Likewise.
3211         * c-format.h : Likewise.
3212         * c-gimplify.c: Likewise.
3213         * c-lex.c: Likewise.
3214         * c-omp.c: Likewise.
3215         * c.opt: Likewise.
3216         * c-opts.c: Likewise.
3217         * c-pch.c: Likewise.
3218         * c-ppoutput.c: Likewise.
3219         * c-pragma.c: Likewise.
3220         * c-pragma.h: Likewise.
3221         * c-pretty-print.c: Likewise.
3222         * c-pretty-print.h: Likewise.
3223         * c-semantics.c: Likewise.
3224         * stub-objc.c: Likewise.
3225
3226         * gengtype.c (get_file_langdir): Special-case files in c-family/.
3227         (get_output_file_with_visibility): Fix name for c-common.h.
3228         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3229
3230         * c-tree.h: Update include path for moved files.
3231         * c-lang.c: Likewise.
3232         * c-lang.h: Likewise.
3233         * c-parser.c: Likewise.
3234         * c-convert.c: Likewise.
3235         * c-decl.c: Likewise.
3236         * c-objc-common.c: Likewise.
3237         * configure.ac: Make sure c-family/ exists in the build directory.
3238         * configure: Regenerate.
3239         * Makefile.in: Update paths for moved files.  Regroup files per
3240         location and update dependencies.  Move generated_files down after
3241         ALL_GTFILES_H.
3242
3243         * config/spu/spu-c.c: Update paths for moved files.
3244         * config/mep/mep-pragma.c: Likewise.
3245         * config/darwin-c.c: Likewise.
3246         * config/i386/msformat-c.c: Likewise.
3247         * config/i386/i386-c.c: Likewise.
3248         * config/avr/avr-c.c: Likewise.
3249         * config/sol2-c.c: Likewise.
3250         * config/ia64/ia64-c.c: Likewise.
3251         * config/rs6000/rs6000-c.c: Likewise.
3252         * config/arm/arm.c: Likewise.
3253         * config/arm/arm-c.c: Likewise.
3254         * config/h8300/h8300.c: Likewise.
3255         * config/v850/v850-c.c: Likewise.
3256
3257         * config/t-darwin: Fix dependencies for moved files.
3258         * config/t-sol2: Fix dependencies for moved files.
3259         * config/mep/t-mep: Fix dependencies for moved files.
3260         * config/ia64/t-ia64: Fix dependencies for moved files.
3261         * config/rs6000/t-rs6000: Fix dependencies for moved files.
3262         * config/v850/t-v850: Fix dependencies for moved files.
3263         * config/v850/t-v850e: Fix dependencies for moved files.
3264
3265         * config/m32c/m32c-pragma.c
3266
3267         * po/exgettext: Look in c-family/ also.
3268
3269 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
3270
3271         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3272         (mark_control_dependent_edges_necessary): Call it instead of marking
3273         the last statement manually.
3274         (propagate_necessity): Likewise.
3275
3276 2010-06-05  Jan Hubicka  <jh@suse.cz>
3277
3278         * basic-block.h (compute_dominance_frontiers): Updated.
3279         (compute_idf): Likewise.
3280
3281         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3282         for dominance frontiers.
3283         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3284         (insert_updated_phi_nodes_for): Likewise.
3285         (update_ssa): Likewise.
3286         * cfganal.c (compute_dominance_frontiers_1): Likewise.
3287         (compute_dominance_frontiers): Likewise.
3288         (compute_idf): Likewise.
3289         * df-problems.c (df_md_local_compute): Likewise.
3290
3291 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
3292
3293         * target.h (struct gcc_target): Add memory_move_cost field.
3294         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3295         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3296         * targhooks.c (default_memory_move_cost): New function.
3297         * targhooks.h (default_memory_move_cost): Declare function.
3298         * reload.h (memory_move_cost): Declare.
3299         (memory_move_secondary_cost): Change type of 'in' argument to bool.
3300         * reginfo.c (memory_move_cost): New function.
3301         (memory_move_secondary_cost): Change type of 'in' argument to bool.
3302         * ira.h (ira_memory_move_cost): Update comment.
3303         * ira.c: (ira_memory_move_cost): Update comment.
3304         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3305         with memory_move_cost.
3306         * postreload.c (reload_cse_simplify_set): (Ditto.).
3307         * reload1.c (choose_reload_regs): (Ditto.).
3308         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3309         (MEMORY_MOVE_COST):  Revise documentation.
3310
3311         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3312         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3313         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3314         type of 'in' argument to bool.
3315         (TARGET_MEMORY_MOVE_COST): Define.
3316
3317 2010-06-05  Jan Hubicka  <jh@suse.cz>
3318
3319         * ipa-pure-const.c (propagate): Fix typo in handling of functions
3320         that cannot return.  Be more careful when merging the results with
3321         previously known ones.
3322
3323 2010-06-05  Matthias Klose  <doko@ubuntu.com>
3324
3325         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3326         function to add the -iplugindir option.
3327         (find_plugindir_spec_function): Add new declaration and function.
3328         (static_spec_func): Use it for "find-plugindir".
3329
3330 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
3331
3332         PR c++/44361
3333         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3334         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3335         statement expression.
3336
3337 2010-06-05  Jan Hubicka  <jh@suse.cz>
3338
3339         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3340         (df_rd_problem_data): Convert sparse_invalidated_by_call,
3341         dense_invalidated_by_call to bitmap head.
3342         (df_rd_alloc, df_rd_bb_local_compute_process_def,
3343         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3344         df_rd_start_dump, df_lr_verify_transfer_functions,
3345         df_live_verify_transfer_functions, df_chain_create_bb,
3346         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3347         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3348         df_simulate_one_insn_forwards, df_md_alloc,
3349         df_md_bb_local_compute_process_def,
3350         df_md_bb_local_compute_process_def, df_md_local_compute,
3351         df_md_transfer_function df_md_free): Update.
3352
3353 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
3354
3355         PR c/44322
3356         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3357         target type for ADDR_EXPR; require no changes to qualifiers except
3358         for function types.
3359         * c-tree.h (c_build_type_variant): Remove.
3360
3361 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
3362
3363         * genautomata.c (get_excl_set): Do work per element, not per char.
3364         (check_presence_pattern_sets): Similar.
3365         (check_absence_pattern_sets): Similar.
3366
3367 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
3368
3369         * genautomata.c (curr_state_pass_num): Delete.
3370         (min_issue_delay_pass_states): Delete.
3371         (min_issue_delay): Delete.
3372         (initiate_min_issue_delay_pass_states): Delete.
3373         (output_min_issue_delay_table): Compute min_issue_delay_vect
3374         using a breadth-first search variant.
3375         (output_tables): Don't call initiate_min_issue_delay_pass_states.
3376
3377 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3378
3379         PR boostrap/44421
3380         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3381         (df_byte_lr_bb_local_compute): Likewise.
3382
3383 2010-06-03  Jason Merrill  <jason@redhat.com>
3384
3385         Implement noexcept operator (5.3.7)
3386         * c-common.c (c_common_reswords): Add noexcept.
3387         * c-common.h (enum rid): Add RID_NOEXCEPT.
3388
3389 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
3390
3391         * config/darwin-driver.c (darwin_default_min_version): Use
3392         GCC-specific formats in diagnostics.
3393         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3394         diagnostics.
3395         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3396         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3397         eval_spec_function, handle_braces, process_brace_body, main,
3398         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3399         getenv_spec_function, compare_version_strings,
3400         version_compare_spec_function): Use GCC-specific formats in
3401         diagnostics.
3402
3403 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
3404
3405         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3406         that operand 0 and operand 1 are equal.
3407         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3408         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3409         and operand 1 are equal.
3410         <default>: Ditto.  Remove ??? comment.
3411         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3412         and operand 1 are equal.
3413         <default>: Ditto.  Remove ??? comment.
3414         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3415         are equal.
3416         (*add<mode>_4) <default>: Ditto.
3417         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3418
3419 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
3420
3421         * config/i386/i386-protos.h (ix86_print_operand): Declare.
3422         * config/i386/i386.c (ix86_print_operand): Make non-static.
3423         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3424         * output.h (output_operand): Declare.
3425         * final.c (output_operand): Make non-static.
3426
3427 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
3428
3429         PR rtl-optimization/44013
3430         * sched-deps.c (add_dependence_list_and_free): Don't free lists
3431         when processing debug insns.
3432
3433         PR debug/41371
3434         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3435         recursing.  Check that recursion is bounded.  Rename inner var
3436         to avoid hiding incoming argument.
3437
3438 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
3439
3440         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3441         operands[2] == 255.
3442         (*addqi_3): Ditto.
3443         (*addqi_4): Ditto.
3444         (*addqi_5): Ditto.
3445         (*addqi_ext_1_rex64): Ditto.
3446         (*addqi_ext_1): Ditto.
3447
3448         (*addqi_4): Check for incdec_operand in QImode.
3449
3450         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3451         using SWI mode iterator.
3452         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3453         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3454         mode iterator.
3455         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3456         using SWI mode iterator.
3457
3458 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3459
3460         PR c/25880
3461         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3462         * c-format.c (gcc_diag_flag_specs): Add hash.
3463         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3464         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3465         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3466         pp_c_cv_qualifiers. Handle qualifiers spelling here.
3467         (pp_c_type_qualifier_list): Call the function above.
3468         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3469         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3470         (WARN_FOR_QUALIFIERS): New macro.
3471         (convert_for_assignment): Use it.
3472
3473 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
3474
3475         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3476
3477 2010-06-04  Jan Hubicka  <jh@suse.cz>
3478
3479         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3480         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3481         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3482         DF_BYTE_LR_OUT): Update for embedded bitmaps.
3483         * fwprop.c (single_def_use_enter_block): Likewise.
3484         * ddg.c (create_ddg_dep_from_intra_loop_link,
3485         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3486         * loop-iv.c (latch_dominating_def): Likewise.
3487         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3488         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3489         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3490         df_rd_transfer_function, df_rd_top_dump,
3491         df_rd_bottom_dump): Update.
3492         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3493         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3494         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3495         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3496         df_lr_verify_solution_start, df_lr_verify_solution_end,
3497         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3498         df_live_free_bb_info, df_live_alloc, df_live_reset,
3499         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3500         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3501         df_live_verify_solution_start, df_live_verify_solution_end,
3502         df_live_verify_transfer_functions, df_chain_create_bb,
3503         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3504         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3505         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3506         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3507         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3508         df_byte_lr_transfer_function, df_byte_lr_top_dump,
3509         df_byte_lr_bottom_dump, df_create_unused_note,
3510         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3511         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3512         df_md_transfer_function, df_md_init, df_md_confluence_0,
3513         df_md_confluence_n,
3514         df_md_top_dump, df_md_bottom_dump): Update.
3515         (struct df_lr_problem_data): Embedd bitmap headers.
3516
3517 2010-06-04  Jan Hubicka  <jh@suse.cz>
3518
3519         * dce.c (dce_process_block): Do not re-scan already marked
3520         instructions.
3521
3522 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
3523
3524         PR rtl-optimization/39871
3525         PR rtl-optimization/40615
3526         PR rtl-optimization/42500
3527         PR rtl-optimization/42502
3528         * ira.c (init_reg_equiv_memory_loc: New function.
3529         (ira): Call it twice.
3530         * reload.h (calculate_elim_costs_all_insns): Declare.
3531         * ira-costs.c: Include "reload.h".
3532         (regno_equiv_gains): New static variable.
3533         (init_costs): Allocate it.
3534         (finish_costs): Free it.
3535         (ira_costs): Call calculate_elim_costs_all_insns.
3536         (find_costs_and_classes): Take estimated elimination costs
3537         into account.
3538         (ira_adjust_equiv_reg_cost): New function.
3539         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3540         * reload1.c (init_eliminable_invariants, free_reg_equiv,
3541         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3542         (elim_bb): New static variable.
3543         (reload): Move code out of here into init_eliminable_invariants and
3544         free_reg_equiv.  Call them.
3545         (calculate_elim_costs_all_insns): New function.
3546         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
3547         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
3548         but call note_reg_elim_costly if we turned a valid memory address
3549         into an invalid one.
3550         * Makefile.in (ira-costs.o): Depend on reload.h.
3551
3552 2010-06-04  Julian Brown  <julian@codesourcery.com>
3553
3554         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3555         for pool ranges.
3556
3557 2010-06-04  Richard Guenther  <rguenther@suse.de>
3558
3559         PR lto/41584
3560         * cgraph.h (struct varpool_node): Add lto_file_data field.
3561         * lto-cgraph.c (input_varpool_node): Initialize it.
3562
3563 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
3564
3565         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3566         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3567         predicate in "type" attribute calculation.
3568         (*addsi_1_zext): Ditto.
3569         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3570         (*addsi_2_zext): Ditto.
3571         (*add<mode>_3): Ditto.
3572         (*addsi_3_zext): Ditto.
3573         (*add<mode>_5): Ditto.
3574
3575 2010-06-03  Jan Hubicka  <jh@suse.cz>
3576
3577         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3578         of bitmap_bit_p.
3579         * cfganal.c (compute_dominance_frontiers_1): Likewise.
3580
3581 2010-06-03  Jan Hubicka  <jh@suse.cz>
3582
3583         * df-problems.c (df_create_unused_note, df_note_bb_compute):
3584         micro-optimize the checks when to add new note.
3585
3586 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
3587
3588         * final.c (output_asm_insn): Call
3589         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
3590         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
3591         (output_address): Call targetm.asm_out.print_operand_address.
3592         Update comments.
3593         * target.h (struct gcc_target): Add print_operand,
3594         print_operand_address, and print_operand_punct_valid_p fields.
3595         * targhooks.h (default_print_operand): Declare.
3596         (default_print_operand_address): Declare.
3597         (default_print_operand_punct_valid_p): Declare.
3598         * targhooks.c (default_print_operand): Define.
3599         (default_print_operand_address): Define.
3600         (default_print_operand_punct_valid_p): Define.
3601         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3602         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3603         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3604         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3605         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3606         * vmsdbgout.c (addr_const_to_string): Update comment.
3607         * config/i386/i386.c (print_operand): Rename to...
3608         (ix86_print_operand): ...this.  Make static.
3609         (print_operand_address): Rename to...
3610         (ix86_print_operand_address): ...this.  Make static.  Call
3611         ix86_print_operand instead of PRINT_OPERAND.
3612         (ix86_print_operand_punct_valid_p): New function.
3613         (TARGET_PRINT_OPERAND): Define.
3614         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3615         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3616         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3617         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3618         (PRINT_OPERAND): Delete.
3619         (PRINT_OPERAND_ADDRESS): Delete.
3620         * config/i386/i386-protos.h (print_operand): Delete prototype.
3621         (print_operand_address): Delete prototype.
3622
3623 2010-06-03  Richard Guenther  <rguenther@suse.de>
3624
3625         PR tree-optimization/44403
3626         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3627         Preserve pointer qualifiers.
3628         (vect_create_data_ref_ptr): Likewise.
3629
3630 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3631
3632         PR c++/44294
3633         * defaults.h (MAX_FIXED_MODE_SIZE): New.
3634
3635         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3636
3637 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
3638
3639         PR debug/44375
3640         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3641         return false if merging the bbs would lead to goto_locus
3642         location being lost from the IL.
3643
3644 2010-06-03  Jan Hubicka  <jh@suse.cz>
3645             Jakub Jelinek  <jakub@redhat.com>
3646
3647         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3648         set->regs[i] is NULL or has just one entry.
3649
3650 2010-06-03  Jan Hubicka  <jh@suse.cz>
3651
3652         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3653         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3654
3655 2010-06-03  Paul Brook  <paul@codesourcery.com>
3656
3657         * config/arm/arm.c (FL_TUNE): Define.
3658         (arm_default_cpu, arm_cpu_select): Remove.
3659         (all_cores): Populate core field.
3660         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3661         (arm_find_cpu): New function.
3662         (arm_handle_option): Lookup cpu/architecture names.
3663         (arm_override_options): Cleanup mcpu/march/mtune handling.
3664         (arm_file_start): Ditto.
3665
3666 2010-06-03  Alan Modra  <amodra@gmail.com>
3667
3668         PR target/44169
3669         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3670         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3671         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
3672         (rs6000_emit_load_toc_table): Likewise.
3673
3674 2010-06-02  Jan Hubicka  <jh@suse.cz>
3675
3676         * passes.c (init_optimization_passes): Put ipa reference
3677         after ipa pure-const.
3678
3679 2010-06-02  Jan Hubicka  <jh@suse.cz>
3680
3681         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3682         calls_read_all and calls_write_all.
3683         (get_reference_optimization_summary): Fix formatting.
3684         (is_proper_for_analysis): Check that decl is not readonly.
3685         (propagate_bits): Check CONST/PURE/noreturn flags.
3686         (ipa_init): Move all_module_statics to optimization_summary_obstack.
3687         (analyze_function): Ignore indirect edges.
3688         (copy_global_bitmap): For all module statics, do nothing.
3689         (generate_summary): Do not print calls_read_all/calls_write_all.
3690         (read_write_all_from_decl): Take node as argument; check
3691         cgraph_node_cannot_return.
3692         (propagate): Reorganize read_all/write_all computation;
3693         check indirect edges; check ecf flags; use all_module_statics
3694         in the results; do not free all_module_statics.
3695         (stream_out_bitmap): Handle all_module_statics.
3696         (ipa_reference_write_optimization_summary): Likewise; use
3697         varpool/cgraph encoders to get boundaries.
3698         (ipa_reference_read_optimization_summary): Read in all_module_statics;
3699         use it when possible.
3700
3701 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3702
3703         PR target/44218
3704         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3705         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3706
3707         * doc/extend.texi (powerpc builtins): Document vec_recip,
3708         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3709
3710         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3711         (rs6000_emit_swrsqrt): Ditto.
3712         (rs6000_emit_swdivsf): Delete.
3713         (rs6000_emit_swdivdf): Ditto.
3714         (rs6000_emit_swrsqrtsf): Ditto.
3715
3716         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3717         describe the reciprocal estimate support for each type.
3718         (recip_options): Map -mrecip=<opt> into option bits.
3719         (gen_2arg_fn_t): New typedef for binary rtx gen function.
3720         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3721         reciprocal estimate instructions.
3722         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3723         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3724         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
3725         cost information if -mdebug=cost or -mdebug=reg.
3726         (rs6000_override_options): Set -mrecip-precision for power6, and
3727         power7 machines.  If -mvsx or -mdfp, enable various options that
3728         came in previous instruction set ISAs, unless the option was
3729         explicitly disabled by the command line option.  Parse
3730         -mrecip=<opt> options.
3731         (rs6000_builtin_vectorized_function): Add support for vectorizing
3732         the reciprocal estimate builtins and expansions.
3733         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3734         (bdesc_2arg): Add reciprocal estimate builtins.
3735         (bdesc_1arg): Add reciprocal square root estimate builtins.
3736         (rs6000_expand_builtin): Rewrite to use a switch statement,
3737         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
3738         (rs6000_init_builtins): Create declarations for reciprocal
3739         estimate builtins.
3740         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3741         sized, prefer traditional floating point registers, if integer
3742         vector types, prefer altivec registers.  Don't actually look at
3743         the memory address any more.
3744         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3745         builtins.
3746         (rs6000_load_constant_and_splat): New helper function to load up
3747         the constant for reciprocal estimate instructions.
3748         (rs6000_emit_madd): New helper function for generating
3749         multiply/add type instructions, based on the current switches.
3750         (rs6000_emit_msub): Ditto.
3751         (rs6000_emit_mnsub): Ditto.
3752         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3753         replace a divide with a reciprocal estimate and fixup, adding
3754         support for machines with high precision and vectors.
3755         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3756         low precision machines.
3757         (rs6000_emit_swdiv): New common function to be called to replace a
3758         division with reciprocal estimate and fixup.
3759         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
3760         for double and vector types.  Add support for high precision machines.
3761
3762         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3763         the reciprocal estimate instructions can be generated.
3764         (TARGET_FRE): Ditto.
3765         (TARGET_FRSQRTES): Ditto.
3766         (TARGET_FRSQRTE): Ditto.
3767         (RS6000_RECIP_*): New macros for reciprocal estimate support.
3768
3769         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3770         square root estimate on vectors.
3771         (re<mode>2): New insn for reciprocal division estimate on vectors.
3772
3773         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3774         New builtin.
3775         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3776         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3777         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3778         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3779         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3780         (RS6000_BUILTIN_RSQRT): Ditto.
3781         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3782         floating point builtin.
3783
3784         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3785         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3786         __RECIP_PRECISION__ based on the command line switches.
3787         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3788
3789         * config/rs6000/rs6000.opt (-mrecip): Document add support for
3790         replacing division instructions with reciprocal estimate and fixup.
3791         (-mrecip=<opt>): New option.
3792         (-mrecip-precision): Ditto.
3793
3794         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3795         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3796         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3797         precision scalar.
3798
3799         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3800         (UNSPEC_VREFP): Ditto.
3801         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3802         conterparts with regard to support of -mno-fused-madd and -ffast-math.
3803         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3804         reciprocal estimate instructions to be generated.
3805         (altivec_vrefp): Ditto.
3806
3807         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3808         estimate support.
3809         (rreg): New mode attribute for reciprocal estimate support.
3810         (recip<mode>3): New insn for division using reciprocal estimate
3811         and fixup builtins.
3812         (divide define_split): New define_split to convert floating point
3813         division to use reciprocal estimate if the user used the
3814         appropriate options and the split is run when we can add new
3815         pseudo registers for the fixup.
3816         (rsqrt<mode>2): New insn for reciprocal square root support.
3817         (recipsf3): Move into recip<mode>3.
3818         (recipdf3): Ditto.
3819         (fres): Use TARGET_FRES.
3820         (rsqrtsf2): Move into rsqrt<mode>2.
3821         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3822         (copysignsf3): Add support for VSX.
3823         (fred): Use TARGET_FRE.
3824         (fred_fpr): Ditto.
3825         (rsqrtdf_internal1): New function for frsqrte instruciton.
3826
3827         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3828         (vec_rsqrt): Ditto.
3829
3830 2010-06-03  Richard Guenther  <rguenther@suse.de>
3831
3832         PR middle-end/44291
3833         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3834         (set_user_assembler_libfunc): Likewise.
3835
3836 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
3837
3838         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3839         defaults.h.
3840         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3841         to defaults.h
3842         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3843         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3844         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3845         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3846         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3847         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3848         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3849         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3850         * defaults.h: Updated for above mentioned changes.
3851
3852 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
3853
3854         * c-common.c: Remove header include of tm_p.h.
3855         * Makefile.in (c-common.o): Remove TM_P_H dependency.
3856
3857 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
3858
3859         * tree.h (struct tree_decl_map): New type.
3860         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3861         (tree_decl_map_hash): New prototype.
3862         (debug_expr_for_decl, value_expr_for_decl): Change into
3863         tree_decl_map hashtab from tree_map.
3864         (init_ttree): Adjust initialization.
3865         (tree_decl_map_hash): New function.
3866         (decl_debug_expr_lookup, decl_debug_expr_insert,
3867         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3868
3869 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3870
3871         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3872         linker emulations.
3873         * configure: Regenerate.
3874         * config.in: Regenerate.
3875
3876         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3877         (X86_64_EMULATION): Define.
3878         (TARGET_LD_EMULATION): Use them.
3879
3880         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3881         (SPARC64_EMULATION): Define.
3882         (LINK_ARCH_SPEC): Use them.
3883
3884 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
3885
3886         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3887         smallest_mode_for_size for computing the precision types of new
3888         graphite IVs.  Do not call lang_hooks.types.type_for_size.
3889
3890 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
3891
3892         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3893         information.
3894         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3895
3896 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
3897
3898         PR middle-end/44363
3899         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3900         return false instead.
3901
3902 2010-06-02  Jan Hubicka  <jh@suse.cz>
3903
3904         PR middle-end/44295
3905         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3906         create new cgraph node to check callee.
3907
3908 2010-06-02  Richard Guenther  <rguenther@suse.de>
3909
3910         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3911
3912 2010-06-02  Richard Guenther  <rguenther@suse.de>
3913
3914         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3915         (lto_wrapper_cleanup): ... this.  Do not exit.
3916         (fatal): Adjust.  Exit here.
3917         (fatal_perror): Likewise.
3918         (fatal_signal): New function.
3919         (main): Set up signal handlers to cleanup temporary files.
3920         * Makefile.in (lto-wrapper.o): Adjust dependencies.
3921
3922 2010-06-02  Richard Guenther  <rguenther@suse.de>
3923
3924         PR tree-optimization/44377
3925         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3926
3927 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3928
3929         * config/s390/2097.md (z10_fhex): Remove insn reservation.
3930         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3931         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3932         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3933         instruction.
3934         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3935
3936 2010-06-02  Jan Hubicka  <jh@suse.cz>
3937
3938         * bitmap.c (bitmap_descriptor): Add search_iter.
3939         (bitmap_find_bit): Increment it.
3940         (print_statistics): Print it.
3941
3942 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
3943
3944         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3945         instead of gimple_build_call_vec.  Delete unnecessary local variable.
3946
3947 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
3948
3949         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3950         change from yesterday.
3951
3952 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
3953
3954         * c-ada-spec.c: Clean up redundant includes.
3955
3956 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
3957
3958         * gimplify.c: Do not include except.h and optabs.h.
3959         (gimplify_body): Do not initialize RTL profiling.
3960         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3961         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3962         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3963         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3964         langhooks.h.
3965
3966         * tree-pretty-print.h: Include pretty-print.h.
3967         * gimple-pretty-print.h: Include pretty-print.h.
3968
3969         * tree-pretty-print.c: Do not include diagnostic.h.
3970         * tree-vrp.c: Likewise.
3971         * tree-tailcall.c: Likewise
3972         * tree-scalar-evolution.c: Likewise
3973         * tree-ssa-dse.c: Likewise
3974         * tree-chrec.c: Likewise
3975         * tree-ssa-sccvn.c: Likewise
3976         * tree-ssa-copyrename.c: Likewise
3977         * tree-nomudflap.c: Likewise
3978         * tree-call-cdce.c: Likewise
3979         * tree-stdarg.c: Likewise
3980         * tree-ssa-math-opts.c: Likewise
3981         * tree-nrv.c: Likewise
3982         * tree-ssa-sink.c: Likewise
3983         * tree-browser.c: Likewise
3984         * tree-ssa-loop-ivcanon.c: Likewise
3985         * tree-ssa-loop.c: Likewise
3986         * tree-parloops.c: Likewise
3987         * tree-ssa-address.c: Likewise
3988         * tree-ssa-ifcombine.c: Likewise
3989         * tree-if-conv.c: Likewise
3990         * tree-data-ref.c: Likewise
3991         * tree-affine.c: Likewise
3992         * tree-ssa-phiopt.c: Likewise
3993         * tree-ssa-coalesce.c: Likewise
3994         * tree-ssa-pre.c: Likewise
3995         * tree-ssa-live.c: Likewise
3996         * tree-predcom.c: Likewise
3997         * tree-ssa-forwprop.c: Likewise
3998         * tree-ssa-dce.c: Likewise
3999         * tree-ssa-ter.c: Likewise
4000         * tree-ssa-loop-prefetch.c: Likewise
4001         * tree-optimize.c: Likewise
4002         * tree-ssa-phiprop.c: Likewise
4003         * tree-object-size.c: Likewise
4004         * tree-outof-ssa.c: Likewise
4005         * tree-ssa-structalias.c: Likewise
4006         * tree-switch-conversion.c: Likewise
4007         * tree-ssa-reassoc.c: Likewise
4008         * tree-ssa-operands.c: Likewise
4009         * tree-vectorizer.c: Likewise
4010         * tree-vect-data-refs.c: Likewise
4011         * tree-vect-generic.c: Likewise
4012         * tree-vect-stmts.c: Likewise
4013         * tree-vect-patterns.c: Likewise
4014         * tree-vect-slp.c: Likewise
4015         * tree-vect-loop.c: Likewise
4016         * tree-ssa-loop-ivopts.c: Likewise
4017         * tree-ssa-loop-im.c: Likewise
4018         * tree-ssa-loop-niter.c: Likewise
4019         * tree-ssa-loop-unswitch.c: Likewise
4020         * tree-ssa-loop-manip.c: Likewise
4021         * tree-ssa-loop-ch.c: Likewise
4022         * tree-dump.c: Likewise
4023         * tree-complex.c: Likewise
4024
4025         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
4026         * tree-ssa-uninit.c: Likewise
4027         * tree-ssa-threadupdate.c: Likewise
4028         * tree-ssa-uncprop.c: Likewise
4029         * tree-ssa-ccp.c: Likewise
4030         * tree-ssa-dom.c: Likewise
4031         * tree-ssa-propagate.c: Likewise
4032         * tree-ssa-alias.c: Likewise
4033         * tree-dfa.c: Likewise
4034         * tree-cfgcleanup.c: Likewise
4035         * tree-sra.c: Likewise
4036         * tree-ssa-copy.c: Likewise
4037         * tree-ssa.c: Likewise
4038         * tree-profile.c: Likewise
4039         * tree-cfg.c: Likewise
4040         * tree-ssa-threadedge.c: Likewise
4041         * tree-vect-loop-manip.c: Likewise
4042
4043         * tree-inline.c: Do not include diagnostic.h and expr.h.
4044         Include rtl.h.
4045         (copy_decl_for_dup_finish): Do not use NULL_RTX.
4046
4047         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
4048         * tree-loop-distribution.c: Likewise.
4049
4050 2010-06-01  Jan Hubicka  <jh@suse.cz>
4051
4052         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
4053
4054 2010-06-01  Jan Hubicka  <jh@suse.cz>
4055
4056         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
4057         remove return value.
4058         (split_bbs_on_noreturn_calls) .... here.
4059         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
4060         * tree-flow.h (fixup_noreturn_call): New.
4061
4062 2010-06-01  Jan Hubicka  <jh@suse.cz>
4063
4064         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
4065
4066 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
4067
4068         * tree.h (build_nt_call_list): Delete.
4069         * tree.c (build_nt_call_list): Delete.
4070
4071 2010-06-01  Jan Hubicka  <jh@suse.cz>
4072
4073         * fwprop.c: Make emit-rtl.h include last.
4074         * rtlanal.c: Include emit-rtl.h.
4075         * genautomata.c: Output emit-rtl include into insn-automata.c
4076         * df-scan.c: Include emit-rtl.h.
4077         * haifa-sched.c: Indlude emit-rtl.h.
4078         * mode-switching.c: Indlude emit-rtl.h.
4079         * graph.c: Indlude emit-rtl.h.
4080         * sel-sched.c: Include emit-rtl.h.
4081         * sel-sched-ir.c: Include emit-rtl.h.
4082         * ira-build.c: Include emit-rtl.h.
4083         * emit-rtl.c: (first_insn, last_insn): Remove defines.
4084         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
4085         Move to emit-rtl.h.
4086         (set_new_first_and_last_insn, get_last_insn_anywhere,
4087         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
4088         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
4089         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
4090         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
4091         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
4092         Use accessor functions.
4093         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4094          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4095         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4096         mem_expr_equal_p): Move here from rtl.h.
4097         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
4098         Move here from emit-rtl.c; make inline.
4099         * cfglayout.h: Include emit-rtl.h.
4100         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4101          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4102         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4103         mem_expr_equal_p, get_insns, set_first-insn,
4104         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
4105         * reg-stack.c: Include emit-rtl.h.
4106         * dce.c: Likewise.
4107
4108 2010-06-01  Jan Hubicka  <jh@suse.cz>
4109
4110         * cgraph.h (tree_function_versioning): Update prototype.
4111         (cgraph_function_versioning): Update prototype.
4112         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
4113         bitmap.
4114         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
4115         (cgraph_materialize_clone, save_inline_function_body): Update use of
4116         tree_function_versioning.
4117         * tree-inline.c (copy_bb): Look for previous copied block to link
4118         after; fix debug output.
4119         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
4120         (copy_body): Likewise.
4121         (expand_call_inline): Update use of copy_body.
4122         (tree_function_versioning): Update use of copy body; accept
4123         blocks_to_copy and new_entry.
4124
4125 2010-06-01  Jan Hubicka  <jh@suse.cz>
4126
4127         * gegenrtl.c: Remove unnecesary prototypes.
4128         (gendecl): Remove.
4129         (gendef): Produce static inline.
4130         (gencode): Remove.
4131         (main): Do not decode parameters; generate header only.
4132         * Makefile.in (genrtl.c): Remove.
4133
4134 2010-06-01  Jan Hubicka  <jh@suse.cz>
4135
4136         * tree-switch-conversion.c (build_one_array): Make it readonly.
4137
4138 2010-06-01  Richard Guenther  <rguenther@suse.de>
4139
4140         * optabs.c (init_optabs): Guard all accesses to reinit.
4141         * ipa-pure-const.c (propagate): Fix another typo.
4142         * opts.c (common_handle_option): Split assignment to bool.
4143         * c-opts.c (c_common_handle_option): Likewise.
4144
4145 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
4146             Matthew Gingell  <gingell@adacore.com>
4147
4148         * doc/invoke.texi: Mention -fdump-ada-spec.
4149         * tree-dump.c (dump_files): Add ada-spec.
4150         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
4151         * tree-pass.h (tree_dump_index): Add TDI_ada.
4152         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
4153         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
4154         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
4155         * c-decl.c: Include c-ada-spec.h.
4156         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
4157         functions.
4158         (c_write_global_declarations): Add handling of -fdump-ada-spec.
4159         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
4160         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
4161         * c-ada-spec.h, c-ada-spec.c: New files.
4162
4163 2010-06-01  Richard Guenther  <rguenther@suse.de>
4164
4165         PR lto/43853
4166         * ipa-pure-const.c (get_function_state): Hand back varying state
4167         if we do not have one.
4168         (has_function_state): New function.
4169         (duplicate_node_data): Adjust.
4170         (remove_node_data): Likewise.
4171         (pure_const_write_summary): Likewise.
4172         (propagate): Likewise.  Fix typo.
4173
4174 2010-06-01  Jan Hubicka  <jh@suse.cz>
4175
4176         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4177         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4178         (execute_all_ipa_transforms): Do not play with the states.
4179
4180 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
4181
4182         * config/arm/t-linux-androideabi: New.
4183         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4184
4185 2010-06-01  Jan Hubicka  <jh@suse.cz>
4186
4187         * tree-inline.c (estimate_num_insns): For stdarg functions look
4188         into call statement to count cost of argument passing.
4189
4190 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
4191
4192         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4193         argument for fprintf.
4194         (ix86_output_addr_diff_elt): Likewise.
4195         (x86_function_profiler): Likewise.
4196         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4197         (LPREFIX): Likewise.
4198         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4199
4200 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
4201
4202         PR target/44338
4203         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4204         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4205         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4206         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4207         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4208         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4209         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4210         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4211         TARGET_FUSED_MADD.
4212
4213 2010-05-31  Jan Hubicka  <jh@suse.cz>
4214
4215         * tree.h (tree_range_check_failed): Declare noreturn.
4216
4217 2010-05-31  Jan Hubicka  <jh@suse.cz>
4218
4219         * gimple.c (gimple_call_builtin_p): New function.
4220         * gimple.h (gimple_call_builtin_p): Declare.
4221         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4222         to exit.
4223         (execute_warn_function_return): BUILT_IN_RETURN is return.
4224         (split_critical_edges): Return edges are not critical.
4225         (is_ctrl_altering_stmt): Builtin_in_return is altering.
4226         (gimple_verify_flow_info): Handle built_in_return.
4227         (execute_warn_function_return): Handle built_in_return.
4228         * ipa-pure-const.c (check_call): Ignore builtin_return.
4229
4230 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
4231
4232         PR middle-end/44337
4233         * expr.c (expand_assignment): Don't store anything for out-of-bounds
4234         array accesses with non-MEM.
4235
4236         PR tree-optimization/44182
4237         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4238         newly needs to end a bb is followed by debug stmts, instead return
4239         true from the function at the end.
4240         (maybe_move_debug_stmts_to_successors): New function.
4241         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4242
4243 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
4244
4245         PR target/44161
4246         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4247
4248 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
4249
4250         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4251         for nested functions in non-optimized compilation.
4252
4253 2010-05-31  Richard Guenther  <rguenther@suse.de>
4254
4255         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4256
4257 2010-05-30  Jan Hubicka  <jh@suse.cz>
4258
4259         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4260
4261 2010-05-30  Richard Guenther  <rguenther@suse.de>
4262
4263         PR lto/42975
4264         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4265         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4266         no longer needed.
4267
4268 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
4269
4270         * config/darwin.c (output_objc_section_asm_op): Add comment.
4271         (name_needs_quotes): Add '_' to list of valid comment chars.
4272         (machopic_output_function_base_name): Remove unneeded quotes.
4273         (darwin_encode_section_info): Adjust asm whitespace.
4274         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4275         (ASM_OUTPUT_LOCAL): Ditto.
4276         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4277         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4278         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4279
4280 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4281
4282         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4283         RS6000_OUTPUT_BASENAME unconditionally.
4284         (rs6000_output_function_epilogue): Likewise.
4285
4286 2010-05-30  Jan Hubicka  <jh@suse.cz>
4287
4288         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4289         nodes.
4290
4291 2010-05-30  Richard Guenther  <rguenther@suse.de>
4292
4293         * tree-cfg.c (verify_gimple_assign_single): Implement
4294         verification for COND_EXPR rhs.
4295
4296 2010-05-30  Jan Hubicka  <jh@suse.cz>
4297
4298         * cgraph.h (cgraph_dump_file): Declare.
4299         * cgraphunit.c (cgraph_dump_file): Export.
4300         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4301
4302 2010-05-30  Jan Hubicka  <jh@suse.cz>
4303
4304         * dwarf2out.c (reference_to_unused,
4305         premark_types_used_by_global_vars_helper): Avoid creation of new
4306         varpool nodes.
4307
4308 2010-05-30  Jan Hubicka  <jh@suse.cz>
4309
4310         * cgraph.h (cgraph_node_cannot_return,
4311         cgraph_edge_cannot_lead_to_return): New functions.
4312         * cgraph.c (cgraph_node_cannot_return,
4313         cgraph_edge_cannot_lead_to_return): Use them.
4314         * ipa-pure-const.c (pure_const_names): New static var.
4315         (check_call): Handle calls not leading to return.
4316         (pure_const_read_summary): Dump info read.
4317         (propagate): Dump info about propagation process; ignore side effects
4318         of functions not leading to exit; fix handling of pure functions.
4319
4320 2010-05-30  Jan Hubicka  <jh@suse.cz>
4321
4322         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4323         for tail call epilogues.
4324
4325 2010-05-30  Jan Hubicka  <jh@suse.cz>
4326
4327         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4328         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4329         dump files.
4330
4331 2010-05-29  Jan Hubicka  <jh@suse.cz>
4332
4333         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4334         node; remove references in node we no longer keep in cgrpah but need
4335         body of.
4336
4337 2010-05-29  Jan Hubicka  <jh@suse.cz>
4338
4339         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4340
4341 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4342
4343         PR target/44165
4344         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4345
4346 2010-05-29  Jan Hubicka  <jh@suse.cz>
4347
4348         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4349         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4350         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4351         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4352         debug_names_replaced_by, debug_update_ssa): Likewise.
4353         * sbitmap.c (debug_sbitmap): Likewise.
4354         * genrecog.c (debug_decision, debug_decision_list): Likewise.
4355         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4356         debug_tree_chain): Likewise.
4357         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4358         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4359         * optabs.c  (debug_optab_libfuncs): Likewise.
4360         (verify_loop_closed_ssa): Likewise.
4361         * value-prof.c (verify_histograms): Likewise.
4362         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4363         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4364         * cfghooks.c (verify_flow_info): Likewise.
4365         * fold-const.c (debug_fold_checksum): Likewise.
4366         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4367         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4368         Likewise.
4369         * omega.c (debug_omega_problem): Likewise.
4370         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4371         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4372         * dominance.c (verify_dominators, debug_dominance_info,
4373         debug_dominance_tree): Likewise.
4374         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4375         * df_regno_debug, df_ref_debug,
4376         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4377         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4378         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4379         * sel-sched.c (debug_state): Likewise.
4380         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4381         Likewise.
4382         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4383         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4384         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4385         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4386         Likewise.
4387         * c-pretty-print.c (debug_c_tree): Likewise.
4388         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4389         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4390         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4391         * ebitmap.c (debug_ebitmap): Likewise.
4392         * function.c (debug_find_var_in_block_tree): Likewise.
4393         * print-rtl.c (debug_rtx): Likewise.
4394         (debug_rtx_count): Likewise.
4395         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4396         * stor-layout.c (debug_rli): Likewise.
4397         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4398         * tree-data-ref.c (debug_data_references,
4399         debug_data_dependence_relations, debug_data_reference,
4400         debug_data_dependence_relation, debug_rdg_vertex,
4401         debug_rdg_component, debug_rdg): Likewise.
4402         * tree-affine.c (debug_aff): Likewise.
4403         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4404         Likewise.
4405         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4406         * emit-rtl.c (verify_rtl_sharing): Likewise.
4407         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4408         debug_value_expressions): Likewise.
4409         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4410         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4411         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4412         * cfglayout.c (verify_insn_chain): Likewise.
4413         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4414         debug_clast_stmt, debug_generated_program): Likewise.
4415         * ggc-page.c (debug_print_page_list): Likewise.
4416         * tree-ssa-ter.c (debug_ter): Likewise.
4417         * graphite-dependences.c (debug_pddr): Likewise.
4418         * sched-deps.c (debug_ds): Likewise.
4419         * tree-ssa.c (verify_ssa): Likewise.
4420         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4421         debug_scattering_functions, debug_iteration_domains, debug_pdr,
4422         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4423         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4424         * tree-inline.c (debug_find_tree): Likewise.
4425         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4426         debug_ppl_powerset_matrix): Likewise.
4427         * var-tracking.c (debug_dv): Likewise.
4428         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4429         * cfgloop.c (verify_loop_structure): Likewise.
4430         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4431         * c-common.c (verify_sequence_points): Likewise.
4432         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4433         debug_candidates, debug_rgn_dependencies): Likewise.
4434         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4435         * debug_constraint_graph, debug_solution_for_var,
4436         debug_sa_points_to_info): Likewise.
4437         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4438         Likewie.
4439         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4440         debug_loops, debug_loop, debug_loop_num): Likewise.
4441         * passes.c (debug_pass): Likewise.
4442         (dump_properties): Likewise; add cfglayout property.
4443         (debug_properties): Likewise.
4444         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4445         * varpool.c (debug_varpool): Likewise.
4446         * regcprop.c (debug_value_data): Likewise.
4447         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4448         debug_immediate_uses_for): Likewise.
4449
4450 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4451
4452         PR bootstrap/44315
4453         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4454         Filter out insn-flags.h.
4455
4456 2010-05-29  Jan Hubicka  <jh@suse.cz>
4457
4458         * cgraph.h (struct varpool_node_set_def,
4459         struct cgraph_node_set_def): Remove unused AUX pointer.
4460         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4461         VEC_empty macro.
4462
4463 2010-05-29  Jan Hubicka  <jh@suse.cz>
4464
4465         PR middle-end/44324
4466         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4467
4468 2010-05-29  Richard Guenther  <rguenther@suse.de>
4469
4470         * lto-streamer.c (cached_bp): New global variable.
4471         (bitpack_create): Return the cached bitpack, if available.
4472         (bitpack_delete): Clear and cache the bitpack, if appropriate.
4473         (bp_pack_value): Remove redundant asserts.
4474
4475 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
4476
4477         PR middle-end/44306
4478         * tree-if-conv.c (is_true_predicate): New.
4479         (is_predicated): Use is_true_predicate.
4480         (add_to_predicate_list): Same.  Do not use unshare_expr.
4481         (add_to_dst_predicate_list): Same.
4482
4483 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
4484
4485         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4486         field on edges.
4487         (predicate_bbs): Same.
4488         (clean_predicate_lists): Same.
4489         (find_phi_replacement_condition): Do not AND the predicate from
4490         edge->aux.
4491
4492 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4493
4494         PR bootstrap/44315
4495         * Makefile.in (build/gencondmd.o): Add a missing `\'.
4496
4497 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4498
4499         PR target/44261
4500         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4501         (negdf2): Adjust expander pattern and use negdf2_slow.
4502         (negsf2): Likewise.
4503
4504 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
4505
4506         * basic-block.h (struct control_flow_graph): Move last_label_uid field
4507         up.
4508         * df.h (struct df_base_ref): Move regno field up.
4509         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4510         * expr.h (struct separate_ops): Move location field up.
4511         * optabs.h (struct optab_d): Move libcall_basename field down.
4512         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4513         * config/i386/i386.h (struct machine_function): Convert call_abi field
4514         into a bitfield.  Move cfa field to the end of the structure.
4515
4516 2010-05-29  Jan Hubicka  <jh@suse.cz>
4517
4518         * varpool.c (varpool_get_node): Fix lookup.
4519
4520 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4521
4522         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
4523         RTL specific prototypes with #ifdef RTX_CODE.
4524         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4525         * config/spu/t-spu-elf: Fix dependencies.
4526
4527         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4528
4529 2010-05-29  Mike Stump  <mikestump@comcast.net>
4530
4531         PR bootstrap/44315
4532         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4533         TM_H when building to avoid dependency loops.
4534
4535 2010-05-29  Jan Hubicka  <jh@suse.cz>
4536
4537         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4538         refs and body; not the whole node for masters of materialized clones.
4539
4540 2010-05-29  Mike Stump  <mikestump@comcast.net>
4541
4542         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4543
4544 2010-05-29  Jan Hubicka  <jh@suse.cz>
4545
4546         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4547         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4548         use of clone_function_name.
4549         * cgraph.h (cgraph_create_virtual_clone,
4550         cgraph_function_versioning): update prototypes.
4551         (clone_function_name): Declare.
4552         * ipa-cp.c (ipcp_insert_stage): Update call of
4553         cgraph_create_virtual_clone.
4554         * omp-low.c (create_omp_child_function_name): Use
4555         cgraph_create_virtual_clone.
4556         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4557         (cgraph_function_versioning): Take SUFFIX argument; produce new name
4558         and make decl local.
4559
4560 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4561
4562         * vec.h: Include statistics.h
4563         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
4564         with VEC_H.
4565
4566 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4567
4568         * c-lex.c: Do not include c-tree.h.
4569         * c-pretty-print.c: Likewise.
4570         * c-opts.c: Likewise.
4571         * c-gimplify.c: Likewise.
4572         * c-common.c: Likewise.
4573         * c-dump.c: Likewise.  Include c-common.h.
4574
4575 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4576
4577         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4578         before including diagnostic-core.h.
4579         (c_cpp_error): New prototype moved from c-tree.h.
4580         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4581         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4582         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4583         (c_cpp_error): Prototype moved to c-common.h.
4584         * Makefile.in: Update dependency for C_COMMON_H.
4585
4586 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
4587
4588         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4589         * c-common.c (c_register_addr_space): Remove here.
4590         * c-decl.c (c_register_addr_space): Re-add here.
4591
4592 2010-05-28  Mike Stump  <mikestump@comcast.net>
4593
4594         * config/darwin-c.c: Remove c-tree.h include.
4595
4596 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4597
4598         * gcc.c: Include diagnostic.h.
4599         (error_count): Remove.  All users changed to use errorcount.
4600         (programname): Remove.  All users changed to use progname.
4601         (fancy_abort, internal_error, fatal_error, error, warning, inform,
4602         fnotice): Remove.
4603         (execute): Don't include "Internal error" and bug reporting
4604         information in argument of internal_error call.
4605         (process_command): Don't increment error_count after calling
4606         perror_with_name.
4607         (input_filename): Rename to gcc_input_filename.  All users
4608         changed.
4609         (main): Call diagnostic_initialize.  Register delete_temp_files
4610         with atexit.  Use seen_error to test for errors.
4611         * gcc.h: Include diagnostic-core.h.
4612         (fatal_error, error, warning): Remove.
4613         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4614         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4615         (gcc.o): Update dependencies.
4616
4617 2010-05-28  Jeff Law  <law@redhat.com>
4618
4619         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4620         functions.
4621         * ira.h (ira_bad_reload_regno): Declare
4622         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4623
4624         * ira-color.c (update_curr_costs): Free updated hard reg costs.
4625         (ira_reassign_conflict_allocnos): Remove bogus asserts.
4626         (allocno_reload_assign): Likewise.
4627
4628 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
4629
4630         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4631         build1_stat.
4632
4633 2010-05-28  Richard Guenther  <rguenther@suse.de>
4634
4635         PR lto/44312
4636         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4637         Stream fixed-point constants mode.
4638         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4639         and TYPE_PRECISION.
4640         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4641         Stream fixed-point constants mode.
4642         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4643         and TYPE_PRECISION.
4644
4645 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
4646
4647         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4648         only place it was called from.
4649         (number_of_latch_executions): Do not return chrec_dont_know when the
4650         may_be_zero is a runtime condition: instead, return a COND_EXPR
4651         including the may_be_zero condition.
4652         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4653         of nb_iterations.
4654         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4655         COND_EXPRs.
4656
4657 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
4658
4659         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4660         generate COND_EXPRs for degenerate_phi_result.
4661
4662 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
4663
4664         PR middle-end/44293
4665         * tree-if-conv.c (if_convertible_loop_p): Check the
4666         if-convertibility of phi nodes in non predicated BBs.
4667
4668 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4669
4670         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4671
4672 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4673
4674         PR driver/15303
4675         * gcc.c (inform, warning, inform): New functions.
4676         (fatal_ice): Rename to internal_error; change cmsgid parameter to
4677         gmsgid.  All callers changed.
4678         (notice): Rename to fnotice; add parameter fp.  All callers changed.
4679         (fatal_error): Rename to fatal_signal.  All users changed.
4680         (fatal): Rename to fatal_error; change cmsgid parameter to
4681         gmsgid.  All callers changed.
4682         (process_command): Use warning instead of error for warnings.
4683         (end_going_arg): Don't use _() around argument of error.
4684         (do_spec_1): Use inform for message from %n specs.  Use warning
4685         instead of error for warnings.
4686         (main): Use inform for comparison messages.  Use warning for
4687         message about unused linker input.
4688         (error): Increment error_count.  Print "error: ".
4689         * gcc.h (fatal): Change to fatal_error.
4690         (warning): Declare.
4691         * config/darwin-driver.c (darwin_default_min_version): Use warning
4692         instead of fprintf for warnings.
4693         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4694
4695 2010-05-28  Julian Brown  <julian@codesourcery.com>
4696
4697         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4698         (*thumb2_addsi3_compare0_scratch): New.
4699         * config/arm/constraints.md (Pv): New.
4700         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4701         for ARM mode only.
4702         (*addsi3_compare0_scratch): Likewise.
4703
4704 2010-05-28  Jan Hubicka  <jh@suse.cz>
4705
4706         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4707         check.
4708         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4709         only on local statics.
4710
4711 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
4712
4713         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4714
4715 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4716
4717         PR bootstrap/44314
4718         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4719         (OPTION_GLIBC): Define.
4720
4721 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
4722
4723         PR debug/41048
4724         * dwarf2out.c (double_int_type_size_in_bits): New function.
4725         (round_up_to_align): Change first argument and return value to
4726         double_int.
4727         (field_byte_offset): Work internally on double_ints.
4728
4729         PR target/43636
4730         * builtins.c (expand_movstr): Use a temporary pseudo instead
4731         of target even when target is not NULL and not const0_rtx, but
4732         fails movstr predicate.
4733         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4734
4735 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4736
4737         * final.c (rest_of_clean_state): Use %m in errors instead of
4738         strerror (errno).
4739         * gengtype.c (read_input_list, close_output_files): Use xstrerror
4740         instead of strerror.
4741         * toplev.c (process_options): Use %m in errors instead of strerror
4742         (errno).
4743         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4744         (errno).
4745
4746 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
4747
4748         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4749         (ix86_canonical_va_list_type): Make static.  Add declaration.
4750         (ix86_enum_va_list): Make static.  Reindent.
4751         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4752         (ix86_canonical_va_list_type): Ditto.
4753         (ix86_enum_va_list): Ditto.
4754
4755 2010-05-28  Richard Guenther  <rguenther@suse.de>
4756
4757         * lto-wrapper.c (run_gcc): With -save-temps generate a
4758         user-visible ltrans filename.  Fixup ltrans unit numbering.
4759
4760 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
4761
4762         * c-common.c (c_common_nodes_and_builtins): Replace use
4763         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4764         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4765         to ix86_enum_va_list.
4766         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4767         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4768         (TARGET_ENUM_VA_LIST_P): Add hook description.
4769         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4770         * target.h (gcc_target): Add enum_va_list hook.
4771
4772         PR bootstrap/44299
4773         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4774         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4775         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4776
4777 2010-05-28  Alan Modra  <amodra@gmail.com>
4778
4779         PR target/44266
4780         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4781         emit_library_call machinery to set up __tls_get_addr calls.
4782
4783 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4784
4785         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4786
4787 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
4788
4789         Revert fix for PR c++/44188
4790         * c-common.c (is_typedef_decl): Revert the moving of  this
4791         definition ...
4792         * tree.c (is_typedef_decl): ... here.
4793         (typdef_variant_p): Revert the moving of this  definition
4794         here from gcc/cp/tree.c.
4795         * c-common.h (is_typedef_decl): Revert the moving of this
4796         declaration ...
4797         * tree.h (is_typedef_decl): ... here.
4798         (typedef_variant_p): Revert the moving of this  declaration here
4799         from gcc/cp/cp-tree.h
4800         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4801         (gen_tagged_type_die): Revert the splitting out of ...
4802         (gen_type_die_with_usage): ... this function. Revert the anonymous
4803         tagged type handling.
4804         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
4805         typedefs naming anonymous tagged types.
4806
4807 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
4808
4809         * config/rs6000/rs6000-modes.def (PSImode): Delete.
4810
4811 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
4812
4813         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4814         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4815         throughout.
4816         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4817         "xer" to "ca".
4818         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4819         XER_REGS to CA_REGS throughout.
4820         * config/rs6000/rs6000.h: Same.
4821         (ADDITIONAL_REGISTER_NAMES): Add "xer".
4822         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
4823         that mode_iterator "P" is the size for arithmetic carries as well.
4824         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4825
4826 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
4827
4828         PR bootstrap/44255
4829         * combine.c (struct rtx_subst_pair): Define unconditionally.
4830         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
4831         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4832         Call make_compound_operation on pair->to.
4833         (propagate_for_debug): Don't call make_compound_operation here.
4834         Always use simplify_replace_fn_rtx.
4835
4836 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
4837
4838         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4839         * config/xtensa/xtensa.c (override_options): Check
4840           TARGET_FORCE_NO_PIC and set flag_pic.
4841         * config/xtensa/xtensa.opt: Document -mforce-no-pic
4842
4843 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
4844
4845         PR bootstrap/44299
4846         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4847         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4848
4849 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
4850
4851         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
4852         toplev.h.
4853         * diagnostic.c: Don't include toplev.h.
4854         (progname): Define.  Moved from toplev.c.
4855         (seen_error): New function.
4856         * diagnostic.h: Include diagnostic-core.h.
4857         (diagnostic_t, emit_diagnostic): Don't declare here.
4858         * toplev.c (progname): Move to toplev.c.
4859         (emit_debug_global_declarations, compile_file, finalize,
4860         do_compile, toplev_main): Use seen_error.
4861         * toplev.h: Include diagnostic-core.h.
4862         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4863         internal_error, warning, warning_at, error, error_n, error_at,
4864         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4865         verbatim, fnotice, progname): Move to diagnostic-core.h.
4866         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4867         (expand_builtin_expect): Use seen_error.
4868         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4869         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4870         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4871         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4872         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4873         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4874         errorcount for errors.
4875         * c-opts.c (c_common_finish): Use seen_error.
4876         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4877         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4878         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4879         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4880         (get_coverage_counts): Use seen_error.
4881         * dwarf2out.c (dwarf2out_finish): Use seen_error.
4882         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4883         gimplify_body): Use seen_error.
4884         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4885         * ipa-pure-const.c (gate_pure_const): Use seen_error.
4886         * ipa-reference.c (gate_reference): Use seen_error.
4887         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4888         * lambda-code.c: Include diagnostic-core.h instead of
4889         diagnostic.h.
4890         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4891         * lto-compress.c: Include diagnostic-core.h instead of
4892         diagnostic.h.
4893         * lto-section-in.c: Include diagnostic-core.h instead of
4894         diagnostic.h.
4895         * lto-streamer-out.c: Include diagnostic-core.h instead of
4896         diagnostic.h.
4897         * lto-streamer.c: Include diagnostic-core.h instead of
4898         diagnostic.h.
4899         (gate_lto_out): Use seen_error.
4900         * matrix-reorg.c: Include diagnostic-core.h instead of
4901         diagnostic.h.
4902         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4903         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4904         (gate_expand_omp, lower_omp_1): Use seen_error.
4905         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4906         (rest_of_decl_compilation, rest_of_type_compilation,
4907         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4908         * tree-cfg.c (label_to_block_fn): Use seen_error.
4909         * tree-inline.c (optimize_inline_calls): Use seen_error.
4910         * tree-mudflap.c (mudflap_finish_file): Use
4911         seen_error.
4912         * tree-optimize.c (gate_all_optimizations,
4913         gate_all_early_local_passes, gate_all_early_optimizations): Use
4914         seen_error.
4915         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4916         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4917         (varpool_remove_unreferenced_decls,
4918         varpool_assemble_pending_decls): Use seen_error.
4919         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4920         (TOPLEV_H, DIAGNOSTIC_H): Update.
4921         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4922         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4923         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4924         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4925         coverage.o, lambda-code.o): Update dependencies.
4926
4927 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
4928
4929         PR c++/44188
4930         * c-common.c (is_typedef_decl): Move this definition ...
4931         * tree.c (is_typedef_decl): ... here.
4932         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4933         * c-common.h (is_typedef_decl): Move this declaration ...
4934         * tree.h (is_typedef_decl): ... here.
4935         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4936         * dwarf2out.c (is_naming_typedef_decl): New function.
4937         (gen_tagged_type_die): Split out of ...
4938         (gen_type_die_with_usage): ... this function. When an anonymous
4939         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4940         is emitted for the typedef.
4941         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4942         anonymous tagged types.
4943
4944 2010-05-27  Jason Merrill  <jason@redhat.com>
4945
4946         * print-tree.c (debug_vec_tree): New fn.
4947         (print_vec_tree): New fn.
4948         * tree.h: Declare them.
4949         * gdbinit.in (pvt): New command.
4950
4951         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4952
4953         * gdbinit.in (pdd): New command.
4954
4955 2010-05-27  Jan Hubicka  <jh@suse.cz>
4956
4957         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4958         (update_caller_keys): Return early if there are no callers;
4959         only update fibheap when decresing the key.
4960         (update_callee_keys): Avoid recursion.
4961         (decide_inlining_of_small_functions): When badness does not match;
4962         re-insert into fibheap.
4963
4964 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
4965
4966         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4967         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4968         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4969         (ALL_HOST_OBJS): Now a union of the above two.
4970         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4971         all files in ALL_HOST_FRONTEND_OBJS.
4972         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4973
4974         * c-common.c: Pretend to be a backend file by undefining
4975         IN_GCC_FRONTEND (still need rtl.h here).
4976
4977 2010-05-27  Jan Hubicka  <jh@suse.cz>
4978
4979         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4980         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4981
4982 2010-05-27  Jan Hubicka  <jh@suse.cz>
4983
4984         * sched-ebb.c: Rename struct deps to struct deps_desc.
4985         * ddg.c: Likewise.
4986         * sel-sched-ir.c: Likewise.
4987         * sched-deps.c: Likewise.
4988         * sched-int.h: Likewise.
4989         * sched-rgn.c: Likewise.
4990
4991 2010-05-27  Jon Beniston <jon@beniston.com>
4992
4993         PR 43726
4994         * config/lm32/lm32.h: Remove definition of
4995         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4996
4997 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4998
4999         PR lto/44230
5000         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
5001
5002 2010-05-27  Richard Guenther  <rguenther@suse.de>
5003
5004         PR tree-optimization/44284
5005         * tree-vect-stmts.c (vectorizable_assignment): Handle
5006         sign-changing conversions as simple copy.
5007
5008 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5009
5010         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
5011         Bionic C library.
5012         (__gthread_active_p): Check for pthread_create if compiling against
5013         Bionic C library.
5014
5015 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5016
5017         Support compilation for Android platform.  Reimplement -mandroid.
5018
5019         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
5020         (*android*): Set ANDROID_DEFAULT.
5021         (arm*-*-linux*): Include linux-android.h.
5022         (arm*-*-eabi*): Don't include previous -mandroid implementation.
5023         * config/arm/eabi.h: Remove, move Android-specific parts ...
5024         * config/linux-android.h: ... here.  New file.
5025         * config/arm/eabi.opt: Rename to ...
5026         * config/linux-android.opt: ... this.
5027         (mandroid): Allow -mno-android option.  Initialize based on
5028         ANDROID_DEFAULT.
5029         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
5030         Move logic to corresponding LINUX_TARGET_* macros.
5031         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
5032         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
5033         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
5034         Android definitions.
5035         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
5036         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
5037         Document.
5038
5039 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5040
5041         Add support for Bionic C library
5042
5043         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
5044         macro.
5045         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
5046         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
5047
5048         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
5049         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
5050         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
5051         to support multiple C libraries.  Handle Bionic.
5052         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
5053         (BIONIC_DYNAMIC_LINKER64): Define.
5054         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
5055         Update.
5056         (TARGET_HAS_SINCOS): Enable for Bionic.
5057
5058         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
5059         the last option specified on command line take effect.
5060         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
5061         (mbionic): New.
5062         (mglibc, muclibc): Update.
5063
5064         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
5065         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
5066         DEFAULT_LIBC.
5067
5068         * doc/invoke.texi (-mglibc, -muclibc): Update.
5069         (-mbionic): Document.
5070
5071 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5072
5073         * c-common.h (c_register_addr_space): Add prototype.
5074         (ADDR_SPACE_KEYWORD): Remove.
5075         * c-common.c (c_register_addr_space): New function.
5076         (c_addr_space_name): Reimplement.
5077         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
5078
5079         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
5080         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
5081
5082         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
5083         Remove TARGET_ADDR_SPACE_KEYWORDS.
5084
5085 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
5086
5087         * input.c: New file.
5088         * input.h (main_input_filename): Move declaration to toplev.h.
5089         * toplev.c (input_location, line_table): Move to input.c
5090         * toplev.h (main_input_filename): Move declaration from input.h.
5091         * tree.c (expand_location): Move to input.c.
5092         * Makefile.in (OBJS-common): Add input.o.
5093         (input.o): Add dependencies.
5094
5095 2010-05-27  Richard Guenther  <rguenther@suse.de>
5096
5097         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
5098         for non-existant files.
5099         (fork_execute): Mark args_name file as deleted.
5100
5101 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
5102
5103         PR bootstrp/44287
5104         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
5105         (narrow_signed_type): Likewise.
5106
5107 2010-05-26  Jan Hubicka  <jh@suse.cz>
5108
5109         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
5110         edge only when checking is enabled; check using former_clone_of;
5111         check inline clones too.
5112         (cgraph_materialize_clone): Record former_clone_of pointer.
5113         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
5114         combining redirections; dump args_to_skip bitmap
5115         (cgraph_materialize_all_clones): Do no redirection here.
5116         * ipa-inline.c (inline_transform): Do redirection here.
5117         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
5118         cheking only).
5119
5120 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
5121
5122         * config/avr/avr-c.c: Do not include regs.h.
5123         Include cpplib.h for cpp_define and tree.h for c-common.h.
5124         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
5125         * config/avr/t-avr: Fix dependencies for avr-c.o.
5126
5127 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
5128
5129         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
5130         string instead of SYMBOL_REF rtx.
5131         * rtl.h (set_stack_check_libfunc): Move prototype from here...
5132         * libfuncs.h: ...to here.  Adjust for explow.c change.
5133
5134 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * pretty-print.c: Don't include ggc.h.
5137         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
5138         (identifier_to_locale): Use them for allocation.
5139         * pretty-print.h (identifier_to_locale_alloc,
5140         identifier_to_locale_free): Declare.
5141         * toplev.c (alloc_for_identifier_to_locale): New.
5142         (general_init): Set identifier_to_locale_alloc and
5143         identifier_to_locale_free.
5144         * Makefile.in (pretty-print.o): Update dependencies.
5145
5146 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5147
5148         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
5149         pointer types if they have different alignment or mode.
5150
5151 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
5152
5153         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5154         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5155         * config/sparc/sparc-protos.h (function_value): Remove declaration.
5156         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
5157         sparc_function_value_regno_p): New functions.
5158         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5159         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5160         (function_value): Rename to...
5161         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
5162         argument to 'outgoing'.
5163         (function_arg_record_value, function_arg_union_value,
5164         function_arg_vector_value): Update comment.
5165
5166 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5167
5168         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
5169         (fde_needed_for_eh_p): New predicate.
5170         (output_call_frame_info): Use it throughout to decide whether FDEs
5171         are needed for EH purpose.
5172         (dwarf2out_begin_prologue): Reorder assignments.
5173
5174 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5175
5176         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5177         special case loop->header.
5178         (is_predicated): New.
5179         (if_convertible_loop_p): Call it.
5180
5181 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5182
5183         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5184         iterator in parameter.  Do not generate code during the analysis.
5185         (tree_if_convert_cond_stmt): Removed.
5186         (tree_if_convert_stmt): Removed.
5187         (predicate_bbs): New.
5188         (if_convertible_loop_p): Call predicate_bbs.
5189         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5190         now contains all the analysis part.
5191
5192 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5193
5194         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5195         statements in the analysis part.
5196         (tree_if_convert_stmt): Update comment.
5197         (remove_conditions_and_labels): New.
5198         (combine_blocks): Call remove_conditions_and_labels.
5199         (tree_if_conversion): Update comment.
5200
5201 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5202
5203         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5204         than 2 predecessors or more than 2 successors.
5205
5206 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5207
5208         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5209         of loops in which the data dependence analysis fails.
5210
5211 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5212
5213         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5214         CDI_POST_DOMINATORS.
5215         (tree_if_conversion): Same.
5216
5217 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5218
5219         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5220
5221 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
5222
5223         * tree-if-conv.c: Update copyright years.  Fix comments.
5224         Fix indentation.
5225
5226 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
5227
5228         * builtin-types.def (BT_INT128): New primitive type.
5229         (BT_UINT128): Likewise.
5230         * c-common.c (c_common_r): Add __int128 keyword.
5231         (c_common_type_for_size): Handle __int128.
5232         (c_common_type_for_mode): Likewise.
5233         (c_common_signed_or_unsigned_type): Likewise.
5234         (c_common_nodes_and_builtins): Add builtin type
5235         if target supports 128-bit integer scalar.
5236         * c-common.h (enum rid): Add RID_INT128.
5237         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5238         if target supports 128-bit integer scalar.
5239         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5240         (finish_declspecs): Likewise.
5241         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5242         (c_token_starts_declspecs): Likewise.
5243         (c_parser_declspecs): Likewise.
5244         (c_parser_attributes): Likewise.
5245         (c_parser_objc_selector): Likewise.
5246         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5247         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5248         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5249         * tree.c (make_or_reuse_type): Likewise.
5250         (make_unsigned_type): Likewise.
5251         (build_common_tree_nodes_2): Likewise.
5252         * tree.h (enum integer_type_kind): Add itk_int128 and
5253         itk_unsigned_int128.
5254         (int128_integer_type_node): New define.
5255         (int128_unsigned_type_node): New define.
5256         * doc/extend.texi: Add documentation about __int128 type.
5257
5258 2010-05-26  Richard Guenther  <rguenther@suse.de>
5259
5260         * tree-ssa-sccvn.c (copy_nary): Adjust.
5261         (copy_phis): Rename to ...
5262         (copy_phi): ... this.  Adjust.
5263         (copy_references): Rename to ...
5264         (copy_reference): ... this.  Adjust.
5265         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5266         result into the valid table.
5267
5268 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
5269
5270         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5271         insn-config.h, insn-codes.h, recog.h, and optabs.h.
5272
5273 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5274
5275         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5276
5277 2010-05-26  Richard Guenther  <rguenther@suse.de>
5278
5279         * opts.c (common_handle_option): Handle OPT_Ofast.
5280
5281 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
5282
5283         * diagnostic.c: Don't include opts.h.
5284         (permissive_error_option): Define.
5285         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
5286         for classify_diagnostic.  Don't use memset for
5287         classify_diagnostic.  Initialize new and recently added fields.
5288         (diagnostic_classify_diagnostic): Use context->n_opts instead of
5289         N_OPTS.
5290         (diagnostic_report_diagnostic): Pass context parameter to
5291         diagnostic_report_warnings_p.  Use option_enabled and option_name
5292         hooks from context.
5293         (emit_diagnostic): Use permissive_error_option.
5294         (permerror): Likewise.
5295         * diagnostic.h: Don't include options.h.
5296         (struct diagnostic_context): Add n_opts, opt_permissive,
5297         inhibit_warnings, warn_system_headers, option_enabled and
5298         option_name fields.  Change classify_diagnostic to a pointer.
5299         * opts-diagnostic.h: New file.
5300         * opts.c: Include opts-diagnostic.h.
5301         (common_handle_option): Set global_dc fields for -Wfatal-errors,
5302         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5303         (option_name): New function.
5304         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5305         (c_common_handle_option): Set global_dc->permissive for
5306         -fpermissive.
5307         * c-common.c (c_cpp_error): Save and restore
5308         global_dc->warn_system_headers, not variable warn_system_headers.
5309         * toplev.c: Include opts-diagnostic.h.
5310         (general_init): Update call to diagnostic_initialize.  Set
5311         global_dc->show_column, global_dc->option_enabled and
5312         global_dc->option_name.
5313         (process_options): Don't set global_dc fields here.
5314         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5315         (diagnostic.o, opts.o, toplev.o): Update dependencies.
5316
5317 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
5318
5319         * config/picochip/picochip.md (movsi): Split a movsi from a
5320         const after reload.
5321
5322 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5323
5324         * ggc-zone.c: Update copyright year.
5325         (poison_region): Mark memory for Valgrind as undefined before
5326         memset () call and inaccessible afterwards.
5327         (ggc_pch_total_size): Change type of i to int.
5328
5329 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5330
5331         * ggc-common.c (ggc_free_overhead): Allow empty slot.
5332
5333 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5334
5335         * ggc-common.c: Update copyright year.
5336         (ggc_rlimit_bound): Remove prototype.  Compile only if
5337         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5338         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5339         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
5340         (ggc_min_heapsize_heuristic): Likewise.
5341
5342 2010-05-26  Richard Guenther  <rguenther@suse.de>
5343
5344         PR rtl-optimization/44164
5345         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5346         no-common access-path disambiguation.
5347         (indirect_ref_may_alias_decl_p): Adjust.
5348         (indirect_refs_may_alias_p): Likewise.
5349         (refs_may_alias_p_1): Likewise.
5350
5351 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
5352
5353         * c-typeck.c: Do not include expr.h.
5354
5355 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
5356
5357         * rtl.h (decl_default_tls_model): Move prototype from here...
5358         * output.h: ...to here.
5359         * c-decl.c: Do not include rtl.h.
5360         * c-pragma.c: Likewise.
5361         * c-parser.c: Likewise.
5362         * c-gimplify.c: Likewise.  And also not hard-reg-set.
5363         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
5364         FIXME note for it.  Add a FIXME note for expr.h.
5365         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5366         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5367         defined.
5368
5369 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
5370
5371         PR target/44199
5372         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5373         or total_size is larger than red zone size for non-V4 ABI, emit a
5374         stack_tie resp. frame_tie insn before stack pointer restore.
5375         * config/rs6000/rs6000.md (frame_tie): New insn.
5376
5377 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5378
5379         * function.h (struct function): Add can_throw_non_call_exceptions bit.
5380         * lto-streamer-in.c (input_function): Stream it in.
5381         * lto-streamer-out.c (output_function): Stream it out.
5382         * function.c (allocate_struct_function): Set it.
5383         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5384         for flag_non_call_exceptions.
5385         * cfgbuild.c (control_flow_insn_p): Likewise.
5386         (make_edges): Likewise.
5387         * cfgexpand.c (expand_stack_alignment): Likewise.
5388         * combine.c (distribute_notes): Likewise.
5389         * cse.c (cse_extended_basic_block): Likewise.
5390         * except.c (insn_could_throw_p): Likewise.
5391         * gcse.c (simple_mem): Likewise.
5392         * ipa-pure-const.c (check_call): Likewise.
5393         (check_stmt ): Likewise.
5394         * lower-subreg.c (lower-subreg.c): Likewise.
5395         * optabs.c (emit_libcall_block): Likewise.
5396         (prepare_cmp_insn): Likewise.
5397         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5398         * postreload.c (rest_of_handle_postreload): Likewise.
5399         * reload1.c (reload_as_needed): Likewise.
5400         (emit_input_reload_insns): Likewise.
5401         (emit_output_reload_insns): Likewise.
5402         (fixup_abnormal_edges): Likewise.
5403         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5404         * store-motion.c (find_moveable_store): Likewise.
5405         * tree-eh.c (stmt_could_throw_p): Likewise.
5406         (tree_could_throw_p): Likewise.
5407         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5408         * config/arm/arm.c (arm_expand_prologue): Likewise.
5409         (thumb1_expand_prologue): Likewise.
5410         * config/rx/rx.md (cbranchsf4): Likewise.
5411         (cmpsf): Likewise.
5412         * config/s390/s390.c (s390_emit_prologue): Likewise.
5413         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5414         (inline_forbidden_into_p): New predicate.
5415         (expand_call_inline): Use it to forbid inlining.
5416         (tree_can_inline_p): Likewise.
5417
5418 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
5419
5420         * config/i386/i386-c.c: Do not include rtl.h.
5421         * config/i386/t-i386: Update dependencies.
5422
5423 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
5424
5425         * attribs.c: Do not include rtl.h.
5426         * Makefile.in: Update dependencies.
5427
5428 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
5429
5430         * double-int.h (double_int_and): New.
5431         * combine.c (try_combine): Clean up, use double_int_* and
5432         immed_double_int_const functions.
5433
5434 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5435
5436         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5437         stderr to /dev/null instead of grep -q.
5438         * configure: Regenerate.
5439
5440 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
5441
5442         * Makefile.in (EXCEPT_H): Fix typo.
5443
5444 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
5445
5446         * ira-build.c (update_conflict_hard_reg_costs): New.
5447         (ira_build): Call update_conflict_hard_reg_costs.
5448
5449 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
5450
5451         PR debug/41371
5452         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5453         ENABLE_CHECKING.
5454         (intersect_loc_chains): Walk the s2var's loc_chain together
5455         with s1node chain as long as the locations are equal, don't
5456         call find_loc_in_1pdv in that case.
5457
5458         PR debug/42801
5459         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5460         (copy_bind_expr): ... instead of here.
5461         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5462         if the block hasn't been remapped.
5463         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5464         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5465
5466 2010-05-25  Richard Guenther  <rguenther@suse.de>
5467
5468         PR middle-end/44069
5469         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5470         out-of-bounds array accesses.
5471
5472 2010-05-25  Richard Guenther  <rguenther@suse.de>
5473
5474         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5475         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5476         (run_gcc): Re-organize to make cleanup easier.
5477
5478 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5479
5480         * config/s390/s390.c (optimization_options): Fix and move the
5481         flag_prefetch_loop_arrays override ...
5482         (override_options): ... here.
5483
5484 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
5485
5486         * diagnostic.c: Don't include plugin.h.
5487         (diagnostic_report_diagnostic): Don't handle plugins specially
5488         here.  Pass context to internal_error callback.
5489         * diagnostic.h (struct diagnostic_context): Add context parameter
5490         to internal_error callback.
5491         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5492         * plugin.h (struct diagnostic_context): Declare.
5493         (warn_if_plugins, plugins_internal_error_function): Declare.
5494         * toplev.c (general_init): Set global_dc->internal_error.
5495         * Makefile.in (diagnostic.o): Update dependencies.
5496
5497 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
5498
5499         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5500         * config/rs6000/t-darwin64: New.
5501         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5502         build crt2.
5503
5504 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
5505
5506         PR 44203
5507         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5508         match the original (and intended) behaviour before r159557.  This
5509         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5510         in two ways.
5511
5512 2010-05-25  Richard Guenther  <rguenther@suse.de>
5513
5514         * doc/invoke.texi: Document -Ofast.
5515         * target.h (struct gcc_target): Add handle_ofast.
5516         * target-def.h (TARGET_HANDLE_OFAST): Add.
5517         (TARGET_INITIALIZER): Adjust.
5518         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
5519         * common.opt (Ofast): Add.
5520
5521 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
5522
5523         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5524         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5525
5526 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
5527
5528         PR target/43610
5529         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5530         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
5531         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
5532         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5533
5534 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
5535
5536         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5537         DW_OP_minus with negated offset instead of DW_OP_plus.
5538         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5539
5540 2010-05-25  Wei Guozhi  <carrot@google.com>
5541
5542         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5543         tst instruction and a new alternative.
5544         * config/arm/constraints.md (Pu): New constraint.
5545
5546 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
5547
5548         * function.c (assign_stack_local_1): Initialize variable
5549         to avoid warning when bootstrapping at -O3.
5550
5551 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
5552
5553         * configure.ac (all_lang_makefiles): Remove everything related to it.
5554         * configure: Regenerate.
5555         * Makefile.in: Fix reference to ada Make-lang.in.
5556         Remove support for LANG_MAKEFILES.
5557
5558 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
5559             Sandra Loosemore  <sandra@codesourcery.com>
5560
5561         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5562         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5563         description.  Add arm_neon_fp16_ok.
5564         (Add Options): Add arm_neon and arm_neon_fp16.
5565
5566 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
5567
5568         * diagnostic.c: Don't include flags.h.
5569         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5570         context parameters.  Check flags in the context passed as a parameter.
5571         (diagnostic_build_prefix): Add context parameter.  Check
5572         show_column flag in context.
5573         (diagnostic_action_after_output): Check fatal_errors flag in context.
5574         (diagnostic_report_current_module): Check show_column flag in context.
5575         (default_diagnostic_starter): Update call to
5576         diagnostic_build_prefix.
5577         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5578         (emit_diagnostic): Pass context to permissive_error_kind.
5579         (permerror): Pass context to permissive_error_kind.
5580         * diagnostic.h (struct diagnostic_context): Add show_column,
5581         pedantic_errors, permissive and fatal_errors fields.
5582         (diagnostic_build_prefix): Update prototype.
5583         * langhooks.c
5584         * toplev.c (process_options): Set flags in global_dc from
5585         flag_show_column, flag_pedantic_errors, flag_permissive,
5586         flag_fatal_errors.
5587         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5588         to diagnostic_build_prefix.
5589         * Makefile.in (diagnostic.o): Update dependencies.
5590
5591 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5592
5593         * config/i386/ia32intrin.h (__crc32q): Define only if
5594         __SSE4_2__ is defined.
5595
5596 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
5597
5598         PR target/44132
5599         PR middle-end/43602
5600         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5601         DECL_VISIBILITY_SPECIFIED.
5602         (emutls_decl): Set DECL_PRESERVE_P and copy
5603         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5604         (emutls_finalize_control_var): New callback.
5605         (emutls_finish): Finalize emutls control variables.
5606         * toplev.c (compile_file): Move the call to emutls_finish ()
5607         before varpool_assemble_pending_decls ().
5608
5609 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
5610
5611         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5612         added to the preprocessor condition.
5613
5614 2010-05-24  Paul Brook  <paul@codesourcery.com>
5615
5616         * gengtype-lex.l: Add HARD_REG_SET.
5617         * expr.c (expand_expr_real_1): Record writes to hard registers.
5618         * function.c (rtl_data): Add asm_clobbers.
5619         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5620         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5621         Use crtl->asm_clobbers.
5622
5623 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5624
5625         * doc/makefile.texi (Makefile): Mention stages 'profile'
5626         and 'feedback' for profiledbootstrap.
5627
5628 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5629
5630         PR target/44245
5631         * config/i386/i386.c (def_builtin): Properly check
5632         OPTION_MASK_ISA_64BIT.
5633
5634 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
5635
5636         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5637         typedefs with different but compatible types.  Allow duplicate
5638         typedefs with the same type except for pedantic non-C1X, but give
5639         warning for variably modified types.
5640         * c-typeck.c (tagged_types_tu_compatible_p,
5641         function_types_compatible_p, type_lists_compatible_p,
5642         comptypes_internal): Add parameter different_types_p; set
5643         *different_types_p for different but compatible types.  All
5644         callers changed.
5645         (comptypes_check_different_types): New.
5646         * c-tree.h (comptypes_check_different_types): Declare.
5647
5648 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
5649
5650         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
5651         * jump.c: Include basic-block.h.
5652         * profile.c: Likewise.
5653         * tree-profile.c: Likewise.
5654         * coverage.c: Likewise.
5655         * basic-block.h (optimize_function_for_size_p): Move to function.h.
5656         (optimize_function_for_speed_p): Likewise.
5657         * function.h (optimize_function_for_size_p,
5658         optimize_function_for_speed_p): Moved here from basic-block.h.
5659         * Makefile.in: Update dependencies.
5660
5661 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5662
5663         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5664         before calling make; allow override through $MAKE.
5665         * doc/invoke.texi (Optimize Options): Document override.
5666
5667 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
5668
5669         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5670         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5671         (rs6000_mode_dependent_address_ptr): Make static.
5672         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5673         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5674         Remove.
5675
5676 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
5677
5678         PR target/43869
5679         * config/i386/i386.c: Make sure that the correct regparm is passed.
5680
5681 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
5682
5683         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5684         * sbitmap.c: ...to here to internalize sbitmap element access.
5685         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5686         Explain why basic-block.h is included.
5687         * function.h: Include tm.h for CUMULATIVE_ARGS.
5688         * Makefile.in: Update dependencies.
5689
5690 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
5691
5692         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5693         New core types.
5694         * sbitmap.h (struct sbitmap_def): Do not typedef here.
5695         * sbitmap.c: Include sbitmap.h.
5696         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5697         hard-reg-set.h.  Split everything related to regsets out from here...
5698         * regset.h: ...to here.  New file.
5699         * df.h: Include regset.h and sbitmap.h.
5700         * tree-flow.h: Likewise.
5701         * cfgloop.h: Likewise.
5702         * except.h: Do not include sbitmap.h.  Include hashtab.h.
5703         * cgraph.h: Include vec.h and function.h.
5704         * reload.h (struct insn_chain): Change types of live_throughout
5705         and dead_or_set from regset_head to bitmap_head.
5706         (compute_use_by_pseudos): Be defined also if regset.h is not included.
5707         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5708         spilled_regs from regset_head to bitmap_head to avoid dependency
5709         in regset.h.
5710         * sel-sched-ir.h: Include regset.h.
5711         * reload.c: Include df.h before reload.h.
5712         * caller-save.c: Likewise.
5713         * reload1.c: Likewise.
5714         * ira.c: Likewise.
5715         (mark_elimination): Update type of r to bitmap, consistent with
5716         DF_LR_IN.
5717         * dominance.c: Include bitmap.h.
5718         * modulo-sched.c: Include df.h.
5719         * cfganal.c: Include bitmap.h and sbitmap.h.
5720         * cfgbuild.c: Include sbitmap.h.
5721         * lcm.c: Include sbitmap.h.
5722         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5723         * domwalk.c: Include sbitmap.h, exclude ggc.h.
5724         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5725         * cselib.c: Include bitmap.h.
5726         * tree-optimize.c: Include regset.h.
5727         * stmt.c: Include bitmap.h.
5728         * Makefile.in: Update dependencies.
5729
5730 2010-05-22  Jan Hubicka  <jh@suse.cz>
5731
5732         * cgraph.h (struct varpool_node): Add same_comdat_group.
5733         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5734         pointer.
5735         (output_varpool): Update call of lto_output_varpool_node.
5736         (input_varpool): Read same_comdat_group pointer.
5737         (input_varpool_1): Fixup same_comdat_group pointer.
5738         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5739         group is needed, all are.
5740         * varpool.c (varpool_remove_node): Remove node from same comdat group
5741         linklist too.
5742         (varpool_analyze_pending_decls): Walk same comdat groups.
5743
5744 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
5745
5746         * rtl.h (union rtunion_def): Remove rt_bit member.
5747         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5748         * print-rtl (print_rtx): Do not print the member.
5749         * gengtype.c (adjust_field_rtx_def): Do not handle it.
5750         * gengenrtl.c (type_from_format): Likewise.
5751         (accessor_from_format): Likewise.
5752
5753 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
5754
5755         * dbgcnt.c: Include toplev.h instead of errors.h.
5756         * ira-emit.c: Don't include errors.h.
5757         * ira.c: Include toplev.h instead of errors.h.
5758         * lto-compress.c: Include toplev.h instead of errors.h.
5759         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5760         ira.o, dbgcnt.o): Update dependencies.
5761
5762 2010-05-22  Richard Guenther  <rguenther@suse.de>
5763
5764         * gimple.c (gimple_types_compatible_p): Check type qualifications
5765         before merging pointer to complete and pointer to incomplete type.
5766         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5767         we use our own resolution algorithm.  The gold linker plugin
5768         doesn't do the job we want it to do here.
5769
5770 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
5771
5772         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5773         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5774         (sparc_mode_dependent_address_p): New function.
5775
5776 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
5777
5778         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5779
5780         * timevar.c: Do not include any core headers.
5781         (timevar_print): De-i18n-ize.
5782         (print_time): Likewise.
5783         * timevar.h (timevar_push, timevar_pop): Make inline functions.
5784
5785 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
5786
5787         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5788         langhooks-def.h.
5789         (diagnostic_initialize): Initialize x_data not last_function.
5790         (diagnostic_report_current_function): Move to tree-diagnostic.c.
5791         (default_diagnostic_starter): Call
5792         diagnostic_report_current_module not
5793         diagnostic_report_current_function.
5794         (diagnostic_report_diagnostic): Initialize x_data not
5795         abstract_origin.
5796         (verbatim): Likewise.
5797         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5798         x_data.
5799         (struct diagnostic_context): Change last_function to x_data.
5800         (diagnostic_auxiliary_data): Replace with
5801         diagnostic_context_auxiliary_data and
5802         diagnostic_info_auxiliary_data.
5803         (diagnostic_last_function_changed, diagnostic_set_last_function,
5804         diagnostic_report_current_function): Move to tree-diagnostic.h.
5805         (print_declaration, dump_generic_node, print_generic_stmt,
5806         print_generic_stmt_indented, print_generic_expr,
5807         print_generic_decl, debug_c_tree, dump_omp_clauses,
5808         print_call_name, debug_generic_expr, debug_generic_stmt,
5809         debug_tree_chain, default_tree_printer): Move to
5810         tree-pretty-print.h.
5811         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5812         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5813         gimple-pretty-print.h.
5814         * pretty-print.c: Don't include tree.h
5815         (pp_base_format): Don't handle %K here.
5816         (pp_base_tree_identifier): Move to tree-pretty-print.c.
5817         * pretty-print.h (text_info): Change abstract_origin to x_data.
5818         (pp_tree_identifier, pp_unsupported_tree,
5819         pp_base_tree_identifier): Move to tree-pretty-print.h.
5820         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5821         tree-pretty-print.h: New files.
5822         * tree-pretty-print.c: Include tree-pretty-print.h.
5823         (percent_K_format): New.  Moved from pretty-print.c.
5824         (pp_base_tree_identifier): Move from pretty-print.c.
5825         * c-objc-common.c: Include tree-pretty-print.h.
5826         (c_tree_printer): Handle %K here.
5827         * langhooks.c: Include tree-diagnostic.h.
5828         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5829         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5830         (default_tree_printer): Handle %K using percent_K_format.
5831         (general_init): Use default_tree_diagnostic_starter.
5832         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5833         (free_lang_data): Use default_tree_diagnostic_starter.
5834         * c-pretty-print.c: Include tree-pretty-print.h.
5835         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5836         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5837         * dwarf2out.c: Include tree-pretty-print.h.
5838         * except.c: Include tree-pretty-print.h.
5839         * gimple-pretty-print.c: Include tree-pretty-print.h and
5840         gimple-pretty-print.h.
5841         * gimplify.c: Include tree-pretty-print.h.
5842         * graphite-poly.c: Include tree-pretty-print.h and
5843         gimple-pretty-print.h.
5844         * ipa-cp.c: Include tree-pretty-print.h.
5845         * ipa-inline.c: Include gimple-pretty-print.h.
5846         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5847         * ipa-pure-const.c: Include gimple-pretty-print.h.
5848         * ipa-struct-reorg.c: Include tree-pretty-print.h and
5849         gimple-pretty-print.h.
5850         * ipa-type-escape.c: Include tree-pretty-print.h.
5851         * print-rtl.c: Include tree-pretty-print.h.
5852         * print-tree.c: Include gimple-pretty-print.h.
5853         * sese.c: Include tree-pretty-print.h.
5854         * tree-affine.c: Include tree-pretty-print.h.
5855         * tree-browser.c: Include tree-pretty-print.h.
5856         * tree-call-cdce.c: Include gimple-pretty-print.h.
5857         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5858         * tree-chrec.c: Include tree-pretty-print.h.
5859         * tree-data-ref.c: Include tree-pretty-print.h and
5860         gimple-pretty-print.h.
5861         * tree-dfa.c: Include tree-pretty-print.h.
5862         * tree-if-conv.c: Include tree-pretty-print.h and
5863         gimple-pretty-print.h.
5864         * tree-inline.c: Include tree-pretty-print.h.
5865         * tree-into-ssa.c: Include tree-pretty-print.h and
5866         gimple-pretty-print.h.
5867         * tree-nrv.c: Include tree-pretty-print.h.
5868         * tree-object-size.c: Include tree-pretty-print.h and
5869         gimple-pretty-print.h.
5870         * tree-outof-ssa.c: Include tree-pretty-print.h and
5871         gimple-pretty-print.h.
5872         * tree-parloops.c: Include tree-pretty-print.h and
5873         gimple-pretty-print.h.
5874         * tree-predcom.c: Include tree-pretty-print.h and
5875         gimple-pretty-print.h.
5876         * tree-scalar-evolution.c: Include tree-pretty-print.h and
5877         gimple-pretty-print.h.
5878         * tree-sra.c: Include tree-pretty-print.h.
5879         * tree-ssa-address.c: Include tree-pretty-print.h.
5880         * tree-ssa-alias.c: Include tree-pretty-print.h.
5881         * tree-ssa-ccp.c: Include tree-pretty-print.h and
5882         gimple-pretty-print.h.
5883         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5884         * tree-ssa-copy.c: Include tree-pretty-print.h and
5885         gimple-pretty-print.h.
5886         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5887         * tree-ssa-dce.c: Include tree-pretty-print.h and
5888         gimple-pretty-print.h.
5889         * tree-ssa-dom.c: Include tree-pretty-print.h and
5890         gimple-pretty-print.h.
5891         * tree-ssa-dse.c: Include gimple-pretty-print.h.
5892         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5893         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5894         * tree-ssa-live.c: Include tree-pretty-print.h and
5895         gimple-pretty-print.h.
5896         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5897         gimple-pretty-print.h.
5898         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5899         gimple-pretty-print.h.
5900         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5901         gimple-pretty-print.h.
5902         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5903         gimple-pretty-print.h.
5904         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5905         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5906         * tree-ssa-operands.c: Include tree-pretty-print.h and
5907         gimple-pretty-print.h.
5908         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5909         gimple-pretty-print.h.
5910         * tree-ssa-pre.c: Include tree-pretty-print.h and
5911         gimple-pretty-print.h.
5912         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5913         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5914         gimple-pretty-print.h.
5915         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5916         gimple-pretty-print.h.
5917         * tree-ssa-sink.c: Include gimple-pretty-print.h.
5918         * tree-ssa-ter.c: Include tree-pretty-print.h and
5919         gimple-pretty-print.h.
5920         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5921         * tree-ssa.c: Include tree-pretty-print.h and
5922         gimple-pretty-print.h.
5923         * tree-stdarg.c: Include gimple-pretty-print.h.
5924         * tree-switch-conversion.c: Include gimple-pretty-print.h.
5925         * tree-tailcall.c: Include tree-pretty-print.h and
5926         gimple-pretty-print.h.
5927         * tree-vect-data-refs.c: Include tree-pretty-print.h and
5928         gimple-pretty-print.h.
5929         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5930         gimple-pretty-print.h.
5931         * tree-vect-loop.c: Include tree-pretty-print.h and
5932         gimple-pretty-print.h.
5933         * tree-vect-patterns.c: Include gimple-pretty-print.h.
5934         * tree-vect-slp.c: Include tree-pretty-print.h and
5935         gimple-pretty-print.h.
5936         * tree-vect-stmts.c: Include tree-pretty-print.h and
5937         gimple-pretty-print.h.
5938         * tree-vectorizer.c: Include tree-pretty-print.h.
5939         * tree-vrp.c: Include tree-pretty-print.h and
5940         gimple-pretty-print.h.
5941         * value-prof.c: Include tree-pretty-print.h and
5942         gimple-pretty-print.h.
5943         * var-tracking.c: Include tree-pretty-print.h.
5944         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5945         (tree-diagnostic.o): New dependencies.
5946         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5947         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5948         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5949         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5950         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5951         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5952         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5953         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5954         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5955         tree-ssa-address.o, tree-ssa-loop-niter.o,
5956         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5957         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5958         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5959         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5960         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5961         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5962         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5963         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5964         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5965         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5966         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5967         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5968         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5969         tree-switch-conversion.o, var-tracking.o, value-prof.o,
5970         cfgexpand.o, pretty-print.o): Update dependencies.
5971
5972 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
5973
5974         * tree-ssa-structalias.c: Remove tm_p.h from include.
5975
5976 2010-05-21  Jeff Law  <law@redhat.com>
5977
5978         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5979
5980 2010-05-21  Jason Merrill  <jason@redhat.com>
5981
5982         * tree-eh.c (cleanup_is_dead_in): New.
5983         (lower_try_finally): Don't generate a dead cleanup region.
5984         (lower_cleanup): Likewise.
5985
5986 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
5987
5988         PR debug/44223
5989         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5990         unchain each use from the cyclic next_regno_use chain first.
5991
5992 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
5993
5994         * real: Do not include gmp.h, mpfr.h, and mpc.h.
5995         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5996         (real_value_negate, real_value_abs): New prototypes.
5997         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5998         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5999         new include file for interface between MPFR and REAL_VALUE_TYPE.
6000         * real.c: Include realmpfr.h.
6001         (real_arithmetic2): Remove legacy function.
6002         (real_value_negate): New.
6003         (real_value_abs): New.
6004         (mfpr_from_real, real_from_mpfr): Move from here...
6005         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
6006         * builtins.c: Include realmpfr.h.
6007         * fold-const.c: Include realmpfr.h.
6008         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
6009         (fold_negate_const): Likewise.
6010         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
6011         * toplev.c: Include realmpfr.h.
6012         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
6013         and real_value_negate.
6014         * fixed-value.c (check_real_for_fixed_mode): Likewise.
6015         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
6016         (vfp3_const_double_index): Likewise.
6017         (arm_print_operand): Likewise.
6018         * Makefile.in: Update dependencies.
6019
6020 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6021
6022         * config/s390/s390.c (override_options): Increase the default
6023         of max-completely-peel-times.
6024
6025 2010-05-21  Julian Brown  <julian@codesourcery.com>
6026             Mark Mitchell  <mark@codesourcery.com>
6027
6028         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
6029         sibling calls for Thumb-1.
6030         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
6031         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
6032         Thumb-2.
6033         (*call_insn, *call_value_insn): Don't use for Thumb-2.
6034         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
6035         for Thumb-2.
6036         (return): New expander.
6037         (*arm_return): New name for ARM return insn.
6038         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
6039
6040 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
6041
6042         * config.gcc (sparc64-*-rtems*): New target.
6043
6044 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
6045
6046         * tree.c (build_function_decl_skip_args): Fix grammar.
6047         (build_function_type_list_1): Fix typos, adjust formatting.
6048
6049 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
6050
6051         * tree.h: Include real.h and fixed-value.h as basic datatypes.
6052         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
6053         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
6054         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
6055         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
6056         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
6057         tree-pretty-print.c, tree-loop-distribution.c,
6058         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
6059         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
6060         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
6061         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
6062         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
6063         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
6064         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
6065         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
6066         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
6067         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
6068         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
6069         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
6070         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
6071         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
6072         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
6073         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
6074         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
6075         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
6076         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
6077         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
6078         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
6079         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
6080         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
6081         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
6082         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
6083         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
6084         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
6085         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
6086         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
6087         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
6088         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
6089         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
6090         config/score/score7.c, config/score/score.c, config/arm/arm.c,
6091         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
6092         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
6093         config/bfin/bfin.c: Clean up redundant includes.
6094         * Makefile.in: Update accordingly.
6095
6096 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
6097
6098         PR middle-end/44204
6099         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
6100         statement has no arguments.
6101
6102 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
6103
6104         PR/44139
6105         * varasm.c (emutls_decl): Merge attributes to new decl.
6106
6107 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6108
6109         PR middle-end/44101
6110         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
6111         around the uniquized constructor if its type requires a conversion.
6112
6113 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
6114
6115         PR debug/44205
6116         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
6117         at -O0 goto_locus of any of the incoming edges differs from
6118         goto_locus of outgoing edge, or gimple_location of any of the
6119         labels differs.
6120
6121 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
6122
6123         * ira.c (ira_non_ordered_class_hard_regs): Define.
6124         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
6125         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
6126         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
6127         cost of unaligned hard regs when allocating multi-reg pseudos.
6128
6129 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
6130
6131         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
6132         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
6133         for TARGET_NO_FLOAT.
6134         * config/mips/mips.c (mips_file_start): Expand conditional expression
6135         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
6136         (mips_override_options): Move -mno-float override -msoft-float and
6137         -mhard-float.
6138         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
6139         Condition(TARGET_SUPPORTS_NO_FLOAT).
6140         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
6141         __mips_no_float here.
6142         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
6143         (TARGET_SUPPORTS_NO_FLOAT): Define.
6144         * config/mips/sdemtk.opt: Delete.
6145
6146 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
6147
6148         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
6149
6150 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
6151
6152         PR target/43733
6153         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
6154         * configure: Regenerate.
6155         * config.in: Regenerate.
6156         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
6157         instead of sahf only for 64bit targets.
6158
6159 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
6160
6161         PR debug/44178
6162         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
6163         setup_ref_regs for DEBUG_INSNs.
6164
6165 2010-05-20  Jan Hubicka  <jh@suse.cz>
6166
6167         PR middle-end/44197
6168         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
6169
6170 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
6171
6172         PR bootstrap/43870
6173         * df-scan.c (df_ref_compare): Stabilize sort.
6174
6175 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
6176
6177         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6178         argument.  Don't use DW_OP_piece if offset is non-zero,
6179         put offset into second DW_OP_bit_piece argument.
6180         (dw_sra_loc_expr): Adjust callers.  For memory expressions
6181         compute offset.
6182
6183 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
6184
6185         PR target/44202
6186         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6187         settings for 16-bit-constant "addo" alternative.
6188
6189 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
6190
6191         * config/mips/mips-dsp.md (add<DSPV:mode>3,
6192         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6193
6194         PR target/43764
6195         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
6196         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6197         Use it.
6198
6199 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
6200
6201         * diagnostic.c (FLOAT, FFS): Don't undefine.
6202         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6203         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6204         include ordering.
6205
6206 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
6207
6208         * combine.c (propagate_for_debug): Call make_compound_operation
6209         on the source value.
6210         (try_combine): When implementing a split chosen by find_split_point,
6211         either copy i2src or set it to null.  Assert that i2src is not null
6212         before substituting into CALL_INSN_FUNCTION_USAGE.
6213
6214 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
6215
6216         * double-int.h (double_int_ior): New function.
6217         * tree.h (build_int_cst_wide_type): Remove.
6218         * tree.c (build_int_cst_wide_type): Remove.
6219         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6220         of build_int_cst_wide_type.
6221         * stor-layout.c (set_sizetype): (Ditto.).
6222         * dojump.c (do_jump): Use build_int_cstu instead of
6223         build_int_cst_wide_type.
6224
6225 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6226
6227         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6228         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6229         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6230         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6231         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
6232         propagate the 'data' argument to copy_tree_r.
6233         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6234         Propagate 'data' argument to walk_tree.
6235         (copy_if_shared): New function.
6236         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6237         (unmark_visited): New function.
6238         (unshare_body): Call copy_if_shared instead of doing it manually.
6239         (unvisit_body): Call unmark_visited instead of doing it manually.
6240
6241 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
6242
6243         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6244         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
6245         * hooks.c: Likewise.
6246         * target-def.h (TARGET_FOLD_BUILTIN): Define to
6247         hook_tree_tree_int_treep_bool_null.
6248         * target.h (struct gcc_target): Update signature of fold_builtin
6249         field.
6250         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6251         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6252         instead of the call expression.
6253         (fold_builtin_call_array): Pass n and argarray directly.
6254         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6255         consing a list.
6256         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
6257         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
6258         `i' and use it in place of `arity'.
6259         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6260         Dereference `args' directly.
6261         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6262
6263 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6264
6265         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6266         3dnow, sse3, sse2.
6267         (Directives): Document optional dg-require-effective-target
6268         selector.
6269
6270 2010-05-19  Richard Guenther  <rguenther@suse.de>
6271
6272         PR lto/44196
6273         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6274
6275 2010-05-19  Richard Guenther  <rguenther@suse.de>
6276
6277         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6278         * common.opt (fwhopr=): New.
6279         * opts.c (common_handle_option): Handle OPT_fwhopr.
6280         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6281         * collect2.c (main): Match -fwhopr*.
6282         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6283         Execute ltrans stage in parallel when jobs is bigger than 1.
6284
6285 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6286
6287         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6288         pentiumpro on Solaris 8/x86 with Sun as.
6289         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6290         hidden alias bug.
6291         (gcc_cv_as_ix86_quad): Check for .quad directive.
6292         * configure: Regenerate.
6293         * config.in: Regenerate.
6294         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6295
6296 2010-05-19  Martin Jambor  <mjambor@suse.cz>
6297
6298         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6299         also for indirect edges.  Actual printing moved...
6300         (ipa_print_node_jump_functions_for_edge): ...here.
6301         (ipa_compute_jump_functions): Renamed to
6302         ipa_compute_jump_functions_for_edge and made static.
6303         (ipa_compute_jump_functions): New function.
6304         (make_edge_direct_to_target): Check if the number of arguments on
6305         the newly direct edge is the same as the number of parametrs of
6306         the callee.
6307         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6308         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
6309         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6310         analysis functions unconditionally, call the new
6311         ipa_analyze_params_uses on the node instead of every edge.
6312
6313 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
6314
6315         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6316         to tree.
6317         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
6318         also checks for a constant int vs.  non-constant but
6319         loop-invariant steps.
6320         (find_or_create_group): Change the sort algorithm to only consider
6321         steps that are constant ints.
6322         (idx_analyze_ref): Adopt code to handle a tree instead of a
6323         HOST_WIDE_INT for step.
6324         (gather_memory_references_ref): Handle tree instead of int and be
6325         prepared to see a NULL_TREE.
6326         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6327         prefetches if the step cannot be calculated at compile time.
6328         (issue_prefetch_ref): Issue prefetches for non-constant but
6329         loop-invariant steps.
6330
6331 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
6332
6333         Revert:
6334         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
6335
6336         * tree.h (build_call_list): Remove.
6337         * tree.c (build_call_list): Remove.
6338
6339 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
6340
6341         * tree.h (build_call_list): Remove.
6342         * tree.c (build_call_list): Remove.
6343
6344 2010-05-18  Jan Hubicka  <jh@suse.cz>
6345
6346         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6347
6348 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
6349
6350         PR rtl-optimization/43332
6351         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6352
6353 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
6354
6355         * tree.h (build_int_cstu): Implement as static inline.
6356         * tree.c (build_int_cstu): Remove function.
6357         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6358         sign extended.
6359
6360 2010-05-18  Richard Guenther  <rguenther@suse.de>
6361
6362         PR lto/44143
6363         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
6364         (debug): Initialize from -save-temps.
6365         (collect_execute): Print command-line when verbose.
6366         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
6367         for ltrans invocation.  Produce -dumpbase flag again.
6368         (process_args): Remove.
6369         (main): Simplify.
6370         * collect2.c (maybe_run_lto_and_relink): Only pass object
6371         files to lto-wrapper.
6372         * gcc.c (LINK_COMMAND_SPEC): Likewise.
6373
6374 2010-05-18  Jan Hubicka  <jh@suse.cz>
6375
6376         * opts.c (decode_options): Do not disable whopr at ipa_cp.
6377         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6378
6379 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
6380
6381         PR lto/44184
6382         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6383         in a GIMPLE_ASM.
6384         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6385         in a GIMPLE_ASM.
6386
6387 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
6388
6389         PR debug/41371
6390         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6391         rtx_equal_p inline.
6392
6393 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
6394
6395         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6396         lto-macho as lto_binary_reader.
6397
6398         * darwin.c (darwin_asm_named_section): Do not add assembler comment
6399         after .section directive; just print it before the directive instead.
6400
6401 2010-05-17  Jan Hubicka  <jh@suse.cz>
6402
6403         * cgraph.c (cgraph_create_virtual_clone): Only check
6404         versionable_function_p when not in wpa and checking is enabled.
6405         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6406         there are no more functions to materialize.
6407
6408 2010-05-17  Jan Hubicka  <jh@suse.cz>
6409
6410         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6411         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6412         New functions.
6413         (output_cgraph): Call output_cgraph_opt_summary.
6414         (input_cgrpah): Call input_cgraph_opt_summary.
6415         (output_cgraph_opt_summary_p, output_node_opt_summary,
6416         input_node_opt_summary, input_cgraph_opt_section): New functions.
6417         * lto-section-in.c (lto_section_name): Add cgraphopt.
6418         * tree-inline.c (tree_function_versioning): Handle parm_num.
6419         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6420         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6421
6422 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
6423
6424         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6425         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6426         the insn to prefetch ratio heuristic to loops with known trip count.
6427
6428 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
6429
6430         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6431         (schedule_prefetches): Do not generate a prefetch if the unroll factor
6432         is far from what is required by the prefetch.
6433
6434 2010-05-17  Jan Hubicka  <jh@suse.cz>
6435
6436         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6437         (ipcp_estimate_growth): Likewise.
6438         (ipcp_const_param_count): Likewise.
6439         (ipcp_insert_stage): Likewise.
6440         * ipa-prop.c (visit_load_for_mod_analysis): New function.
6441         (visit_store_addr_for_mod_analysis): Set used flag.
6442         (ipa_detect_param_modifications): Set used flag for SSE params;
6443         update use of walk_stmt_load_store_addr_ops.
6444         (ipa_print_node_params): Print used flag.
6445         (ipa_write_node_info): Stream used flag.
6446         (ipa_read_node_info): Likewise.
6447         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6448         (ipa_is_param_used): New function.
6449         (lto_ipa_fixup_call_notes): Remove unused declaration.
6450
6451 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6452
6453         PR target/44074
6454         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6455         * configure: Regenerate.
6456         * config.in: Regenerate.
6457         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6458         !HAVE_AS_IX86_REP_LOCK_PREFIX.
6459         Don't emit whitespace.
6460         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6461         (*rep_movsi): Likewise.
6462         (*rep_movsi_rex64): Likewise.
6463         (*rep_movqi): Likewise.
6464         (*rep_movqi_rex64): Likewise.
6465         (*rep_stosdi_rex64): Likewise.
6466         (*rep_stossi): Likewise.
6467         (*rep_stossi_rex64): Likewise.
6468         (*rep_stosqi): Likewise.
6469         (*rep_stosqi_rex64): Likewise.
6470         (*cmpstrnqi_nz_1): Use {%;} after repz.
6471         (*cmpstrnqi_nz_rex_1): Likewise.
6472         (*cmpstrnqi_1): Likewise.
6473         (*cmpstrnqi_rex_1): Likewise.
6474         (*strlenqi_1): Use {%;} after repnz.
6475         (*strlenqi_rex_1): Likewise.
6476         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6477         (*sync_compare_and_swap<mode>): Likewise.
6478         (sync_double_compare_and_swap<mode>): Likewise.
6479         (*sync_double_compare_and_swapdi_pic): Likewise.
6480         (sync_old_add<mode>): Likewise.
6481         (sync_add<mode>): Likewise.
6482         (sync_sub<mode>): Likewise.
6483         (sync_<code><mode>): Likewise.
6484
6485 2010-05-17  Martin Jambor  <mjambor@suse.cz>
6486
6487         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6488         otr_token and polymorphic.
6489         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6490         (cgraph_clone_edge): Copy the above fields.
6491         * tree.c (get_binfo_at_offset): New function.
6492         * tree.h (get_binfo_at_offset): Declare.
6493         * ipa-prop.h (enum jump_func_type): Added known_type jump function
6494         type, reordered items, updated comments.
6495         (union jump_func_value): Added base_type field, reordered fields.
6496         (enum ipa_lattice_type): Moved down in the file.
6497         (struct ipa_param_descriptor): New field polymorphic.
6498         (ipa_is_param_polymorphic): New function.
6499         * ipa-prop.c: Include gimple.h and gimple-fold.h.
6500         (ipa_print_node_jump_functions): Print known type jump functions.
6501         (compute_complex_pass_through): Renamed to...
6502         (compute_complex_assign_jump_func): this.
6503         (compute_complex_ancestor_jump_func): New function.
6504         (compute_known_type_jump_func): Likewise.
6505         (compute_scalar_jump_functions): Create known type and complex ancestor
6506         jump functions.
6507         (ipa_note_param_call): New parameter polymorphic, set the corresponding
6508         flag in the call note accordingly.
6509         (ipa_analyze_call_uses): Renamed to...
6510         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
6511         variable var only in the block where it is used.
6512         (ipa_analyze_virtual_call_uses): New function.
6513         (ipa_analyze_call_uses): Likewise.
6514         (combine_known_type_and_ancestor_jfs): Likewise.
6515         (update_jump_functions_after_inlining): Implemented handling of a
6516         number of new jump function types combination.
6517         (print_edge_addition_message): Removed.
6518         (make_edge_direct_to_target): New function.
6519         (try_make_edge_direct_simple_call): Likewise.
6520         (try_make_edge_direct_virtual_call): Likewise.
6521         (update_call_notes_after_inlining): Renamed to...
6522         (update_indirect_edges_after_inlining): this.  Moved edge creation for
6523         indirect calls to try_make_edge_direct_simple_call, also calls
6524         try_make_edge_direct_virtual_call for virtual calls.
6525         (ipa_print_node_params): Changed the header message.
6526         (ipa_write_jump_function): Stream also known type jump functions.
6527         (ipa_read_jump_function): Likewise.
6528         (ipa_write_indirect_edge_info): Stream new fields in
6529         cgraph_indirect_call_info.
6530         (ipa_read_indirect_edge_info): Likewise.
6531         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6532         GIMPLE_FOLD_H.
6533
6534 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6535
6536         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6537
6538 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
6539
6540         * tree.h (CALL_EXPR_ARGS): Delete.
6541         (call_expr_arglist): Delete.
6542         * tree.c (call_expr_arglist): Delete.
6543         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6544         targetm.fold_builtin.
6545         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6546         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6547         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6548         arglist parameter.  Use CALL_EXPR_ARG.
6549         (picochip_expand_builtin_3op): Likewise.
6550         (picochip_expand_builtin_2opvoid): Likewise.
6551         (picochip_expand_array_get): Likewise.
6552         (picochip_expand_array_put): Likewise.
6553         (picochip_expand_array_testport): Likewise.
6554         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
6555         rather than arglist.
6556         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6557         CALL_EXPR_ARGS.
6558         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6559         than TREE_VALUE and TREE_CHAIN.
6560         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6561         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6562         the arglist.
6563
6564 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
6565
6566         PR bootstrap/42347
6567         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6568         to have no fallthru edge.
6569
6570         PR middle-end/44102
6571         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6572         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6573         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6574         add BARRIER after previous bb if needed.
6575
6576 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
6577
6578         * tree.c (build_function_type_list_1): Remove bogus assert condition.
6579
6580 2010-05-17  Alan Modra  <amodra@gmail.com>
6581
6582         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6583         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
6584         with copy_reg rtx param.
6585         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6586         Correct cases where code for ABI_V4 did not initialise the reg
6587         used to access frame.  Also leave frame_reg_rtx as sp for large
6588         frames that save no regs.
6589
6590 2010-05-17  Martin Jambor  <mjambor@suse.cz>
6591
6592         PR middle-end/44133
6593         * tree-sra.c (create_access_replacement): New parameter rename, mark
6594         the replaement for renaming only when it is true.
6595         (get_access_replacement): Pass true in the rename parameter of
6596         create_access_replacement.
6597         (get_unrenamed_access_replacement): New function.
6598         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6599         replacement declaration from it.
6600
6601 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
6602
6603         * function.c (try_fit_stack_local, add_frame_space): New static
6604         functions.
6605         (assign_stack_local_1): Use them.  Look for opportunities to use
6606         space previously wasted on alignment.
6607         * function.h (struct frame_space): New.
6608         (struct rtl_data): Add FRAME_SPACE_LIST member.
6609         * reload1.c (something_was_spilled): New static variable.
6610         (alter_reg): Set it.
6611         (reload): Test it in addition to testing if the frame size changed.
6612
6613 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
6614
6615         * config/s390/s390.c: Define sane prefetch settings and activate
6616         flag_prefetch_loop_arrays on -O3.
6617         * config/s390/s390.h: Declare that read can use write prefetch.
6618
6619 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
6620
6621         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6622         build.
6623
6624 2010-05-16  Jan Hubicka  <jh@suse.cz>
6625
6626         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6627         function body; do not check stdarg field of struct function.
6628
6629 2010-05-16  Jan Hubicka  <jh@suse.cz>
6630
6631         * cgraph.c (dump_cgraph_node): Dump versionable flag.
6632         * cgraph.h (cgraph_local_info): Add versionable flag.
6633         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6634         (ipcp_versionable_function_p): Use it.
6635         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6636         versionable flag.
6637
6638 2010-05-16  Jan Hubicka  <jh@suse.cz>
6639
6640         * cgraph.c (cgraph_clone_node): Take decl argument and insert
6641         clone into hash when it is different from orig.
6642         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6643         * cgraph.h (cgraph_clone_node): Update prototype.
6644         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6645         (lto_cgraph_encoder_delete): Delete body map.
6646         (lto_cgraph_encoder_size): Move to header.
6647         (lto_cgraph_encoder_encode_body_p,
6648         lto_set_cgraph_encoder_encode_body): New.
6649         (lto_output_node): Do not take written_decls argument; output clone_of
6650         pointer.
6651         (add_node_to): Add include_body_argument; call
6652         lto_set_cgraph_encoder_encode_body on master of the clone.
6653         (add_references): Update use of add_node_to.
6654         (compute_ltrans_boundary): Likewise.
6655         (output_cgraph): Do not create written_decls bitmap.
6656         (input_node): Take nodes argument; stream in clone_of correctly.
6657         (input_cgraph_1): Update use of input_node.
6658         * lto-streamer-out.c (lto_output): Use encoder info to decide
6659         what bodies to output.
6660         * ipa-inline.c (cgraph_clone_inlined_nodes,
6661         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6662         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6663         (lto_cgraph_encoder_size): Define here.
6664         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6665         Declare.
6666
6667 2010-05-16  Richard Guenther  <rguenther@suse.de>
6668
6669         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6670         -fipa-type-escape.
6671         * ipa-type-escape.c (gate_type_escape_vars): Run when
6672         -fipa-struct-reorg runs.
6673         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6674         * common.opt (fipa-type-escape): Remove.
6675
6676 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6677
6678         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6679         (decode_options): Likewise.
6680         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6681
6682 2010-05-16  Jan Hubicka  <jh@suse.cz>
6683
6684         * ipa.c (function_and_variable_visibility): Also bring local all
6685         aliases.
6686
6687 2010-05-16  Richard Guenther  <rguenther@suse.de>
6688
6689         * alias.c (nonoverlapping_memrefs_p): Remove use of
6690         IPA type-escape information.
6691
6692 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
6693
6694         * c-common.c (c_common_reswords): Add _Static_assert for C.
6695         * c-parser.c (c_token_starts_declaration,
6696         c_parser_next_token_starts_declaration,
6697         c_parser_static_assert_declaration_no_semi,
6698         c_parser_static_assert_declaration): New.
6699         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6700         Handle static assertions if static_assert_ok.
6701         (c_parser_external_declaration, c_parser_declaration_or_fndef,
6702         c_parser_compound_statement_nostart, c_parser_label,
6703         c_parser_for_statement, c_parser_objc_methodprotolist,
6704         c_parser_omp_for_loop): All callers of
6705         c_parser_declaration_or_fndef changed.
6706         (c_parser_struct_declaration): Handle static assertions.
6707         (c_parser_compound_statement_nostart): Use
6708         c_parser_next_token_starts_declaration and
6709         c_token_starts_declaration to detect start of declarations.
6710         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6711         Likewise.
6712
6713 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
6714
6715         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6716         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6717         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6718         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6719         (mmix_function_outgoing_value): Rename to...
6720         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6721         (mmix_function_value_regno_p): Make static.
6722         (mmix_libcall_value): New function.
6723         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6724         mmix_function_value_regno_p): Remove declaration.
6725
6726 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6727
6728         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6729         BUILT_IN_ALLOCA if stack checking is enabled.
6730
6731 2010-05-16  Richard Guenther  <rguenther@suse.de>
6732
6733         * var-tracking.c (vars_copy_1): Inline ...
6734         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
6735         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
6736         (variable_merge_over_cur): Adjust.  Merge asserts.
6737         (variable_merge_over_src): Likewise.
6738         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6739         (variable_post_merge_new_vals): Merge asserts.
6740         (variable_post_merge_perm_vals): Likewise.
6741         (find_mem_expr_in_1pdv): Likewise.
6742         (dataflow_set_different_value): Remove.
6743         (onepart_variable_different_p): Merge asserts.
6744         (variable_different_p): Likewise.
6745         (dataflow_set_different_1): Inline ...
6746         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
6747         (emit_notes_for_differences_1): Merge asserts.
6748
6749 2010-05-16  Richard Guenther  <rguenther@suse.de>
6750
6751         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6752         * optabs.c (libfunc_decl_hash): Likewise.
6753         * varasm.c (emutls_decl): Likewise.
6754
6755 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
6756
6757         * c-decl.c: Don't include gimple.h.
6758         (merge_decls): Do not copy gimple_body.
6759
6760 2010-05-15  Jason Merrill  <jason@redhat.com>
6761
6762         * c.opt: Add -fnothrow-opt.
6763
6764 2010-05-15  Jan Hubicka  <jh@suse.cz>
6765
6766         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6767         analyzed.
6768         * passes.c (ipa_write_summaries): Write all analyzed nodes.
6769
6770 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
6771
6772         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6773         * Makefile.in: Add it.
6774         Fix all other Makefile dependencies for changes below.
6775         * tree.h: Include it instead of defining VEC primitives here.
6776         * gimple.h: Likewise.
6777         * rtl.h: Likewise.
6778         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6779         * except.h: Include vecir.h, break dependence on tree.h.
6780
6781         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6782         Move from here...
6783         * tree-iterator.c: ...to here.
6784         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
6785
6786         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
6787         tm_p.h.
6788         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6789         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6790         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6791         tree-mudflap.h, and target.h.
6792         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6793         predict.h, tree-inline.h, gimple.h, and langhooks.h.
6794         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6795         Add FIXME for why gimple.h is still included (should be unnecessary
6796         since GCC 4.5 gimplification unit-at-a-time).
6797         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6798         * c-pragma.c: Add FIXME for why function.h needs to be included just
6799         for cfun, at front-end level.
6800         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6801         Do not include ggc.h, but include vecprim.h for VEC(char).
6802         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6803         Explain why target.h is included.
6804         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6805         Explain why gimple.h is included.
6806         * c-ppoutput.c: Do not include tm.h.
6807         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
6808         * c-parses.c: Explain why rtl.h is included, and that this (and only
6809         this) is also why tm.h must be included.
6810         Do not include except.h.
6811         * c-lang.c: Do not include ggc.h.
6812
6813 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
6814
6815         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6816
6817 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
6818
6819         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6820         unions by default if those structs and unions have no tags.  Do
6821         not condition anonymous struct and unions handling on flag_iso.
6822         Allow anonymous structs and unions for C1X.
6823         (finish_struct): Do not diagnose lack of named fields when
6824         anonymous structs and unions present for C1X.  Accept flexible
6825         array members in structure with anonymous structs or unions but no
6826         directly named fields.
6827         * doc/extend.texi (Unnamed Fields): Update.
6828
6829 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
6830
6831         * gimple.h (compare_field_offset): Rename into...
6832         (gimple_compare_field_offset): ...this.
6833         * gimple.c (compare_field_offset): Rename into...
6834         (gimple_compare_field_offset): ...this.  Compare the full access if
6835         the offset is self-referential.
6836         (gimple_types_compatible_p): Adjust for above renaming.
6837         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
6838         DECL_NONADDRESSABLE_P flag of fields before merging them.
6839
6840 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
6841
6842         * tree.h (ctor_to_list): Delete.
6843         * tree.c (ctor_to_list): Delete.
6844
6845 2010-05-15  Jan Hubicka  <jh@suse.cz>
6846
6847         * ipa-reference.c: Include toplev.h
6848         (is_proper_for_analysis): Only add to all_module_statics
6849         if it is allocated.
6850         (write_node_summary_p, stream_out_bitmap,
6851         ipa_reference_write_optimization_summary,
6852         ipa_reference_read_optimization_summary): New.
6853         (struct ipa_opt_pass_d pass_ipa_reference): Add
6854         optimization summary streaming.
6855         * lto-cgraph.c (referenced_from_this_partition_p,
6856         reachable_from_this_partition_p): New functions.
6857         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6858         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6859         * opts.c (decode_options): Enable ipa_reference.
6860         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6861         * lto-streamer.h (referenced_from_this_partition_p,
6862         reachable_from_this_partition_p): Declare.
6863
6864 2010-05-15  Richard Guenther  <rguenther@suse.de>
6865
6866         PR tree-optimization/44038
6867         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6868         taking the address of a V_C_E of a constant.
6869
6870 2010-05-14  Jan Hubicka  <jh@suse.cz>
6871
6872         * tree.h (memory_identifier_string): Remove.
6873         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6874         (ipa_reference_global_vars_info_d): Remove statics_not_read and
6875         statics_not_written.
6876         (ipa_reference_optimization_summary_d): New structure.
6877         (ipa_reference_optimization_summary_t): New type and vector.
6878         (ipa_reference_vars_info_d): Embedd structures instead of using
6879         pointers.
6880         (reference_vars_to_consider): Remove out of GGC space.
6881         (module_statics_escape): Remove.
6882         (global_info_obstack): Rename to ...
6883         (optimization_summary_obstack): ... this one.
6884         (initialization_status_t): Remove.
6885         (memory_identifier_string): Remove.
6886         (get_reference_vars_info): Fix indenting.
6887         (set_reference_vars_info): Likewise.
6888         (get_reference_optimization_summary): New.
6889         (set_reference_optimization_summary): New.
6890         (get_global_reference_vars_info): Remove.
6891         (ipa_reference_get_read_global): Remove.
6892         (ipa_reference_get_written_global): Remove.
6893         (ipa_reference_get_not_read_global): Update.
6894         (ipa_reference_get_not_written_global): Update.
6895         (is_proper_for_analysis): Outlaw addressable.
6896         (propagate_bits): Update for new datastructures.
6897         (analyze_variable): Remove.
6898         (init_function_info): Update for new datastructures.
6899         (clean_function_local_data): Remove.
6900         (clean_function): Remove.
6901         (copy_global_bitmap): Use optimizations_summary_obstack.
6902         (duplicate_node_data): Duplicate optimization summary only.
6903         (remove_node_data): Remove optimization summary only.
6904         (generate_summary): Do not analyze variables; do not compute
6905         module_statics_escape; do not prune solutions by it.
6906         (read_write_all_from_decl): Fix typos in comments.
6907         (propagate): Doscover readonly and nonaddressable first;
6908         update for new datastructures; share global bitmaps.
6909         * ipa-reference.h (ipa_reference_get_read_global,
6910         ipa_reference_get_written_global): Remove.
6911         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6912         * Makefile.in: Remove ipa-refereference from GT files.
6913
6914 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
6915
6916         PR debug/44112
6917         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6918         for all SYMBOL_REF_DECLs.
6919
6920 2010-05-14  Jan Hubicka  <jh@suse.cz>
6921
6922         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6923         (varpool_all_refs_explicit_p): New inline function.
6924         * ipa-reference.c: Update comment.
6925         (module_statics_written): Remove.
6926         (get_static_decl): Remove.
6927         (ipa_init): Do not initialize module_statics_written.
6928         (analyze_function): Likewise.
6929         (generate_summary): Likewise; do not compute module_statics_readonly
6930         and do not update variable flags.
6931         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6932         * ipa.c: Inlucde flags.h
6933         (cgraph_local_node_p): New.
6934         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6935         promote functions to local.
6936         (ipa_discover_readonly_nonaddressable_vars): New function.
6937         (function_and_variable_visibility): Use cgraph_local_node_p.
6938         * varpool.c (varpool_finalize_decl): Set force_output for
6939         DECL_PRESERVE_P vars.
6940
6941 2010-05-14  Jan Hubicka  <jh@suse.cz>
6942
6943         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6944
6945 2010-05-14  Richard Guenther  <rguenther@suse.de>
6946
6947         PR tree-optimization/44119
6948         * tree-ssa-pre.c (eliminate): Properly mark replacement of
6949         a PHI node necessary.
6950
6951 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
6952
6953         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6954
6955 2010-05-14  Jason Merrill  <jason@redhat.com>
6956
6957         PR c++/44127
6958         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6959         (gimple_call_set_nothrow): New.
6960         * gimple.c (gimple_build_call_from_tree): Call it.
6961         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6962
6963         PR c++/44127
6964         * gimplify.c (gimplify_seq_add_stmt): No longer static.
6965         * gimple.h: Declare it.
6966         * gimple.c (gimple_build_eh_filter): No ops.
6967
6968 2010-05-14  Jan Hubicka  <jh@suse.cz>
6969
6970         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6971         nodes already in queue.
6972         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6973         re-enqueueing node.
6974
6975 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
6976
6977         PR debug/44136
6978         * cfgexpand.c (expand_debug_expr): If non-memory op0
6979         has BLKmode, return NULL.
6980
6981 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
6982
6983         * config.gcc: Add support for --with-cpu option for bdver1.
6984         * config/i386/i386.h (TARGET_BDVER1): New macro.
6985         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6986         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6987         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6988         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6989         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6990         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6991         (processor_type): Add PROCESSOR_BDVER1.
6992         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6993         processor_type in config/i386/i386.h.
6994         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6995         movaps <reg, reg> instead of movapd <reg, reg> when replacing
6996         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6997         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6998         to emit packed xor instead of packed double/packed integer
6999         xor for SSE and AVX when moving a zero value.
7000         * config/i386/sse.md: Add check for
7001         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
7002         movapd/movdqa for SSE and AVX.
7003         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
7004         single logical operations i.e and, or and xor instead of packed double
7005         logical operations for SSE and AVX.
7006         * config/i386/i386-c.c (ix86_target_macros_internal):
7007         Add PROCESSOR_BDVER1.
7008         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
7009         (has_fma4, has_xop): New.
7010         * config/i386/i386.c (bdver1_cost): New variable.
7011         (m_BDVER1): New macro.
7012         (m_AMD_MULTIPLE): Add m_BDVER1.
7013         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
7014         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
7015         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
7016         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
7017         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
7018         x86_tune_sse_partial_reg_dependency,
7019         x86_tune_sse_unaligned_load_optimal,
7020         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
7021         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
7022         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
7023         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
7024         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
7025         Enable/disable for bdver1.
7026         (processor_target_table): Add bdver1_cost.
7027         (cpu_names): Add bdver1.
7028         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
7029          processor_alias_table.
7030         (ix86_expand_vector_move_misalign): Change.
7031         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
7032         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
7033         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
7034         of movupd/movdqu for SSE and AVX.
7035         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
7036         (ix86_tune_adjust_cost): Add code for bdver1.
7037         (standard_sse_constant_opcode): Add check for
7038         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
7039         of packed double xor for SSE and AVX.
7040
7041 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
7042
7043         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
7044         result to unsigned.
7045
7046 2010-05-14  Tristan Gingold  <gingold@adacore.com>
7047
7048         * toplev.c (default_debug_hooks): Remove this variable.
7049         (process_options): Remove assignments to default_debug_hooks.
7050
7051 2010-05-14  Martin Jambor  <mjambor@suse.cz>
7052
7053         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
7054         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
7055         * langhooks.h (struct lang_hooks_for_decls): Removed field
7056         fold_obj_type_ref.
7057         * tree.c (free_lang_data): Remove assignment to
7058         lang_hooks.fold_obj_type_ref.
7059         * tree.def (OBJ_TYPE_REF): Update comment.
7060
7061 2010-05-14  Richard Guenther  <rguenther@suse.de>
7062
7063         PR tree-optimization/44124
7064         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
7065
7066 2010-05-14  Alan Modra  <amodra@gmail.com>
7067
7068         PR target/44075
7069         * config/rs6000/rs6000.c (struct machine_function): Reorder
7070         fields for better packing.  Add lr_save_state.
7071         (rs6000_ra_ever_killed): Return lr_save_state if set.
7072         (rs6000_emit_eh_reg_restore): Set lr_save_state.
7073
7074 2010-05-13  Jan Hubicka  <jh@suse.cz>
7075
7076         * varpool.c (decide_is_variable_needed): Drop code checking
7077         TREE_SYMBOL_REFERENCED.
7078
7079 2010-05-13  Jan Hubicka  <jh@suse.cz>
7080
7081         * final.c (output_addr_const): Do not call mark_decl_referenced.
7082         * cgraphunit.c (process_function_and_variable_attributes): Use
7083         mark_needed_node dirrectly.
7084         (assemble_thunk): Do not call mark_decl_referenced.
7085
7086 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
7087
7088         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
7089
7090 2010-05-13  Jeff Law  <law@redhat.com>
7091
7092         * ira-conflicts.c (print_allocno_conflicts): New function broken out
7093         from...
7094         (print_conflicts): Call print_allocno_conflicts.
7095
7096 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
7097
7098         PR debug/44104
7099         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
7100         if it is NULL.
7101
7102 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
7103
7104         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
7105         t-mingw-w64 or t-mingw-w32 for multilib configuration.
7106         * config/i386/t-mingw-w32: New.
7107         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
7108
7109 2010-05-13  Martin Jambor  <mjambor@suse.cz>
7110
7111         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
7112         gimple-fold.c).
7113         * gimple-fold.c (get_base_binfo_for_type): New function.
7114         (gimple_get_relevant_ref_binfo): Likewise.
7115         (gimple_fold_obj_type_ref_known_binfo): Likewise.
7116         (gimple_fold_obj_type_ref): Likewise.
7117         (fold_gimple_call): Simplify condition for folding virtual calls
7118         and call gimple_fold_obj_type_ref.
7119         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
7120         (gimple_fold_obj_type_ref_known_binfo): Likewise.
7121
7122 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
7123
7124         * config/rs6000/rs6000-protos.h
7125         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
7126         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
7127         (rs6000_debug_mode_dependent_address)
7128         (rs6000_mode_dependent_address_ptr): Likewise.
7129
7130 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
7131
7132         PR debug/43983
7133         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
7134         by SRA.
7135         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
7136         * tree-sra.c (create_access_replacement): Call unshare_expr before
7137         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
7138         * dwarf2out.c: Include tree-flow.h.
7139         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
7140         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7141         Handle DW_OP_bit_piece.
7142         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
7143         construct_piece_list, adjust_piece_list): New functions.
7144         (add_var_loc_to_decl): Handle SRA optimized variables.
7145         Adjust for var_loc_note to loc field renaming.
7146         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
7147         in VAR_LOCATION note.
7148         (new_loc_descr_op_bit_piece): New function.
7149         (dw_sra_loc_expr): New function.
7150         (dw_loc_list): Use it.  Don't handle the last range after the
7151         loop, handle it inside of the loop.  Adjust for var_loc_note
7152         to loc field renaming.
7153         (add_location_or_const_value_attribute): Only special case
7154         single entry loc lists if loc is NOTE_P.  Adjust for
7155         var_loc_note to loc field renaming.
7156         (dwarf2out_var_location): Don't set newloc->var_loc_note
7157         and newloc->next here.
7158
7159 2010-05-12  Jan Hubicka  <jh@suse.cz>
7160
7161         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
7162         flag.
7163         * cgraph.h (cgraph_only_called_directly_p,
7164         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
7165         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
7166         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
7167         (assemble
7168         * ipa.c (cgraph_remove_unreachable_nodes): Use
7169         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
7170         flags.
7171         * tree-inline.c (copy_bb): Check address_taken flag.
7172         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
7173         externally_visible flag.
7174
7175 2010-05-12  Jason Merrill  <jason@redhat.com>
7176
7177         PR bootstrap/44048
7178         PR target/44099
7179         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7180         * sdbout.c (plain_type_1): Likewise.
7181         * dwarf2out.c (is_base_type): Likewise.
7182         (gen_type_die_with_usage): Likewise.  Generate
7183         DW_TAG_unspecified_type for any LANG_TYPE.
7184
7185 2010-05-12  Jan Hubicka  <jh@suse.cz>
7186
7187         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7188         indrect edges too.
7189         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7190         (cgraph_clone_edge): Update.
7191         (cgraph_node_remove_callees): Remove indirect calls too.
7192         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7193         (cgraph_create_indirect_edge): Update prototype.
7194         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7195         is_proper_for_analysis.
7196         (add_new_function, visited_nodes, function_insertion_hook_holder,
7197         get_local_reference_vars_info, mark_address_taken, mark_address,
7198         mark_load, mark_store, check_asm_memory_clobber, check_call,
7199         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7200         (ipa_init): Do not initialize visited_nodes;
7201         function_insertion_hook_holder.
7202         (analyze_variable): Rewrite.
7203         (analyze_function): Rewrite.
7204         (copy_local_bitmap): Remove.
7205         (duplicate_node_dat): Do not duplicate local info.
7206         (generate_summary): Simplify to only walk cgraph.
7207         (write_node_summary_p, ipa_reference_write_summary,
7208         ipa_reference_read_summary): Remove.
7209         (propagate): Do not remove function insertion;
7210         generate summary.
7211         (pass_ipa_reference): NULLify summary handling fields.
7212         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7213         (input_edge): Input ecf_flags.
7214         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7215         (update_indirect_edges_after_inlining): Ignore edges with unknown
7216         param.
7217
7218 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
7219
7220         * implicit-zee.c: New file.
7221         * tree-pass.h (pass_implicit_zee): Declare.
7222         * passes.c (init_optimization_passes): Add zee pass.
7223         * common.opt (fzee): New flag.
7224         * timevar.def (TV_ZEE): Define.
7225         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7226         and beyond.
7227         * Makefile.in (implicit-zee.o): Add new build file.
7228
7229 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
7230             Nathan Froyd  <froydnj@codesourcery.com>
7231
7232         * c-common.c (sync_resolve_params): Remove write-only variable.
7233
7234 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
7235
7236         * target.h (struct gcc_target): Add mode_dependent_address_p field.
7237         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7238         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7239         * targhooks.c (default_mode_dependent_address_p): New function.
7240         * targhooks.h (default_mode_dependent_address_p): Declare function.
7241         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7242         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7243         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7244         target hook. Change return type to bool.
7245         * recog.h (mode_dependent_address_p): Change return type to bool.
7246
7247 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
7248             Nathan Froyd  <froydnj@codesourcery.com>
7249
7250         * tree-mudflap.c (build_function_type_0, build_function_type_1,
7251         build_function_type_2, build_function_type_3): Remove.
7252         (mudflap_init): Use build_function_type_list.
7253
7254 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
7255             Nathan Froyd  <froydnj@codesourcery.com>
7256
7257         * coverage.c (build_fn_info_value): Call build_constructor instead of
7258         build_constructor_from_list.
7259         (build_ctr_info_value): Likewise.
7260         (build_gcov_info): Likewise.
7261
7262 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
7263
7264         * tree.c (build_constructor): Compute TREE_CONSTANT for the
7265         resultant constructor.
7266         (build_constructor_single): Don't set TREE_CONSTANT.
7267         (build_constructor_from_list): Don't compute TREE_CONSTANT.
7268
7269 2010-05-12  Jan Hubicka  <jh@suse.cz>
7270
7271         * cgraph.h (struct varpool_node): Add aux.
7272         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7273         * varpool.c (varpool_remove_node): Do not remove initializer.
7274         (varpool_reset_queue): Export.
7275         (varpool_finalize_decl): Volatile vars are forced to be output.
7276         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7277         replaced decl.
7278         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7279         process_references, varpool_can_remove_if_no_refs): New functions.
7280         (cgraph_remove_unreachable_nodes): Handle variables too.
7281
7282 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7283
7284         PR target/44088
7285         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7286
7287 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
7288
7289         PR middle-end/44085
7290         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7291         change value of ORT_TASK.
7292         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7293         (omp_notice_threadprivate_variable): New function.
7294         (omp_notice_variable): Call it for threadprivate variables.
7295         If enclosing ctx is a task, print enclosing task rather than
7296         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
7297         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7298         if task has untied clause.
7299
7300         PR debug/42278
7301         * dwarf2out.c (base_type_die): Don't add name attribute here.
7302         (modified_type_die): Instead of sizetype use
7303         its underlying original type.  If a DW_TAG_base_type doesn't
7304         have name added, add __unknown__.
7305         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7306         always call force_type_die instead.
7307
7308 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
7309
7310         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7311         for __stack_chk_guard.
7312
7313 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
7314
7315         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7316         don't call start_source_file debug hook here...
7317         (finish_options): ... but here, after outputting predefined and
7318         command line defines and undefs.
7319
7320         PR middle-end/44071
7321         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7322         no fallthru edge.
7323         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7324         optimizing away empty bb with no successors, move over its
7325         footer chain to fallthru predecessor.
7326         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7327         (rtl_split_edge): For asm goto call patch_jump_insn even if
7328         splitting fallthru edge.
7329
7330         PR c++/44059
7331         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7332         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7333         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7334         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7335         on DW.ref.* decls.
7336
7337         PR c++/44062
7338         * c-parser.c (c_parser_expression): Mark LHS of a comma
7339         expression as read if it is a decl, handled component or
7340         COMPOUND_EXPR with that on the RHS.
7341         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7342         if it is a decl or handled component.
7343
7344 2010-05-11  Jan Hubicka  <jh@suse.cz>
7345
7346         * lto-symtab.c (lto_symtab_free): New function.
7347         * lto-streamer.h (lto_symtab_free): Declare.
7348
7349 2010-05-11  Jan Hubicka  <jh@suse.cz>
7350
7351         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7352         that if function is needed it is reachable.
7353         (lto_output_node): See if it the function is reachable or referenced.
7354         (output_cgraph): Update call of lto_output_node.
7355         * lto-streamer.h (reachable_from_other_partition_p): Declare.
7356
7357 2010-05-11  Jan Hubicka  <jh@suse.cz>
7358
7359         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7360         Mark as used.
7361
7362 2010-05-11  Jan Hubicka  <jh@suse.cz>
7363
7364         PR tree-optimize/44063
7365         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7366         queue.
7367         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7368         limits.
7369         (estimate_function_body_sizes): Compute sizes even when disregarding.
7370
7371 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
7372
7373         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7374
7375 2010-05-11  Jan Hubicka  <jh@suse.cz>
7376
7377         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7378         into every boundary.
7379
7380 2010-05-11  Jan Hubicka  <jh@suse.cz>
7381
7382         * matrix-reorg.c (matrix_reorg): Rebuild edges.
7383
7384 2010-05-11  Jan Hubicka  <jh@suse.cz>
7385
7386         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7387         lto_streamer_cache_delete): Put nodes into heap.
7388         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7389         heap.
7390
7391 2010-05-11  Jan Hubicka  <jh@suse.cz>
7392
7393         * cgraphbuild.c (cgraph_rebuild_references): New.
7394         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7395         out extern inlines.
7396         * cgraph.h (cgraph_rebuild_references): Declare.
7397         * tree-inline.c (tree_function_versioning): Use it.
7398         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7399
7400 2010-05-11  Jan Hubicka  <jh@suse.cz>
7401
7402         * cgraph.c: Include ipa-utils.h
7403         (cgraph_create_virtual_clone): Update references.
7404         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7405
7406 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
7407
7408         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7409         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7410         cache size.
7411
7412 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
7413
7414         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7415
7416 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
7417
7418         * gcc.c (execute): For -### don't quote arguments that
7419         contain just alphanumerics and _/-. characters.
7420         * doc/invoke.texi: Document that change for -###.
7421
7422         PR debug/44023
7423         * df-problems.c (struct dead_debug): Add to_rescan field.
7424         (dead_debug_init): Clear to_rescan field.
7425         (dead_debug_finish): Rescan all debug insns in to_rescan
7426         bitmap and free the bitmap.
7427         (dead_debug_insert_before): Instead of rescanning debug insns
7428         immediately queue their rescanning until dead_debug_finish.
7429         (df_note_bb_compute): After dead_debug_add do continue instead
7430         of break.
7431
7432 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR debug/44028
7435         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7436         clear also INSN_REG_USE_LIST.
7437
7438 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7439
7440         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7441
7442 2010-05-10  Jan Hubicka  <jh@suse.cz>
7443
7444         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7445         commited change.
7446
7447 2010-05-10  Jan Hubicka  <jh@suse.cz>
7448
7449         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7450         Allocate encoders.
7451         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7452         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7453         (lto_streamer_cache_create): Init alloc pool.
7454         (lto_streamer_cache_delete): Free alloc pool.
7455         * lto-streamer.h: Include alloc pool.
7456         (lto_streamer_cache_d): Use alloc pool.
7457         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7458
7459 2010-05-10  Jan Hubicka  <jh@suse.cz>
7460
7461         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7462         * cgraphbuild.c: Include except.h
7463         (record_type_list, record_eh_tables): New function.
7464         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7465
7466 2010-05-10  Jan Hubicka  <jh@suse.cz>
7467
7468         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7469         __frame_dummy_init_array_entry, force_to_data): Attribute as used
7470         rather than unused.
7471
7472 2010-05-10  Michael Matz  <matz@suse.de>
7473
7474         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7475         (can_reassociate_p): Use FLOAT_TYPE_P.
7476         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7477         (vect_force_simple_reduction): ... this.
7478         * tree-parloops.c (gather_scalar_reductions): Use
7479         vect_force_simple_reduction.
7480         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7481         vect_is_simple_reduction, add modify argument, if true rewrite
7482         "a-b" into "a+(-b)".
7483         (vect_is_simple_reduction, vect_force_simple_reduction): New
7484         functions.
7485         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7486
7487 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7488             Vladimir Makarov  <vmakarov@redhat.com>
7489
7490         PR rtl-optimization/44012
7491         * ira-build.c (remove_unnecessary_allocnos): Nullify
7492         regno_allocno_map of the removed allocno.
7493
7494 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7495
7496         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7497         to /dev/null.
7498         * configure: Regenerate.
7499
7500 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7501
7502         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7503         unused.
7504         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7505         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7506         support in Sun ld.
7507         * configure: Regenerate.
7508
7509 2010-05-10  Richard Guenther  <rguenther@suse.de>
7510
7511         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7512         marked if the entry identifier is marked.
7513
7514 2010-05-10  Richard Guenther  <rguenther@suse.de>
7515
7516         * c-common.c (struct c_common_attributes): Add fnspec attribute.
7517         (handle_fnspec_attribute): New function.
7518         * gimple.h (gimple_call_return_flags): Declare.
7519         (gimple_call_arg_flags): Likewise.
7520         * gimple.c (gimple_call_arg_flags): New function.
7521         (gimple_call_return_flags): Likewise.
7522         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7523         New argument flags.
7524         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7525         return value flags.
7526         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7527         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7528         main work to ...
7529         (make_heapvar_for): ... this new function.
7530         (handle_rhs_call): Handle fnspec attribute argument specifiers.
7531         (handle_lhs_call): Likewise.
7532         (find_func_aliases): Adjust.
7533
7534 2010-05-10  Richard Guenther  <rguenther@suse.de>
7535
7536         PR tree-optimization/44050
7537         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7538
7539 2010-05-10  Wei Guozhi  <carrot@google.com>
7540
7541         PR target/42879
7542         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7543
7544 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
7545
7546         PR c/10676
7547         * c-typeck.c (lookup_field): Take a type directly.  Update
7548         recursive calls.
7549         (build_component_ref): Update call to lookup_field.
7550         (set_init_label): Use lookup_field to find initialized field.
7551         Handle returned list of fields like a sequence of designators.
7552
7553 2010-05-09  Richard Guenther  <rguenther@suse.de>
7554
7555         PR middle-end/44024
7556         * fold-const.c (tree_single_nonzero_warnv_p): Properly
7557         handle &FUNCTION_DECL.
7558
7559 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
7560
7561         PR c/4784
7562         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
7563         structures and unions recursively.
7564         (detect_field_duplicates): Move duplicate detection with a hash to
7565         detect_field_duplicates_hash.  Always use a hash if anonymous
7566         structures or unions are present.
7567         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7568         give errors.
7569
7570 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7571
7572         PR target/44046
7573         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7574         detect Atom, Core 2 and Core i7.
7575
7576 2010-05-09  Richard Guenther  <rguenther@suse.de>
7577
7578         * gcc.c (store_arg): Handle temporary file deletion for
7579         joined arguments.
7580
7581 2010-05-09  Richard Guenther  <rguenther@suse.de>
7582
7583         PR middle-end/44043
7584         * ipa-inline.c (estimate_function_body_sizes): Return after
7585         disregarding inline limits.
7586
7587 2010-05-09  Richard Guenther  <rguenther@suse.de>
7588
7589         * gcc.c (store_arg): Revert last change.
7590
7591 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7592
7593         PR middle-end/28685
7594         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7595         (optimize_ops_list): Call it.
7596
7597 2010-05-08  Richard Guenther  <rguenther@suse.de>
7598
7599         PR tree-optimization/44030
7600         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
7601         NECESSARY flag if we propagate from a inserted expression.
7602
7603 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7604
7605         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7606         domain types as equal if they are both PLACEHOLDER_EXPRs.
7607
7608 2010-05-08  Richard Guenther  <rguenther@suse.de>
7609
7610         * lto-wrapper.c (run_gcc): Remove linker output from
7611         command line for LTRANS invocation.
7612
7613 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
7614
7615         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7616         lto-macho as lto_binary_reader.
7617         * target.h (struct gcc_target): New hooks lto_start and lto_end.
7618         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7619         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7620         in lto_start and lto_end calls.
7621         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
7622         magic numbers.
7623         (scan_prog_file): Update is_elf_or_coff call.
7624         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7625
7626         * collect2.c (main): Fix enum comparison.
7627
7628         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7629         Add prototypes.
7630         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7631         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
7632         and TARGET_ASM_LTO_END.
7633         * darwin.c: Include obstack.h and lto-streamer.h.
7634         (lto_section_names_offset, lto_section_names_obstack,
7635         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7636         global variables.
7637         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7638         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
7639         to a temporary file.
7640         (darwin_asm_lto_end): New function.  Restore asm_out_file.
7641         (darwin_asm_named_section): For LTO sections, replace the name with
7642         the offset of the section name in a string table, and build this
7643         table.
7644         (darwin_file_start): Initialize global vars for LTO support.
7645         (darwin_file_end): If output to asm_out_file was redirected, append it
7646         to the proper asm_out_file here.  Add the section names section.
7647
7648 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
7649
7650         * c-pragma.c (pending_weak_d, pending_weak): New.
7651         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7652         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7653         handle_pragma_weak): Update the uses of pending_weaks.
7654
7655 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7656
7657         PR documentation/44016
7658         * doc/standards.texi (Standards): Link to unversioned
7659         cxx0x_status.html page.
7660
7661 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
7662
7663         PR target/43708
7664         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7665         in addition to TREE_USED, to avoid "set but unused" warnings.
7666
7667 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
7668
7669         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7670         (is_loop_prefetching_profitable): Do not insert prefetches
7671         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7672         times the prefetch ahead distance.
7673
7674 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
7675
7676         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7677         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7678         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7679         the unroll_factor.
7680
7681 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
7682
7683         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7684         a diagnostic info when the insn-to-mem ratio is too small.
7685
7686 2010-05-07  Richard Guenther <rguenther@suse.de>
7687
7688         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7689         the linker plugin.
7690         (store_arg): Queue temp_filename for deletion instead of
7691         the whole argument.
7692
7693 2010-05-07  Richard Guenther  <rguenther@suse.de>
7694
7695         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7696         (run_gcc): Handle LTRANS phase invocation.
7697         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7698
7699 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
7700
7701         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7702         this is also meaningful on PARM_DECLs and RESULT_DECLs.
7703
7704 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7705
7706         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7707
7708 2010-05-07  Richard Guenther  <rguenther@suse.de>
7709
7710         PR tree-optimization/44020
7711         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7712         code when PRE is not yet initialized.
7713
7714 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7715
7716         * config/mips/dbxmdebug.h: Remove.
7717         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7718
7719 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
7720
7721         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7722         with null pointer and also warn about ordered comparison of zero with
7723         pointer if -Wextra.
7724
7725 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7726
7727         * graphite-blocking.c
7728         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7729         * graphite-clast-to-gimple.c
7730         (clast_to_gcc_expression): Same.
7731         (precision_for_value): Same.
7732         (precision_for_interval): Same.
7733         (gcc_type_for_interval): Same.
7734         (graphite_create_new_guard): Same.
7735         (compute_bounds_for_level): Same.
7736         (graphite_create_new_loop_guard): Same.
7737         * graphite-interchange.c
7738         (build_linearized_memory_access): Same.
7739         (pdr_stride_in_loop): Same.
7740         (memory_strides_in_loop_1): Same.
7741         (memory_strides_in_loop): Same.
7742         (extend_scattering): Same.
7743         (psct_scattering_dim_for_loop_depth): Same.
7744         (pbb_number_of_iterations): Same.
7745         * graphite-poly.h
7746         (debug_iteration_domains): Same.
7747         * graphite-ppl.c
7748         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7749         (ppl_set_inhomogeneous_gmp): Same.
7750         (ppl_strip_loop): Same.
7751         (ppl_lexico_compare_linear_expressions): Same.
7752         (ppl_read_polyhedron_matrix): Same.
7753         (ppl_max_for_le_pointset): Same.
7754         * graphite-ppl.h
7755         (ppl_read_polyhedron_matrix): Same.
7756         (tree_int_to_gmp): Same.
7757         (gmp_cst_to_tree): Same.
7758         (ppl_set_inhomogeneous): Same.
7759         (ppl_set_inhomogeneous_tree): Same.
7760         (ppl_set_coef): Same.
7761         (ppl_set_coef_tree): Same.
7762         * graphite-sese-to-poly.c
7763         (build_pbb_scattering_polyhedrons): Same.
7764         (build_scop_scattering): Same.
7765         (scan_tree_for_params_right_scev): Same.
7766         (scan_tree_for_params): Same.
7767         (find_params_in_bb): Same.
7768         (find_scop_parameters): Same.
7769         (add_upper_bounds_from_estimated_nit): Same.
7770         (build_loop_iteration_domains): Same.
7771         (add_condition_to_domain): Same.
7772         (pdr_add_memory_accesses): Same.
7773
7774 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7775
7776         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7777         CLooG's value_* macros to their respective mpz_* counterparts.
7778         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7779         (graphite_create_new_loop_guard): Same.
7780         * graphite-interchange.c (build_linearized_memory_access): Same.
7781         (pdr_stride_in_loop): Same.
7782         (memory_strides_in_loop_1): Same.
7783         (1st_interchange_profitable_p): Same.
7784         * graphite-poly.c (extend_scattering): Same.
7785         (psct_scattering_dim_for_loop_depth): Same.
7786         (pbb_number_of_iterations): Same.
7787         (pbb_number_of_iterations_at_time): Same.
7788         * graphite-poly.h (new_1st_loop): Same.
7789         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7790         (oppose_constraint): Same.
7791         (insert_constraint_into_matrix): Same.
7792         (ppl_set_inhomogeneous_gmp): Same.
7793         (ppl_set_coef_gmp): Same.
7794         (ppl_strip_loop): Same.
7795         (ppl_lexico_compare_linear_expressions): Same.
7796         (ppl_max_for_le_pointset): Same.
7797         (ppl_min_for_le_pointset): Same.
7798         (ppl_build_realtion): Same.
7799         * graphite-ppl.h (gmp_cst_to_tree): Same.
7800         (ppl_set_inhomogeneous): Same.
7801         (ppl_set_inhomogeneous_tree): Same.
7802         (ppl_set_coef): Same.
7803         (ppl_set_coef_tree): Same.
7804         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7805         (build_scop_scattering): Same.
7806         (add_value_to_dim): Same.
7807         (scan_tree_for_params_right_scev): Same.
7808         (scan_tree_for_params_int): Same.
7809         (scan_tree_for_params): Same.
7810         (find_params_in_bb): Same.
7811         (find_scop_parameters): Same.
7812         (add_upper_bounds_from_estimated_nit): Same.
7813         (build_loop_iteration_domains): Same.
7814         (create_linear_expr_from_tree): Same.
7815         (add_condition_to_domain): Same.
7816         (pdr_add_memory_accesses): Same.
7817
7818 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
7819             Jason Merrill  <jason@redhat.com>
7820
7821         * c-common.c (c_common_reswords): Add nullptr.
7822         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
7823         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7824         (gen_type_die_with_usage): Likewise.
7825         * dbxout.c (dbxout_type): Likewise.
7826         * sdbout.c (plain_type_1): Likewise.
7827
7828 2010-05-06  Jason Merrill  <jason@redhat.com>
7829
7830         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7831         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
7832         ret appropriately.
7833         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7834
7835         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7836         stripping WITH_SIZE_EXPR.
7837         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7838         change.
7839
7840 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7841
7842         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7843         list of obsolete configurations.
7844         Disabled check for obsolete configurations.
7845         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7846         Removed support for previous versions.
7847         * config/mips/iris.h: Removed.
7848         * config/mips/iris5.h: Removed.
7849         * config/mips/iris6.h: Merged old iris.h contents.
7850         (TARGET_IRIX): Removed.
7851         (DRIVER_SELF_SPECS): Removed mabi=32.
7852         (IDENT_ASM_OP): Removed undef.
7853         (STARTFILE_SPEC): Removed mabi=32.
7854         (ENDFILE_SPEC): Likewise.
7855         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7856         (MACHINE_TYPE): Update for IRIX 6.5.
7857         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7858         TARGET_IRIX by TARGET_IRIX6.
7859         (mips_file_start): Likewise.
7860         (mips_output_external): Remove IRIX 5/6 O32 support.
7861         (mips_output_function_prologue): Likewise.
7862         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7863         TARGET_IRIX6.
7864         (TARGET_CPU_CPP_BUILTINS): Likewise.
7865         (TARGET_IRIX): Removed.
7866         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7867         (MULTILIB_DIRNAMES): Removed 32.
7868         (MULTILIB_OSDIRNAMES): Removed ../lib.
7869         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7870         (Specific, mips-sgi-irix5): Document removal.
7871         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7872         Remove references to older IRIX 6 releases and the O32 ABI.
7873
7874 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
7875
7876         PR bootstrap/43994
7877         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7878         instead of DF_REF_REAL_REG.
7879
7880 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
7881
7882         PR target/43888
7883         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7884         handling to still return true for x64 targets.
7885
7886 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7887
7888         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7889
7890 2010-05-06  Jan Hubicka  <jh@suse.cz>
7891
7892         PR tree-optimization/43791
7893         * ipa-inline.c (update_caller_keys): Remove bogus
7894         disregard_inline_limits check.
7895
7896 2010-05-06  Michael Matz  <matz@suse.de>
7897
7898         PR tree-optimization/43984
7899         * tree-ssa-pre.c (inserted_phi_names): Remove.
7900         (inserted_exprs): Change to bitmap.
7901         (create_expression_by_pieces): Set bits, don't append to vector.
7902         (insert_into_preds_of_block): Don't handle inserted_phi_names.
7903         (eliminate): Don't look at inserted_phi_names, remove deleted
7904         insns from inserted_exprs.
7905         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7906         (init_pre, fini_pre): Allocate and free bitmaps.
7907         (execute_pre): Insert insns on edges before elimination.
7908
7909 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7910
7911         * tree.c (initializer_zerop): Handle STRING_CST.
7912
7913 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7914
7915         PR 40989
7916         * doc/invoke.texi (Wimplicit): Document as C only.
7917         * opts.c (common_handle_option): Add argument kind.
7918         (handle_option): Rename as read_cmdline_option. Factor out code to...
7919         (handle_option): ... here. New.
7920         (handle_options): Rename as read_cmdline_options.
7921         (decode_options): Update call.
7922         (set_option): Use option index instead of option pointer. Classify
7923         diagnostics correctly.
7924         (enable_warning_as_error): Call handle_option.
7925         * opts.h (set_option): Update declaration.
7926         (handle_option): Declare.
7927         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7928         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7929         * c-opts.c (set_Wimplicit): Delete.
7930         (c_family_lang_mask): New static constant.
7931         (c_common_handle_option): Add argument kind. Use handle_option
7932         instead of set_Wimplicit.
7933         (c_common_post_options): warn_implicit and warn_implicit_int
7934         are disabled by default.
7935         * c-common.c (warn_implicit): Do not define here.
7936         * c-common.h (warn_implicit): Do not declare here.
7937         (c_common_handle_option): Update declaration.
7938         * lto-opts.c (lto_reissue_options): Update call to set_option.
7939
7940 2010-05-06  Richard Guenther  <rguenther@suse.de>
7941
7942         PR tree-optimization/43571
7943         * domwalk.c (walk_dominator_tree): Walk the dominator
7944         sons in more optimal order.
7945
7946 2010-05-06  Richard Guenther  <rguenther@suse.de>
7947
7948         PR tree-optimization/43934
7949         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7950         (stmt_cost): Likewise.
7951         (extract_true_false_args_from_phi): New helper.
7952         (determine_max_movement): For PHI nodes verify we can hoist them
7953         and compute their cost.
7954         (determine_invariantness_stmt): Handle PHI nodes.
7955         (move_computations_stmt): Likewise.  Hoist PHI nodes in
7956         if-converted form using COND_EXPRs.
7957         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7958         (tree_ssa_lim): Likewise.
7959         * tree-flow.h (tree_ssa_lim): Adjust prototype.
7960         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7961
7962 2010-05-06  Richard Guenther  <rguenther@suse.de>
7963
7964         PR tree-optimization/43987
7965         * tree-ssa-structalias.c (could_have_pointers): For possibly
7966         address-taken variables force pointers to be recorded.
7967         (create_variable_info_for_1): Likewise.
7968         (push_fields_onto_fieldstack): Pass in wheter all fields
7969         must have pointers.
7970         (find_func_aliases): Query types instead of vars whether
7971         they contain pointers where appropriate.
7972
7973 2010-05-06  Jan Hubicka  <jh@suse.cz>
7974
7975         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7976         (record_reference, mark_address, mark_load, mark_store): Record
7977         references.
7978         (record_references_in_initializer): Update call of record_references.
7979         (rebuild_cgraph_edges): Remove all references before rebuiding.
7980         * cgraph.c (cgraph_create_node): Clear ref list.
7981         (cgraph_remove_node): Remove references.
7982         (dump_cgraph_node): Dump references.
7983         (cgraph_clone_node): Clone references.
7984         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7985         (struct cgraph_node, varpool_node): Add ref_lst.
7986         * ipa-ref.c: New file.
7987         * ipa-ref.h: New file.
7988         * ipa-ref-inline.h: New file.
7989         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7990         (referenced_from_other_partition_p): New function.
7991         (lto_output_varpool_node): Take set arugment; call
7992         referenced_from_other_partition.
7993         (lto_output_ref): New.
7994         (add_references): New.
7995         (output_refs): New.
7996         (output_cgraph): Compute boundary based on references; output refs.
7997         (output_varpool): Accept cgraph_node_set argument.
7998         (input_ref): New.
7999         (input_refs): New.
8000         (input_cgraph): Call input_refs.
8001         * lto-section-in.c (lto_section_name): Add refs.
8002         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
8003         (ipa-ref.o): New file.
8004         * varpool.c (varpool_node): Clear ipa ref list.
8005         (varpool_remove_node): Remove references.
8006         (dump_varpool_node): Dump references.
8007         (varpool_assemble_decl): Only compile finalized ones.
8008         (varpool_extra_name_alias): Initialize ref list.
8009         * lto-streamer.c (lto-get_section_name): Add .refs section.
8010         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
8011         (referenced_from_other_partition_p): Declared.
8012
8013 2010-05-06  Ira Rosen  <irar@il.ibm.com>
8014
8015         PR tree-optimization/43901
8016         * tree-vect-stmts.c (vectorizable_call): Assert that vector
8017         type is not NULL if it's transformation phase, and return
8018         FALSE if it's analysis.
8019         (vectorizable_conversion, vectorizable_operation,
8020         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
8021
8022 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
8023
8024         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8025         Delete.
8026         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8027         New define.
8028         * config/mips/mips-protos.h
8029         (mips_small_register_classes_for_mode_p): Delete prototype.
8030
8031 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
8032
8033         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
8034         * config/arm/arm.c (multiple_operation_profitable_p,
8035         compute_offset_order): New static functions.
8036         (load_multiple_sequence, store_multiple_sequence): Use them.
8037         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
8038         memory offsets, not register numbers.
8039         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
8040
8041 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
8042
8043         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
8044         (get_pending_sizes, put_pending_size, put_pending_sizes):
8045         Update the uses of pending_sizes.
8046         * c-decl.c (store_parm_decls): Likewise.
8047         * c-tree.h (struct c_arg_info): Likewise.
8048         * tree.h: Update the prototype for get_pending_sizes and
8049         put_pending_sizes.
8050
8051 2010-05-05  Jason Merrill  <jason@redhat.com>
8052
8053         PR debug/43370
8054         * c-common.c (handle_aligned_attribute): Respect
8055         ATTR_FLAG_TYPE_IN_PLACE.
8056
8057         PR testsuite/43758
8058         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
8059         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8060         (TARGET_INITIALIZER): Use it.
8061         * c-common.c (attribute_takes_identifier_p): Call it.
8062         * c-common.h: Update prototype.
8063         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
8064         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8065
8066 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
8067
8068         PR debug/43950
8069         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
8070         DW_ID_down_case for Fortran compilation units.
8071
8072 2010-05-05  Jan Hubicka  <jh@suse.cz>
8073
8074         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
8075         handle aliases.
8076
8077 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
8078
8079         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
8080         a variable-sized RESULT_DECL.
8081
8082 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
8083
8084         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
8085
8086 2010-05-05  Jason Merrill  <jason@redhat.com>
8087
8088         PR c++/43787
8089         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
8090         returns GS_OK.
8091         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
8092
8093 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
8094             Jakub Jelinek  <jakub@redhat.com>
8095
8096         PR debug/43478
8097         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
8098         (dead_debug_init, dead_debug_finish): New functions.
8099         (dead_debug_add, dead_debug_insert_before): Likewise.
8100         (df_note_bb_compute): Initialize a dead_debug object, add dead
8101         debug uses to it, insert debug bind insns before death insns,
8102         reset debug insns that refer to pending uses at the end.
8103         * rtl.h (make_debug_expr_from_rtl): New prototype.
8104         * varasm.c (make_debug_expr_from_rtl): New function.
8105
8106 2010-05-05  Jan Hubicka  <jh@suse.cz>
8107
8108         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
8109         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
8110         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
8111         lto_varpool_encoder_deref, lto_varpool_encoder_size,
8112         lto_varpool_encoder_encode_initializer_p,
8113         lto_set_varpool_encoder_encode_initializer): New functions.
8114         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
8115         call output_varpool.
8116         (input_varpool_node): Do not always set analyzed.
8117         (input_cgraph_1): Return vector of cgraph nodes.
8118         (input_varpool_1): Return vector of varpools.
8119         (input_cgraph): Free the vectors.
8120         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8121         output only initializers needed.
8122         (lto_output): Only call output_cgraph.
8123         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
8124         * lto-section-out.c (lto_new_out_decl_state): Initialize
8125         state->varpool_node_encoder.
8126         * lto-streamer.h (lto_varpool_encoder_d): New.
8127         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
8128         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
8129         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
8130         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
8131         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
8132         Declare.
8133         (output_varpool, input_varpool): Remove declarations.
8134
8135 2010-05-05  Jan Hubicka  <jh@suse.cz>
8136
8137         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
8138         with body can prevail.
8139
8140 2010-05-05  Jan Hubicka  <jh@suse.cz>
8141
8142         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
8143         size.
8144
8145 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8146
8147         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
8148
8149         * gengtype.h (erro_at_line): Constify pos argument.
8150
8151         * gengtype.c: Include hashtab.h.
8152         (enum gc_used): Document GC_MAYBE_POINTED_TO.
8153         (error_at_line): Constify pos argument.
8154         (do_typedef): Initialize p->opt field.
8155         (get_file_gtfilename): Fix comment typo.
8156         (struct walk_type_data): Constify line field.
8157         (get_output_file_for_structure): New function.
8158         (write_local_func_for_structure): Constify orig_s argument.
8159         Use get_output_file_for_structure.
8160         (write_func_for_structure): Use get_output_file_for_structure.
8161         (INDENT): New define.
8162         (dump_pair, dump_type, dump_type_list, dump_typekind)
8163         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
8164         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
8165         functions.
8166         (seen_types): New variable.
8167         (main): New variable do_dump.  Process "-d" command line option.
8168         Call dump_everything if dump requested.
8169
8170 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
8171
8172         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
8173         in a temporary instead of invoking the macro multiple times.
8174         (track_expr_p): Likewise.
8175
8176 2010-05-04  Neil Vachharajani <nvachhar@google.com>
8177
8178         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8179         per new semantics.
8180         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8181         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
8182         conditions for printing notes.
8183         * common.opt (-Wcoverage-mismatch): Allow negative, default to
8184         true, update documentation.
8185         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8186
8187 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
8188
8189         PR c/43981
8190         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8191         on dimen.
8192
8193 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8194
8195         PR target/43799
8196         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8197         (*sse_prologue_save_insn1): Likewise.
8198         (SSE prologue save splitter): Likewise.
8199
8200 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
8201
8202         * tree.c (free_lang_data_in_one_sizepos): New inline function.
8203         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8204         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8205         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8206         all decls.  Call it on DECL_FIELD_OFFSET of fields.
8207         (find_decls_types_r): Follow DECL_VALUE_EXPR.
8208         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8209
8210 2010-05-04  Martin Jambor  <mjambor@suse.cz>
8211
8212         * tree-sra.c (build_access_from_expr_1): The first parameter type
8213         changed to simple tree.
8214         (build_access_from_expr): Likewise, gsi parameter was eliminated.
8215         (scan_assign_result): Renamed to assignment_mod_result, enum elements
8216         renamed as well.
8217         (build_accesses_from_assign): Removed all parameters except for a
8218         simple gimple statement.  Now returns a simple bool.
8219         (scan_function): All non-analysis parts moved to separate functions
8220         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
8221         parameters and updated both callers.
8222         (sra_modify_expr): Removed parameter data.
8223         (sra_modify_function_body): New function.
8224         (perform_intra_sra): Call sra_modify_function_body to modify the
8225         function body.
8226         (replace_removed_params_ssa_names): Parameter data changed into
8227         adjustments vector.
8228         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
8229         changed the parameter dont_convert to convert with the opposite
8230         meaning.
8231         (sra_ipa_modify_assign): Parameter data changed into adjustments
8232         vector, return value changed to bool.
8233         (ipa_sra_modify_function_body): New function.
8234         (sra_ipa_reset_debug_stmts): Updated a comment.
8235         (modify_function): Use ipa_sra_modify_function_body to modify function
8236         body.
8237
8238 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         PR middle-end/43671
8241         * alias.c (true_dependence): Handle the same VALUE in x and mem.
8242         (canon_true_dependence): Likewise.
8243         (write_dependence_p): Likewise.
8244
8245 2010-05-04  Jan Hubicka  <jh@suse.cz>
8246
8247         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8248         * cgraphbuild.c: Include ipa-utils.h
8249         (record_reference_ctx): New struct.
8250         (record_reference): Simplify to work on initializers; not statements.
8251         (mark_address, mark_load, mark_store): New.
8252         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8253         walk PHI nodes too.
8254         (record_references_in_initializer): Update use of record_reference.
8255         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8256         walk PHI nodes too.
8257
8258 2010-05-04  Jan Hubicka  <jh@suse.cz>
8259
8260         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8261         node will be removed anyway.
8262         (lto_varpool_replace_node): Allow also unanalyzed nodes;
8263         relink aliases of node into prevailing node.
8264         * varpool.c (varpool_remove_node): Remove aliases properly;
8265         when removing node, remove all its aliases too; remove DECL_INITIAL
8266         of removed node; ggc_free the varpool node.
8267
8268 2010-05-04  Richard Guenther  <rguenther@suse.de>
8269
8270         PR tree-optimization/43879
8271         * tree-ssa-structalias.c (alias_get_name): Use
8272         DECL_ASSEMBLER_NAME if available.
8273         (create_function_info_for): Return the varinfo node.
8274         (ipa_pta_execute): Associate same-body aliases and extra names
8275         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
8276
8277 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8278
8279         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8280
8281 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
8282
8283         PR bootstrap/43964
8284         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8285         only if HONOR_REG_ALLOC_ORDER is not defined.
8286
8287 2010-05-04  Richard Guenther  <rguenther@suse.de>
8288
8289         PR tree-optimization/43949
8290         * tree-vrp.c (extract_range_from_binary_expr): Only handle
8291         TRUNC_MOD_EXPR.
8292
8293 2010-04-26  Jason Merrill  <jason@redhat.com>
8294
8295         * c.opt (-fstrict-enums): New.
8296         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8297
8298 2010-05-03  David Ung <davidu@mips.com>
8299             James E. Wilson  <wilson@codesourcery.com>
8300
8301         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8302         emit the trap instruction before the divide for TUNE_74K.
8303
8304 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
8305
8306         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8307         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8308         based on the above, for new target hook.
8309
8310         * hooks.c (hook_bool_mode_true): New generic hook.
8311         * hooks.h (hook_bool_mode_true): Add prototype.
8312
8313         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8314         target hook.
8315         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8316         target hook, set to hook_bool_mode_false.
8317         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8318         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8319         with targetm.small_register_classes_for_mode_p.
8320         (find_reusable_reload): Likewise.
8321         (combine_reloads): Likewise.
8322         * reload1.c (reload_as_needed): Likewise.
8323         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8324         * ifcvt.c (noce_process_if_block, check_cond_move_block,
8325         dead_or_predicable): Likewise.
8326         * regmove.c (optimize_reg_copy_1): Likewise.
8327         * calls.c (prepare_call_address): Likewise.
8328         (precompute_register_parameters): Likewise.
8329
8330         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8331         hook definition.
8332         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8333         implementation of the hook that considers all register classes
8334         small except for SH64.
8335         (sh_override_options): Use the new hook.
8336         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8337         Add prototype.
8338
8339         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8340         hook definition.
8341         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8342         implementation of the hook that considers all register classes
8343         small for THUMB1.
8344         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8345         Add prototype.
8346
8347         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8348         hook definition.
8349         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8350         implementation of the hook that considers all register classes
8351         small for MIPS16.
8352         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8353         Add prototype.
8354
8355         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8356         hook definition.
8357         * config/m32c/m32c.h: Likewise.
8358         * config/pdp11/pdp11.h: Likewise.
8359         * config/avr/avr.h: Likewise.
8360         * config/xtensa/xtensa.h: Likewise.
8361         * config/m68hc11/m68hc11.h: Likewise.
8362         * config/mn10300/mn10300.h: Likewise.
8363         * config/mcore/mcore.h: Likewise.
8364         * config/h8300/h8300.h: Likewise.
8365         * config/bfin/bfin.h: Likewise.
8366
8367         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8368         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8369
8370 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
8371
8372         * double-int.h (tree_to_double_int): Remove macro.
8373         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8374         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8375         (tree_to_double_int): New function.
8376         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8377         Move ...
8378         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8379
8380 2010-05-03  Richard Guenther  <rguenther@suse.de>
8381
8382         PR tree-optimization/43971
8383         * tree-ssa-structalias.c (get_constraint_for_1): Fix
8384         constraints in the !flag_delete_null_pointer_checks case.
8385
8386 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
8387
8388         PR debug/43972
8389         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8390         result mode matches original rtl mode.
8391
8392 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
8393
8394         PR target/43888
8395         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8396
8397 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
8398
8399         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8400         when processing flag options.
8401
8402 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
8403
8404         * gcov-iov.c (main): Change format string placeholder
8405         from %#08x to 0x%08x.
8406         * genchecksum.c (dosum): Change format string placeholder
8407         from %#02x to 0x%02x.
8408
8409 2010-05-02  Richard Guenther  <rguenther@suse.de>
8410
8411         PR tree-optimization/43879
8412         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8413
8414 2010-05-02  Bruno Haible  <bruno@clisp.org>
8415
8416         * doc/extend.texi (Function Attributes): Fix a typo.
8417
8418 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
8419
8420         Revert:
8421         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8422         placeholder from 0x%x to %#x.
8423         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8424         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8425         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8426         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8427         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8428         * config/i386/i386.c (ix86_target_string): Ditto.
8429         * config/i386/i386.c (output_pic_addr_const): Ditto.
8430         (print_operand): Ditto.
8431
8432 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
8433
8434         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8435         placeholder from 0x%x to %#x.
8436         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8437         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8438         (ASM_OUTPUT_DEBUG_DATA): Ditto.
8439         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8440         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8441         * optc-gen.awk: Ditto.
8442         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8443         (HOST_WIDE_INT_PRINT_HEX): Ditto.
8444         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8445         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8446
8447 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
8448
8449         * target.h (struct calls): Add function_value_regno_p field.
8450         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8451         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8452         * targhooks.c (default_function_value_regno_p): New function.
8453         * targhooks.h (default_function_value_regno_p): Declare function.
8454         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8455         * builtins.c. (apply_result_size): (Ditto.).
8456         * combine.c. (likely_spilled_retval_p): (Ditto.).
8457         * mode-switching.c. Include 'target.h'.
8458         (create_pre_exit): Use function_value_regno_p hook.
8459         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8460         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8461         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8462
8463         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8464         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8465         (ix86_function_value_regno_p): Declare as static, change argument
8466         type to const unsigned int.
8467         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8468
8469 2010-05-01  Richard Guenther  <rguenther@suse.de>
8470
8471         PR tree-optimization/43949
8472         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8473         types.
8474         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8475
8476 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
8477
8478         * rtl.h (CONST_DOUBLE_P): Define.
8479         (rtx_to_double_int): Declare.
8480         * emit-rtl.c (rtx_to_double_int): New function.
8481         * dwarf2out.c (insert_double): New function.
8482         (loc_descriptor, add_const_value_attribute): Clean up, use
8483         rtx_to_double_int and insert_double functions.
8484
8485 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
8486
8487         * doc/extend.texi (Inline): Add missing return keyword to examples.
8488         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8489         "command-line".
8490
8491 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
8492
8493         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8494         the variable part of the offset as well.  Use highest_pow2_factor for
8495         all alignment checks.
8496
8497 2010-04-30  Richard Guenther  <rguenther@suse.de>
8498
8499         PR tree-optimization/43879
8500         * tree-ssa-structalias.c (type_could_have_pointers): Functions
8501         can have pointers.
8502
8503 2010-04-30  Jan Hubicka  <jh@suse.cz>
8504
8505         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8506         varpool.
8507         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8508
8509 2010-04-30  Jan Hubicka  <jh@suse.cz>
8510
8511         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8512         New.
8513         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8514         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8515         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8516         cgraph_node_set_needs_ltrans_p): Remove.
8517
8518 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
8519
8520         * sdbout.c: Include vec.h, do not include varray.h.
8521         (deferred_global_decls, sdbout_global_decl,
8522         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8523         * toplev.c: Do not include varray.h.
8524         (dump_memory_report): Do not dump VARRAY statistics.
8525         * gengtype.c (open_base_file): Ignore varray.h.
8526         * Makefile.in: Update for abovementioned changes.
8527         Remove all traces of varray.c and varray.h.
8528         * varray.c: Remove file.
8529         * varray.h: Remove file.
8530
8531 2010-04-30  Jan Hubicka  <jh@suse.cz>
8532
8533         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8534         references.
8535
8536 2010-04-30  Jan Hubicka  <jh@suse.cz>
8537
8538         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8539         needed.
8540
8541 2010-04-30  Richard Guenther  <rguenther@suse.de>
8542
8543         * tree-ssa-structalias.c (get_constraint_for_1): Generate
8544         constraints for CONSTRUCTOR.
8545
8546 2010-04-30  Richard Guenther  <rguenther@suse.de>
8547
8548         PR lto/43946
8549         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8550         first after all lowering passes.
8551
8552 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
8553
8554         * toplev.c: Include varray.h for statistics dumping.
8555         * tree.h: Do not declare varray_head_tag.
8556         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8557         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8558         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8559         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8560         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8561         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8562         c-common.c, c-common.h, reg-stack.c, basic-block.h,
8563         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8564         include varray.h.
8565         * Makefile.in: Update for abovementioned changes.
8566
8567 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
8568
8569         PR debug/43942
8570         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8571
8572 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8573
8574         * config/picochip/picochip.c (picochip_legitimize_address): Define.
8575         Use this function to do machine-specific conversion.
8576         (picochip_legitimize_reload_address): Likewise.
8577         (picochip_legitimate_address_p): Check valid base register only if
8578         strict.
8579         (picochip_check_conditional_copy): Check for modw only if opnd is
8580         register.
8581         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8582         to call the function in c.
8583         * config/picochip/picochip-protos.h
8584         (picochip_legitimize_reload_address): Define.
8585         * config/picochip/picochip.md (supported_compare1): Define.
8586
8587 2010-04-30  Jan Hubicka  <jh@suse.cz>
8588
8589         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8590         (cgraph_global_info): Remove inlined.
8591         (LTO_cgraph_tag_names): Remove.
8592         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8593         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8594         simplify cgraph tags and document.
8595         (lto_output_node): Use only LTO_cgraph_unavail_node and
8596         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8597         for_functions_valid, global info, process and output flags.
8598         (input_overwrite_node): Initialize estimated stack size and
8599         estimated growth.  Do not read flags we no longer store.
8600         (input_node): Likewise do not read info no longer stored.
8601         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8602         flag.
8603
8604 2010-04-30  Richard Guenther  <rguenther@suse.de>
8605
8606         PR tree-optimization/43879
8607         * tree-ssa-structalias.c (get_constraint_for_1): Properly
8608         handle non-zero initializers.
8609
8610 2010-04-30  Richard Guenther  <rguenther@suse.de>
8611
8612         * builtins.c (fold_builtin_1): Delete free (0).
8613
8614 2010-04-29  Jan Hubicka  <jh@suse.cz>
8615
8616         * gengtype.c (open_base_files): Add lto-streamer.h
8617         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8618         (pass_ipa_cp): GGC collect.
8619         * toplev. (compile_file): Do not output symbols.
8620         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8621         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8622         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8623         * lto-section-in.c: Include ggc.h
8624         (lto_new_in_decl_state): Alloc in GGC.
8625         (lto_delete_in_decl_state): Likewise.
8626         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8627         Collect.
8628
8629 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
8630
8631         PR target/42895
8632         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8633         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
8634         (HONOR_REG_ALLOC_ORDER): Describe new macro.
8635         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8636         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8637         account only if HONOR_REG_ALLOC_ORDER is not defined.
8638         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8639         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8640
8641 2010-04-29  Jon Grant  <04@jguk.org>
8642
8643         * collect2.c (vflag): Change type from int to bool.
8644         (debug): Likewise.
8645         (helpflag): New global bool.
8646         (main): Set vflag and debug with boolean, not integer truth values.
8647         Accept new "--help" option and output usage text if found.
8648         * collect2.h (vflag): Update prototype.
8649         (debug): Likewise.
8650
8651 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8652
8653         PR bootstrap/43936
8654         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8655
8656 2010-04-29  Richard Guenther  <rguenther@suse.de>
8657
8658         PR bootstrap/43935
8659         * plugin.h (invoke_plugin_callbacks): Annotate arguments
8660         with ATTRIBUTE_UNUSED.
8661
8662 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8663
8664         PR target/43921
8665         * config/i386/i386.c (get_some_local_dynamic_name): Replace
8666         INSN_P with NONDEBUG_INSN_P.
8667         (distance_non_agu_define): Likewise.
8668         (distance_agu_use): Likewise.
8669
8670 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
8671
8672         From Dominique d'Humieres <dominiq@lps.ens.fr>
8673         PR bootstrap/43858
8674         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8675         test_set.
8676
8677 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
8678
8679         * plugin.h (invoke_plugin_callbacks): New inline function.
8680         * plugin.c (flag_plugin_added): New global flag.
8681         (add_new_plugin): Initialize above flag.
8682         (invoke_plugin_callbacks): Rename to ...
8683         (invoke_plugin_callbacks_full): ... this.
8684
8685 2010-04-28  Jan Hubicka  <jh@suse.cz>
8686
8687         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8688         (lto_varpool_replace_node): New.
8689         (lto_symtab_resolve_symbols): Resolve varpool nodes.
8690         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8691         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8692         * cgraph.h (varpool_node_ptr): New type.
8693         (varpool_node_ptr): New vector.
8694         (varpool_node_set_def): New structure.
8695         (varpool_node_set): New type.
8696         (varpool_node_set): New vector.
8697         (varpool_node_set_element_def): New structure.
8698         (varpool_node_set_element, const_varpool_node_set_element): New types.
8699         (varpool_node_set_iterator): New type.
8700         (varpool_node): Add prev pointers, add used_from_other_partition,
8701         in_other_partition.
8702         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8703         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8704         varpool_get_node, varpool_remove_node): Declare.
8705         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8706         varpool_node_set_size): New inlines.
8707         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8708         * tree-pass.h (varpool_node_set_def): Forward declare.
8709         (ipa_opt_pass_d): Summary writting takes vnode sets too.
8710         (ipa_write_optimization_summaries): Update prototype.
8711         * ipa-cp.c (ipcp_write_summary): Update.
8712         * ipa-reference.c (ipa_reference_write_summary): Update.
8713         * lto-cgraph.c (lto_output_varpool_node): New static function.
8714         (output_varpool): New function.
8715         (input_varpool_node): New static function.
8716         (input_varpool_1): New function.
8717         (input_cgraph): Input varpool.
8718         * ipa-pure-const.c (pure_const_write_summary): Update.
8719         * lto-streamer-out.c (lto_output): Update, output varpool too.
8720         (write_global_stream): Kill WPA hack.
8721         (produce_asm_for_decls): Update.
8722         (output_alias_pair_p): Handle variables.
8723         (output_unreferenced_globals): Output only needed partition of varpool.
8724         * ipa-inline.c (inline_write_summary): Update.
8725         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8726         cgraph.
8727         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8728         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8729         varpool_node_set_new, varpool_node_set_add,
8730         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8731         debug_varpool_node_set): New functions.
8732         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8733         (execute_one_pass): Process new decls too.
8734         (ipa_write_summaries_2): Pass around vsets.
8735         (ipa_write_summaries_1): Likewise.
8736         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8737         to add.
8738         (ipa_write_optimization_summaries_1): Pass around vsets.
8739         (ipa_write_optimization_summaries): Likewise.
8740         * varpool.c (varpool_get_node): New.
8741         (varpool_node): Update doubly linked lists.
8742         (varpool_remove_node): New.
8743         (dump_varpool_node): More dumping.
8744         (varpool_enqueue_needed_node): Update doubly linked lists.
8745         (decide_is_variable_needed): Kill ltrans hack.
8746         (varpool_finalize_decl): Kill lto hack.
8747         (varpool_assemble_decl): Skip decls in other partitions.
8748         (varpool_assemble_pending_decls): Update doubly linkes lists.
8749         (varpool_empty_needed_queue): Likewise.
8750         (varpool_extra_name_alias): Likewise.
8751         * lto-streamer.c (lto_get_section_name): Add vars section.
8752         * lto-streamer.h (lto_section_type): Update.
8753         (output_varpool, input_varpool): Declare.
8754
8755 2010-04-28  Mike Stump  <mikestump@comcast.net>
8756
8757         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8758
8759 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8760
8761         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8762         record or union type with RECORD_OR_UNION_TYPE_P predicate.
8763         (lto_input_ts_type_tree_pointers): Likewise.
8764         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8765         (lto_output_ts_type_tree_pointers): Likewise.
8766
8767 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8768
8769         Uniquization of constants at the Tree level
8770         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8771         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8772         bit to the end.
8773         (tree_output_constant_def): Declare.
8774         * gimplify.c (gimplify_init_constructor): When using block copy, first
8775         uniquize the constant constructor on the RHS.
8776         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8777         DECL_IN_CONSTANT_POOL flag.
8778         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8779         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8780         constant pool.
8781         (assemble_variable): Deal with symbols belonging to the tree constant
8782         pool.
8783         (get_constant_section): Add ALIGN parameter and simplify.
8784         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8785         (assemble_constant_contents): Use the expression of the VAR_DECL.
8786         (output_constant_def_contents): Use the alignment of the VAR_DECL.
8787         (tree_output_constant_def): New global function.
8788         (mark_constant): Use the expression of the VAR_DECL.
8789         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8790         its expression.
8791         (output_object_block): Likewise and assemble the expression.
8792
8793 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8794
8795         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8796         hash_tree, eq_tree): New tree hash table.
8797         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8798         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8799         lto_orig_address_remove): Reimplement.
8800
8801 2010-04-28  Xinliang David Li  <davidxl@google.com>
8802
8803         PR c/42643
8804         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8805         (compute_uninit_opnds_pos): New function.
8806         (is_non_loop_exit_postdominating): New function.
8807         (compute_control_dep_chain): New function.
8808         (find_pdom): New function.
8809         (convert_control_dep_chain_into_preds): New function.
8810         (find_predicates): New function.
8811         (find_control_equiv_block): New function.
8812         (collect_phi_def_edges): New function.
8813         (find_def_preds): New function.
8814         (find_dom): New function.
8815         (dump_predicates): New function.
8816         (get_cmp_code): New function.
8817         (is_value_included_in): New function.
8818         (find_matching_predicate_in_rest_chains): New function.
8819         (use_pred_not_overlap_with_undef_path_pred): New function.
8820         (is_use_properly_guarded): New function.
8821         (normalize_cond_1): New function.
8822         (is_and_or_or): New function.
8823         (normalize_cond): New function.
8824         (is_gcond_subset_of): New function.
8825         (is_subset_of_any): New function.
8826         (is_or_set_subset_of): New function.
8827         (is_and_set_subset_of): New function.
8828         (is_norm_cond_subset_of): New function.
8829         (is_pred_expr_subset_of): New function.
8830         (is_pred_chain_subset_of): New function.
8831         (is_included_in): New function.
8832         (is_superset_of): New function.
8833         (find_uninit_use): New function.
8834         (warn_uninitialized_phi): New function.
8835         (compute_possibly_undefined_names): New function.
8836         (ssa_undefined_value_p): New function.
8837         (execute_late_warn_uninitialized): New function.
8838         * tree-ssa.c (ssa_undefined_value_p): Removed.
8839         (warn_uninit): Changed to extern.
8840         (warn_uninitialized_phi): Removed.
8841         (warn_uninitialized_vars): Changed to extern.
8842         (execute_late_warn_uninitialized): Removed
8843         * tree-flow.h: Add new prototypes.
8844         * timevar.def: Add new time variable.
8845         * Makefile.in: Add new build file.
8846
8847 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
8848
8849         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8850         type if available.
8851
8852 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8853
8854         PR target/22224
8855         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8856
8857 2010-04-28  Martin Jambor  <mjambor@suse.cz>
8858
8859         * cgraph.h (struct cgraph_node): New field indirect_calls.
8860         (struct cgraph_indirect_call_info): New type.
8861         (struct cgraph_edge): Removed field indirect_call. New fields
8862         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8863         (cgraph_create_indirect_edge): Declare.
8864         (cgraph_make_edge_direct): Likewise.
8865         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8866         * ipa-prop.h (struct ipa_param_call_note): Removed.
8867         (struct ipa_node_params): Removed field param_calls.
8868         (ipa_create_all_structures_for_iinln): Declare.
8869         * cgraph.c: Described indirect edges and uids in initial comment.
8870         (cgraph_add_edge_to_call_site_hash): New function.
8871         (cgraph_edge): Search also among the indirect edges, use
8872         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8873         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8874         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8875         site hash.
8876         (initialize_inline_failed): Assign a reason to indirect edges.
8877         (cgraph_create_edge_1): New function.
8878         (cgraph_create_edge): Moved some functionality to
8879         cgraph_create_edge_1.
8880         (cgraph_create_indirect_edge): New function.
8881         (cgraph_edge_remove_callee): Add an assert checking for
8882         non-indirectness.
8883         (cgraph_edge_remove_caller): Special-case indirect edges.
8884         (cgraph_remove_edge): Likewise.
8885         (cgraph_set_edge_callee): New function.
8886         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8887         (cgraph_make_edge_direct): New function.
8888         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8889         the declaration of the call statement matches.
8890         (cgraph_node_remove_callees): Special-case indirect edges.
8891         (cgraph_clone_edge): Likewise.
8892         (cgraph_clone_node): Clone also the indirect edges.
8893         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8894         indirect_call, dump count of indirect_calls edges.
8895         * ipa-prop.c (iinlining_processed_edges): New variable.
8896         (ipa_note_param_call): Create indirect edges instead of
8897         creating notes.  New parameter node.
8898         (ipa_analyze_call_uses): New parameter node, pass it on to
8899         ipa_note_param_call.
8900         (ipa_analyze_stmt_uses): Likewise.
8901         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8902         (print_edge_addition_message): Work on edges rather than on notes.
8903         (update_call_notes_after_inlining): Likewise, renamed to
8904         update_indirect_edges_after_inlining.
8905         (ipa_create_all_structures_for_iinln): New function.
8906         (ipa_free_node_params_substructures): Do not free notes.
8907         (ipa_edge_duplication_hook): Propagate bits within
8908         iinlining_processed_edges bitmap.
8909         (ipa_node_duplication_hook): Do not duplicate notes.
8910         (free_all_ipa_structures_after_ipa_cp): Renamed to
8911         ipa_free_all_structures_after_ipa_cp.
8912         (free_all_ipa_structures_after_iinln): Renamed to
8913         ipa_free_all_structures_after_iinln.
8914         (ipa_write_param_call_note): Removed.
8915         (ipa_read_param_call_note): Removed.
8916         (ipa_write_indirect_edge_info): New function.
8917         (ipa_read_indirect_edge_info): Likewise.
8918         (ipa_write_node_info): Do not stream notes, do stream information
8919         in indirect edges.
8920         (ipa_read_node_info): Likewise.
8921         (lto_ipa_fixup_call_notes): Removed.
8922         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8923         * ipa-inline.c (pass_ipa_inline): Likewise.
8924         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8925         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8926         * tree-inline.c (copy_bb): Removed an unnecessary double check for
8927         is_gimple_call.
8928         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8929         edges.
8930         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8931         (output_cgraph): Stream also indirect edges.
8932         (lto_output_edge): Added capability to stream indirect edges.
8933         (input_edge): Likewise.
8934         (input_cgraph_1): Likewise.
8935         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8936         of indirect edges.
8937
8938 2010-04-28  Richard Guenther  <rguenther@suse.de>
8939
8940         PR tree-optimization/43879
8941         PR tree-optimization/43909
8942         * tree-ssa-structalias.c (struct variable_info): Add
8943         only_restrict_pointers flag.
8944         (new_var_info): Initialize it.  Increment stats.total_vars here.
8945         (create_function_info_for): Do not increment stats.total_vars here.
8946         (get_function_part_constraint): Fix build with C++.
8947         (insert_into_field_list): Remove.
8948         (push_fields_onto_fieldstack): Properly merge fields.
8949         (create_variable_info_for): Split and simplify.
8950         (create_variable_info_for_1): New piece.
8951         (intra_create_variable_infos): Properly make restrict constraints
8952         from parameters.
8953
8954 2010-04-28  Richard Guenther  <rguenther@suse.de>
8955
8956         PR c++/43880
8957         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8958
8959 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8960             Jan Hubicka <hubicka@ucw.cz>
8961
8962         * doc/invoke.texi (-Wsuggest-attribute=const,
8963         -Wsuggest-attribute=pure): Document.
8964         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8965         (function_always_visible_to_compiler_p,
8966         suggest_attribute, warn_function_pure, warn_function_const):
8967         New functions.
8968         (check_call): Improve debug info.
8969         (analyze_function): Do not check availability.
8970         (add_new_function): Check availability.
8971         (propagate): Output warnings.
8972         (skip_function_for_local_pure_const): New function.
8973         (local_pure_const): Use it; output warnings.
8974         * common.opt (Wsuggest-attribute=const,
8975         Wsuggest-attribute=pure): New.
8976
8977 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
8978
8979         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8980         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8981         or DW_CFA_def_cfa_offset{,_sf}.
8982
8983 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8984
8985         * tree.h: Fix truncated long macros.
8986
8987 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
8988
8989         * collect2.c (TARGET_64BIT): Redefine to target's default.
8990         * tlink.c: Likewise.
8991         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8992         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8993         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8994         for underscoring __USER_LABEL_PREFIX__.
8995         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8996         (SUB_LINK_ENTRY32): New.
8997         (SUB_LINK_ENTRY64): New.
8998         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8999         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
9000         (SUB_LINK_ENTRY64): New.
9001         (SUB_LINK_ENTRY): New.
9002         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
9003         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
9004         x64 target is choosen.
9005         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
9006         * configure: Regenerated.
9007         * configure.ac (leading-mingw64-underscores): Option added.
9008
9009 2010-04-27  Jan Hubicka  <jh@suse.cz>
9010
9011         * doc/invoke.texi (-fipa-profile): Document.
9012         * opts.c (decode_options): Enable ipa-profile at -O1.
9013         * timevar.def (TV_IPA_PROFILE): Define.
9014         * common.opt (fipa-profile): Add.
9015         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
9016         flag for clones.
9017         (cgraph_propagate_frequency): Handle only local ones.
9018         * tree-pass.h (pass_ipa_profile): Declare.
9019         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
9020         (pass_ipa_profile): Use TV_IPA_PROFILE.
9021         * ipa.c (ipa_profile): New function.
9022         (gate_ipa_profile): Likewise.
9023         (pass_ipa_profile): New global variable.
9024         * passes.c (pass_ipa_profile): New.
9025
9026 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
9027
9028         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
9029
9030 2010-04-27  Martin Jambor  <mjambor@suse.cz>
9031
9032         PR middle-end/43812
9033         * ipa.c (dissolve_same_comdat_group_list): New function.
9034         (function_and_variable_visibility): Call
9035         dissolve_same_comdat_group_list when comdat group contains external or
9036         newly local nodes.
9037         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
9038         lists are circular and that they contain only DECL_ONE_ONLY nodes.
9039
9040 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9041
9042         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
9043         (const_hash_1) <VECTOR_CST>: New case.
9044         (compare_constant) <VECTOR_CST>: Likewise.
9045         <ADDR_EXPR>: Deal with LABEL_REFs.
9046         (copy_constant) <VECTOR_CST>: New case.
9047
9048 2010-04-27  Jan Hubicka  <jh@suse.cz>
9049
9050         * cgraph.c (cgraph_propagate_frequency): New function.
9051         * cgraph.h (cgraph_propagate_frequency): Declare.
9052         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
9053         cgraph_propagate_frequency.
9054
9055 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
9056
9057         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
9058
9059 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
9060
9061         PR target/40657
9062         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
9063         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
9064         here to determine which regs to push and how much stack to reserve.
9065
9066 2010-04-27  Jie Zhang  <jie@codesourcery.com>
9067
9068         * doc/gimple.texi (gimple_statement_with_ops): Remove
9069         addresses_taken field.
9070         (gimple_statement_with_memory_ops): Likewise.
9071
9072 2010-04-27  Jan Hubicka  <jh@suse.cz>
9073
9074         * tree-inline.c (eni_inlining_weights): Remove.
9075         (estimate_num_insns): Special case more builtins.
9076
9077 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
9078
9079         PR c/32207
9080         * c-typeck.c (build_binary_op): Move forward check for comparison
9081         pointer with null pointer constant and adjust the diagnostic message.
9082
9083 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
9084
9085         PR lto/42776
9086         * configure.ac (gcc_cv_as_section_has_align): Set if installed
9087         binutils supports extended .section directive needed by LTO, or
9088         warn if older binutils found.
9089         (LTO_BINARY_READER): New AC_SUBST'd variable.
9090         (LTO_USE_LIBELF): Likewise.
9091         * gcc/config.gcc (lto_binary_reader): New target-specific configure
9092         variable.
9093         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
9094         (LTO_USE_LIBELF): Likewise.
9095         * configure: Regenerate.
9096
9097         * collect2.c (is_elf): Rename from this ...
9098         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
9099          object files in addition to ELF-formatted ones.
9100         (scan_prog_file): Caller updated.  Also allow for LTO info marker
9101         symbol to be prefixed or not by an extra underscore.
9102
9103         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
9104         * config/i386/winnt.c: Also #include lto-streamer.h
9105         (i386_pe_asm_named_section): Specify 1-byte section alignment for
9106         LTO named sections.
9107         (i386_pe_asm_output_aligned_decl_common): Add comment.
9108         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
9109
9110 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
9111
9112         PR target/43889
9113         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
9114         Add missing earlyclobber for second alternative.
9115
9116 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
9117
9118         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
9119         bits for artificial defs at the top of the block.
9120         * fwprop.c (single_def_use_enter_block): Don't call it.
9121
9122 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
9123
9124         PR 43715
9125         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
9126         instead of "$gcc_cv_objdump -T".
9127         Use "-undefined dynamic_lookup" on darwin.
9128         * gcc/configure: Regenerate.
9129
9130 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
9131
9132         PR c/43893
9133         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
9134
9135 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
9136
9137         * c-parser.c (struct c_token): Move location field up.
9138         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
9139         (struct c_declspecs): Convert typespec_word, storage_class, and
9140         default_int_p into bitfields.
9141         (struct c_declarator): Move loc field up.
9142
9143 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
9144
9145         * cfgloop.h (struct loop): Move can_be_parallel field up.
9146         * ipa-prop.h (struct ip_node_params): Move bitfields up.
9147         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
9148         down.
9149         (struct iv_cand): Convert pos field into a bitfield.
9150         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
9151         field up.
9152         (struct _stmt_vec_info): Shuffle fields for better packing.
9153
9154 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
9155
9156         * varasm.c (IN_NAMED_SECTION): Remove guard.
9157         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
9158         (IN_NAMED_SECTION_P): ...this.
9159         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
9160         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9161
9162 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
9163
9164         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
9165         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
9166         of shadowing it.  Fix comments.
9167
9168 2010-04-26  Jan Hubicka  <jh@suse.cz>
9169
9170         * cgraph.c (cgraph_create_node): Set node frequency to normal.
9171         (cgraph_clone_node): Copy function frequency.
9172         * cgraph.h (node_frequency): New enum
9173         (struct cgraph_node): Add.
9174         * final.c (rest_of_clean_state): Update.
9175         * lto-cgraph.c (lto_output_node): Output node frequency.
9176         (input_overwrite_node): Input node frequency.
9177         * tre-ssa-loop-ivopts (computation_cost): Update.
9178         * lto-streamer-out.c (output_function): Do not output function
9179         frequency.
9180         * predict.c (maybe_hot_frequency_p): Update and handle functions
9181         executed once.
9182         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9183         attribute lookup.
9184         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9185         (compute_function_frequency): Set noreturn functions to be executed
9186         once.
9187         (choose_function_section): Update.
9188         * lto-streamer-in.c (input_function): Do not input function frequency.
9189         * function.c (allocate_struct_function): Do not initialize function
9190         frequency.
9191         * function.h (function_frequency): Remove.
9192         (struct function): Remove function frequency.
9193         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9194         (try_update): Update.
9195         * tree-inline.c (initialize_cfun): Do not update function frequency.
9196         * passes.c (pass_init_dump_file): Update.
9197         * i386.c (ix86_compute_frame_layout): Update.
9198         (ix86_pad_returns): Update.
9199
9200 2010-04-26  Jie Zhang  <jie@codesourcery.com>
9201
9202         PR tree-optimization/43833
9203         * tree-vrp.c (range_int_cst_p): New.
9204         (range_int_cst_singleton_p): New.
9205         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9206         when both operands are constants.  Use range_int_cst_p in
9207         BIT_IOR_EXPR case.
9208
9209 2010-04-26  Jan Hubicka  <jh@suse.cz>
9210
9211         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9212
9213 2010-04-26  Richard Guenther  <rguenther@suse.de>
9214
9215         PR lto/43080
9216         * gimple.c (gimple_decl_printable_name): Deal gracefully
9217         with a NULL DECL_NAME.
9218
9219 2010-04-26  Richard Guenther  <rguenther@suse.de>
9220
9221         PR lto/42425
9222         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9223         if emitting debug information and it is either a function
9224         or a namespace decl.
9225
9226 2010-04-26  Ira Rosen  <irar@il.ibm.com>
9227
9228         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9229         determine if the statement is vectorizable, and a macro to access it.
9230         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9231         Skip statements that can't be vectorized. If the analysis fails,
9232         mark the statement as unvectorizable if vectorizing basic block.
9233         (vect_compute_data_refs_alignment): Likewise.
9234         (vect_verify_datarefs_alignment): Skip statements marked as
9235         unvectorizable. Add print.
9236         (vect_analyze_group_access): Skip statements that can't be
9237         vectorized. If the analysis fails, mark the statement as
9238         unvectorizable if vectorizing basic block.
9239         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9240         * tree-vect-stmts.c (vectorizable_store): Fix the number of
9241         generated stmts for SLP.
9242         (new_stmt_vec_info): Initialize the new field.
9243         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9244         statements marked as unvectorizable.
9245
9246 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
9247
9248         * c-common.c (flag_isoc1x): New.
9249         (flag_isoc99): Update comment.
9250         * c-common.h (flag_isoc1x): New.
9251         (flag_isoc99): Update comment.
9252         * c-cppbuiltin.c (builtin_define_float_constants): Also define
9253         __<type>_DECIMAL_DIG__.
9254         * c-opts.c (set_std_c1x): New.
9255         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9256         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9257         * c.opt (-std=c1x, -std=gnu1x): New options.
9258         * doc/cpp.texi: Mention -std=c1x.
9259         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9260         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9261         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9262         * doc/standards.texi: Mention C1X.
9263         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9264         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9265         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9266         Define for C1X.
9267
9268 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
9269
9270         * config/i386/gmon-sol2.c (_mcleanup): Change format string
9271         placeholder from 0x%x to %#x.
9272         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9273         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9274         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9275         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9276         * config/i386/i386.c (ix86_target_string): Ditto.
9277         (output_pic_addr_const): Ditto.
9278         (print_operand): Ditto.
9279
9280 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
9281
9282         * combine.c (find_split_point): Add third argument.  Use it
9283         to find nested multiply-accumulate instructions.  Adjust calls.
9284         (try_combine): Adjust call to find_split_point.
9285
9286 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
9287
9288         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9289
9290 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
9291
9292         PR tree-optimization/41442
9293         * fold-const.c (merge_truthop_with_opposite_arm): New function.
9294         (fold_binary_loc): Call it.
9295
9296 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9297
9298         * toplev.c (general_init): Set default for fdiagnostics-show-option.
9299         * opts.c (common_handle_option): Allow disabling it.
9300         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9301
9302 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
9303
9304         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9305         between modes if both types are integral.
9306
9307 2010-04-23  Richard Guenther  <rguenther@suse.de>
9308
9309         PR tree-optimization/43572
9310         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9311
9312 2010-04-23  Richard Guenther  <rguenther@suse.de>
9313
9314         PR lto/43455
9315         * tree-inline.c (tree_can_inline_p): Also check compatibility
9316         of return types.
9317
9318 2010-04-23  Martin Jambor  <mjambor@suse.cz>
9319
9320         PR tree-optimization/43846
9321         * tree-sra.c (struct access): New flag grp_assignment_read.
9322         (build_accesses_from_assign): Set grp_assignment_read.
9323         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9324         (enum mark_read_status): New type.
9325         (analyze_access_subtree): Propagate grp_assignment_read, create
9326         accesses also if both direct_read and root->grp_assignment_read.
9327
9328 2010-04-23  Martin Jambor  <mjambor@suse.cz>
9329
9330         PR middle-end/43835
9331         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9332         function does not have type attributes.
9333
9334 2010-04-23  Richard Guenther  <rguenther@suse.de>
9335
9336         PR lto/42653
9337         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9338         of FUNCTION_DECLs.
9339
9340 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9341
9342         * sese.h (create_if_region_on_edge): Remove.
9343
9344         * sese.c (create_if_region_on_edge): Make static.
9345
9346         * tree-inline.c: Do not include ggc.h.
9347
9348         * expr.c: Do not include ggc.h.
9349
9350         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9351         dependencies.
9352
9353 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9354
9355         PR target/43744
9356         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9357         in the middle of insns for casesi_worker_2.
9358
9359 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
9360
9361         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9362
9363 2010-04-22  Ira Rosen  <irar@il.ibm.com>
9364
9365         PR tree-optimization/43842
9366         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9367         loop unrolling in update of exit phis. Fix comment.
9368         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9369         least two reduction statements in the loop before starting SLP
9370         analysis.
9371
9372 2010-04-22  Nick Clifton  <nickc@redhat.com>
9373
9374         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9375
9376 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
9377
9378         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9379         to simplify a + ~a.
9380
9381 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9382
9383         * tree-parloops.c (loop_parallel_p): New argument
9384         parloop_obstack.  Pass it down.
9385         (parallelize_loops): New variable parloop_obstack.  Initialize it,
9386         pass it down, free it.
9387
9388         * tree-loop-linear.c (linear_transform_loops): Pass down
9389         lambda_obstack.
9390
9391         * tree-data-ref.h (lambda_compute_access_matrices): New argument
9392         of type struct obstack *.
9393
9394         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9395         scratch_obstack.  Initialize it, pass down, free it.
9396
9397         * lambda.h (lambda_loop_new): Remove.
9398         (lambda_matrix_new, lambda_matrix_inverse)
9399         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9400         argument of type struct obstack *.
9401
9402         * lambda-trans.c (lambda_trans_matrix_new): New argument
9403         lambda_obstack.  Pass it down, use obstack allocation for ret.
9404         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
9405         it down.
9406
9407         * lambda-mat.c (lambda_matrix_get_column)
9408         (lambda_matrix_project_to_null): Remove.
9409         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
9410         allocation for mat.
9411         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9412         lambda_obstack.
9413
9414         * lambda-code.c (lambda_loop_new): New function.
9415         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9416         (lambda_compute_auxillary_space, lambda_compute_target_space)
9417         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9418         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9419         (build_access_matrix): New argument lambda_obstack.  Use obstack
9420         allocation for am.
9421         (lambda_compute_step_signs, lambda_compute_access_matrices): New
9422         argument lambda_obstack.  Pass it down.
9423
9424 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
9425
9426         * optabs.h (expand_widening_mult): Declare.
9427
9428 2010-04-22  Richard Guenther  <rguenther@suse.de>
9429
9430         PR tree-optimization/43845
9431         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9432         lookup the CALL_EXPR function and arguments.
9433
9434 2010-04-22  Nick Clifton  <nickc@redhat.com>
9435
9436         * config/stormy16/stormy16.c
9437         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9438         * config/stormy16/stormy16.h: Tidy up formatting.
9439         (DONT_USE_BUILTIN_SETJMP): Remove definition.
9440         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9441         (ineqbranchsi): Delete pattern.
9442         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9443         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9444         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9445         stormy16-lib2-ucmpsi2.c.
9446
9447 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
9448
9449         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9450         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
9451         extra set merge_set_noclobber, and use it to relax the final test
9452         slightly.
9453         * df.h (df_simulate_find_noclobber_defs): Declare.
9454         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9455         conditional defs.
9456         (df_simulate_find_noclobber_defs): New function.
9457
9458 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
9459
9460         * config/i386/i386.md: Use {} around multi-line preparation statements.
9461
9462 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9463
9464         * c-tree.h (push_init_level, pop_init_level, set_init_index)
9465         (process_init_element): New argument of type struct obstack *.
9466
9467         * c-typeck.c (push_init_level, pop_init_level, set_designator)
9468         (set_init_index, set_init_label, set_nonincremental_init)
9469         (set_nonincremental_init_from_string, find_init_member)
9470         (output_init_element, output_pending_init_elements)
9471         (process_init_element): New argument braced_init_obstack.  Pass it
9472         down.
9473         (push_range_stack, add_pending_init): New argument
9474         braced_init_obstack.  Use obstack allocation.
9475
9476         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9477         braced_init_obstack.  Pass it down.
9478         (c_parser_braced_init): New variables ret, braced_init_obstack.
9479         Initialize obstack, pass it down and finally free it.
9480
9481 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
9482
9483         PR middle-end/29274
9484         * tree-pass.h (pass_optimize_widening_mul): Declare.
9485         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9486         gate_optimize_widening_mul): New static functions.
9487         (pass_optimize_widening_mul): New.
9488         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9489         <case MULT_EXPR>: Remove support for widening multiplies.
9490         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9491         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9492         simplify_gen_unary rather than directly building extensions.
9493         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9494         WIDEN_MULT_EXPR.
9495         * expmed.c (expand_widening_mult): New function.
9496         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9497
9498 2010-04-21  Jan Hubicka  <jh@suse.cz>
9499
9500         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9501         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9502         * lto-wpa-fixup.c: Remove.
9503         * Makefile.in (lto-wpa-fixup.o): Remove.
9504         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9505         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9506         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9507
9508 2010-04-21  Jan Hubicka  <jh@suse.cz>
9509
9510         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9511         add write_optimization_summary, read_optimization_summary.
9512         (ipa_write_summaries_of_cgraph_node_set): Remove.
9513         (ipa_write_optimization_summaries): Declare.
9514         (ipa_read_optimization_summaries): Declare.
9515         * ipa-cp.c (pass_ipa_cp): Update.
9516         * ipa-reference.c (pass_ipa_reference): Update.
9517         * ipa-pure-const.c (pass_ipa_pure_const): Update.
9518         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9519         Update.
9520         * ipa-inline.c (pass_ipa_inline): Update.
9521         * ipa.c (pass_ipa_whole_program): Update.
9522         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9523         * passes.c (ipa_write_summaries_1): Do not test wpa.
9524         (ipa_write_optimization_summaries_1): New.
9525         (ipa_write_optimization_summaries): New.
9526         (ipa_read_summaries): Do not test ltrans.
9527         (ipa_read_optimization_summaries_1): New.
9528         (ipa_read_optimization_summaries): New.
9529
9530 2010-04-21  Jan Hubicka  <jh@suse.cz>
9531
9532         * lto-cgraph.c (lto_output_node): Do not output comdat groups
9533         for boundary nodes.
9534         (output_cgraph): Do not arrange comdat groups for boundary nodes.
9535
9536 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
9537
9538         PR debug/40040
9539         * dwarf2out.c (add_name_and_src_coords_attributes): Add
9540         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9541
9542 2010-04-21  Jan Hubicka  <jh@suse.cz>
9543
9544         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9545
9546 2010-04-21  Jan Hubicka  <jh@suse.cz>
9547
9548         * varpool.c (decide_is_variable_needed): Variable is always needed
9549         during ltrans.
9550
9551 2010-04-21  Jan Hubicka  <jh@suse.cz>
9552
9553         * opts.c (decode_options): Enable pure-const pass for whopr.
9554
9555 2010-04-21  Jan Hubicka  <jh@suse.cz>
9556
9557         * cgraph.c (dump_cgraph_node): Dump also assembler name.
9558         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9559         at WPA dumping.
9560         (cgraph_decide_inlining): Do not expect callee to be removed in all
9561         cases.
9562
9563 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
9564
9565         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9566
9567 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
9568
9569         * config/i386/i386.md (x86_shrd): Add athlon_decode and
9570         amdfam10_decode attributes.
9571
9572 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
9573
9574         PR middle-end/43570
9575         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9576         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9577         (lower_copyprivate_clauses): Use private var in outer
9578         context instead of original var.  Make sure the types
9579         are correct for VLAs.
9580
9581 2010-04-21  Richard Guenther  <rguenther@suse.de>
9582
9583         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9584         to non-pointer objects.
9585
9586 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
9587
9588         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
9589         last chain entry if it starts with the still current label.
9590         (add_location_or_const_value_attribute): Check that
9591         loc_list->first->next is NULL instead of comparing ->first with ->last.
9592         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9593         to add_var_loc_to_decl.
9594
9595         * dwarf2out.c (output_call_frame_info): For dw_cie_version
9596         >= 4 add also address size and segment size fields into CIE header.
9597
9598         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9599         long as address size is the same as sizeof (void *) and
9600         segment size is 0.
9601         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
9602         address size or segment size is unexpected, return DW_EH_PE_omit.
9603         (classify_object_over_fdes): If get_cie_encoding returned
9604         DW_EH_PE_omit, return -1.
9605         (init_object): If classify_object_over_fdes returned -1,
9606         pretend there were no FDEs at all.
9607
9608 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
9609
9610         * config/i386/i386.md (bswap<mode>2): Macroize expander from
9611         bswap{si,di}2 using SWI48 mode iterator.
9612         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9613         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
9614         set modrm attribute of bswap insn to 0 and remove length attribute.
9615         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9616         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
9617         set mode attribute to <MODE> and remove length attribute.
9618
9619 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
9620
9621         PR rtl-optimization/43520
9622         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9623         zero available registers.
9624
9625 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9626
9627         * builtins.c (fold_builtin_cproj): Fold more cases.
9628
9629 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9630
9631         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9632         (fold_builtin_1): Fold builtin cproj.
9633         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9634         Use ATTR_CONST_NOTHROW_LIST.
9635
9636 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
9637
9638         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9639         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
9640         ffsi2_no_cmove for !TARGET_CMOVE.
9641         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
9642         (ffssi2): Remove expander.
9643         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9644         mode iterator.
9645         (ctz<mode>2): Ditto from ctz{si,di}2.
9646         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9647         mode iterator.
9648         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9649         mode iterator.
9650
9651 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
9652
9653         * dwarf2out.c (AT_linkage_name): Define.
9654         (clone_as_declaration): Handle DW_AT_linkage_name.
9655         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9656         of DW_AT_MIPS_linkage_name.
9657         (move_linkage_attr): Likewise.
9658         (dwarf2out_finish): Likewise.
9659
9660 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
9661
9662         PR middle-end/41952
9663         * fold-const.c (fold_comparison): New folding rule.
9664
9665 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
9666
9667         * double-int.h (double_int_setbit): Declare.
9668         * double-int.c (double_int_setbit): New function.
9669         * rtl.h (immed_double_int_const): Declare.
9670         * emit-rtl.c (immed_double_int_const): New function.
9671         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9672         and immed_double_int_const functions.
9673         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9674         expand_copysign_bit):  (Ditto.).
9675         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9676         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9677         * dojump.c (prefer_and_bit_test): (Ditto.).
9678         * expr.c (convert_modes, reduce_to_bit_field_precision,
9679         const_vector_from_tree): (Ditto.).
9680         * expmed.c (mask_rtx, lshift_value): (Ditto.).
9681
9682 2010-04-20  Jan Hubicka  <jh@suse.cz>
9683
9684         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9685         (dump_cgraph_node): Dump new flags.
9686         * cgraph.h (struct cgraph_node): Add flags
9687         reachable_from_other_partition and in_other_partition.
9688         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9689         other partition can not be removed.
9690         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9691         the other partition must be output; silence sanity checking on
9692         leaking functions bodies from other paritition.
9693         * lto-cgraph.c (reachable_from_other_partition_p): New function.
9694         (lto_output_node): Output new flags; do not sanity check that inline
9695         clones are output; drop lto_forced_extern_inline_p code; do not mock
9696         visibility flags at partition boundaries.
9697         (add_node_to): New function.
9698         (output_cgraph): Use it to sort functions so masters appear before
9699         clones.
9700         (input_overwrite_node): Input new flags.
9701         * passes.c (ipa_write_summaries): Do not call
9702         lto_new_extern_inline_states.
9703         * lto-section-out.c (forced_extern_inline,
9704         lto_new_extern_inline_states lto_delete_extern_inline_states,
9705         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9706         * lto-streamer.h (lto_new_extern_inline_states,
9707         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9708         lto_forced_extern_inline_p): Kill.
9709
9710 2010-04-20  Richard Guenther  <rguenther@suse.de>
9711
9712         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9713         from vars that can have pointers.
9714         (process_constraint): Dump useless constraints.
9715
9716 2010-04-20  Richard Guenther  <rguenther@suse.de>
9717
9718         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9719         (dump_sa_points_to_info): Remove asserts.
9720         (init_base_vars): nothing_id isn't an escape point nor does it
9721         have pointers.
9722
9723 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
9724
9725         * tree.h (TYPE_REF_IS_RVALUE): Define.
9726         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9727         should_move_die_to_comdat, prune_unused_types_walk): Handle
9728         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9729         (modified_type_die, gen_reference_type_die): Emit
9730         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9731         if TYPE_REF_IS_RVALUE and -gdwarf-4.
9732
9733 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9734
9735         PR target/43635
9736         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9737         calls for -fpic -m31 if they have been sibcall optimized.
9738
9739 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
9740
9741         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9742         ar.lc fixed and call-used.
9743
9744         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9745
9746 2010-04-19  Jan Hubicka  <jh@suse.cz>
9747
9748         * opts.c (decode_options): Disable whpr incompatible passes.
9749         * lto/lto.c (lto_1_to_1_map): Skip clones.
9750         (read_cgraph_and_symbols): Do not mark everything as needed.
9751         (do_whole_program_analysis): Do map only after optimizing;
9752         set proper cgraph_state; use passmanager.
9753
9754 2010-04-19  DJ Delorie  <dj@redhat.com>
9755
9756         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9757         POINTER_PLUS_EXPR and fix them.
9758
9759 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
9760
9761         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9762         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9763         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9764         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9765         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9766         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9767         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9768         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9769         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9770         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9771         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9772
9773 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9774
9775         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9776         (check_cond_move_block): Likewise.
9777         (cond_move_process_if_block): Likewise.
9778         (noce_find_if_block): Improve formatting.
9779         (find_if_header): Pass 0 to memset and tweak conditions.
9780         (cond_exec_find_if_block): Fix long lines and tweak conditions.
9781
9782 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
9783
9784         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9785         for -gdwarf-4.
9786
9787         PR middle-end/43337
9788         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9789         with non-local decl doesn't need chain.
9790
9791 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
9792
9793         * ira-color.c (allocno_reload_assign): Avoid accumulating
9794         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9795
9796 2010-04-19  Martin Jambor  <mjambor@suse.cz>
9797
9798         * gimple.h (create_tmp_reg): Declare.
9799         * gimplify.c (create_tmp_reg): New function.
9800         (gimplify_return_expr): Use create_tmp_reg.
9801         (gimplify_omp_atomic): Likewise.
9802         (gimple_regimplify_operands): Likewise.
9803         * tree-dfa.c (make_rename_temp): Likewise.
9804         * tree-predcom.c (predcom_tmp_var): Likewise.
9805         (reassociate_to_the_same_stmt): Likewise.
9806         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9807         (get_replaced_param_substitute): Likewise.
9808         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9809         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9810         * tree-ssa-pre.c (get_representative_for): Likewise.
9811         (create_expression_by_pieces): Likewise.
9812         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9813         (create_tailcall_accumulator): Likewise.
9814
9815 2010-04-19  Martin Jambor  <mjambor@suse.cz>
9816
9817         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9818         new_stmt.
9819         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9820
9821 2010-04-19  Richard Guenther  <rguenther@suse.de>
9822
9823         PR tree-optimization/43796
9824         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9825         from SCEV in the lattice.
9826         (vrp_visit_phi_node): Dump change.
9827
9828 2010-04-19  Richard Guenther  <rguenther@suse.de>
9829
9830         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9831         * configure: Re-generated.
9832
9833 2010-04-19  Richard Guenther  <rguenther@suse.de>
9834
9835         PR tree-optimization/43783
9836         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9837         constant ARRAY_REF operands two and three if possible.
9838
9839 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
9840
9841         PR target/43766
9842         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9843
9844 2010-04-19  Jie Zhang  <jie@codesourcery.com>
9845
9846         PR target/43662
9847         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9848
9849 2010-04-19  Ira Rosen  <irar@il.ibm.com>
9850
9851         PR tree-optimization/37027
9852         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9853         and macro to access it.
9854         (vectorizable_reduction): Add argument.
9855         (vect_get_slp_defs): Likewise.
9856         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9857         statements for possible use in SLP.
9858         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9859         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9860         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9861         add new argument.
9862         (vectorizable_reduction): Likewise.
9863         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9864         vect_get_slp_defs.
9865         (vectorizable_type_demotion, vectorizable_type_promotion,
9866         vectorizable_store): Likewise.
9867         (vect_analyze_stmt): Update call to vectorizable_reduction.
9868         (vect_transform_stmt): Likewise.
9869         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9870         (vect_build_slp_tree): Fix indentation. Check that there are no loads
9871         from different interleaving chains in same node.
9872         (vect_slp_rearrange_stmts): New function.
9873         (vect_supported_load_permutation_p): Allow load permutations for
9874         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9875         inside SLP nodes if necessary.
9876         (vect_analyze_slp_instance): Handle reductions.
9877         (vect_analyze_slp): Try to build SLP instances originating from groups
9878         of reductions.
9879         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9880         (vect_get_constant_vectors): Create initial vectors for reductions
9881         according to reduction code. Add new argument.
9882         (vect_get_slp_defs): Add new argument, pass it to
9883         vect_get_constant_vectors.
9884         (vect_schedule_slp_instance): Remove SLP tree root statements.
9885
9886 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
9887
9888         * tree.h (ENUM_IS_SCOPED): Define.
9889         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9890         for ENUM_IS_SCOPED enums.
9891
9892 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9893
9894         * fold-const.c (fold_comparison): Use ssizetype.
9895         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9896         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9897         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9898         * tree-object-size.c (compute_object_sizes): Use size_type_node.
9899
9900         * tree.h (initialize_sizetypes): Remove parameter.
9901         (build_common_tree_nodes): Remove second parameter.
9902         * stor-layout.c (initialize_sizetypes): Remove parameter.
9903         Always create an unsigned type.
9904         (set_sizetype): Assert that the passed type is unsigned and simplify.
9905         * tree.c (build_common_tree_nodes): Remove second parameter.
9906         Adjust call to initialize_sizetypes.
9907         * c-decl.c (c_init_decl_processing): Remove second argument in call to
9908         build_common_tree_nodes.
9909
9910 2010-04-18  Matthias Klose  <doko@ubuntu.com>
9911
9912         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9913
9914 2010-04-18  Ira Rosen  <irar@il.ibm.com>
9915
9916         PR tree-optimization/43771
9917         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9918         load permutation doesn't have gaps.
9919
9920 2010-04-18  Jan Hubicka  <jh@suse.cz>
9921
9922         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9923         (sse_prologue_save_insn expander): Use new pattern.
9924         (sse_prologue_save_insn1): New pattern and splitter.
9925         (sse_prologue_save_insn): Update to deal also with 64bit aligned
9926         blocks.
9927         * i386.c (setup_incoming_varargs_64): Do not compute jump
9928         destination here.
9929         (ix86_gimplify_va_arg): Update alignment needed.
9930         (ix86_local_alignment): Do not align all local arrays to 128bit.
9931
9932 2010-04-17  Jan Hubicka  <jh@suse.cz>
9933
9934         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9935
9936 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
9937
9938         * arm.md (negdi2): Remove redundant code to force values into a
9939         register.
9940
9941 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
9942
9943         * arm/bpabi.S: Add EABI alignment attributes to objects.
9944         * arm/bpabi-v6m.S: Likewise.
9945         * arm/crti.asm: Likewise.
9946         * arm/crtn.asm: Likewise.
9947         * arm/lib1funcs.asm: Likewise.
9948         * arm/libunwind.S: Likewise.
9949
9950 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
9951
9952         * arm-protos.h (tune_params): New structure.
9953         * arm.c (current_tune): New variable.
9954         (arm_constant_limit): Delete.
9955         (struct processors): Add pointer to the tune parameters.
9956         (arm_slowmul_tune): New tuning option.
9957         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9958         (all_cores): Adjust to pick up the tuning model.
9959         (arm_constant_limit): New function.
9960         (arm_override_options): Select the appropriate tuning model.  Delete
9961         initialization of arm_const_limit.
9962         (arm_split_constant): Use the new constant-limit model.
9963         (arm_rtx_costs): Pick up the current tuning model.
9964         * arm.md (is_strongarm, is_xscale): Delete.
9965         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9966         for Xscale variant architectures.
9967         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9968
9969 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9970
9971         * config/arm/arm.c (arm_gen_constant): Remove unused variable
9972         can_shift.
9973         (arm_rtx_costs_1): Remove unused variable extra_cost.
9974         (arm_unwind_emit_set): Use variable offset.
9975         (thumb1_output_casesi): Remove unused variable flags.
9976
9977 2010-04-16  Jeff Law  <law@redhat.com>
9978
9979         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9980         needing assignment rather than doing a two-phase assignment.  Remove
9981         unused variable 'm'.
9982
9983 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
9984
9985         PR bootstrap/43767
9986         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9987
9988 2010-04-16  Doug Kwan  <dougkwan@google.com>
9989
9990         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9991         (next_operand_entry_id): New static variable.
9992         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9993         (add_to_ops_vec): Assigned unique ID to operand entry.
9994         (struct oecount_s): New field ID.
9995         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9996         (undistribute_ops_list): Assign unique IDs to oecounts.
9997         (init_reassoc): reset next_operand_entry_id.
9998
9999 2010-04-16  Doug Kwan  <dougkwan@google.com>
10000
10001         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
10002         missing left parenthesis.
10003
10004 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
10005
10006         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
10007         *btdi_rex64 using SWI48 mode iterator.
10008         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
10009         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
10010         *jcc_btdi_mask_rex64.
10011
10012 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
10013
10014         * double-int.h (tree_to_double_int): Convert to macro.
10015         * double-int.c (tree_to_double_int): Remove.
10016
10017 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
10018
10019         PR debug/43762
10020         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
10021         with want_address 2 and in case a single element list might be
10022         possible, call it again with want_address 0.
10023
10024 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10025
10026         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
10027         case 'W' print operands for HI mode.
10028         * config/h8300/h8300.h (Y0, Y2) : New constraints.
10029         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
10030         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
10031         * config/h8300/predicate.md (bit_register_indirect_operand): New.
10032
10033         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
10034
10035         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
10036         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
10037         #xx:3 and #xx:4 mode.
10038
10039         * config/h8300/h8300.md (inverted load with HImode dest): Add
10040         support for H8300SX.
10041
10042         * config/h8300/predicate.md (bit_operand): Allow immediate values that
10043         satisfy 'U' constraint.
10044
10045 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10046
10047         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
10048         * configure: Regenerate.
10049         * config.in: Regenerate.
10050         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
10051         works.
10052
10053 2010-04-16  Richard Guenther  <rguenther@suse.de>
10054
10055         * tree.h (struct tree_decl_minimal): Move pt_uid ...
10056         (struct tree_decl_common): ... here.
10057         (DECL_PT_UID): Adjust.
10058         (SET_DECL_PT_UID): Likewise.
10059         (DECL_PT_UID_SET_P): Likewise.
10060
10061 2010-04-16  Richard Guenther  <rguenther@suse.de>
10062
10063         PR tree-optimization/43572
10064         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
10065         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
10066         * tree-flow.h (is_call_clobbered): Remove.
10067         * tree-flow-inline.h (is_call_clobbered): Likewise.
10068         * tree-dfa.c (dump_variable): Do not dump call clobber state.
10069         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
10070         (execute_return_slot_opt): Adjust.
10071         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
10072         check for call clobbered vars here.
10073         (find_tail_calls): Move tailcall verification to the
10074         proper place.
10075
10076 2010-04-16  Diego Novillo  <dnovillo@google.com>
10077
10078         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
10079
10080 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
10081
10082         PR target/40603
10083         * config/arm/arm.md (cbranchqi4): New pattern.
10084         * config/arm/predicates.md (const0_operand,
10085         cbranchqi4_comparison_operator): New predicates.
10086
10087 2010-04-16  Richard Guenther  <rguenther@suse.de>
10088
10089         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
10090         (dump_gimple_stmt): Likewise.
10091
10092 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
10093
10094         * recog.h (struct recog_data): New field is_operator.
10095         (struct insn_operand_data): New field is_operator.
10096         * recog.c (extract_insn): Set recog_data.is_operator.
10097         * genoutput.c (output_operand_data): Emit code to set the
10098         is_operator field.
10099         * reload.c (find_reloads): Use it rather than testing for an
10100         empty constraint string.
10101
10102         PR target/41514
10103         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
10104         If the previous insn is a cbranchsi4_insn with the same arguments,
10105         omit the compare instruction.
10106
10107         * config/arm/arm.md (addsi3_cbranch): If destination is a high
10108         register, inputs must be low registers and we need a low register
10109         scratch.  Handle alternative 2 like alternative 3.
10110
10111 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
10112
10113         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
10114         don't call get_addr on both.  If one expression is a VALUE and
10115         the other a REG, check VALUE's locs if the REG isn't among them.
10116
10117 2010-04-16  Christian Bruel  <christian.bruel@st.com>
10118
10119         * config/sh/sh.h (sh_frame_pointer_required): New function.
10120         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
10121         (flag_omit_frame_pointer) Set.
10122         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
10123         (rounded_frame_size): Adjust size with outgoing_args_size.
10124         (sh_set_return_address): Must return from stack pointer.
10125         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
10126         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
10127         (ACCUMULATE_OUTGOING_ARGS): Define.
10128         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
10129         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
10130
10131 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
10132
10133         PR target/43471
10134         * config/sh/sh.c (sh_legitimize_reload_address): Use
10135         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
10136         Remove a unneeded check for offset_base.
10137
10138 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
10139
10140         * configure: Regenerated.
10141
10142 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10143
10144         * config/s390/s390.c (s390_call_save_register_used): Switch back
10145         to HARD_REGNO_NREGS.
10146
10147 2010-04-15  Richard Guenther  <rguenther@suse.de>
10148
10149         * alias.c (alias_set_subset_of): Handle alias-set zero
10150         child properly.
10151
10152 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
10153             Julian Brown  <julian@codesourcery.com>
10154
10155         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
10156         alternatives according to use of high and low regs.
10157         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10158         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
10159         optimizing for size on Thumb-2.
10160
10161 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
10162
10163         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
10164
10165 2010-04-15  Richard Guenther  <rguenther@suse.de>
10166
10167         * tree-ssa-structalias.c (struct variable_info): Add
10168         is_fn_info flag.
10169         (new_var_info): Initialize it.
10170         (dump_constraints): Support printing last added constraints.
10171         (debug_constraints): Adjust.
10172         (dump_constraint_graph): Likewise.
10173         (make_heapvar_for): Check for NULL cfun.
10174         (get_function_part_constraint): New function.
10175         (get_fi_for_callee): Likewise.
10176         (find_func_aliases): Properly implement IPA PTA constraints.
10177         (process_ipa_clobber): New function.
10178         (find_func_clobbers): Likewise.
10179         (insert_into_field_list_sorted): Remove.
10180         (create_function_info_for): Properly allocate vars for IPA mode.
10181         Do not use insert_into_field_list_sorted.
10182         (create_variable_info_for): Properly generate constraints for
10183         global vars in IPA mode.
10184         (dump_solution_for_var): Always dump the solution.
10185         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10186         (find_what_var_points_to): Adjust.
10187         (pt_solution_set): Change.
10188         (pt_solution_ior_into): New function.
10189         (pt_solution_empty_p): Export.
10190         (pt_solution_includes_global): Adjust.
10191         (pt_solution_includes_1): Likewise.
10192         (pt_solutions_intersect_1): Likewise.
10193         (dump_sa_points_to_info): Check some invariants.
10194         (solve_constraints): Move constraint dumping ...
10195         (compute_points_to_sets): ... here.
10196         (ipa_pta_execute): ... and here.
10197         (compute_may_aliases): Do not re-compute points-to info
10198         locally if IPA info is available.
10199         (ipa_escaped_pt): New global var.
10200         (ipa_pta_execute): Properly implement IPA PTA.
10201         * tree-into-ssa.c (dump_decl_set): Support dumping
10202         decls not in referenced-vars.
10203         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10204         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10205         (dump_points_to_solution): Likewise.
10206         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10207         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10208         (remap_gimple_stmt): Reset call clobber/use information if necessary.
10209         (copy_decl_to_var): Copy DECL_PT_UID.
10210         (copy_result_decl_to_var): Likewise.
10211         * tree.c (make_node_stat): Initialize DECL_PT_UID.
10212         (copy_node_stat): Copy it.
10213         * tree.h (DECL_PT_UID): New macro.
10214         (SET_DECL_PT_UID): Likewise.
10215         (DECL_PT_UID_SET_P): Likewise.
10216         (struct tree_decl_minimal): Add pt_uid member.
10217         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10218         (pt_solution_empty_p): Declare.
10219         (pt_solution_set): Adjust.
10220         (ipa_escaped_pt): Declare.
10221         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10222         * gimple-pretty-print.c (pp_points_to_solution): New function.
10223         (dump_gimple_call): Dump call clobber/use information.
10224         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10225         * tree-pass.h (TDF_ALIAS): New dump option.
10226         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10227         * doc/invoke.texi (-fipa-pta): Update documentation.
10228
10229 2010-04-15  Richard Guenther  <rguenther@suse.de>
10230
10231         * Makefile.in (OBJS-common): Add gimple-fold.o.
10232         (gimple-fold.o): New rule.
10233         * tree.h (maybe_fold_offset_to_reference,
10234         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10235         prototypes ...
10236         * gimple.h: ... here.
10237         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10238         may_propagate_address_into_dereference): Move prototypes ...
10239         * gimple.h: ... here.
10240         * tree-ssa-ccp.c (get_symbol_constant_value,
10241         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10242         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10243         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10244         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10245         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10246         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10247         gimplify_and_update_call_from_tree): Move ...
10248         * gimple-fold.c: ... here.  New file.
10249         (ccp_fold_builtin): Rename to ...
10250         (gimple_fold_builtin): ... this.
10251         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10252
10253 2010-04-15  Richard Guenther  <rguenther@suse.de>
10254
10255         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10256         fit_double_type, force_fit_type_double, add_double_with_sign,
10257         neg_double, mul_double_with_sign, lshift_double, rshift_double,
10258         lrotate_double, rrotate_double, div_and_round_double): Move ...
10259         * double-int.c: ... here.
10260         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10261         add_double, neg_double, mul_double_with_sign, mul_double,
10262         lshift_double, rshift_double, lrotate_double, rrotate_double,
10263         div_and_round_double): Move prototypes ...
10264         * double-int.h: ... here.
10265
10266 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
10267
10268         PR target/43742
10269         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
10270         matching constraints to ensure inputs match the output.
10271
10272 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
10273
10274         PR target/43742
10275         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10276         in an input-only operand.
10277
10278 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
10279
10280         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10281         (double_int_not, double_int_lshift, double_int_rshift): Declare.
10282         (double_int_negative_p): Convert to static inline function.
10283         * double-int.c (double_int_lshift, double_int_lshift): New functions.
10284         (double_int_negative_p): Remove.
10285         * tree.h (lshift_double, rshift_double):
10286         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10287         * fold-const.c (fold_convert_const_int_from_real,
10288         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10289         (lshift_double): Change type of arith argument to bool.
10290         (rshift_double): Change type of arith argument to bool. Correct
10291         comment.
10292         * expmed.c (mask_rtx, lshift_value): (Ditto.).
10293
10294 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
10295
10296         PR target/21803
10297         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10298         at the start and end of the then/else blocks, and omit them from the
10299         conversion.
10300         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
10301         argument; all callers changed.  Pass zero to old_insns_match_p instead.
10302         (flow_find_head_matching_sequence): New function.
10303         (old_insns_match_p): Check REG_EH_REGION notes for calls.
10304         * basic-block.h (flow_find_cross_jump,
10305         flow_find_head_matching_sequence): Declare functions.
10306
10307 2010-04-14  Jason Merrill  <jason@redhat.com>
10308
10309         PR c++/36625
10310         * c-common.c (attribute_takes_identifier_p): New fn.
10311         * c-common.h: Declare it.
10312
10313 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10314
10315         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10316         splitter condition.
10317         (*udivmod<mode>4): Ditto.
10318
10319 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10320
10321         * config/i386/i386.md (maxmin_int): Rename code attribute from
10322         maxminiprefix and update all users.
10323         (maxmin_float): Ditto from maxminfprefix.
10324         (logic): Ditto from logicprefix.
10325         (absneg_mnemonic): Ditto from absnegprefix.
10326         * config/i386/mmx.md: Update all users of maxminiprefix,
10327         maxminfprefix and logicprefix for rename.
10328         * config/i386/sse.md: Ditto.
10329         * config/i386/sync.md (sync_<code><mode>): Update for
10330         logicprefix rename.
10331
10332 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10333
10334         PR 42966
10335         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10336         warnings converted to errors.
10337
10338 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10339
10340         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10341         used insn_type variable.
10342         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10343         to avoid set-but-not-used warning.
10344
10345 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10346
10347         * df-core.c (df_ref_debug): Change format string placeholder
10348         from 0x%x to %#x.
10349         * dwarf2asm.c (dw2_asm_output_data_raw,
10350         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10351         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10352         * dwarf2out.c (output_cfi, output_cfi_directive,
10353         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10354         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10355         Ditto.
10356         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10357         * print-rtl.c (print_rtx): Ditto.
10358
10359 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10360
10361         PR middle-end/42694
10362         * builtins.c (expand_builtin_pow_root): New function to expand pow
10363         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10364         series of sqrt and cbrt calls under -ffast-math.
10365         (expand_builtin_pow): Call it.
10366
10367 2010-04-14  Michael Matz  <matz@suse.de>
10368
10369         PR tree-optimization/42963
10370         * tree-cfg.c (touched_switch_bbs): New static variable.
10371         (group_case_labels_stmt): New function broken out from ...
10372         (group_case_labels): ... here, use the above.
10373         (start_recording_case_labels): Allocate touched_switch_bbs.
10374         (end_recording_case_labels): Deallocate it, call
10375         group_case_labels_stmt.
10376         (gimple_redirect_edge_and_branch): Remember index of affected BB.
10377
10378 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10379
10380         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10381         from insn template.
10382
10383 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10384
10385         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10386
10387 2010-04-13  Jan Hubicka  <jh@suse.cz>
10388
10389         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10390         of optimized out static functions.
10391         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10392         cost computation.  Also sanity check for overflows.
10393         (update_caller_keys): Update cgraph_edge_badness call; properly
10394         update fibheap and sanity check that it is up to date.
10395         (add_new_edges_to_heap): Update cgraph_edge_badness.
10396         (cgraph_decide_inlining_of_small_function): Likewise;
10397         add sanity checking that badness in heap is up to date;
10398         improve dumping of reason; Update badness of calls to the
10399         offline copy of function currently inlined; dump badness
10400         of functions not inlined because of unit growth limits.
10401
10402 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
10403
10404         PR middle-end/32628
10405         * c-common.c (pointer_int_sum): Disregard overflow that occured only
10406         because of sign-extension change when converting to sizetype here...
10407         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10408
10409         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10410         the folding to constants.  Remove redundant final conversion.
10411         (fold_binary) <associate>: Do not associate if the re-association of
10412         constants alone overflows.
10413         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10414         to the end of the list.
10415         (multiple_of_p) <COND_EXPR>: New case.
10416
10417 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10418
10419         * opt-functions.awk (opt_sanitized_name): New.
10420         (opt_enum): New.
10421         * optc-gen.awk: Use it
10422         * opth-gen.awk: Use it.
10423
10424 2010-04-13  Martin Jambor  <mjambor@suse.cz>
10425
10426         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10427         (sra_modify_assign): Delete stmts loading dead data even if racc has no
10428         children.  Call replace_uses_with_default_def_ssa_name to handle
10429         SSA_NAES on lhs.
10430
10431 2010-04-13  Michael Matz  <matz@suse.de>
10432
10433         PR middle-end/43730
10434         * builtins.c (expand_builtin_interclass_mathfn): Also create
10435         a register if the predicate doesn't match.
10436
10437 2010-04-13  Diego Novillo  <dnovillo@google.com>
10438
10439         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10440         * c-pch.c: Include timevar.h.
10441         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10442         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10443         * ggc-common.c: Include timevar.h.
10444         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10445         * timevar.def (TV_PCH_SAVE): Define.
10446         (TV_PCH_CPP_SAVE): Define.
10447         (TV_PCH_PTR_REALLOC): Define.
10448         (TV_PCH_PTR_SORT): Define.
10449         (TV_PCH_RESTORE): Define.
10450         (TV_PCH_CPP_RESTORE): Define.
10451
10452 2010-04-13  Michael Matz  <matz@suse.de>
10453
10454         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10455         into MINUS_EXPRs.
10456         (can_reassociate_p): New function.
10457         (break_up_subtract_bb, reassociate_bb): Use it.
10458
10459 2010-04-13  Richard Guenther  <rguenther@suse.de>
10460
10461         PR bootstrap/43737
10462         * builtins.c (c_readstr): Fix assert.
10463
10464 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
10465
10466         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10467         when generating cltd insn.
10468
10469         (*ashl<mode>3_1): Remove special handling for register operand 2.
10470         (*ashlsi3_1_zext): Ditto.
10471         (*ashlhi3_1): Ditto.
10472         (*ashlhi3_1_lea): Ditto.
10473         (*ashlqi3_1): Ditto.
10474         (*ashlqi3_1_lea): Ditto.
10475         (*<shiftrt_insn><mode>3_1): Ditto.
10476         (*<shiftrt_insn>si3_1_zext): Ditto.
10477         (*<shiftrt_insn>qi3_1_slp): Ditto.
10478         (*<rotate_insn><mode>3_1): Ditto.
10479         (*<rotate_insn>si3_1_zext): Ditto.
10480         (*<rotate_insn>qi3_1_slp): Ditto.
10481
10482 2010-04-13  Richard Guenther  <rguenther@suse.de>
10483
10484         * tree-ssa-structalias.c (callused_id): Remove.
10485         (call_stmt_vars): New.
10486         (get_call_vi): Likewise.
10487         (lookup_call_use_vi): Likewise.
10488         (lookup_call_clobber_vi): Likewise.
10489         (get_call_use_vi): Likewise.
10490         (get_call_clobber_vi): Likewise.
10491         (make_transitive_closure_constraints): Likewise.
10492         (handle_const_call): Adjust to do per-call call-used handling.
10493         (handle_pure_call): Likewise.
10494         (find_what_var_points_to): Remove general callused handling.
10495         (init_base_vars): Likewise.
10496         (init_alias_vars): Initialize call_stmt_vars.
10497         (compute_points_to_sets): Process call-used and call-clobbered
10498         vars for call statements.
10499         (delete_points_to_sets): Free call_stmt_vars.
10500
10501 2010-04-13  Richard Guenther  <rguenther@suse.de>
10502
10503         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10504         Only add RW dependence for dependence distance zero.
10505         Adjust maximal vectorization factor according to dependences.
10506         Move alignment handling ...
10507         (vect_find_same_alignment_drs): ... here.  New function.
10508         (vect_analyze_data_ref_dependences): Adjust.
10509         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10510         (vect_analyze_data_refs): Adjust minimal vectorization factor
10511         according to data references.
10512         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10513         dependences before determining the vectorization factor.
10514         Analyze alignment after determining the vectorization factor.
10515         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10516         dependences before alignment.
10517         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10518         Adjust prototype.
10519         (vect_analyze_data_refs): Likewise.
10520         (MAX_VECTORIZATION_FACTOR): New define.
10521
10522 2010-04-13  Duncan Sands  <baldrick@free.fr>
10523
10524         * except.h (lang_eh_type_covers): Remove.
10525         * except.c (lang_eh_type_covers): Likewise.
10526
10527 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10528             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10529
10530         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10531         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10532         UNITS_PER_LONG where it is ABI relevant.
10533         (s390_return_addr_rtx): Likewise.
10534         (s390_back_chain_rtx): Likewise.
10535         (s390_frame_area): Likewise.
10536         (s390_frame_info): Likewise.
10537         (s390_initial_elimination_offset): Likewise.
10538         (save_gprs): Likewise.
10539         (s390_emit_prologue): Likewise.
10540         (s390_emit_epilogue): Likewise.
10541         (s390_function_arg_advance): Likewise.
10542         (s390_function_arg): Likewise.
10543         (s390_va_start): Likewise.
10544         (s390_gimplify_va_arg): Likewise.
10545         (s390_function_profiler): Likewise.
10546         (s390_optimize_prologue): Likewise.
10547         (s390_rtx_costs): Likewise.
10548         (s390_secondary_reload): Likewise.
10549         (s390_promote_function_mode): Likewise.
10550         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10551         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10552         registers available.
10553         (s390_unwind_word_mode): New function.
10554         (s390_function_value): Split 64 bit values into register pair if
10555         used as return value.
10556         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10557         function call parameters.  Handle parallels.
10558         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10559         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10560         (DWARF_CIE_DATA_ALIGNMENT): New macro.
10561         (s390_expand_setmem): Remove unused variable src_addr.
10562         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10563         deal with 64 bit registers.
10564         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10565         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10566         (UNITS_PER_LONG): New macro.
10567         * libjava/include/s390-signal.h: Define extended ucontext
10568         structure containing the upper halfs of the 64 bit registers.
10569
10570 2010-04-13  Simon Baldwin  <simonb@google.com>
10571
10572         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10573
10574 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
10575
10576         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10577         rvalue on the RHS if the LHS is of a non-renamable type.
10578         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10579
10580 2010-04-13  Matthias Klose  <doko@ubuntu.com>
10581
10582         * gcc.c (cc1_options): Handle -iplugindir before processing
10583         the cc1 spec. Only add -iplugindir once.
10584         (cpp_unique_options): Add -iplugindir option if -fplugin* options
10585         found.
10586         * common.opt (iplugindir): Remove `Separate' property, initialize.
10587         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10588         option.
10589         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10590         (distclean): Remove plugin dir.
10591         * doc/invoke.texi: Document -iplugindir.
10592
10593 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
10594
10595         * doc/plugins.texi (Loading Plugins): Document short
10596         -fplugin=foo option.
10597         (Plugin API): Mention default_plugin_dir_name function.
10598
10599         * gcc.c (find_file_spec_function): Add new declaration.
10600         (static_spec_func): Use it for "find-file".
10601         (find_file_spec_function): Add new function.
10602         (cc1_options): Add -iplugindir option if -fplugin* options found.
10603
10604         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10605
10606         * plugin.c (add_new_plugin): Updated comment, and handle short
10607         plugin name.
10608         (default_plugin_dir_name): Added new function.
10609
10610         * common.opt (iplugindir): New option to set the plugin directory.
10611
10612 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
10613
10614         * config/i386/i386.md (any_rotate): New code iterator.
10615         (rotate_insn): New code attribute.
10616         (rotate): Ditto.
10617         (SWIM124): New mode iterator.
10618         (<rotate_insn>ti3): New expander.
10619         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10620         any_rotate code iterator.
10621         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10622         using any_rotate code iterator and SWIM124 mode iterator.
10623         (ix86_rotlti3): New insn_and_split pattern.
10624         (ix86_rotrti3): Ditto.
10625         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10626         ix86_rotl{di,ti}3 patterns.
10627         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10628         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10629         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10630         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10631         code iterator and SWI mode iterator.
10632         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10633         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10634         code iterator.
10635         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10636         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10637         (bswap rotatert splitter): Add splitter.
10638         (bswap splitter): Macroize splitter using any_rotate code iterator.
10639         Add insn predicate to split only for TARGET_USE_XCHGB or when
10640         optimizing function for size.
10641
10642 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
10643
10644         * config/pa/pa.c (emit_move_sequence): Remove use of
10645         deleted variable flag_argument_noalias.
10646
10647 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10648
10649         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10650         configurations.
10651         Add to unsupported targets list.
10652         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10653         sparc*-sun-solaris2.[567]* from target lists.
10654         * configure: Regenerate.
10655         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10656         removal.
10657         Remove Solaris 7 patch references.
10658         (Specific, sparc-sun-solaris2.7): Removed.
10659         (sparc-sun-solaris2*): Update Solaris 7 example.
10660         (sparc64-*-solaris2*): Likewise.
10661
10662 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10663
10664         * config.build (alpha*-dec-osf4*): Remove.
10665         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10666         of obsolete configurations.
10667         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10668         support.
10669         * config/alpha/t-osf4: Renamed to ...
10670         * config/alpha/t-osf5: ... this.
10671         * config/alpha/osf.h: Renamed to ...
10672         * config/alpha/osf5.h: ... this.
10673         Merged old osf5.h contents.
10674         Update comments.
10675         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10676         (EXTRA_SPECS): Removed.
10677         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10678         reflect removal of Tru64 UNIX V4.0/V5.0 support.
10679         Document that.
10680
10681 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10682
10683         * doc/contrib.texi (Contributors, Rainer Orth): Update.
10684
10685 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
10686
10687         PR/43702
10688         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10689         __thiscall convention.
10690
10691 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
10692
10693         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10694         orig_base.
10695         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10696
10697 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
10698
10699         * function.c (assign_parms_initialize_all): Add unused attribute
10700         to fntype.
10701
10702 2010-04-12  Richard Guenther  <rguenther@suse.de>
10703
10704         * gsstruct.def (GSS_CALL): New.
10705         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10706         * gimple.h: Include tree-ssa-alias.h.
10707         (struct gimple_statement_call): New.
10708         (union gimple_statement_struct_d): Add gimple_call member.
10709         (gimple_call_reset_alias_info): Declare.
10710         (gimple_call_use_set): New function.
10711         (gimple_call_clobber_set): Likewise.
10712         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10713         * gimple.c (gimple_call_reset_alias_info): New function.
10714         (gimple_build_call_1): Call it.
10715         * lto-streamer-in.c (input_gimple_stmt): Likewise.
10716         * tree-inline.c (remap_gimple_stmt): Likewise.
10717         (expand_call_inline): Remove callused handling.
10718         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10719         * tree-dfa.c (dump_variable): Likewise.
10720         * tree-parloops.c (parallelize_loops): Likewise.
10721         * tree-ssa.c (init_tree_ssa): Likewise.
10722         (delete_tree_ssa): Likewise.
10723         * tree-flow-inline.h (is_call_used): Remove.
10724         * tree-flow.h (struct gimple_df): Remove callused member.
10725         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10726         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10727         (ref_maybe_used_by_call_p_1): Simplify.
10728         (call_may_clobber_ref_p_1): Likewise.
10729         * tree-ssa-structalias.c (compute_points_to_sets): Set
10730         the call stmt used and clobbered sets.
10731         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10732         (find_tail_calls): Verify the tail call.
10733
10734 2010-04-12  Richard Guenther  <rguenther@suse.de>
10735
10736         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10737         single-iteration always-inline inlining.
10738         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10739         (cgraph_decide_inlining): Do not handle always-inline specially.
10740         (try_inline): Remove always-inline cycle detection special case.
10741         Do not recurse on always-inlines.
10742         (cgraph_early_inlining): Do not iterate if not optimizing.
10743         (cgraph_gate_early_inlining): remove.
10744         (pass_early_inline): Run unconditionally.
10745         (gate_cgraph_decide_inlining): New function.
10746         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
10747         not inlining or optimizing.
10748         (cgraph_decide_inlining_of_small_functions): Also consider
10749         always-inline functions.
10750         (cgraph_default_inline_p): Return true for nodes which should
10751         disregard inline limits.
10752         (estimate_function_body_sizes): Assume zero size and time for
10753         nodes which are marked as disregarding inline limits.
10754         (cgraph_decide_recursive_inlining): Do not perform recursive
10755         inlining on always-inline nodes.
10756
10757 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
10758
10759         PR bootstrap/43699
10760         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10761         for exprs satisfying handled_component_p.
10762
10763 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
10764
10765         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10766         non-constant aggregate elements.
10767
10768         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10769         is a real initialization.
10770
10771 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
10772
10773         PR c/36774
10774         * c-decl.c (start_function): Move forward check for nested function.
10775
10776 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10777
10778         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10779         * config/sh/sh.c: Include reload.h.
10780         (sh_legitimize_reload_address): New.
10781         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10782         sh_legitimize_reload_address.
10783
10784 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10785
10786         * config/sh/sh.md (*movqi_pop): New insn pattern.
10787         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10788
10789 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
10790
10791         * config/i386/i386.md (any_shiftrt): New code iterator.
10792         (shiftrt_insn): New code attribute.
10793         (shiftrt): Ditto.
10794         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10795         using any_shiftrt code iterator.
10796         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10797         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10798         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10799         pattern from corresponding peephole2 patterns.
10800         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10801         using any_shiftrt code iterator.
10802         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10803         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10804         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10805         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10806         *{ashr,lshr}<mode>3_cmp_zext.
10807         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10808
10809 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
10810
10811         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10812         scratch register.
10813         (*lshr<mode>3_cconly): Ditto.
10814
10815 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
10816
10817         * config/i386/i386.md (lshr<mode>3): Macroize expander from
10818         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10819         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
10820         pattern from *lshr{di,ti}3_1 and corresponding splitters using
10821         DWI mode iterator.
10822         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10823         from corresponding peephole2 patterns.
10824         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10825         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10826         and *lshrdi3_1_rex64 using SWI mode iterator.
10827         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10828         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10829         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10830         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10831         and *lshrdi3_cmp_rex64 using SWI mode iterator.
10832         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10833         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10834         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10835         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10836         SWI mode iterator.
10837
10838 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
10839
10840         * config/i386/i386.md (ashr<mode>3): Macroize expander from
10841         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10842         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
10843         pattern from *ashr{di,ti}3_1 and corresponding splitters using
10844         DWI mode iterator.
10845         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10846         from corresponding peephole2 patterns.
10847         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10848         (ashrsi3_cvt): Rename from ashrsi3_31.
10849         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10850         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10851         and x86_64_shift_adj_3 using SWI48 mode iterator.
10852         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10853         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10854         and *ashrdi3_1_rex64 using SWI mode iterator.
10855         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10856         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10857         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10858         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10859         and *ashrdi3_cmp_rex64 using SWI mode iterator.
10860         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10861         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10862         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10863         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10864         SWI mode iterator.
10865         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10866         * config/i386/i386.c (ix86_split_ashr): Update for renamed
10867         x86_shift<mode>_adj_3 expanders.
10868
10869 2010-04-10  Wei Guozhi  <carrot@google.com>
10870
10871         PR target/42601
10872         * config/arm/arm.c (arm_pic_static_addr): New function.
10873         (legitimize_pic_address): Call arm_pic_static_addr when it detects
10874         a static symbol.
10875         (arm_output_addr_const_extra): Output expression for new pattern.
10876         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10877
10878 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
10879
10880         * ira-costs.c (record_reg_classes): Ignore alternatives that are
10881         not enabled.
10882
10883         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10884         * web.c: Include "insn-config.h" and "recog.h".
10885         (union_match_dups): New function.
10886         (web_main): Call it.
10887         (union_defs): Don't try to recognize match_dups.
10888
10889         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10890         if doing so would replace the entire pattern.
10891
10892 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
10893
10894         PR target/43707
10895         PR target/43709
10896         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10897         and splitter pattern.  Change splitter operand 1 predicate to
10898         nonmemory_operand.
10899
10900 2010-04-09  Martin Jambor  <mjambor@suse.cz>
10901
10902         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10903         lattices are addresses of CONST_DECLs with the same initial value.
10904         (ipcp_print_all_lattices): Print values of CONST_DECLs.
10905         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10906
10907 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10908             Bernd Schmidt  <bernds@codesourcery.com>
10909
10910         * loop-invariant.c (replace_uses): New static function.
10911         (move_invariant_reg): Use it to ensure we can replace the uses.
10912
10913 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10914
10915         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10916         function template.
10917         (picochip_override_options): Enable section anchors only above -O1.
10918         (picochip_reorg): Fixed a couple of build warnings.
10919
10920 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10921
10922         * configure.ac (plugin -rdynamic test): Log result.
10923         * configure: Regenerate.
10924         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10925         (RDYNAMIC_SPEC): Define.
10926         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10927
10928 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10929
10930         * configure.ac: Determine Sun ld version numbers.
10931         (comdat_group): Restrict GNU ld version checks to gld.
10932         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10933         (enable_comdat): Support --enable-comdat.
10934         * configure: Regenerate.
10935         * doc/install.texi (Configuration): Document --enable-comdat.
10936
10937 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10938
10939         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
10940         * config/sol2-gld.h: ... here.
10941         * config.gcc (sparc*-*-solaris2*): Reflect this.
10942         (i[34567]86-*-solaris2*): Use it.
10943
10944 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
10945
10946         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10947         setup_clocks_p.
10948         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10949
10950 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10951
10952         PR 42965
10953         * diagnostic.c (diagnostic_initialize): Initialize
10954         some_warnings_are_errors.
10955         (diagnostic_finish): New.
10956         (diagnostic_action_after_output): Call it before exiting.
10957         (diagnostic_report_diagnostic): Do not print message here. Set
10958         some_warnings_are_errors.
10959         * diagnostic.h (diagnostic_context): Delete
10960         issue_warnings_are_errors_message. Add some_warnings_are_errors.
10961         (diagnostic_finish): Declare.
10962         * toplev.c (toplev_main): Call it before exit.
10963
10964 2010-04-09  Jason Merrill  <jason@redhat.com>
10965
10966         PR c++/42623
10967         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10968         for incomplete type.
10969
10970         PR c++/41788
10971         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10972         based on a warning flag.
10973
10974 2010-04-09  Richard Guenther  <rguenther@suse.de>
10975
10976         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10977
10978 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
10979
10980         PR bootstrap/43684
10981         * varasm.c (default_assemble_visibility): Wrap vars that are
10982         set, but unused, by targets without GAS.
10983         * config/rs6000/rs6000.c (paired_emit_vector_compare):
10984         Remove set, but unused, vars.
10985         (rs6000_legitimize_tls_address): Likewise.
10986         (altivec_expand_dst_builtin): Likewise.
10987         * config/darwin.c (machopic_classify_symbol): Likewise.
10988         (machopic_indirection_name): Likewise.
10989
10990 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
10991
10992         * config/i386/i386.md (DWI): New mode iterator.
10993         (S): New mode attribute.
10994         (shift_operand): Ditto.
10995         (shift_immediate_operand): Ditto.
10996         (ashl_input_operand): Ditto.
10997         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10998         using SDWIM mode iterator.
10999         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
11000         pattern from *ashl{di,ti}3_1 and corresponding splitters using
11001         DWI mode iterator.
11002         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
11003         from corresponding peephole2 patterns.
11004         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
11005         and x86_64_shift_adj_1 using SWI48 mode iterator.
11006         (x86_shift<mode>_adj_2): Ditto.
11007         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
11008         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
11009         using SWI48 mode iterator.
11010         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
11011         *ashldi3_cmp_rex64 using SWI mode iterator.
11012         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
11013         *ashldi3_cconly_rex64 using SWI mode iterator.
11014         * config/i386/i386.c (ix86_split_ashl): Update for renamed
11015         x86_shift<mode>_adj_{1,2}.
11016         (ix86_split_ashr): Ditto.
11017         (ix86_split_lshr): Ditto.
11018
11019 2010-04-09  Richard Guenther  <rguenther@suse.de>
11020
11021         * target.h (builtin_conversion): Pass in input and output types.
11022         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
11023         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
11024         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
11025         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
11026
11027         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
11028         Handle AVX modes.
11029         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
11030
11031 2010-04-09  Richard Guenther  <rguenther@suse.de>
11032
11033         PR target/43152
11034         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
11035
11036 2010-04-09  Richard Guenther  <rguenther@suse.de>
11037
11038         * tree-vectorizer.h (struct _stmt_vec_info): Document
11039         that vectype is the type of the LHS.
11040         (supportable_widening_operation, supportable_narrowing_operation):
11041         Get both input and output vector types as arguments.
11042         (vect_is_simple_use_1): Declare.
11043         (get_same_sized_vectype): Likewise.
11044         * tree-vect-loop.c (vect_determine_vectorization_factor):
11045         Set STMT_VINFO_VECTYPE to the vector type of the def.
11046         (vectorizable_reduction): Adjust.
11047         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
11048         Adjust.  Specify the output vector type.
11049         (vect_pattern_recog_1): Adjust.
11050         * tree-vect-stmts.c (get_same_sized_vectype): New function.
11051         (vectorizable_call): Adjust.
11052         (vectorizable_conversion): Likewise.
11053         (vectorizable_operation): Likewise.
11054         (vectorizable_type_demotion): Likewise.
11055         (vectorizable_type_promotion): Likewise.
11056         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
11057         the def.
11058         (vect_is_simple_use_1): New function.
11059         (supportable_widening_operation): Get both input and output
11060         vector types.
11061         (supportable_narrowing_operation): Likewise.
11062         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
11063
11064 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
11065
11066         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
11067         __thiscall and _thiscall as predefined macros.
11068         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
11069         thiscall attribute handling.
11070         (ix86_comp_type_attributes): Likewise.
11071         (ix86_function_regparm): Likewise.
11072         (ix86_return_pops_args): Likewise.
11073         (init_cumulative_args): Likewise.
11074         (find_drap_reg): Likewise.
11075         (ix86_static_chain): Likewise.
11076         (x86_this_parameter): Likewise.
11077         (x86_output_mi_thunk): Likewise.
11078         (ix86_attribute_table): Add description for thiscall attribute.
11079         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
11080         * doc/extend.texi: Add documentation for thiscall.
11081
11082 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11083
11084         PR c++/28584
11085         * c.opt (Wint-to-pointer-cast): Available in C++.
11086         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
11087
11088 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
11089
11090         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
11091         * calls.c (expand_call): Pass the function type to aggregate_value_p.
11092         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
11093         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
11094         function type instead.  Reorder and simplify checks.
11095
11096         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
11097
11098 2010-04-08  Jing Yu  <jingyu@google.com>
11099             Zdenek Dvorak  <ook@ucw.cz>
11100
11101         PR tree-optimization/42720
11102         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
11103         loop unswitch conditions here from ...
11104         (tree_unswitch_single_loop): ... here.
11105
11106 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
11107
11108         * tree-if-conv.c: Fix comments and simplify logic.
11109
11110 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
11111
11112         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
11113         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
11114         (main_tree_if_conversion): Update call to tree_if_conversion.
11115
11116 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11117
11118         PR 42485
11119         * doc/invoke.texi (-b,-V): Delete.
11120         * doc/tm.texi: Do not mention -b.
11121         * gcc.c (display_help): Delete -b and -V.
11122         (process_command): Delete -b and -V.
11123         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
11124
11125 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
11126             Wolfgang Gellerich  <gellerich@de.ibm.com>
11127
11128         Implement target hook for loop unrolling
11129         * target.h (loop_unroll_adjust): Add a new target hook function.
11130         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
11131         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
11132         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
11133         (s390_loop_unroll_adjust): Implement the new target hook for s390.
11134         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
11135         target hook.
11136         (decide_unroll_stupid): Likewise.
11137
11138 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11139
11140         PR target/43643
11141         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
11142
11143 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11144
11145         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
11146         (Specific, *-*-solaris2*): Likewise.
11147         Don't prefer Sun as over GNU as.
11148
11149 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
11150
11151         * config/s390/s390.c (override_options): Adjust the z10 defaults
11152         for max-unroll-times, max-completely-peeled-insns
11153         and max-completely-peel-times.
11154
11155 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11156
11157         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
11158         instructions for z10.
11159         (s390_expand_setmem): Likewise.
11160         (s390_expand_cmpmem): Likewise.
11161
11162 2010-04-08  Richard Guenther  <rguenther@suse.de>
11163
11164         PR tree-optimization/43679
11165         * tree-ssa-pre.c (eliminate): Only propagate copies.
11166
11167 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
11168
11169         PR bootstrap/43681
11170         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
11171         set but not used variable warning.
11172
11173 2010-04-08  Wei Guozhi  <carrot@google.com>
11174
11175         PR target/41653
11176         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11177         (arm_size_rtx_costs): Call the new function when optimized for size.
11178
11179 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
11180
11181         PR debug/43670
11182         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11183         op0 is not a MEM, just return NULL instead of assertion
11184         failure.
11185         (discover_nonconstant_array_refs): Don't walk debug stmts.
11186
11187 2010-04-08  Doug Kwan  <dougkwan@google.com>
11188
11189         * configure.ac: Recognize gold and do not use its version number
11190         to test ld features.
11191         * configure: Regenerate.
11192
11193 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
11194
11195         PR middle-end/40815
11196         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11197         (negate_value): Move code to push elements to broken_up_substracts ...
11198         (eliminate_plus_minus_pair): ... here.  Push operands that have no
11199         negative pair to plus_negates.
11200         (repropagate_negates, init_reassoc, fini_reassoc): Update.
11201
11202 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11203
11204         * doc/install.texi (Configuration): Move description of
11205         --enable-lto, --with-libelf*, --enable-gold from Java section to
11206         general section.
11207
11208         * doc/generic.texi (Working with declarations)
11209         (Function Properties, C and C++ Trees): Fix typos.
11210         * doc/sourcebuild.texi (Top Level): Likewise.
11211
11212 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
11213
11214         PR c/18624
11215         * tree.h (DECL_READ_P): Define.
11216         (struct tree_decl_common): Add decl_read_flag.
11217         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11218         a set but not used warning.
11219         (merge_decls): Merge DECL_READ_P flag.
11220         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11221         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11222         * c-common.c (handle_used_attribute, handle_unused_attribute):
11223         Likewise.
11224         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11225         New prototypes.
11226         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11227         New functions.
11228         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11229         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11230         c_parser_binary_expression, c_parser_cast_expression,
11231         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11232         Call default_function_array_read_conversion instead of
11233         default_function_array_conversion where needed.
11234         (c_parser_unary_expression, c_parser_conditional_expression,
11235         c_parser_postfix_expression_after_primary, c_parser_initelt):
11236         Likewise.  Call mark_exp_read where needed.
11237         (c_parser_statement_after_labels, c_parser_asm_operands,
11238         c_parser_typeof_specifier, c_parser_sizeof_expression,
11239         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11240         where needed.
11241         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11242         New.
11243         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11244         (warn_unused_but_set_parameter): Default to warn_unused
11245         && extra_warnings.
11246         * doc/invoke.texi: Document -Wunused-but-set-variable and
11247         -Wunused-but-set-parameter.
11248
11249         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11250         used count variable.
11251         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11252         when operandN variables aren't used in the body of the expander
11253         or splitter.
11254         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11255         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11256         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11257         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11258         FOR_EACH_IMM_USE_ON_STMT): Likewise.
11259         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11260         * tree.c (PROCESS_ARG): Likewise.
11261
11262 2010-04-07  Simon Baldwin  <simonb@google.com>
11263
11264         * diagnostic.h (diagnostic_override_option_index): New macro to
11265         set a diagnostic's option_index.
11266         * c-tree.h (c_cpp_error): Add warning reason argument.
11267         * opts.c (_warning_as_error_callback): New.
11268         (register_warning_as_error_callback): Store callback for
11269         warnings enabled via enable_warning_as_error.
11270         (enable_warning_as_error): Call callback, minor code tidy.
11271         * opts.h (register_warning_as_error_callback): Declare.
11272         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11273         response to -Werror=.
11274         (c_common_init_options): Register warning_as_error_callback in opts.c.
11275         * common.opt: Add -Wno-cpp option.
11276         * c-common.c (struct reason_option_codes_t): Map cpp warning
11277         reason codes to gcc option indexes.
11278         * (c_option_controlling_cpp_error): New function, lookup the gcc
11279         option index for a cpp warning reason code.
11280         * (c_cpp_error): Add warning reason argument, call
11281         c_option_controlling_cpp_error for diagnostic_override_option_index.
11282         * doc/invoke.texi: Document -Wno-cpp.
11283
11284 2010-04-07  Richard Guenther  <rguenther@suse.de>
11285
11286         * ipa-reference.c (mark_load): Use get_base_address.
11287         (mark_store): Likewise.
11288
11289         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11290         inserting GIMPLE_NOPs into the IL.
11291         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11292         Explicitly strip handled components and indirect references.
11293
11294         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11295         folding address expressions.
11296         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11297         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11298         operand_equal_p to compare decls.
11299         (ptr_deref_may_alias_decl_p): Likewise.
11300         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11301         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11302         Handle reversed comparison ops.
11303         * tree-sra.c (asm_visit_addr): Use get_base_address.
11304         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11305         * ipa-reference.c (mark_address): Use get_base_address.
11306
11307 2010-04-07  Richard Guenther  <rguenther@suse.de>
11308
11309         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11310         Propagate constants everywhere.
11311
11312 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
11313
11314         PR debug/43516
11315         * tree.c (MAX_INT_CACHED_PREC): Define.
11316         (nonstandard_integer_type_cache): New array.
11317         (build_nonstandard_integer_type): Cache results for precision
11318         <= MAX_INT_CACHED_PREC.
11319
11320 2010-04-07  Richard Guenther  <rguenther@suse.de>
11321
11322         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11323         -fargument-noalias-global, -fargument-noalias-anything): Remove.
11324         * common.opt: Likewise.
11325         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11326         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11327         (nonoverlapping_memrefs_p): Likewise.
11328         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11329         * opts.c (common_handle_option): Handle OPT_fargument_alias,
11330         OPT_fargument_noalias, OPT_fargument_noalias_anything and
11331         OPT_fargument_noalias_global for backward compatibility.
11332
11333 2010-04-07  Richard Guenther  <rguenther@suse.de>
11334
11335         PR tree-optimization/43270
11336         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11337         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11338         * tree-ssa-pre.c (phi_translate_1): Adjust.
11339         (fully_constant_expression): Split out vn_reference handling to ...
11340         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11341         Fold reads from constant strings.
11342         (vn_reference_lookup): Handle fully constant references.
11343         (vn_reference_lookup_pieces): Likewise.
11344         * Makefile.in (expmed.o-warn): Add -Wno-error.
11345
11346 2010-04-07  Martin Jambor  <mjambor@suse.cz>
11347
11348         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11349
11350 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
11351
11352         PR driver/41594
11353         * gcc.c: Add -static-libstdc++ to list of recognized options.
11354
11355 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11356
11357         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11358
11359 2010-04-07  Richard Guenther  <rguenther@suse.de>
11360
11361         PR middle-end/42617
11362         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11363         bases build simple mem attributes to retain points-to information.
11364
11365 2010-04-07  Richard Guenther  <rguenther@suse.de>
11366
11367         PR middle-end/42617
11368         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11369         preserve points-to related information.
11370
11371 2010-04-07  Richard Guenther  <rguenther@suse.de>
11372
11373         PR middle-end/42617
11374         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11375         discard plain indirect references.
11376         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11377         * tree.c (tree_nop_conversion): Likewise.
11378
11379 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
11380
11381         PR debug/43628
11382         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11383
11384 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
11385
11386         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11387         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11388
11389 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
11390
11391         * tree-if-conv.c: Fix indentation and comments.
11392
11393 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
11394
11395         * tree-if-conv.c: Sort static functions in topological order.
11396
11397 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
11398
11399         * tree-if-conv.c: Fix indentation and comments.
11400
11401 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
11402
11403         PR middle-end/43519
11404         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11405         lang_hooks.types.type_for_size instead of
11406         build_nonstandard_integer_type.
11407         When converting an unsigned type to signed, double its precision.
11408         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11409         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11410         (graphite_create_new_loop_guard): When ub + 1 wraps around,
11411         use lb <= ub.
11412
11413 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
11414
11415         PR middle-end/43519
11416         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11417         POINTER_PLUS_EXPR for pointer types.
11418
11419 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
11420
11421         PR middle-end/43519
11422         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11423         * graphite-clast-to-gimple.c: Include langhooks.h.
11424         (max_signed_precision_type): New.
11425         (max_precision_type): Takes two types as arguments.
11426         (precision_for_value): New.
11427         (precision_for_interval): New.
11428         (gcc_type_for_interval): New.
11429         (gcc_type_for_value): New.
11430         (gcc_type_for_clast_term): New.
11431         (gcc_type_for_clast_red): New.
11432         (gcc_type_for_clast_bin): New.
11433         (gcc_type_for_clast_expr): Split up into several functions.
11434         (gcc_type_for_clast_eq): Rewritten.
11435         (compute_bounds_for_level): New.
11436         (compute_type_for_level_1): New.
11437         (compute_type_for_level): New.
11438         (gcc_type_for_cloog_iv): Removed.
11439         (gcc_type_for_iv_of_clast_loop): Rewritten.
11440         (graphite_create_new_loop): Compute the lower and upper bound types
11441         with gcc_type_for_clast_expr.
11442         (graphite_create_new_loop_guard): Same.
11443         (find_cloog_iv_in_expr): Removed.
11444         (compute_cloog_iv_types_1): Removed.
11445         (compute_cloog_iv_types): Removed.
11446         (gloog): Do not call compute_cloog_iv_types.
11447         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11448         GBB_CLOOG_IV_TYPES.
11449         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11450         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11451         (GBB_CLOOG_IV_TYPES): Removed.
11452
11453 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
11454
11455         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11456         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11457         (detect_commutative_reduction): Same.
11458
11459 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
11460
11461         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11462         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
11463         argument.
11464         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11465         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11466         (rewrite_commutative_reductions_out_of_ssa): Same.
11467         * passes.c (execute_function_todo): Call verify_ssa for every pass
11468         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
11469         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11470         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11471         with an extra argument.
11472         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
11473         verify_ssa only when the extra argument is true.
11474         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11475         with an extra argument.
11476         (tree_transform_and_unroll_loop): Same.
11477
11478 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
11479
11480         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11481         for all the passes of the LNO having LOOP_CLOSED_SSA.
11482         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11483         * tree-loop-distribution.c (pass_loop_distribution): Same.
11484         * tree-pass.h (TODO_verify_loops): Removed.
11485         * tree-ssa-loop.c (pass_tree_loop_init): Same.
11486         (pass_lim): Same.
11487         (pass_tree_unswitch): Same.
11488         (pass_predcom): Same.
11489         (pass_vectorize): Same.
11490         (pass_linear_transform): Same.
11491         (pass_graphite_transforms): Same.
11492         (pass_iv_canon): Same.
11493         (pass_complete_unroll): Same.
11494         (pass_complete_unrolli): Same.
11495         (pass_parallelize_loops): Same.
11496         (pass_loop_prefetch): Same.
11497         (pass_iv_optimize): Same.
11498
11499 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
11500
11501         PR middle-end/32824
11502         * passes.c (init_optimization_passes): Move pass_lim before
11503         pass_copy_prop and pass_dce_loop.
11504
11505 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
11506
11507         PR target/43667
11508         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11509         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11510         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11511         MULTI_* defines for 4 argument vpermil2p* builtins.
11512
11513 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
11514
11515         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11516         * config/i386/i386.c (x86_maybe_negate_const_int): New.
11517         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11518         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11519         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11520         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11521         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11522         Use x86_maybe_negate_const_int to output insn mnemonic.
11523         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
11524         check from instruction predicate.  Update comments.
11525         * config/i386/sync.md (sync_add<mode>): Use
11526         x86_maybe_negate_const_int to output insn mnemonic.
11527
11528 2010-04-06  Jan Hubicka  <jh@suse.cz>
11529
11530         PR tree-optimization/42906
11531         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11532         IGNORE_SELF argument.  Set visited_control_parents for fully
11533         processed BBs.
11534         (find_obviously_necessary_stmts): Update call of
11535         mark_control_dependent_edges_necessary.
11536         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
11537
11538 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
11539
11540         * config/i386/i386.md: Remove comment about 'e' and 'E'
11541         operand modifier.
11542
11543 2010-04-06  Richard Guenther  <rguenther@suse.de>
11544
11545         PR tree-optimization/43627
11546         * tree-vrp.c (extract_range_from_unary_expr): Widenings
11547         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11548         not varying.
11549
11550 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
11551
11552         * BASE-VER: Change to 4.6.0.
11553
11554         PR target/43638
11555         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11556         handling.
11557
11558 2010-04-06  Richard Guenther  <rguenther@suse.de>
11559
11560         PR middle-end/43661
11561         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11562
11563 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11564
11565         * doc/invoke.texi (Optimize Options): Document that LTO
11566         won't remove object access purely due to incompatible
11567         declarations.
11568
11569 2010-04-04  Matthias Klose  <doko@ubuntu.com>
11570
11571         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11572         Initialize variable.
11573
11574 2010-04-03  Richard Guenther  <rguenther@suse.de>
11575
11576         PR middle-end/42509
11577         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11578         require a non-NULL MEM_OFFSET.
11579
11580 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
11581
11582         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11583         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11584         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11585         config/alpha/predicates.md, config/arm/arm.md,
11586         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11587         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11588         config/darwin9.h, config/darwin.c, config/darwin.h,
11589         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11590         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11591         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11592         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11593         config/mips/mips.md, config/mn10300/mn10300.c,
11594         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11595         config/rs6000/aix.h, config/rs6000/dfp.md,
11596         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11597         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11598         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11599         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11600         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11601         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11602         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11603         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11604         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11605         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11606         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11607         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11608         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11609         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11610         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11611         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11612         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11613         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11614         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11615         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11616         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11617         opt-functions.awk, opth-gen.awk, params.def, passes.c,
11618         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11619         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11620         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11621         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11622         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11623         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11624         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11625         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11626         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11627         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11628         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11629         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11630         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11631         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11632
11633 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11634
11635         PR other/43620
11636         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11637         * aclocal.m4: Regenerate.
11638
11639 2010-04-02  Richard Guenther  <rguenther@suse.de>
11640
11641         PR tree-optimization/43629
11642         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11643         if we have seen a constant value.
11644
11645 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
11646
11647         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11648
11649 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
11650
11651         PR target/43469
11652         * arm.c (legitimize_tls_address): Adjust call to
11653         gen_tls_load_dot_plus_four.
11654         (arm_note_pic_base): New function.
11655         (arm_cannot_copy_insn_p): Use it.
11656         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11657         constraint.
11658
11659 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11660
11661         PR bootstrap/43531
11662
11663         Revert:
11664         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11665
11666         * Makefile.in ($(out_object_file)): Depend on
11667         gt-$(basename $(notdir $(out_file))).h.
11668
11669 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
11670
11671         * config.gcc (lm32-*-rtems*): Add t-lm32.
11672
11673 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
11674
11675         * config.gcc: Add lm32-*-rtems*.
11676         * config/lm32/rtems.h: New file.
11677
11678 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
11679
11680         PR target/42609
11681         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11682
11683 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
11684
11685         * dwarf2out.c (output_compilation_unit_header): For
11686         -gdwarf-4 use version 4 instead of version 3.
11687         (output_line_info): For version 4 and above emit additional
11688         maximum ops per insn header field.
11689         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11690
11691         * dwarf2out.c (is_c_family, is_java): Remove.
11692         (lower_bound_default): New function.
11693         (add_bound_info, gen_descr_array_type_die): Use it.
11694
11695 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
11696
11697         PR debug/43325
11698         * dwarf2out.c (gen_variable_die): Allow debug info for variable
11699         re-declaration when it happens in a function.
11700
11701 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
11702
11703         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11704         (cgraph_remove_function_insertion_hook): Same.
11705         (cgraph_call_function_insertion_hooks): Same.
11706
11707 2010-04-01  Richard Guenther  <rguenther@suse.de>
11708
11709         PR middle-end/43614
11710         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11711         and TREE_THIS_VOLATILE.
11712         (copy_ref_info): Likewise.
11713         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11714         * tree.c (build6_stat): Ignore side-effects of all but arg5
11715         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
11716         TARGET_MEM_REF.
11717
11718 2010-04-01  Richard Guenther  <rguenther@suse.de>
11719
11720         PR tree-optimization/43607
11721         * ipa-type-escape.c (check_call): Do not access non-existing
11722         arguments.
11723
11724 2010-04-01  Richard Guenther  <rguenther@suse.de>
11725
11726         PR middle-end/43602
11727         Revert
11728         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
11729                     Jack Howarth <howarth@bromo.med.uc.edu>
11730
11731         * tree-profile.c (tree_init_ic_make_global_vars): Make static
11732         variables TLS.
11733
11734 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11735
11736         * doc/install.texi (Prerequisites): Document libelf usability on
11737         IRIX 5/6 and Solaris 2.
11738         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11739         Update GNU as, GNU ld requirements.
11740         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11741         Document Sun Studio compiler download.
11742         Update and simplify as, ld recommendations.
11743         (Specific, *-*-solaris2.7): Note obsoletion, removal.
11744
11745 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11746
11747         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11748         with_tune_32 to pentium4.
11749
11750 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
11751
11752         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11753
11754 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11755
11756         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11757         obsoletion, removal.
11758         Update IDO URL.
11759         Document GNU as requirement.
11760         Update configure requirements.
11761         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11762         Recomment IRIX 6.5.18+.
11763         Document IDF/IDL requirement.
11764         Document GNU as requirement.
11765         Document GNU ld bootstrap failure.
11766         Remove freeware.sgi.com reference.
11767
11768 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11769
11770         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11771         UNIX V4.0, V5.0 obsoletion, removal.
11772         Remove --with-gc=simple reference.
11773         Update VM requirements during bootstrap.
11774         Remove -oldas bootstrap description.
11775         Update binutils reference.
11776         Remove comparison failure note.
11777
11778 2010-03-31  Richard Guenther  <rguenther@suse.de>
11779             Zdenek Dvorak  <ook@ucw.cz>
11780             Sebastian Pop  <sebastian.pop@amd.com>
11781
11782         PR middle-end/43464
11783         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11784         with multiple arguments.
11785         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11786
11787 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11788
11789         * graphite-dependences.c (print_pddr): Call print_pdr with an
11790         extra argument.
11791         * graphite-poly.c (debug_pdr): Add an extra argument for the
11792         verbosity level.
11793         (print_pdr): Same.
11794         (print_pbb_domain): Same.
11795         (print_pbb): Same.
11796         (print_scop_context): Same.
11797         (print_scop): Same.
11798         (print_cloog): Same.
11799         (debug_pbb_domain): Same.
11800         (debug_pbb): Same.
11801         (print_pdrs): Same.
11802         (debug_pdrs): Same.
11803         (debug_scop_context): Same.
11804         (debug_scop): Same.
11805         (debug_cloog): Same.
11806         (print_scop_params): Same.
11807         (debug_scop_params): Same.
11808         (print_iteration_domain): Same.
11809         (print_iteration_domains): Same.
11810         (debug_iteration_domain): Same.
11811         (debug_iteration_domains): Same.
11812         (print_scattering_function): Same.
11813         (print_scattering_functions): Same.
11814         (debug_scattering_function): Same.
11815         (debug_scattering_functions): Same.
11816         * graphite-poly.h (debug_pdr): Update declaration.
11817         (print_pdr): Same.
11818         (print_pbb_domain): Same.
11819         (print_pbb): Same.
11820         (print_scop_context): Same.
11821         (print_scop): Same.
11822         (print_cloog): Same.
11823         (debug_pbb_domain): Same.
11824         (debug_pbb): Same.
11825         (print_pdrs): Same.
11826         (debug_pdrs): Same.
11827         (debug_scop_context): Same.
11828         (debug_scop): Same.
11829         (debug_cloog): Same.
11830         (print_scop_params): Same.
11831         (debug_scop_params): Same.
11832         (print_iteration_domain): Same.
11833         (print_iteration_domains): Same.
11834         (debug_iteration_domain): Same.
11835         (debug_iteration_domains): Same.
11836         (print_scattering_function): Same.
11837         (print_scattering_functions): Same.
11838         (debug_scattering_function): Same.
11839         (debug_scattering_functions): Same.
11840
11841 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11842
11843         * graphite-poly.c (print_scattering_function_1): New.
11844         (print_scattering_function): Call it.
11845         (print_scop_params): Remove spaces at the end of lines.
11846         (print_cloog): New.
11847         (debug_cloog): New.
11848         * graphite-poly.h (print_cloog): Declared.
11849         (debug_cloog): Declared.
11850
11851 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11852
11853         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11854         in loop->header.
11855         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11856         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11857         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11858         to switch between adding the IV bump in loop->latch or in loop->header.
11859
11860 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11861
11862         * graphite-poly.c (print_scattering_function): Pretty print following
11863         the scoplib format.
11864         (print_pdr): Same.
11865         (print_pbb_domain): Same.
11866         (dump_gbb_cases): Same.
11867         (dump_gbb_conditions): Same.
11868         (print_pdrs): Same.
11869         (print_pbb): Same.
11870         (print_scop_params): Same.
11871         (print_scop_context): Same.
11872         (print_scop): Same.
11873         (print_pbb_body): New.
11874         (lst_indent_to): New.
11875         (print_lst): Start new lines with a #.
11876         * graphite-poly.h (pbb_bb): New.
11877         (pbb_index): Use pbb_bb.
11878         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11879         disjuncts.
11880         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11881
11882 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
11883
11884         * dwarf2out.c (size_of_die): For -gdwarf-4 use
11885         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11886         and 0 instead of 1 for dw_val_class_flag.
11887         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11888         dw_val_class_range_list, dw_val_class_loc_list,
11889         dw_val_class_lineptr and dw_val_class_macptr, use
11890         DW_FORM_flag_present for dw_val_class_flag and
11891         DW_FORM_exprloc for dw_val_class_loc.
11892         (output_die): For -gdwarf-4 print dw_val_class_loc
11893         size as uleb128 instead of 1 or 2 bytes and don't print
11894         anything for dw_val_class_flag.
11895
11896         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11897         instead of cselib_lookup following by tweaking locs->setting_insn.
11898
11899         PR bootstrap/43596
11900         * cselib.c (cselib_process_insn): Clear cselib_current_insn
11901         even before returning from label, setjmp call or volatile asm
11902         handling.
11903
11904 2010-03-31  Richard Guenther  <rguenther@suse.de>
11905
11906         PR middle-end/43600
11907         * cgraphunit.c (cgraph_output_in_order): Do not allocate
11908         temporary data on stack.
11909
11910 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11911
11912         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11913         (PUSHSECTION_ASM_OP): Remove.
11914         (POPSECTION_ASM_OP): Remove.
11915         (PUSHSECTION_FORMAT): Remove.
11916         * config/sol2.h (PUSHSECTION_FORMAT): Define.
11917         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11918         * config/sol2.c (solaris_output_init_fini): Use it.
11919
11920 2010-03-31  Jie Zhang  <jie@codesourcery.com>
11921
11922         PR 43574
11923         * opt-functions.awk (var_type_struct): Use signed char type
11924         for simple variables.
11925
11926 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11927
11928         * config/sol2.c: Include output.h.
11929         (solaris_assemble_visibility): New function.
11930         * config/t-sol2 (sol2.o): Add output.h dependency.
11931         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11932         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11933         Redefine.
11934
11935 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
11936
11937         PR target/43580
11938         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11939         V2SImode or XFmode on PRE_DEC.
11940
11941         PR debug/43557
11942         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11943         BLKmode.
11944
11945 2010-03-31  Jie Zhang  <jie@codesourcery.com>
11946
11947         PR 43562
11948         * reload.h (caller_save_initialized_p): Declare.
11949         * toplev.c (backend_init_target): Don't call
11950         init_caller_save but set caller_save_initialized_p to false.
11951         * caller-save.c (caller_save_initialized_p): Define.
11952         (init_caller_save): Check caller_save_initialized_p.
11953         * ira.c (ira): Call init_caller_save if flag_caller_saves.
11954
11955 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11956
11957         PR target/39048
11958         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11959         and soft-fp/t-softfp to tmake_file.
11960         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11961         (LIBGCC2_TF_CEXT): Define.
11962         (TF_SIZE): Define.
11963
11964 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
11965
11966         PR debug/42977
11967         * cselib.c (n_useless_values): Document handling of debug locs.
11968         (n_useless_debug_values, n_debug_values): New variables.
11969         (new_elt_loc_list): Don't add to debug values, keep count.
11970         (promote_debug_loc): New.
11971         (cselib_reset_table): Zero new variables.
11972         (entry_and_rtx_equal_p): Promote debug locs.
11973         (discard_useless_locs): Increment n_useless_debug_values for
11974         debug values.
11975         (remove_useless_values): Adjust n_useless_values and n_debug_values
11976         with n_useless_debug_values.
11977         (add_mem_for_addr): Promote debug locs.
11978         (cselib_lookup_mem): Likewise.
11979         (cselib_lookup_addr): Renamed to...
11980         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
11981         (cselib_log_lookup): ... this.  Turn into...
11982         (cselib_lookup_addr): ... new wrapper.
11983         (cselib_lookup_from_insn): New.
11984         (cselib_invalidate_regno): Increment n_useless_debug_values for
11985         debug values.
11986         (cselib_invalidate_mem): Likewise.
11987         (cselib_process_insn): Take n_deleted and n_debug_values into
11988         account to guard remove_useless_value call.
11989         (cselib_finish): Zero n_useless_debug_values.
11990         * cselib.h (cselib_lookup_from_insn): Declare.
11991         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11992         (sched_analyze_2): Likewise.
11993
11994 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
11995
11996         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11997         functions.
11998         (adjust_mems): Replace narrowing SUBREG of expression containing
11999         just PLUS, MINUS, MULT and ASHIFT of registers and constants
12000         with operations in the narrower mode.
12001
12002         PR debug/43593
12003         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
12004         regs_invalidated_by_call instead all call_used_reg_set registers.
12005
12006 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
12007
12008         PR middle-end/43430
12009         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
12010         pointer comparisons with types_compatible_p.
12011         * tree-vect-stmts.c (vectorizable_call): Same.
12012         (vectorizable_condition): Same.
12013
12014 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12015
12016         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
12017         stack check if the mask would be zero.
12018
12019 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
12020             Jack Howarth <howarth@bromo.med.uc.edu>
12021
12022         * tree-profile.c (tree_init_ic_make_global_vars): Make static
12023         variables TLS.
12024
12025 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
12026
12027         PR other/25232
12028         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
12029         and __unordtf2.
12030         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
12031         Include ___unordxf2 and ___unordtf2.
12032         * config/i386/libgcc-glibc.ver: Do not define inheritance from
12033         GCC_4.4.0 here.
12034
12035 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
12036
12037         * config/lm32/t-lm32: New file.
12038         * config.gcc: Use the above file when targetting lm32.
12039
12040 2010-03-28  Duncan Sands  <baldrick@free.fr>
12041
12042         * Makefile.in (PLUGIN_HEADERS): Add except.h.
12043
12044 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
12045
12046         PR middle-end/43431
12047         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12048         Improve vectorization cost model diagnostic.
12049
12050 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
12051
12052         PR middle-end/43436
12053         * tree-vect-data-refs.c (vect_analyze_data_refs): When
12054         compute_data_dependences_for_loop returns false, early exit
12055         and output an extra diagnostic for the failed data reference
12056         analysis.
12057
12058 2010-03-29  Richard Guenther  <rguenther@suse.de>
12059
12060         PR tree-optimization/43560
12061         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
12062         (can_sm_ref_p): Treat stores to readonly locations as trapping.
12063
12064 2010-03-29  Jie Zhang  <jie@codesourcery.com>
12065
12066         PR 43564
12067         * toplev.c (process_options): Set optimization_default_node
12068         and optimization_current_node.
12069         * opts.c (decode_options): Don't set optimization_default_node
12070         and optimization_current_node.
12071
12072 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
12073
12074         * config/rtems.h: Abandon -qrtems_debug.
12075
12076 2010-03-28  Jan Hubicka  <jh@suse.cz>
12077
12078         PR tree-optimization/43505
12079         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
12080         map should not be copied.
12081
12082 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12083
12084         PR middle-end/41674
12085         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
12086         cdtors, set DECL_PRESERVE_P.
12087         * ipa.c (cgraph_externally_visible_p): Return true if declaration
12088         should be preseved.
12089
12090 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
12091
12092         PR tree-optimization/43528
12093         * stor-layout.c (place_field): Check that constant fits into
12094         unsigned HWI when skipping calculation of MS bitfield layout.
12095
12096 2010-03-27  Jan Hubicka  <jh@suse.cz>
12097
12098         PR middle-end/43391
12099         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
12100         notice_global_symbol work.
12101
12102 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
12103
12104         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
12105         instead of dwarf2out_decl.
12106         (struct var_loc_node): Remove section_label field.
12107         (dwarf2out_function_decl): New function.
12108         (dwarf2out_var_location): Don't set section_label field.
12109         (dwarf2out_begin_function): Don't empty decl_loc_table here.
12110
12111 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12112
12113         PR tree-optimization/43544
12114         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
12115         First argument for builtin vectorized function hook is now a
12116         tree to be able to distinguish between machine specific and
12117         standard builtins.
12118         * targhooks.c (default_builtin_vectorized_function): Ditto.
12119         * targhooks.h (default_builtin_vectorized_function): Ditto.
12120         * target.h (struct gcc_target): Ditto.
12121         * tree-vect-stmts.c (vectorizable_function): Ditto.
12122         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
12123         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12124         Ditto.
12125
12126 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
12127
12128         PR c/43381
12129         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
12130         nested binding iff it is a FUNCTION_DECL.
12131         (store_parm_decls_newstyle): Pass nested=true to bind for
12132         FUNCTION_DECLs amongst parameters.
12133
12134 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
12135
12136         * var-tracking.c (vt_expand_loc_callback): Don't run
12137         cselib_expand_value_rtx_cb in dummy mode if
12138         cselib_dummy_expand_value_rtx_cb returned false.
12139
12140         * var-tracking.c (emit_note_insn_var_location): For one part
12141         notes with offset 0, don't add EXPR_LIST around the location.
12142         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
12143         add_location_or_const_value_attribute): Adjust for that change.
12144
12145         PR debug/43540
12146         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
12147         into first operand and location into second.
12148         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
12149         dw_cfi_oprnd_loc for DW_CFA_expression.
12150         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
12151         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
12152         assume first argument is regnum and second argument is location.
12153
12154 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
12155
12156         PR target/42113
12157         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
12158         of scratch register to DImode.  Split to DImode comparison operator.
12159         Use SImode subreg of scratch register in the multiplication.
12160         (*cmp_sadd_sidi): Ditto.
12161         (*cmp_ssub_si): Ditto.
12162         (*cmp_ssub_sidi): Ditto.
12163
12164 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
12165
12166         PR target/43524
12167         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
12168         Remove invalid assert and wrong comment.
12169
12170 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
12171
12172         PR debug/43516
12173         * flags.h (final_insns_dump_p): New extern.
12174         * final.c (final_insns_dump_p): New variable.
12175         (rest_of_clean_state): Set it before -fdump-final-insns=
12176         dumping, clear afterwards.
12177         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12178         MEM_ALIAS_SET on MEMs.
12179
12180 2010-03-26  David S. Miller  <davem@davemloft.net>
12181
12182         * configure.ac: Fix sparc GOTDATA_OP bug check.
12183         * configure: Rebuild.
12184
12185 2010-03-26  Alan Modra  <amodra@gmail.com>
12186
12187         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12188
12189 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12190
12191         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12192         TLS_SECTION_ASM_FLAG.
12193
12194 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
12195
12196         PR bootstrap/43511
12197         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12198         Clear first_function_block_is_cold.
12199
12200         PR c/43385
12201         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12202         argument if the argument is truth_value_p.
12203
12204 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12205
12206         * config/rs6000/constraints.md: Update copyright year for my changes.
12207
12208         PR target/43484
12209         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12210         used in reg+reg addressing, swap registers.
12211
12212 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
12213
12214         PR debug/43293
12215         * target.h (struct gcc_target): Add code_end hook.
12216         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12217         if not yet defined.
12218         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12219         * toplev.c (compile_file): Call targetm.asm_out.code_end
12220         hook before unwind info/debug info output.
12221         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12222         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12223         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12224         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12225         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12226         * config/i386/i386.c (ix86_file_end): Renamed to...
12227         (ix86_code_end): ... this.  Make static.  Don't call
12228         file_end_indicate_exec_stack.  Emit unwind info using
12229         final_start_function/final_end_function.
12230         (darwin_x86_file_end): Remove.
12231         (TARGET_ASM_CODE_END): Define.
12232         * config/i386/i386.h (TARGET_ASM_FILE_END,
12233         NEED_INDICATE_EXEC_STACK): Don't define.
12234         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12235         (TARGET_ASM_FILE_END): Define to darwin_file_end.
12236         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12237         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12238
12239         PR target/43498
12240         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12241         at the beginning and final_end_function at the end.
12242         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12243
12244 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12245
12246         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12247         and Sun as TLS syntax.
12248         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12249         * configure: Regenerate.
12250         * config.in: Regenerate.
12251         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12252         (default_elf_asm_named_section): Use it.
12253         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12254         (i386_output_dwarf_dtprel): Likewise.
12255         (output_addr_const_extra): Likewise.
12256         (output_pic_addr_const): Lowercase @GOTTPOFF.
12257         (output_addr_const_extra): Likewise.
12258         (output_pic_addr_const): Lowercase @GOTNTPOFF.
12259         (output_addr_const_extra): Likewise.
12260         (output_pic_addr_const): Lowercase @INDNTPOFF.
12261         (output_addr_const_extra): Likewise.
12262         (output_pic_addr_const): Lowercase @NTPOFF.
12263         (output_addr_const_extra): Likewise.
12264         (output_pic_addr_const): Lowercase @TPOFF.
12265         (output_addr_const_extra): Likewise.
12266         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12267         (*tls_global_dynamic_64): Likewise.
12268         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12269         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12270
12271         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12272         (ASM_OUTPUT_TLS_COMMON): Use it.
12273         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12274
12275         PR target/38118
12276         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12277         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12278         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12279         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12280         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12281         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12282
12283 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12284
12285         * config/i386/i386.c (override_options): Don't accept
12286         -mtls-dialect=sun any longer.
12287         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12288         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12289         (*tls_local_dynamic_base_32_sun): Likewise.
12290         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12291
12292 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
12293
12294         PR debug/43508
12295         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12296         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12297
12298         PR debug/43479
12299         * ira.c (adjust_cleared_regs): New function.
12300         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12301
12302         PR debug/19192
12303         PR debug/43479
12304         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12305         from gimple_block.
12306         * expr.c (expand_expr_real): Restore previous
12307         curr_insn_source_location and curr_insn_block after
12308         expand_expr_real_1 call.
12309         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12310         instead of expand_expr_real_1.
12311
12312 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
12313
12314         PR rtl-optimization/43413
12315         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12316         hard regs too.
12317
12318 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
12319
12320         PR target/43348
12321         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12322         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12323
12324 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12325
12326         * config/i386/i386.c (ix86_target_string): Add -mfma.
12327         Fix a typo in comment.
12328
12329 2010-03-22  Mike Stump  <mikestump@comcast.net>
12330
12331         PR target/23071
12332         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12333         Don't overly align based upon packed packed fields.
12334
12335 2010-03-22  Jason Merrill  <jason@redhat.com>
12336
12337         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12338         Use () rather than [], and move before the element type.
12339
12340 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12341
12342         * doc/configfiles.texi (Configuration Files): Removed
12343         fixinc/Makefile*, intl/Makefile.*.
12344         * doc/makefile.texi: Fixed markup. Abstract from version
12345         control system used.
12346         (Makefile): Removed obsolete gcc/java/parse.y example.
12347         * doc/sourcebuild.texi: Likewise.
12348         (Top Level): Added config, gnattools, libdecnumber, libgcc,
12349         libgomp, libssp.  Removed fastjar.
12350         (Miscellaneous Docs): Clarify location.
12351         Added COPYING3, COPYING3.LIB.
12352         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12353
12354 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12355
12356         PR target/38085
12357         * config/i386/i386.c (x86_function_profiler)
12358         [!NO_PROFILE_COUNTERS]: Fix typo.
12359         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12360         instead of callq.
12361
12362 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
12363             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12364
12365         * doc/sourcebuild.texi (Test Directives): Split into six
12366         subsections, with most of the current text in new subsections
12367         Directives, Selectors, and Final Actions.
12368         (Directives): Split list of test directives into multiple
12369         subsubsections.
12370         (Selectors): Describe use and syntax of selectors.
12371         (Effective-Target Keywords): Describe all existing keywords.
12372         (Add Options): Describe features for dg-add-options.
12373         (Require Support): Describe variants of dg-require-support.
12374         (Final Actions): Describe commands to use in dg-final.
12375
12376 2010-03-22  Michael Matz  <matz@suse.de>
12377
12378         PR middle-end/43475
12379         * recog.c (validate_replace_rtx_group): Replace also in
12380         REG_EQUAL and REG_EQUIV notes.
12381
12382 2010-03-22  Richard Guenther  <rguenther@suse.de>
12383
12384         PR tree-optimization/43390
12385         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12386         sure vector extracts are type correct.
12387
12388 2010-03-22  Richard Guenther  <rguenther@suse.de>
12389
12390         PR middle-end/40106
12391         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12392         x * sqrt (x) even when optimizing for size if the target
12393         has native support for sqrt.
12394
12395 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
12396
12397         * varasm.c (make_decl_rtl_for_debug): Also clear
12398         flag_mudflap for the duration of make_decl_rtl call.
12399
12400         PR debug/43443
12401         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12402         locs from preserved VALUEs.
12403
12404 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12405
12406         PR middle-end/42718
12407         * pa.md (movmemsi): Set align to one if zero.
12408         (movmemdi): Likewise.
12409
12410 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
12411
12412         PR target/42321
12413         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12414         with their corresponding prologue pushes.
12415
12416 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
12417
12418         PR target/43156
12419         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12420         at the begining or end.
12421         (spu_expand_epilogue): Likewise.
12422
12423 2010-03-20  Richard Guenther  <rguenther@suse.de>
12424
12425         PR rtl-optimization/43438
12426         * combine.c (make_extraction): Properly zero-/sign-extend an
12427         extraction of the low part of a CONST_INT.  Also handle
12428         CONST_DOUBLE.
12429
12430 2010-03-19  Mike Stump  <mikestump@comcast.net>
12431
12432         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12433         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12434         (override_options): Use SUBTARGET32_DEFAULT_CPU.
12435
12436 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
12437
12438         PR c/43211
12439         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12440         an error.
12441
12442 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
12443
12444         PR rtl-optimization/42258
12445         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12446         use that may match DEF.
12447
12448         PR target/40697
12449         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12450         the cost of loading the constant rather than assuming
12451         COSTS_N_INSNS (1).
12452         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12453         outer code is AND, do the same tests as the andsi3 expander and
12454         return COSTS_N_INSNS (1) if and is cheap.
12455
12456         * optabs.c (avoid_expensive_constant): Fix formatting.
12457
12458 2010-03-19  Michael Matz  <matz@suse.de>
12459
12460         PR c++/43116
12461         * attribs.c (decl_attributes): When rebuilding a function pointer
12462         type use the same qualifiers as the original pointer type.
12463
12464 2010-03-19  Martin Jambor  <mjambor@suse.cz>
12465
12466         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12467         and is_gimple_ip_invariant_address.
12468
12469 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12470
12471         Revert
12472         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12473
12474         * config/arm/arm.c (arm_override_options): Turn off
12475         flag_dwarf2_cfi_asm for AAPCS variants.
12476
12477 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12478
12479         PR target/43399
12480         * config/arm/arm.c (emit_multi_reg_push): Update comments.
12481         Use PRE_MODIFY instead of PRE_DEC.
12482         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12483         (vfp_emit_fstmd): Likewise.
12484
12485 2010-03-19  Michael Matz  <matz@suse.de>
12486
12487         PR target/43305
12488         * builtins.c (expand_builtin_interclass_mathfn,
12489         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12490         if that fails.
12491
12492 2010-03-19  Richard Guenther  <rguenther@suse.de>
12493
12494         PR tree-optimization/43415
12495         * tree-ssa-pre.c (phi_translate): Split out worker to ...
12496         (phi_translate_1): ... this.
12497         (phi_translate): Move all caching here.  Cache all NARY
12498         and REFERENCE translations.
12499
12500 2010-03-19  David S. Miller  <davem@davemloft.net>
12501
12502         With help from Eric Botcazou.
12503         * config/sparc/sparc.c: Include dwarf2out.h.
12504         (emit_pic_helper): Delete.
12505         (pic_helper_symbol_name): Delete.
12506         (pic_helper_emitted_p): Delete.
12507         (pic_helper_needed): New.
12508         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12509         (get_pc_thunk_name): New.
12510         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
12511         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12512         Set pic_helper_needed to true.  Don't call emit_pic_helper.
12513         (sparc_expand_prologue): Update load_pic_register call.
12514         (sparc_output_mi_thunk): Likewise.
12515         (sparc_file_end): Emit a hidden comdat symbol for the PIC
12516         thunk if possible.  Output CFI information as needed.
12517
12518 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12519             Jack Howarth <howarth@bromo.med.uc.edu>
12520
12521         PR target/36399
12522         * config/i386/i386.h: Fix ABI on darwin x86-32.
12523
12524 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
12525
12526         * tree.h: Declare make_decl_rtl_for_debug.
12527         * varasm.c (make_decl_rtl_for_debug): New.
12528         * dwarf2out.c (rtl_for_decl_location): Call it.
12529         * cfgexpand.c (expand_debug_expr): Call it.
12530
12531 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
12532
12533         PR bootstrap/43399
12534         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12535         mem_mode.
12536
12537         PR bootstrap/43403
12538         * var-tracking.c (vt_init_cfa_base): Do nothing if
12539         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12540
12541 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
12542
12543         PR debug/42873
12544         * var-tracking.c (canonicalize_vars_star): New.
12545         (dataflow_post_merge_adjust): Use it.
12546
12547 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
12548
12549         PR debug/43058
12550         * var-tracking.c (non_suitable_const): New function.
12551         (add_uses): For DEBUG_INSNs with constants, don't record any
12552         value, instead just the constant value itself.
12553         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12554         is not VAR_LOC_UNKNOWN_P, set var to the constant.
12555         (emit_notes_in_bb): Likewise.
12556         (emit_note_insn_var_location): For onepart variables if
12557         cur_loc is a VOIDmode constant, use DECL_MODE.
12558
12559 2010-03-18  Martin Jambor  <mjambor@suse.cz>
12560
12561         PR middle-end/42450
12562         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12563         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12564         all non-clones.  Moved call redirection...
12565         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12566         (cgraph_materialize_all_clones): Dispose of all
12567         combined_args_to_skip bitmaps.
12568         (verify_cgraph_node): Do not check for edges pointing to wrong
12569         nodes in inline clones.
12570         * tree-inline.c (copy_bb): Call
12571         cgraph_redirect_edge_call_stmt_to_callee.
12572         * ipa.c (cgraph_remove_unreachable_nodes): Call
12573         cgraph_node_remove_callees even when there are used clones.
12574
12575 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
12576
12577         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12578
12579 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
12580
12581         PR target/43383
12582         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12583         for 32bit.
12584
12585 2010-03-18  Michael Matz  <matz@suse.de>
12586
12587         PR middle-end/43419
12588         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12589         into sqrt(x) if we need to preserve signed zeros.
12590
12591 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
12592             Eric Botcazou  <ebotcazou@adacore.com>
12593
12594         PR rtl-optimization/43360
12595         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12596         note if we don't know its invariant status.
12597
12598 2010-03-18  Michael Matz  <matz@suse.de>
12599
12600         PR tree-optimization/43402
12601         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12602         PHI chains of ssa names registered for update.
12603
12604 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
12605
12606         PR target/42427
12607         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12608         non-offsettable and pre_modify update addressing.
12609         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12610         and "2" alternatives "#".
12611         (*movdd_softfloat32): Make all alternatives "#";
12612         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12613         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12614         (*movdf_softfloat32): Make all alternatives "#";
12615         (movdi): Use the new DIFD mode iterator to create a common splitter
12616         for movdi, movdf and movdd patterns.
12617
12618 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
12619
12620         * common.opt (dumpdir): Remove redundant tab.
12621
12622 2010-03-17  Martin Jambor  <mjambor@suse.cz>
12623
12624         PR tree-optimization/43347
12625         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12626         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12627
12628 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
12629
12630         PR rtl-optimization/42216
12631         * regrename.c (create_new_chain): New function, broken out from...
12632         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
12633         appending a use to an empty chain.
12634         (build_def_use): Remove previous changes that convert OP_INOUT to
12635         OP_OUT operands; instead detect the case where an OP_INOUT operand
12636         uses a previously untracked register and create an empty chain for it.
12637
12638 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12639
12640         * doc/extend.texi (Function Attributes): Rewrite unfinished
12641         sentence in ms_abi documentation.
12642
12643 2010-03-17  Alan Modra  <amodra@gmail.com>
12644
12645         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12646         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12647         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12648         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12649
12650 2010-03-16  Richard Henderson  <rth@redhat.com>
12651
12652         PR middle-end/43365
12653         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12654         (lower_try_finally): Save and restore eh_seq around the expansion
12655         of the try-finally.
12656
12657 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
12658
12659         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12660         statements before splitting block.
12661
12662 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12663
12664         * doc/sourcebuild.texi (Testsuites): Fix markup.
12665         Use pathnames relative to gcc/testsuite.
12666         (Test Directives): Move description of how timeout is determined.
12667         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12668         (C Tests): Correct gcc.misc-tests directory.
12669         Framework tests now live in gcc.test-framework.
12670
12671 2010-03-16  Richard Guenther  <rguenther@suse.de>
12672
12673         PR middle-end/43379
12674         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12675         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12676
12677 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
12678             Alexandre Oliva  <aoliva@redhat.com>
12679
12680         PR tree-optimization/42917
12681         * lambda-code.c (remove_iv): Skip debug statements.
12682         (lambda_loopnest_to_gcc_loopnest): Likewise.
12683         (not_interesting_stmt): Debug statements are not interesting.
12684
12685 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
12686
12687         PR debug/43051
12688         PR debug/43092
12689         * cselib.c (cselib_preserve_constants,
12690         cfa_base_preserved_val): New static variables.
12691         (preserve_only_constants): New function.
12692         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12693         clear its REG_VALUES.  If cselib_preserve_constants, don't
12694         empty the whole hash table, but preserve there VALUEs with constants,
12695         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12696         (cselib_preserve_cfa_base_value): New function.
12697         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12698         (cselib_init): Change argument to int bitfield.  Set
12699         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12700         is in it.
12701         (cselib_finish): Clear cselib_preserve_constants and
12702         cfa_base_preserved_val.
12703         * cselib.h (enum cselib_record_what): New enum.
12704         (cselib_init): Change argument to int.
12705         (cselib_preserve_cfa_base_value): New prototype.
12706         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12707         * dse.c (dse_step1): Likewise.
12708         * cfgcleanup.c (thread_jump): Likewise.
12709         * sched-deps.c (sched_analyze): Likewise.
12710         * gcse.c (local_cprop_pass): Likewise.
12711         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12712         If FN is non-NULL, call the callback always and whenever it returns
12713         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
12714         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12715         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12716         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12717         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12718         * var-tracking.c: Include recog.h.
12719         (bb_stack_adjust_offset): Remove.
12720         (vt_stack_adjustments): Don't call it, instead just gather the
12721         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12722         (adjust_stack_reference): Remove.
12723         (compute_cfa_pointer): New function.
12724         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12725         (struct adjust_mem_data): New type.
12726         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12727         functions.
12728         (get_address_mode): New function.
12729         (replace_expr_with_values): Use it.
12730         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12731         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
12732         (adjust_sets): Remove.
12733         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12734         Use get_address_mode.
12735         (get_adjusted_src): Remove.
12736         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
12737         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
12738         (add_with_sets): Don't call adjust_sets.
12739         (fp_setter, vt_init_cfa_base): New functions.
12740         (vt_initialize): Change return type to bool.  Move most of pool etc.
12741         initialization to the beginning of the function from end.  Pass
12742         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12743         If !frame_pointer_needed, call vt_stack_adjustment before mos
12744         vector is filled, call vt_init_cfa_base if argp/framep has been
12745         eliminated to sp.  If frame_pointer_needed and argp/framep has
12746         been eliminated to hard frame pointer, set
12747         hard_frame_pointer_adjustment and call vt_init_cfa_base after
12748         encountering fp setter in the prologue.  For MO_ADJUST, call
12749         log_op_type before pusing the op into mos vector, not afterwards.
12750         Call adjust_insn before cselib_process_insn/add_with_sets,
12751         call cancel_changes (0) afterwards.
12752         (variable_tracking_main_1): Adjust for vt_initialize calling
12753         vt_stack_adjustments and returning whether it succeeded or not.
12754
12755 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
12756
12757         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12758         debug statements.
12759
12760 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
12761
12762         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12763         has been set.
12764         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12765         drap_reg has not been set.
12766
12767 2010-03-15  Michael Matz  <matz@suse.de>
12768
12769         PR middle-end/43300
12770         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12771         use it to expand block copies.
12772         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12773         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12774         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12775
12776 2010-03-15  Richard Guenther  <rguenther@suse.de>
12777
12778         PR tree-optimization/43367
12779         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12780         elimination check.
12781
12782 2010-03-15  Richard Guenther  <rguenther@suse.de>
12783
12784         PR tree-optimization/43317
12785         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12786
12787 2010-03-15  Martin Jambor  <mjambor@suse.cz>
12788
12789         PR tree-optimization/43141
12790         * tree-sra.c (create_abstract_origin): New function.
12791         (modify_function): Call create_abstract_origin.
12792
12793 2010-03-15  Chris Demetriou  <cgd@google.com>
12794
12795         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12796         wasn't copied.
12797
12798 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12799
12800         PR middle-end/43354
12801         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12802         call insert_out_of_ssa_copy for default definitions.
12803
12804 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12805
12806         * graphite-clast-to-gimple.c (my_long_long): Defined.
12807         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12808         * graphite-sese-to-poly.c (my_long_long): Defined.
12809         (scop_ivs_can_be_represented): Use it.
12810
12811 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12812
12813         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12814         graphite-max-bbs-per-function, and loop-block-tile-size.
12815         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12816         with "maximum".
12817         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12818
12819 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12820
12821         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12822         forward declaration.
12823         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12824         (add_upper_bounds_from_estimated_nit): New.
12825         (build_loop_iteration_domains): Use it.
12826
12827 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12828
12829         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12830
12831 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12832
12833         PR middle-end/43306
12834         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12835         should be an INTEGER_CST.  Also handle CASE_CONVERT.
12836
12837 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12838
12839         * graphite.c (graphite_initialize): To bound the number of bbs per
12840         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12841         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12842         * doc/invoke.texi: Document it.
12843
12844 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12845
12846         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12847         * graphite-sese-to-poly.h (build_poly_scop): Same.
12848
12849 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12850
12851         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12852         the number of parameters in the scop.  Use as an upper bound
12853         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12854         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12855         * doc/invoke.texi: Document it.
12856
12857 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
12858
12859         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12860         * doc/c-tree.texi: Remove.
12861         * doc/generic.texi: Merge c-tree.texi here.
12862         * doc/gccint.texi (Trees): Remove menu entry.
12863         (c-tree.texi): Remove @include.
12864         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12865         * doc/languages.texi (Reading RTL): Ditto.
12866
12867 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
12868
12869         PR target/42869
12870         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12871
12872 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12873
12874         PR middle-end/42431
12875         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12876         code added to work around reload clobbering CONST insns.
12877
12878 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
12879
12880         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12881         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12882         (cselib_preserve_only_values): Remove retain argument, don't
12883         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12884         * cselib.h (cselib_preserve_only_values): Remove retain argument.
12885         * var-tracking.c (micro_operation): Move insn field before union.
12886         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12887         (struct variable_tracking_info_def): Remove n_mos field, change
12888         mos into a vector of micro_operations.
12889         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12890         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12891         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12892         changing into a vector.
12893         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
12894         come before all other uops generated by add_stores.
12895         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12896         argument removal.
12897         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
12898         a vector.  Run just one pass over the bbs instead of separate counting
12899         and computation phase.
12900         (vt_finalize): Free VTI (bb)->mos vector instead of array.
12901
12902         PR debug/43329
12903         * tree-inline.c (remap_decls): Put old_var rather than origin_var
12904         into *nonlocalized_list vector.
12905         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12906         even if origin is non-NULL.
12907         (gen_variable_die): Likewise.
12908         (process_scope_var): Don't change origin.
12909         (gen_decl_die): Likewise.
12910         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12911         before adding new edges instead of after it, fix moving over
12912         debug stmts.
12913
12914 2010-03-11  David S. Miller  <davem@davemloft.net>
12915
12916         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12917         of four.
12918         * configure: Rebuild.
12919
12920 2010-03-11  Martin Jambor  <mjambor@suse.cz>
12921
12922         PR tree-optimization/43257
12923         * tree.c (assign_assembler_name_if_neeeded): New function.
12924         (free_lang_data_in_cgraph): Assembler name assignment moved to the
12925         above new function.
12926         * tree.h (assign_assembler_name_if_neeeded): Declare.
12927         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12928         the function if needed.
12929
12930 2010-03-11  Chris Demetriou  <cgd@google.com>
12931
12932         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12933         include/stdint-gcc.h, and include/stdint.h world-readable.
12934
12935 2010-03-11  Richard Guenther  <rguenther@suse.de>
12936
12937         PR tree-optimization/43255
12938         * tree-vrp.c (process_assert_insertions_for): Do not insert
12939         asserts for trivial conditions.
12940
12941 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12942
12943         PR tree-optimization/43280
12944         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12945         generation.  Move calculation of size out of the if branch.
12946         (find_bswap): Modify compare number generation.
12947
12948 2010-03-11  Richard Guenther  <rguenther@suse.de>
12949
12950         PR lto/43200
12951         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12952         (input_gimple_stmt): Fixup handled component types during
12953         operand read.  Also fix up decls in ADDR_EXPRs.
12954
12955 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
12956
12957         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12958         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12959
12960 2010-03-10  Jan Hubicka  <jh@suse.cz>
12961
12962         PR c/43288
12963         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12964         * varasm.c (get_variable_section): Don't do that here...
12965         (make_decl_rtl): ... and here.
12966         (do_assemble_alias): Produce decl RTL.
12967         (assemble_alias): Likewise.
12968
12969 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
12970
12971         PR debug/43290
12972         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12973         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12974         of fde->vdrap_reg.
12975         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12976         (based_loc_descr): Only express drap or vdrap regno based expressions
12977         using DW_OP_fbreg when not optimizing.
12978         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12979         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12980         REG_CFA_SET_VDRAP note.
12981
12982 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
12983
12984         PR tree-optimization/43236
12985         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12986         error in calculation of base address in reverse iteration case.
12987         (generate_builtin): Take number of latch executions if the statement
12988         is in the latch.
12989
12990 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
12991
12992         PR middle-end/42859
12993         * tree-eh.c: Include pointer-set.h.
12994         (lower_eh_dispatch): Filter out duplicate case labels and
12995         remove the unneeded edge when the label is unused.  Return
12996         true when some edges are removed.
12997         (execute_lower_eh_dispatch): When any lowering resulted in
12998         removing an edge, also delete unreachable blocks.
12999
13000 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
13001
13002         PR bootstrap/43287
13003         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13004         UNSPEC_MACHOPIC_OFFSET.
13005
13006 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
13007
13008         PR target/43294
13009         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
13010         (m68k_delegitimize_address): New function.
13011
13012 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
13013
13014         PR debug/43299
13015         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
13016
13017         PR debug/43299
13018         * var-tracking.c (adjust_sets): New function.
13019         (count_with_sets, add_with_sets): Use it.
13020         (get_adjusted_src): New inline function.
13021         (add_stores): Use it.
13022
13023         PR debug/43304
13024         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
13025         call cselib_dummy_expand_value_rtx_cb instead of
13026         cselib_expand_value_rtx_cb.
13027
13028         PR debug/43293
13029         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
13030         * config/i386/i386.c: Include debug.h and dwarf2out.h.
13031         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
13032         and .cfi_endproc around the pic thunks.
13033         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
13034         all queued unwind info register saves are saved before the call.
13035         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
13036         considered as sp-=4 for unwind info and the pop as sp+=4 which
13037         also clobbers dest, but doesn't actually restore it.
13038
13039         PR debug/43290
13040         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
13041         RTX_FRAME_RELATED_P.
13042
13043 2010-03-09  Jie Zhang  <jie@codesourcery.com>
13044
13045         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
13046         whitespaces in output template.
13047
13048 2010-03-09  Jie Zhang  <jie@codesourcery.com>
13049
13050         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
13051         out array boundary.
13052
13053 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
13054
13055         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
13056         builtins.exp in a separate job.
13057
13058 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13059
13060         * graphite-sese-to-poly.c (add_param_constraints): Use
13061         lower_bound_in_type and upper_bound_in_type.
13062
13063 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13064
13065         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
13066         instead of unsigned_type_node.
13067
13068 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13069             Reza Yazdani  <reza.yazdani@amd.com>
13070
13071         PR middle-end/43065
13072         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
13073         on pointer type parameters.
13074
13075 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13076
13077         PR middle-end/42644
13078         PR middle-end/42130
13079         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
13080         handle conversions from pointer to integers.
13081         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
13082         induction variable, to be able to work with code generated by CLooG.
13083         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
13084         (build_poly_scop): Bail out if we cannot codegen a loop.
13085
13086 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13087
13088         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
13089         code generation with gloog_error.
13090
13091 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13092
13093         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
13094         Call fold_convert on all the returned values.
13095         (expand_scalar_variables_expr): Pass to
13096         expand_scalar_variables_ssa_name the type of the resulting expression.
13097
13098 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13099
13100         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
13101         ppl_min_for_le_pointset.
13102         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
13103         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
13104
13105 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13106
13107         * graphite-dependences.c (map_into_dep_poly): Removed.
13108         (dependence_polyhedron_1): Use combine_context_id_scat.
13109
13110 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13111
13112         * graphite-poly.h (struct poly_scattering): Add layout documentation.
13113         (struct poly_bb): Same.
13114         (combine_context_id_scat): New.
13115
13116 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13117
13118         PR middle-end/42326
13119         * sese.c (name_defined_in_loop_p): Return false for default
13120         definitions.
13121
13122 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13123
13124         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
13125         and clean up the logic.
13126
13127 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
13128
13129         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
13130         early return.
13131
13132 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
13133
13134         * var-tracking.c (remove_cselib_value_chains): Define only for
13135         ENABLE_CHECKING.
13136         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
13137         delete_slot_part, emit_notes_for_differences_1): Don't call
13138         remove_cselib_value_chains here.
13139         (set_slot_part, emit_notes_for_differences_2): Don't call
13140         add_cselib_value_chains here.
13141         (preserved_values): New vector.
13142         (preserve_value): New function.
13143         (add_uses, add_stores, vt_add_function_parameters): Use it
13144         instead of cselib_preserve_value.
13145         (changed_values_stack): New vector.
13146         (check_changed_vars_0): New function.
13147         (check_changed_vars_1, check_changed_vars_2): Use it.
13148         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
13149         changed_values_stack VALUEs.
13150         (vt_emit_notes): For all preserved_values call
13151         add_cselib_value_chains.  If ENABLE_CHECKING call
13152         remove_cselib_value_chains before verifying value_chains is empty.
13153         Initialize and free changed_values_stack.
13154         (vt_initialize): Initialize preserved_values.
13155         (vt_finalize): Free preserved_values.
13156
13157 2010-03-08  Richard Guenther  <rguenther@suse.de>
13158
13159         PR tree-optimization/43269
13160         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
13161         region detection.
13162
13163 2010-03-08  Martin Jambor  <mjambor@suse.cz>
13164
13165         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
13166         (ipa_is_param_called): Removed.
13167         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
13168         (ipa_print_node_params): Do not print the called flag.
13169         (ipa_write_node_info): Do not stream the called flag.
13170         (ipa_read_node_info): Likewise.
13171
13172 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
13173
13174         PR debug/43176
13175         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13176         * cselib.c (struct expand_value_data): Add dummy field.
13177         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13178         dummy to false.
13179         (cselib_dummy_expand_value_rtx_cb): New function.
13180         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13181         any rtl.
13182         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13183         * var-tracking.c: Include pointer-set.h.
13184         (variable): Change n_var_parts to char from int.  Add
13185         cur_loc_changed and in_changed_variables fields.
13186         (variable_canonicalize): Remove.
13187         (shared_var_p): New inline function.
13188         (unshare_variable): Maintain cur_loc_changed and
13189         in_changed_variables fields.  If var was in changed_variables,
13190         replace it there with new_var.  Just copy cur_loc instead of
13191         resetting it to something else.
13192         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
13193         (dataflow_set_union): Don't call variable_canonicalize.
13194         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13195         of their DEBUG_EXPR_TREE_DECLs.
13196         (canonicalize_loc_order_check): Verify that cur_loc is NULL
13197         and in_changed_variables and cur_loc_changed is false.
13198         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13199         and cur_loc_changed.  Don't update cur_loc here.
13200         (variable_merge_over_src): Don't call variable_canonicalize.
13201         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
13202         removing loc that is equal to cur_loc, clear cur_loc,
13203         set cur_loc_changed and ensure variable_was_changed is called.
13204         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
13205         compare pointers in cur_loc check, if it is equal to loc,
13206         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
13207         (variable_different_p): Remove compare_current_location argument,
13208         don't compare cur_loc.
13209         (dataflow_set_different_1): Adjust variable_different_p caller.
13210         (variable_was_changed): If dv had some var in changed_variables
13211         already, reset in_changed_variables flag for it and propagate
13212         cur_loc_changed over to the new variable.  On empty var
13213         always set cur_loc_changed.  Set in_changed_variables on whatever
13214         var is added to changed_variables.
13215         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13216         Use shared_var_p.  When removing loc that is equal to cur_loc,
13217         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
13218         end, don't set it to something else, just call variable_was_changed.
13219         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
13220         loc being removed, clear cur_loc and set cur_loc_changed.
13221         Set cur_loc_changed if all locations have been removed.
13222         (struct expand_loc_callback_data): New type.
13223         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13224         allocated.  Always create SUBREGs if simplify_subreg failed.
13225         Prefer to use cur_loc, when that fails and still in
13226         changed_variables (and seen first time) recompute it.  Set
13227         cur_loc_changed of variables which had to change cur_loc and
13228         compute elcd->cur_loc_changed if any of the subexpressions used
13229         had to change cur_loc.
13230         (vt_expand_loc): Adjust to pass arguments in
13231         expand_loc_callback_data structure.
13232         (vt_expand_loc_dummy): New function.
13233         (emitted_notes): New variable.
13234         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13235         that weren't used for any other decl in current
13236         emit_notes_for_changes call call vt_expand_loc_dummy to update
13237         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
13238         first loc_chain location if NULL before.  Always use just
13239         cur_loc instead of first loc_chain location.  When cur_loc_changed
13240         is false, when not --enable-checking=rtl just don't emit any note.
13241         When rtl checking, compute the note and assert it is the same
13242         as previous note.  Clear cur_loc_changed and in_changed_variables
13243         at the end before removing from changed_variables.
13244         (check_changed_vars_3): New function.
13245         (emit_notes_for_changes): Traverse changed_vars to call
13246         check_changed_vars_3 on each changed var.
13247         (emit_notes_for_differences_1): Clear cur_loc_changed and
13248         in_changed_variables.  Recompute cur_loc of new_var.
13249         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13250         (vt_emit_notes): Initialize and destroy emitted_notes.
13251
13252 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
13253
13254         PR rtl-optimization/42220
13255         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13256         Use verify_reg_tracked to determine if we should use OP_OUT rather
13257         than OP_INOUT.
13258         (build_def_use): If we see an in-out operand for a register that we
13259         know nothing about, treat is an output if possible, fail the block if
13260         not.
13261
13262 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
13263
13264         PR debug/42897
13265         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13266         permanently.
13267
13268 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
13269
13270         PR debug/42897
13271         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13272         uses of relevant DEFs that are dead outside the loop too.
13273
13274 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
13275
13276         * var-tracking.c (dataflow_set_merge): Swap src and src2.
13277         Reverted:
13278         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
13279         PR debug/41371
13280         * var-tracking.c (values_to_unmark): New variable.
13281         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13282         values_to_unmark vector.  Moved body to...
13283         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
13284         instead queue it into values_to_unmark vector.
13285         (vt_find_locations): Free values_to_unmark vector.
13286
13287 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
13288
13289         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13290         (site.exp): Export them when plugins are enabled.
13291
13292 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
13293
13294         PR middle-end/42326
13295         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13296         that contain scevs.
13297         (chrec_fold_multiply): Same.
13298
13299 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
13300
13301         PR c/43248
13302         * c-decl.c (build_compound_literal): Return early if init is
13303         an error_mark_node.
13304
13305 2010-03-04  Martin Jambor  <mjambor@suse.cz>
13306
13307         PR tree-optimization/43164
13308         PR tree-optimization/43191
13309         * tree-sra.c (type_consists_of_records_p): Reject records with
13310         zero-size bit-fields at the end.
13311
13312 2010-03-04  Mike Stump  <mikestump@comcast.net>
13313
13314         * Makefile.in (TAGS): Remove *.y.
13315
13316 2010-03-04  Richard Guenther  <rguenther@suse.de>
13317
13318         PR tree-optimization/40761
13319         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13320         in reverse order.
13321         (my_rev_post_order_compute): New function.
13322         (init_pre): Call it.
13323
13324 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
13325
13326         PR middle-end/43209
13327         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13328         decrease the cost of an IV candidate when the cost is infinite.
13329
13330 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13331
13332         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13333         Use '3DNow!' for the extension of that name, ensure normal space
13334         after the string.
13335         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13336
13337 2010-03-03  Jeff Law  <law@redhat.com>
13338
13339         * PR middle-end/32693
13340         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13341         than gen_rtx_SUBREG.
13342         (extract_bit_field_1): Likewise.
13343
13344 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
13345
13346         * doc/sourcebuild.texi (Test directives): Document that arguments
13347         include-opts and exclude-opts are now optional for dg-skip-if,
13348         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13349
13350 2010-03-03  Jason Merrill  <jason@redhat.com>
13351
13352         PR c++/12909
13353         * cgraph.h (varpool_node): Add extra_name field.
13354         * varpool.c (varpool_extra_name_alias): New.
13355         (varpool_assemble_decl): Emit extra name aliases.
13356         (varpool_mark_needed_node): Look past an extra name alias.
13357         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13358         * lto-streamer-in.c (lto_input_tree): Read it.
13359         * lto-streamer-out.c (output_unreferenced_globals): Write it.
13360
13361 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13362
13363         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13364         (sparc*-*-solaris2*): ...this.
13365
13366 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
13367
13368         PR debug/43229
13369         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13370         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
13371         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13372         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13373
13374         PR debug/43237
13375         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13376         fallthrough to default handling, just with want_address 0 instead of 2.
13377         For single element lists, add_AT_loc directly, otherwise create an
13378         artificial variable DIE and stick location list to it.
13379
13380         PR debug/43177
13381         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13382         (VAL_EXPR_HAS_REVERSE): Define.
13383         (reverse_op): New function.
13384         (add_stores): For reversible operations add an extra MO_VAL_USE.
13385
13386 2010-03-02  Jason Merrill  <jason@redhat.com>
13387
13388         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13389
13390 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
13391
13392         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13393         (sparc64-*-linux*): Likewise.
13394         (sparc64-*-solaris2*): Include assembler files before linker ones.
13395         (sparc-*-solaris2*): Simplify and reorder to match previous case.
13396         * config/sparc/gas.h: Delete.
13397         * config/sparc/sol2-64.h: Add copyright notice.
13398         * config/sparc/sol2-gas-bi.h: Likewise.
13399         * config/sparc/sol2-gld.h: Likewise.
13400         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13401         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13402         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13403         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13404         (sparc_elf_asm_named_section): Rename into...
13405         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
13406
13407 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
13408
13409         * config/alpha/alpha.c (override_options): Fix -mtune error message.
13410
13411 2010-03-02  Jeff Law  <law@redhat.com>
13412
13413         PR middle-end/42431
13414         * reload1.c (rtx_p, substitute_stack): Declare.
13415         (substitute): Record addresses of changed rtxs.
13416         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13417         Restore the original rtx when complete.
13418         (reload): Free subsitute_stack when complete.
13419
13420 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
13421
13422         * doc/gccint.texi (menu): Add Testsuites as a chapter.
13423         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13424         new chapter.
13425         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13426         LTO Testing, gcov Testing, profopt Testing, compat Testing,
13427         Torture Tests): Change from subsection to section.
13428
13429 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
13430             Steven Bosscher  <steven@gcc.gnu.org>
13431
13432         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13433         instead of bb.
13434
13435 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
13436
13437         PR middle-end/42640
13438         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13439         the assignment from the new induction variable to the assignment
13440         of the value from the original loop PHI function.
13441
13442 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
13443             Daniel Jacobowitz  <dan@codesourcery.com>
13444
13445         * doc/sourcebuild.texi (Test directives): Clarify options to
13446         dg-skip-if.
13447
13448 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13449
13450         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13451         Disable cfi directives unless GCC and gas agree on using read-only
13452         .eh_frame sections for 64-bit.
13453         * configure: Regenerate.
13454
13455 2010-03-01  Richard Guenther  <rguenther@suse.de>
13456
13457         PR tree-optimization/43220
13458         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13459         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13460
13461 2010-03-01  Richard Guenther  <rguenther@suse.de>
13462             Martin Jambor  <mjambor@suse.cz>
13463
13464         PR middle-end/41250
13465         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13466         gimplified parameters.
13467
13468 2010-03-01  Christian Bruel  <christian.bruel@st.com>
13469
13470         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13471
13472 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
13473
13474         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13475
13476 2010-03-01  Richard Guenther  <rguenther@suse.de>
13477
13478         PR middle-end/43213
13479         * expr.c (expand_assignment): Use the alias-oracle to tell
13480         if the rhs aliases the result decl.
13481
13482 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13483
13484         PR pch/14940
13485         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13486         to sol_gt_pch_get_address.
13487         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13488         64-bit, SPARC and x86.
13489         (sol_gt_pch_get_address): New function.
13490
13491 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
13492
13493         * toplev.h (inform_n, error_n): Declare.
13494         * diagnostic.c (inform_n, error_n): New function.
13495
13496 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
13497
13498         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13499         has no rtl yet when processing local_decls, queue it and recheck
13500         if deferred stack allocation hasn't assigned it rtl.
13501
13502 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
13503
13504         * config/sh/sh.c (unspec_bbr_uid): New.
13505         (gen_block_redirect): Use it instead of INSN_UID.
13506         (gen_far_branch): Likewise.
13507
13508 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
13509
13510         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13511         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13512
13513 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13514
13515         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13516         (Warning Options): -Wno-conversion-null is valid for
13517         Objective-C++ as well.
13518         * doc/tm.texi (Named Address Spaces): Likewise.
13519         * doc/plugins.texi (Plugins): Replace TABs with spaces.
13520         * doc/tree-ssa.texi (Tree SSA): Likewise.
13521
13522 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13523
13524         PR bootstrap/43202
13525         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13526         by default.  Don't set the default arch for
13527         i[34567]86-*-darwin*|x86_64-*-darwin*.
13528
13529 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13530
13531         PR bootstrap/43202
13532         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13533         default.  Set the default 32bit/64bit archs with $with_arch
13534         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13535
13536 2010-02-27  Richard Guenther  <rguenther@suse.de>
13537
13538         PR tree-optimization/43186
13539         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13540         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13541         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13542         unroller iterations.
13543
13544 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
13545
13546         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13547         required and i[34567]86-*-* targets don't support 64bit ISA.
13548
13549 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
13550
13551         PR ada/43096
13552         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13553         the same alias set.
13554
13555 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
13556
13557         * config.gcc: Set the default arch at least to Prescott for
13558         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13559         if SSE math is enabled.
13560
13561 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13562
13563         * diagnostic.c (diagnostic_initialize): Update.
13564         (diagnostic_report_diagnostic): Test inhibit_notes_p for
13565         informative notes.
13566         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13567         (diagnostic_inhibit_notes): New.
13568         * toplev.c (process_options): inhibit notes with -fcompare-debug.
13569
13570 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13571
13572         PR c/20631
13573         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13574         * doc/standards.texi: Likewise.
13575         * doc/extend.texi: Likewise.
13576         * doc/trouble.texi: Likewise.
13577         * doc/cppopts.texi: Likewise.
13578         * doc/install.texi: Likewise.
13579         * c.opt (std=c90,std=gnu90): New options.
13580         * c-opts.c (c_common_handle_option): Handle them.
13581
13582 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13583
13584         PR c/24577
13585         * c-decl.c (undeclared_variable): Use an informative note.
13586
13587 2010-02-26  Richard Guenther  <rguenther@suse.de>
13588
13589         PR tree-optimization/43186
13590         * gimple.h (gimple_fold): Remove.
13591         * gimple.c (gimple_fold): Remove.  Inline into single user ...
13592         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13593         Try harder for conditions.
13594
13595 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
13596
13597         PR debug/43190
13598         * function.c (used_types_insert): Don't skip through named pointer
13599         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
13600         and it is different from the main variant's type.
13601
13602 2010-02-26  Nick Clifton  <nickc@redhat.com>
13603
13604         * config/rx/rx.md (sminsi3): Remove bogus alternative.
13605
13606 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
13607
13608         * config.gcc: Support --with-fpmath=sse for x86.
13609
13610         * config/i386/ssemath.h: New.
13611
13612         * doc/install.texi (--with-fpmath=sse): Documented.
13613
13614 2010-02-26  Richard Guenther  <rguenther@suse.de>
13615
13616         PR tree-optimization/43188
13617         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13618         vector types of over-aligned element type.
13619
13620 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
13621
13622         PR target/43175
13623         * config/i386/i386.c (expand_vec_perm_blend): Use correct
13624         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
13625
13626 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
13627
13628         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13629
13630 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
13631
13632         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13633         * var-tracking.c: Include diagnostic.h.
13634         (debug_dv): New function.
13635         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13636
13637         PR debug/43160
13638         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13639         (add_value_chain, add_value_chains, remove_value_chain,
13640         remove_value_chains): Handle DEBUG_EXPRs.
13641         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13642
13643         PR debug/43161
13644         * regcprop.c (struct queued_debug_insn_change): New type.
13645         (struct value_data_entry): Add debug_insn_changes field.
13646         (struct value_data): Add n_debug_insn_changes field.
13647         (debug_insn_changes_pool): New variable.
13648         (free_debug_insn_changes, apply_debug_insn_changes,
13649         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13650         (kill_value_one_regno): Call free_debug_insn_changes if needed.
13651         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13652         fields.
13653         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13654         changes for them.
13655         (copyprop_hardreg_forward_1): Don't call apply_change_group for
13656         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
13657         changes, call cprop_find_used_regs via note_stores.
13658         (copyprop_hardreg_forward): When copying vd from predecessor
13659         which has any queued DEBUG_INSN changes, make sure the pointers are
13660         cleared.  At the end call df_analyze and then if there are any
13661         DEBUG_INSN changes queued at the end of some basic block for still
13662         live registers, apply them.
13663         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13664
13665 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
13666
13667         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13668         (arm*-*-*): Ditto.
13669
13670 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
13671
13672         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13673         targets.  Set the default with_cpu/with_arch from arch/cpu.
13674         Allow x86-64 and native for with_cpu/with_arch.
13675
13676 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
13677
13678         * ebitmap.c: Change calls to verify_popcount with calls to
13679         sbitmap_verify_popcount.
13680         (ebitmap_clear_bit): Fixed map->cacheindex test and
13681         map>cache update when bit clearing results in an empty
13682         element.
13683
13684 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13685
13686         PR target/43154
13687         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13688         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13689         and support both V2DF and V2DI modes.
13690         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13691         support both V2DF and V2DI modes.
13692         (general): Delete trailing whitespace from a few patterns.
13693
13694         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13695         V2DF/V2DI interleave high/low builtins.
13696
13697         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13698         new VSX builtins.
13699
13700         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13701         interleave high/low functions.
13702
13703 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
13704
13705         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13706         #pragma extern_prefix.
13707
13708 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
13709
13710         PR debug/43166
13711         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13712         BLKmode, assert op0 is a MEM and just adjust its mode.
13713
13714         PR debug/43165
13715         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13716         if bitpos isn't multiple of mode's bitsize.
13717
13718 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13719
13720         * c.opt (-ftemplate-depth=): New.
13721         (-ftemplate-depth-): Deprecate.
13722         * optc-gen.awk: Handle -ftemplate-depth=.
13723         * opth-gen.awk: Likewise.
13724         * c-opts.c (c_common_handle_option): Likewise.
13725         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13726
13727 2010-02-24  Jason Merrill  <jason@redhat.com>
13728
13729         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13730
13731 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13732
13733         * cfg.c (alloc_aux_for_block): Remove inline.
13734         (alloc_aux_for_edge): Likewise.
13735
13736 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13737
13738         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13739
13740 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13741
13742         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13743         * config/i386/sol2-gas.h: New file.
13744         * config.gcc (i[34567]86-*-solaris2*): Use it.
13745
13746 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13747
13748         PR c/43128
13749         * c-typeck.c (ep_convert_and_check): New.
13750         (build_conditional_expr): Use it.
13751         (build_binary_op): Likewise.
13752
13753 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
13754
13755         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13756
13757         PR debug/43150
13758         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13759         bounds even for -O+.
13760         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13761         expr needs to have DECL_NAME set.
13762
13763 2010-02-24  Nick Clifton  <nickc@redhat.com>
13764
13765         * config/mep/mep.c: Include gimple.h.
13766         (mep_function_uses_sp): Delete unused function.
13767         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13768         parameters.  Use unsigned integers to count args.  Return a
13769         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
13770
13771 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
13772
13773         PR target/43107
13774         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13775         greater or equal to nelt instead of 2 * nelt.
13776         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13777         with nelt - 1.
13778
13779 2010-02-23  Jason Merrill  <jason@redhat.com>
13780
13781         PR debug/42800
13782         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13783         in cfun->local_decls even if they have register types.
13784
13785         PR c++/42837
13786         * stor-layout.c (place_field): Don't warn about unnecessary
13787         DECL_PACKED if the type is packed.
13788
13789 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
13790
13791         PR target/43139
13792         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13793         GOTOFF relocs, even when the base reg isn't pic pointer.
13794
13795 2010-02-23  Michael Matz  <matz@suse.de>
13796
13797         PR debug/43077
13798         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13799         (expand_gimple_basic_block): Generate and use debug temps if there
13800         are debug uses left after the last real use of TERed ssa names.
13801         Unlink debug immediate uses when they are expanded.
13802
13803 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13804
13805         PR 43123
13806         * config/i386/i386.c (override_options): Reorganise to provide
13807         better error messages.
13808
13809 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13810
13811         PR middle-end/43083
13812         * graphite-scop-detection.c (create_single_exit_edge): Move
13813         the call to find_single_exit_edge to....
13814         (create_sese_edges): ...here.  Don't handle multiple edges
13815         exiting the function.
13816         (build_graphite_scops): Don't handle multiple edges
13817         exiting the function.
13818
13819 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13820
13821         PR middle-end/43097
13822         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13823         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13824
13825 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13826
13827         PR middle-end/43026
13828         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13829
13830 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13831
13832         PR c++/43126
13833         * c-typeck.c (convert_arguments): Print declaration location.
13834         * c-common.c (validate_nargs): Rename as
13835         builtin_function_validate_nargs.
13836         (check_builtin_function_arguments): Update.
13837
13838 2010-02-22  Richard Guenther  <rguenther@suse.de>
13839
13840         PR lto/43045
13841         * tree-inline.c (declare_return_variable): Use the type of
13842         the call stmt lhs if available.
13843
13844 2010-02-22  Duncan Sands  <baldrick@free.fr>
13845
13846         * passes.c (register_pass): Always consider all pass lists when
13847         ref_pass_instance_number is zero.
13848
13849 2010-02-22  Richard Guenther  <rguenther@suse.de>
13850
13851         PR tree-optimization/42749
13852         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13853         parameter.  Do arithmetic in the original type.
13854         (update_accumulator_with_ops): Likewise.
13855         (adjust_accumulator_values): Adjust.
13856
13857 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13858
13859         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13860         (QI to BLKmode splitter): New splitter.
13861
13862 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
13863
13864         * config/i386/i386.c (initial_ix86_tune_features): Turn on
13865         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13866
13867 2010-02-22  Richard Guenther  <rguenther@suse.de>
13868
13869         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13870
13871 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
13872
13873         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13874         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13875         ($(T)crti.o, $(T)crtn.o): Remove rules.
13876
13877 2010-02-21  Tobias Burnus  <burnus@net-b.de>
13878
13879         PR fortran/35259
13880         * doc/invoke.texi (-fassociative-math): Document that this
13881         option is automatically enabled for Fortran.
13882
13883 2010-02-20  David S. Miller  <davem@davemloft.net>
13884
13885         * configure.ac: Test if linker and assembler properly support
13886         GOTDATA_OP relocations.
13887         * configure: Rebuild.
13888         * config.in: Likewise.
13889         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13890         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13891         (movsi_high_pic): Likewise.
13892         (movdi_lo_sum_pic): Likewise.
13893         (movdi_high_pic): Likewise.
13894         (movsi_pic_gotdata_op): New pattern.
13895         (movdi_pic_gotdata_op): Likewise.
13896         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13897         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13898
13899 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
13900
13901         PR target/43067
13902         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13903         attribute to ssemul.
13904         (xop_mulv2div2di3_high): Ditto.
13905
13906 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13907
13908         PR c++/35669
13909         * c.opt (Wconversion-null): New option.
13910         * doc/invoke.texi (Wconversion-null): Document.
13911
13912 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13913
13914         * common.opt (Wlarger-than-): Add Undocumented.
13915
13916 2010-02-19  Mike Stump  <mikestump@comcast.net>
13917
13918         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13919
13920 2010-02-19  Jason Merrill  <jason@redhat.com>
13921
13922         PR target/40332
13923         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13924         * configure: Likewise.
13925
13926 2010-02-20  Alan Modra  <amodra@gmail.com>
13927
13928         PR middle-end/42344
13929         * cgraph.h (cgraph_make_decl_local): Declare.
13930         * cgraph.c (cgraph_make_decl_local): New function.
13931         (cgraph_make_node_local): Use it.
13932         * cgraphunit.c (cgraph_function_versioning): Likewise.
13933         * ipa.c (function_and_variable_visibility): Likewise.
13934
13935 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13936
13937         PR bootstrap/43121
13938         * except.c (sjlj_emit_function_enter): Don't call
13939         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13940         directly.
13941         * rtl.h (add_reg_br_prob_note): Remove prototype.
13942
13943 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13944
13945         PR 41779
13946         * c-common.c (conversion_warning): Remove widening conversions
13947         before checking the conversion of integers to reals.
13948
13949 2010-02-19  Mike Stump  <mikestump@comcast.net>
13950
13951         PR middle-end/43125
13952         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13953
13954         PR objc/43061
13955         * cgraphunit.c (process_function_and_variable_attributes): Check
13956         DECL_PRESERVE_P instead of looking up attribute "used".
13957         * ipa-pure-const.c (check_decl): Likewise.
13958         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13959         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13960         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13961         instead of attribute "used".
13962         * config/sol2-c.c (solaris_pragma_init): Likewise.
13963         (solaris_pragma_fini): Likewise.
13964
13965 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13966
13967         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13968         Use XCNEW instead of xcalloc.
13969         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13970         XNEW instead of xmalloc.
13971         (get_fields): Use XNEWVEC instead of xmalloc.
13972
13973         PR debug/43084
13974         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13975         populate vars array.
13976         (create_new_general_access): For debug stmts just reset value.
13977         (get_stmt_accesses): For accesses within debug stmts just record them
13978         using add_access_to_acc_sites instead of preventing the peeling or
13979         counting them as accesses.
13980
13981         PR middle-end/42233
13982         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13983
13984 2010-02-19  Richard Guenther  <rguenther@suse.de>
13985
13986         PR tree-optimization/42916
13987         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13988         instructions.
13989
13990 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13991
13992         * configure.ac: Replace all uses of changequote in macro arguments
13993         with proper quoting.
13994
13995 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13996
13997         PR middle-end/42233
13998         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13999
14000 2010-02-19  Richard Guenther  <rguenther@suse.de>
14001
14002         PR tree-optimization/42944
14003         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
14004         test for aliasing with errno.
14005
14006 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
14007
14008         PR middle-end/42233
14009         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
14010         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
14011         * dojump.c: Include output.h.
14012         (inv): New inline function.
14013         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
14014         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
14015         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
14016         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
14017         argument, pass it down to other calls.
14018         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
14019         add REG_BR_PROB note to the conditional jump.
14020         * cfgexpand.c (add_reg_br_prob_note): Removed.
14021         (expand_gimple_cond): Don't call it, add the probability
14022         as last argument to jumpif_1/jumpifnot_1.
14023         * Makefile.in (dojump.o): Depend on output.h.
14024         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
14025         callers.
14026         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
14027         * stmt.c (do_jump_if_equal): Likewise.
14028         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
14029         * loop-unswitch.c (compare_and_jump_seq): Likewise.
14030         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
14031         Likewise.
14032         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
14033         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
14034         jumpifnot_1 callers.
14035         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
14036         callers.
14037         (store_expr): Adjust jumpifnot caller.
14038         (store_constructor): Adjust jumpif caller.
14039
14040         PR middle-end/42233
14041         * gimplify.c (gimple_boolify): For __builtin_expect call
14042         gimple_boolify also on its first argument.
14043
14044 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
14045
14046         * configure.ac (gnu-unique-object): Wrap regexps using [] in
14047         changequote block.
14048         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
14049         * configure: Regenerated.
14050
14051 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14052
14053         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
14054         lang_hooks.types_compatible_p instead of comptypes.
14055
14056 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
14057
14058         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
14059         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
14060         if __prefer_thumb__ is defined.
14061
14062 2010-02-18  Martin Jambor  <mjambor@suse.cz>
14063
14064         PR tree-optimization/43066
14065         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
14066         array with zero-sized element type.
14067
14068 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
14069
14070         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
14071         rtx, allocate struct var_loc_node here and return it to the
14072         caller, and only if it is actually needed.
14073         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
14074         move it earlier and return immediately if it returns NULL.
14075
14076 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
14077
14078         * config/sparc/gas.h: New file.  Restore
14079         TARGET_ASM_NAMED_SECTION to its ELF default.
14080         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
14081         check !HAVE_GNU_AS.
14082         * config/sparc/sparc.c (sparc_elf_asm_named_section):
14083         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
14084         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
14085         after sparc/sysv4.h.
14086
14087 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
14088
14089         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
14090
14091 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
14092
14093         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
14094         patterns from predicated pattern.
14095
14096 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
14097
14098         PR target/43103
14099         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
14100         for insn mnemonic suffix.
14101
14102 2010-02-17  Richard Guenther  <rguenther@suse.de>
14103
14104         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
14105         to loop PHI nodes.
14106
14107 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
14108
14109         PR debug/42918
14110         * caller-save.c (save_call_clobbered_regs): If BB ends with
14111         a DEBUG_INSN, move any notes in between last real insn and the last
14112         DEBUG_INSN after the last DEBUG_INSN.
14113
14114 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
14115
14116         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
14117         Fix return type.  Fix argument type.  Explain meaning of return value.
14118
14119 2010-02-16  Richard Guenther  <rguenther@suse.de>
14120
14121         PR tree-optimization/41043
14122         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
14123         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
14124         statements ...
14125         (vrp_visit_phi_node): ... but only for loop PHI nodes.
14126
14127 2010-02-16  Ira Rosen  <irar@il.ibm.com>
14128
14129         PR tree-optimization/43074
14130         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
14131         * tree-vect-loop.c (vect_analyze_loop_operations): Add
14132         vectorizable cycles in hybrid SLP check.
14133         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
14134
14135 2010-02-16  Richard Guenther  <rguenther@suse.de>
14136
14137         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
14138         (true_dependence): If memrefs_conflict_p computes must-alias
14139         trust it.  Move TBAA check after offset-based disambiguation.
14140         (canon_true_dependence): Likewise.
14141
14142 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
14143
14144         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
14145         * doc/invoke.texi: Document it.
14146         * var-tracking.c: Include toplev.h and params.h.
14147         (vt_find_locations): Return bool indicating success.  Compute
14148         hash sizes unconditionally.  Check new parameter, report.
14149         (variable_tracking_main_1): Check vt_find_locations results and
14150         retry.  Renamed from...
14151         (variable_tracking_main): ... this.  New wrapper to preserve
14152         flag_var_tracking_assignments.
14153         * Makefile.in (var-tracking.o): Adjust dependencies.
14154
14155 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
14156             Jakub Jelinek <jakub@redhat.com>
14157
14158         PR target/42854
14159         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
14160         if weak_import attribute is present.
14161         * config/darwin.c (machopic_select_section): Likewise.
14162
14163 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
14164
14165         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
14166         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
14167         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
14168         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
14169
14170         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
14171         types.
14172
14173         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14174         Fix argument types.
14175
14176         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14177         Rewrite text to refer to the names.
14178
14179 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
14180
14181         * config/i386/i386-builtin-types.def
14182         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14183         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14184         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14185         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14186         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14187         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14188         IX86_BUILTIN_VPERMIL2PS256.
14189         (MULTI_ARG_4_DF2_DI_I): Defined.
14190         (MULTI_ARG_4_DF2_DI_I1): Defined.
14191         (MULTI_ARG_4_SF2_SI_I): Defined.
14192         (MULTI_ARG_4_SF2_SI_I1): Defined.
14193         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14194         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14195         __builtin_ia32_vpermil2ps256.
14196         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14197         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14198         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
14199         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14200         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14201         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
14202         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14203         CODE_FOR_xop_vpermil2v8sf3.
14204         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14205         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14206         * config/i386/xopintrin.h (_mm_permute2_pd): New.
14207         (_mm256_permute2_pd): New.
14208         (_mm_permute2_ps): New.
14209         (_mm256_permute2_ps): New.
14210
14211 2010-02-15  Nick Clifton  <nickc@redhat.com>
14212
14213         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14214         boolean parameters.  Use emit_jump_insn when emitting a pop
14215         instruction containing a return insn.
14216         (push): Use 'true' rather than '1' as second parameter to F.
14217         (h8300_expand_prologue): Likewise.
14218         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14219         (h8300_expand_epilogue): Likewise.
14220
14221 2010-02-15  Richard Guenther  <rguenther@suse.de>
14222
14223         PR middle-end/43068
14224         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14225         if that is zero.
14226
14227 2010-02-15  Nick Clifton  <nickc@redhat.com>
14228
14229         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14230         delta.
14231
14232 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
14233
14234         * intl.c (fake_ngettext): New function.
14235         * intl.h (fake_ngettext): Declare.
14236         (ngettext): Define macro.
14237         * collect2.c (notice_translated): New function.
14238         (main): Use notice_translated and ngettext.
14239         * collect2.h (notice_translated): Declare.
14240
14241 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
14242
14243         * reorg.c (delete_computation): Comment fixes.
14244         * caller-save.c (setup_save_areas): Idem.
14245         * sel-sched-dump.c (dump_lv_set): Idem.
14246         * rtl.def: Idem.
14247
14248 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14249
14250         * config/s390/s390.c (s390_sched_init): New function.
14251         (TARGET_SCHED_INIT): Target hook defined.
14252
14253 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
14254             Jack Howarth  <howarth@bromo.med.uc.edu>
14255             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14256
14257         PR target/42982
14258         Partial revert of unintended change in fix for PR41605.
14259         * config/darwin.h: Fix typo.
14260         * config/darwin9.h: Same.
14261
14262 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
14263
14264         * c-pch.c (pch_init): Clear v.
14265
14266 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
14267
14268         PR middle-end/42930
14269         * graphite-scop-detection.c (graphite_can_represent_scev): Call
14270         graphite_can_represent_init for MULT_EXPR.
14271
14272 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
14273
14274         PR middle-end/42914
14275         PR middle-end/42530
14276         * graphite-sese-to-poly.c (remove_phi): New.
14277         (translate_scalar_reduction_to_array): Call remove_phi.
14278
14279 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
14280
14281         PR middle-end/42771
14282         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14283         * graphite-clast-to-gimple.h (gloog): Update declaration.
14284         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14285         * graphite-poly.h (struct poly_bb): Add missing comments.
14286         (struct scop): Add poly_scop_p field.
14287         (POLY_SCOP_P): New.
14288         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14289         * graphite.c (graphite_transform_loops): Build the polyhedral
14290         representation for each scop before code generation.
14291         * sese.c (rename_variables_in_operand): Removed.
14292         (rename_variables_in_expr): Return the renamed expression.
14293         (rename_sese_parameters): New.
14294         * sese.h (rename_sese_parameters): Declared.
14295
14296 2010-02-11  Richard Guenther  <rguenther@suse.de>
14297
14298         PR tree-optimization/42998
14299         * tree-ssa-pre.c (create_expression_by_pieces): Treat
14300         POINTER_PLUS_EXPR properly.
14301
14302 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
14303             Changpeng Fang  <changpeng.fang@amd.com>
14304
14305         PR middle-end/40886
14306         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14307         the cost of an IV candidate when the IV is used in a test against zero.
14308
14309         * gcc.dg/tree-ssa/ivopts-3.c: New.
14310
14311 2010-02-11  Richard Guenther  <rguenther@suse.de>
14312
14313         PR lto/41664
14314         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14315         pointer-vs-decl case by swapping refs.  Handle some cases
14316         of pointer-vs-decl disambiguations more conservatively.
14317         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14318         to false after expanding.
14319
14320 2010-02-11  Richard Guenther  <rguenther@suse.de>
14321
14322         PR driver/43021
14323         * gcc.c (process_command): Handle LTO file@offset case more
14324         appropriately.
14325
14326 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
14327
14328         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14329         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
14330         of DEBUG_INSNs.
14331         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14332
14333         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14334         if MEM's mode size isn't DWARF2_ADDR_SIZE.
14335         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14336         Optimize eq/ne comparisons when both arguments are known to be
14337         zero-extended.
14338         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14339         Don't mask operands unnecessarily if they are known to be already
14340         zero-extended.
14341
14342 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
14343
14344         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14345         instead of loop.
14346
14347 2010-02-10  Richard Guenther  <rguenther@suse.de>
14348
14349         PR tree-optimization/43017
14350         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14351         for wrapping signed arithmetic.
14352
14353 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
14354
14355         PR debug/43010
14356         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14357         if no debug info should be emitted for it.
14358
14359 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
14360
14361         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14362         note when flag_exceptions is set.
14363
14364 2010-02-10  Duncan Sands  <baldrick@free.fr>
14365
14366         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14367
14368 2010-02-10  Richard Guenther  <rguenther@suse.de>
14369
14370         PR c/43007
14371         * tree.c (get_unwidened): Handle constants.
14372         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14373
14374 2010-02-10  Martin Jambor  <mjambor@suse.cz>
14375
14376         PR lto/42985
14377         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14378         check for variable argument counts independently.
14379
14380 2010-02-10  Christian Bruel  <christian.bruel@st.com>
14381
14382         PR target/42841
14383         * config/sh/sh.c (find_barrier): Increase length for non delayed
14384         conditional branches.
14385
14386 2010-02-10  Christian Bruel  <christian.bruel@st.com>
14387
14388         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14389
14390 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
14391
14392         * builtins.c (set_builtin_user_assembler_name): Also handle
14393         ffs if int is smaller than word.
14394
14395 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
14396
14397         PR middle-end/42973
14398         * ira-conflicts.c (get_dup): Remove.
14399         (process_reg_shuffles): Add new parameter.  Use it as an
14400         additional guard for copy generation.
14401         (add_insn_allocno_copies): Rewrite.
14402
14403 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
14404
14405         * common.opt (fsched2-use-traces): Preserved for backward
14406         compatibility.
14407         * doc/invoke.texi: Remove the documentation about option
14408         -fsched2-use-traces.
14409         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14410         flag_sched2_use_traces.
14411         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14412         the backward compatibility flag section.
14413
14414 2010-02-09  Richard Guenther  <rguenther@suse.de>
14415
14416         PR tree-optimization/43008
14417         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14418         make HEAP variables initialized from global memory if they
14419         are not known builtin functions.
14420         (find_func_aliases): Adjust.
14421
14422 2010-02-09  Richard Guenther  <rguenther@suse.de>
14423
14424         PR tree-optimization/43000
14425         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14426         arithmetic manually.
14427
14428 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
14429
14430         PR tree-optimization/42931
14431         * tree-loop-linear.c (try_interchange_loops): Don't call
14432         double_int_mul if estimated_loop_iterations failed.
14433
14434 2010-02-08  Martin Jambor  <mjambor@suse.cz>
14435
14436         PR middle-end/42898
14437         * tree-sra.c (build_accesses_from_assign): Do not mark in
14438         should_scalarize_away_bitmap if stmt has volatile ops.
14439         (sra_modify_assign): Do not process assigns piecemeal if if stmt
14440         has volatile ops.
14441
14442 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
14443
14444         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14445
14446 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
14447
14448         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14449         before the pattern.
14450
14451 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
14452
14453         PR middle-end/42946
14454         * df-core.c (df_finish_pass): Change type of saved_flags to int.
14455
14456 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
14457
14458         PR middle-end/42988
14459         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14460         to unknown_dependence.
14461         (graphite_legal_transform_dr): Handle the unknown_dependence.
14462         (graphite_carried_dependence_level_k): Same.
14463
14464 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
14465
14466         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14467
14468 2010-02-07  Richard Guenther  <rguenther@suse.de>
14469
14470         PR middle-end/42991
14471         * expr.c (get_inner_reference): Always initialize *pbitsize.
14472
14473 2010-02-07  Richard Guenther  <rguenther@suse.de>
14474
14475         PR middle-end/42956
14476         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14477         new ARRAY_REFs on variable size element or minimal index arrays.
14478         Complete.
14479         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14480         gimple_fold_indirect_ref.
14481
14482 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
14483
14484         PR target/42957
14485         * arm.c (arm_override_options): Just return if the user has specified
14486         an invalid fpu name.
14487
14488 2010-02-03  Jason Merrill  <jason@redhat.com>
14489
14490         PR c++/42870
14491         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14492         i386_pe_maybe_record_exported_symbol.
14493
14494 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
14495
14496         PR target/42924
14497         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14498         (pa_delegitimize_address): New function.
14499
14500 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
14501
14502         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14503         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14504
14505 2010-02-05  Richard Guenther  <rguenther@suse.de>
14506
14507         PR lto/42762
14508         * lto-streamer-in.c (get_resolution): Deal with references
14509         to undefined functions.
14510
14511 2010-02-05  Richard Guenther  <rguenther@suse.de>
14512
14513         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14514         (fold_const_aggregate_ref): Likewise.
14515         (ccp_fold_stmt): Substitute loads.
14516         (maybe_fold_reference): Verify types before substituting.
14517         Unshare properly.
14518         (fold_gimple_assign): Unshare properly.
14519         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14520
14521 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
14522
14523         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14524         for rs6000_gen_cell_microcode.
14525
14526 2010-02-04  Richard Guenther  <rguenther@suse.de>
14527
14528         PR rtl-optimization/42952
14529         * dse.c (const_or_frame_p): Remove MEM handling.
14530
14531 2010-02-04  Nick Clifton  <nickc@redhat.com>
14532
14533         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14534         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14535         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14536         (mn10300_asm_output_mi_thunk): New function.
14537         (mn10300_can_output_mu_thunk): New function.
14538         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14539         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
14540         (FUNCTION_ARG): Delete incorrect comment.
14541
14542 2010-02-03  Jason Merrill  <jason@redhat.com>
14543
14544         PR c++/40138
14545         * fold-const.c (operand_equal_p): Handle erroneous types.
14546
14547 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14548
14549         * config/h8300/h8300.md (can_delay): Fix attibute condition.
14550
14551 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
14552
14553         PR rtl-optimization/42941
14554         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14555         of xmalloc.
14556
14557 2010-02-03  Jason Merrill  <jason@redhat.com>
14558
14559         PR c++/35652
14560         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14561
14562 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
14563
14564         PR debug/42896
14565         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
14566         (cselib_reset_table): Renamed from...
14567         (cselib_reset_table_with_next_value): ... this.
14568         (cselib_get_next_uid): Renamed from...
14569         (cselib_get_next_unknown_value): ... this.
14570         * cselib.c (next_uid): Renamed from...
14571         (next_unknown_value): ... this.
14572         (cselib_clear_table): Adjust.
14573         (cselib_reset_table): Adjust.  Renamed from...
14574         (cselib_reset_table_with_next_value): ... this.
14575         (cselib_get_next_uid): Adjust.  Renamed from...
14576         (cselib_get_next_unknown_value): ... this.
14577         (get_value_hash): Use hash.
14578         (cselib_hash_rtx): Likewise.
14579         (new_cselib_val): Adjust.  Set and dump uid.
14580         (cselib_lookup_mem): Pass next_uid as hash.
14581         (cselib_subst_to_values): Likewise.
14582         (cselib_log_lookup): Dump uid.
14583         (cselib_lookup): Pass next_uid as hash.  Adjust.
14584         (cselib_process_insn): Adjust.
14585         (cselib_init): Initialize next_uid.
14586         (cselib_finish): Adjust.
14587         (dump_cselib_table): Likewise.
14588         * dse.c (canon_address): Dump value uid.
14589         * print-rtl.c (print_rtx): Print value uid.
14590         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14591         (dvuid): New type.
14592         (dv_uid): New function, sort of renamed from...
14593         (dv_htab_hash): ... this, reimplemented in terms of it and...
14594         (dv_uid2hash): ... this.  New.
14595         (variable_htab_eq): Drop excess assertions.
14596         (tie_break_pointers): Removed.
14597         (canon_value_cmp): Compare uids.
14598         (variable_post_merge_New_vals): Print uids.
14599         (vt_add_function_parameters): Adjust.
14600         (vt_initialize): Reset table.  Adjust.
14601
14602 2010-02-03  Richard Guenther  <rguenther@suse.de>
14603
14604         PR tree-optimization/42944
14605         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14606         (call_may_clobber_ref_p_1): Likewise.  Properly handle
14607         malloc and calloc clobbering errno.
14608
14609 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
14610
14611         * doc/invoke.texi: Fix name of sched1 dump.
14612
14613         * opts.c (decode_options): Set flag_tree_switch_conversion
14614         only conditionally on optimize >= 2.
14615
14616         * gcse.c: Assorted comment fixes in pass description.
14617
14618 2010-02-03  Anthony Green  <green@moxielogic.com>
14619
14620         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14621         nop padding in order to maintain alignment of storage location of
14622         target function address.
14623         (moxie_trampoline_init): Store target function address at newly
14624         aligned location.
14625         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14626         to 32.
14627         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14628
14629 2010-02-03  Richard Guenther  <rguenther@suse.de>
14630
14631         PR middle-end/42927
14632         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14633
14634 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14635
14636         * config.gcc: Reenable check for obsolete targets.
14637         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14638         mips-sgi-irix6.[0-4]*.
14639
14640 2010-02-02  Nick Clifton  <nickc@redhat.com>
14641
14642         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14643         constant size of 4 as being the same as 0.
14644         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14645         can take values in the range 0..4.
14646
14647 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
14648
14649         PR java/41991
14650         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14651         as _darwin10_Unwind_FindEnclosingFunction().
14652         * libgcc-libsystem.ver: New.
14653
14654 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
14655
14656         PR target/41399
14657         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14658         implicitly set registers.
14659
14660 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
14661
14662         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14663         (arm_override_options): Allow automatic selection of the thread
14664         pointer register if thumb2.
14665         (legitimize_pic_address): Improve code sequences for Thumb2.
14666         (arm_call_tls_get_addr): Likewise.
14667         (legitimize_tls_address): Likewise.
14668         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
14669         (pic_load_addr_32bit): ... this.  New named pattern.
14670         * thumb2.md (pic_load_addr_thumb2): Delete.
14671         (pic_load_dot_plus_four): Delete.
14672         (tls_load_dot_plus_four): New named pattern.
14673
14674 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14675
14676         PR libgomp/29986
14677         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14678         Document fix for TLS bug.
14679
14680 2010-01-31  Richard Guenther  <rguenther@suse.de>
14681
14682         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14683         conservatively correct.
14684
14685 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14686
14687         PR target/42850
14688         Revert:
14689         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14690
14691         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14692
14693 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14694
14695         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14696
14697 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
14698
14699         * config.gcc: Adjust order of makefile fragments for mingw targets.
14700
14701 2010-01-31  Richard Guenther  <rguenther@suse.de>
14702
14703         PR middle-end/42898
14704         * gimplify.c (gimplify_init_constructor): For volatile LHS
14705         initialize a temporary.
14706
14707 2010-01-31  Matthias Klose  <doko@ubuntu.com>
14708
14709         * configure.ac: Fix __stack_chk_fail check for cross builds configured
14710         --with-headers
14711         * configure: Regenerate.
14712
14713 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
14714
14715         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14716         the same alias set and their sizes different constantness.
14717         (aliasing_component_refs_p): Revert 2009-10-24 change.
14718
14719 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14720
14721         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14722         unused.
14723
14724 2010-01-29  Richard Guenther  <rguenther@suse.de>
14725
14726         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14727         Assert we successfully updated the call.
14728
14729 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
14730
14731         PR rtl-optimization/42889
14732         * df.h (df_set_bb_dirty_nonlr): New prototype.
14733         * df-core.c (df_set_bb_dirty_nonlr): New function.
14734         * df-scan.c (df_insn_rescan): Call it instead of
14735         df_set_bb_dirty for DEBUG_INSNs.
14736
14737 2010-01-29  Richard Guenther  <rguenther@suse.de>
14738
14739         PR middle-end/37448
14740         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14741         quadratic behavior in most cases.
14742
14743 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
14744
14745         PR target/42891
14746         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14747         in the call to gen_x86_movsicc_0_m1.
14748
14749 2010-01-28  Richard Guenther  <rguenther@suse.de>
14750
14751         PR tree-optimization/42871
14752         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14753
14754 2010-01-28  Richard Guenther  <rguenther@suse.de>
14755
14756         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14757         into call arguments.
14758
14759 2010-01-28  Richard Guenther  <rguenther@suse.de>
14760
14761         PR middle-end/42883
14762         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14763         the forwarder if the destination is an EH landing pad.
14764
14765 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
14766
14767         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14768         block list passed to gimple_duplicate_sese_tail.
14769         (parallelize_loops): Avoid parallelization when the function
14770         has_nonlocal_label.
14771         Avoid parallelization when the preheader is IRREDUCIBLE.
14772         Try to optimize when estimated_loop_iterations_int is unresolved.
14773         Add the loop's location to the dump file.
14774         * tree-cfg.c (add_phi_args_after_redirect): Remove.
14775         (gimple_duplicate_sese_tail): Remove the check for the latch.
14776         Redirect nexits to the exit block.
14777         Remove handling of the incoming edges to the latch.
14778         Redirect the backedge from the copied latch to the exit bb.
14779
14780 2010-01-28  Michael Matz  <matz@suse.de>
14781
14782         PR target/42881
14783         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14784         Wrap force_reg into a sequence, emit it before user.
14785
14786 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
14787
14788         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14789         (arm_rev): New.
14790         (arm_legacy_rev): Likewise.
14791         (thumb_legacy_rev): Likewise.
14792
14793 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
14794
14795         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14796         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
14797         on MEM's address failed, try avoid_constant_pool_reference and
14798         recurse if it returned something different.
14799         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14800         address, try avoid_constant_pool_reference and recurse if it
14801         returned something different.
14802         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14803         address and avoid_constant_pool_reference returned something
14804         different, don't set have_address.
14805
14806 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
14807
14808         PR debug/42861
14809         * var-tracking.c (val_store): Add modified argument, obey it.
14810         Adjust callers.
14811         (count_uses): Move down logging of main.
14812         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14813         don't need resolution.
14814         (emit_notes_in_bb): Likewise.
14815
14816 2010-01-27  Richard Guenther  <rguenther@suse.de>
14817
14818         PR middle-end/42878
14819         * tree-inline.c (remap_decl): Delay remapping of SSA name
14820         default definitions until we need them.
14821
14822 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
14823
14824         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14825         (rs6000_delegitimize_address): New function.
14826
14827         * config/s390/s390.c (s390_delegitimize_address): Call
14828         delegitimize_mem_from_attrs.
14829
14830         PR middle-end/42874
14831         * tree-inline.c (cannot_copy_type_1): Removed.
14832         (copy_forbidden): Don't forbid copying of functions containing
14833         records/unions with variable length fields.
14834
14835 2010-01-27  Christian Bruel  <christian.bruel@st.com>
14836
14837         Revert:
14838         PR target/42841
14839         * config/sh/sh.c (find_barrier): Increase length for non delayed
14840         conditional branches.
14841
14842 2010-01-27  Matthias Klose  <doko@ubuntu.com>
14843
14844         * configure.ac (gnu-unique-object): Fix ldd version check.
14845         * configure: Regenerate.
14846
14847 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14848
14849         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14850         HAVE_GNU_AS value.
14851         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14852         Test for HAVE_GNU_AS value.
14853
14854 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14855
14856         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14857         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14858         INT64_TYPE): Define.
14859         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14860         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14861         INT_LEAST64_TYPE): Define.
14862         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14863         UINT_LEAST64_TYPE): Define.
14864         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14865         INT_FAST64_TYPE): Define.
14866         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14867         UINT_FAST64_TYPE): Define.
14868         (INTMAX_TYPE, UINTMAX_TYPE): Define.
14869         (INTPTR_TYPE, UINTPTR_TYPE): Define.
14870         (SIG_ATOMIC_TYPE): Define.
14871
14872 2010-01-26  Richard Guenther  <rguenther@suse.de>
14873
14874         * df-scan.c (df_scan_set_bb_info): Remove assert.
14875         (df_insn_rescan_debug_internal): Merge asserts.
14876         (df_install_ref): Likewise.
14877         (df_mark_reg): Use bitmap_set_range.
14878         (df_hard_reg_used_p): Remove assert.
14879         (df_hard_reg_used_count): Likewise.
14880
14881 2010-01-26  Richard Guenther  <rguenther@suse.de>
14882
14883         PR rtl-optimization/42685
14884         * web.c (web_main): Ignore DEBUG_INSNs.
14885
14886 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
14887
14888         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14889
14890         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14891         Fix types of fndecl and arglist parameters.
14892
14893 2010-01-26  Richard Guenther  <rguenther@suse.de>
14894
14895         PR middle-end/42806
14896         * tree-eh.c (unsplit_eh): Skip debug insns.
14897
14898 2010-01-26  Richard Guenther  <rguenther@suse.de>
14899
14900         PR tree-optimization/42250
14901         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14902
14903 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
14904
14905         PR fortran/42866
14906         * omp-low.c (expand_omp_sections): Only use single_pred if
14907         l2_bb is single_pred_p.
14908
14909 2010-01-25  Christian Bruel  <christian.bruel@st.com>
14910
14911         PR target/42841
14912         * config/sh/sh.c (find_barrier): Increase length for non delayed
14913         conditional branches.
14914         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14915
14916 2010-01-24  David S. Miller  <davem@davemloft.net>
14917
14918         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14919         define if not using GAS.
14920         * config/sparc/sparc.c (sparc_elf_asm_named_section):
14921         Likewise.  Delete SECTION_MERGE code, which is only applicable
14922         when using GAS.
14923
14924 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
14925
14926         PR c++/42748
14927         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14928         mangling of va_list in system headers.
14929
14930 2010-01-23  Toon Moene  <toon@moene.org>
14931
14932         * tree-predcom.c (combine_chains): Return NULL, not false.
14933
14934 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
14935
14936         * tree-loop-distribution.c (distribute_loop): Fix declaration and
14937         initialization of variable res to agree with return type.
14938
14939 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
14940
14941         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14942         * tree-sra.c: Add include of expr.h.
14943
14944 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
14945
14946         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14947         insert the debug stmt on the single non-EH edge from the stmt.
14948
14949 2010-01-22  Richard Henderson  <rth@redhat.com>
14950
14951         PR tree-opt/42833
14952         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14953         the RHS until after generate_subtree_copies has insertted its
14954         code before the current statement.
14955
14956 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
14957
14958         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14959
14960         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14961
14962 2010-01-21  Martin Jambor  <mjambor@suse.cz>
14963
14964         PR tree-optimization/42585
14965         * tree-sra.c (struct access): New field grp_total_scalarization.
14966         (dump_access): Dump the new field.
14967         (should_scalarize_away_bitmap): New variable.
14968         (cannot_scalarize_away_bitmap): Likewise.
14969         (sra_initialize): Allocate new bitmaps.
14970         (sra_deinitialize): Free new bitmaps.
14971         (create_access_1): New function.
14972         (create_access): Parts moved to create_access_1.
14973         (type_consists_of_records_p): New function.
14974         (completely_scalarize_record): Likewise.
14975         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14976         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14977         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14978         access.
14979         (analyze_all_variable_accesses): Completely scalarize small eligible
14980         records.
14981
14982 2010-01-21  Martin Jambor  <mjambor@suse.cz>
14983
14984         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14985
14986 2010-01-21  Andrew Haley  <aph@redhat.com>
14987
14988         * gcc.c (process_command): Move lang_specific_driver before
14989         setting cc_libexec_prefix.
14990
14991 2010-01-21  Richard Guenther  <rguenther@suse.de>
14992
14993         PR middle-end/19988
14994         * fold-const.c (negate_expr_p): Pretend only negative
14995         real constants are easily negatable.
14996
14997 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
14998             Jason Merrill  <jason@redhat.com>
14999
15000         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
15001         (TYPE_TRANSPARENT_AGGR): this, for union and record.
15002         * calls.c (initialize argument_information): Handle it.
15003         * c-common.c (handle_transparent_union_attribute): Use new name.
15004         * c-decl.c (finish_struct): Ditto.
15005         * c-typeck.c (type_lists_compatible_p): Ditto.
15006         (convert_for_assignment): Use new name and also handle record.
15007         * function.c (aggregate_value_p): Handle it.
15008         (pass_by_reference): Ditto.
15009         (assign_parm_data_types): Ditto.
15010         * print-tree.c (print_node): Ditto.
15011         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
15012         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
15013         * tree.c (first_field): New fn.
15014
15015 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
15016
15017         PR target/42818
15018         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
15019         even when linking statically, for now.
15020
15021 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
15022
15023         PR debug/42715
15024         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
15025         without a cselib val.
15026         (count_uses): Accept MO_VAL_SET with no val on stores.
15027         (add_stores): Likewise.
15028
15029 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
15030
15031         * var-tracking.c (check_value_val): Add a compile time assertion.
15032         (dv_is_decl_p): Simplify.
15033         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
15034         gcc_assert if ENABLE_CHECKING.
15035
15036 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
15037
15038         PR debug/42782
15039         * var-tracking.c: Include tree-flow.h.
15040         (mem_dies_at_call): New.
15041         (dataflow_set_preserve_mem_locs): Use it.
15042         (dataflow_set_remove_mem_locs): Likewise.
15043         (dump_var): Renamed from dump_variable.  Adjust all callers.
15044         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
15045         * Makefile.in (var-tracking.o): Adjust deps.
15046
15047 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
15048
15049         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
15050
15051 2010-01-20  Richard Guenther  <rguenther@suse.de>
15052
15053         PR tree-optimization/42717
15054         * tree-ssa-dce.c (get_live_post_dom): Remove.
15055         (forward_edge_to_pdom): Take an arbitrary edge to copy
15056         degenerate PHI args from.
15057         (remove_dead_stmt): Use the first post-dominator even if it
15058         does not contain live statements as redirection destination.
15059
15060 2010-01-20  Richard Guenther  <rguenther@suse.de>
15061
15062         * tree-inline.c (estimate_num_insns): Handle EH builtins.
15063
15064 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
15065
15066         * sel-sched.c (create_speculation_check): Remove set but not used
15067         variable twin.
15068         (try_transformation_cache): Remove set but not used variable ds.
15069         (calculate_privileged_insns): Remove set but not used variables
15070         cur_insn and min_spec_insn.
15071         (find_best_expr): Remove set but not used variable avail_n.
15072         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
15073         variable e.
15074         * cgraphunit.c (assemble_thunk): Remove set but not used variable
15075         false_label.
15076         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
15077         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
15078         new_scop_exit_edge.
15079
15080 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
15081
15082         PR bootstrap/42786
15083         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
15084         cpu types.  Add support for *-sse3 cpu types.
15085         (x86_64-*-*): Ditto.
15086
15087 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
15088
15089         PR middle-end/42803
15090         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
15091         argument, call initializer_constant_valid_p_1 instead of
15092         initializer_constant_valid_p, pass CACHE to it, return NULL
15093         immediately if first call returns NULL.
15094         (initializer_constant_valid_p_1): New function.
15095         (initializer_constant_valid_p): Use it.
15096
15097 2010-01-20  Thomas Quinot  <quinot@adacore.com>
15098
15099         * tree.def (PLACEHOLDER_EXPR): Fix comment.
15100
15101 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
15102
15103         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
15104         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
15105         (loc_list_from_tree): Don't handle unsigned division.  Handle
15106         signed modulo using DW_OP_{over,over,div,mul,minus}.
15107         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
15108         modulo instead of signed.
15109
15110 2010-01-20  DJ Delorie  <dj@redhat.com>
15111
15112         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
15113         (Fpa): Pass it
15114         (h8300_emit_stack_adjustment): Propogate it.
15115         (push): Pass it.
15116         (h8300_expand_prologue): Likewise.
15117         (h8300_expand_epilogue): Likewise.
15118
15119 2010-01-19  Michael Matz  <matz@suse.de>
15120
15121         PR tree-optimization/41783
15122         * tree-data-ref.c (toplevel): Include flags.h.
15123         (dump_data_dependence_relation):  Also dump the inputs if the
15124         result will be unknown.
15125         (split_constant_offset_1): Look through some conversions.
15126         * tree-predcom.c (determine_roots_comp): Restart a new chain if
15127         the offset from last element is too large.
15128         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
15129         (reassociate_to_the_same_stmt): Handle vector registers.
15130         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
15131         (e.g. conversions).
15132         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
15133         wide_prolog_niters argument, emit widening instructions.
15134         (vect_do_peeling_for_alignment): Adjust caller, use widened
15135         variant of the iteration cound.
15136         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
15137
15138 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15139
15140         PR target/38697
15141         * config/arm/neon-testgen.m (emit_automatics): New parameter
15142         features. Adjust for Fixed_return_reg feature.
15143         (test_intrinsic): Call emit_automatics with new feature.
15144         * config/arm/neon.ml: Update copyright years.
15145         (features): New Fixed_return_reg feature.
15146         (ops): Update feature for Vget_low.
15147
15148 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
15149
15150         PR tree-optimization/42719
15151         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
15152         stmt uses.
15153
15154         PR debug/42728
15155         * fwprop.c (all_uses_available_at): Return false if def_set dest
15156         is a REG that is used in def_insn.
15157
15158 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
15159
15160         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
15161
15162         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
15163         Add argument names.
15164
15165         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
15166
15167         * target.h (struct gcc_target) <secondary_reload>: Change type
15168         of last argument to secondary_reload_info *.
15169
15170 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
15171
15172         PR target/42774
15173         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15174         memory references with unaligned offsets.  Remove CQImode handling.
15175         (unaligned_memory_operand): Return 1 for memory references with
15176         unaligned offsets.  Remove CQImode handling.
15177
15178 2010-01-18  Richard Guenther  <rguenther@suse.de>
15179
15180         PR middle-end/39954
15181         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15182         builtin calls.
15183
15184 2010-01-18  Richard Guenther  <rguenther@suse.de>
15185
15186         PR tree-optimization/42781
15187         * tree-ssa-structalias.c (find_what_var_points_to): Skip
15188         restrict processing only if the original variable was artificial.
15189
15190 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
15191
15192         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15193         find number of popped argument bytes.
15194
15195         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15196         Fix the text that describes the return value for invalid insns.
15197
15198         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
15199
15200         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15201         Clarify what 'cost of the -dependence' is.  Fix quoting.
15202
15203         * toplev.c (default_get_pch_validity): Rename argument to "sz".
15204         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15205
15206 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
15207
15208         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15209         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15210
15211 2010-01-17  Richard Guenther  <rguenther@suse.de>
15212
15213         PR middle-end/42248
15214         * function.c (split_complex_args): Take a VEC to modify.
15215         (assign_parms_augmented_arg_list): Build a VEC instead of
15216         a chain of PARM_DECLs.
15217         (assign_parms_unsplit_complex): Take a VEC of arguments.
15218         Do not fixup unmodified parms.
15219         (assign_parms): Deal with the VEC.
15220         (gimplify_parameters): Likewise.
15221
15222 2010-01-17  Richard Guenther  <rguenther@suse.de>
15223
15224         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15225         node existence check.
15226         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15227         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15228         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15229         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15230         (gimple_execute_on_growing_pred): Likewise.
15231
15232 2010-01-17  Richard Guenther  <rguenther@suse.de>
15233
15234         PR tree-optimization/42773
15235         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15236         (compute_antic_aux): Likewise.
15237         (compute_partial_antic_aux): Likewise.
15238
15239 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
15240
15241         PR debug/42767
15242         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15243         and US_TRUNCATE.
15244
15245 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
15246
15247         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15248         appearance.
15249
15250         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15251         Fix markup for strict argument.
15252
15253         (TARGET_SCHED_REORDER2): Fix argument types.
15254
15255         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15256         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15257
15258         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15259         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15260
15261         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15262         Add argument name.
15263
15264         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15265         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15266         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15267         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15268         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15269
15270         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15271
15272         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15273
15274         (TARGET_ASM_RELOC_RW_MASK): Add return type.
15275         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15276
15277         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15278
15279         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15280         Use prototype.
15281
15282         (TARGET_ASM_NAMED_SECTION): Fix argument list.
15283
15284         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15285         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15286
15287         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15288
15289         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15290
15291         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15292         referring to it.  Fix language.
15293
15294         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15295
15296         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15297
15298         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15299
15300         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15301
15302         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15303         '@var{stream}.  Remove stray 'and'.
15304
15305         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15306
15307         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15308
15309         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15310
15311         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15312         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15313
15314         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15315         Fix description of return value.
15316         Rename argument "sz" to "len."
15317
15318         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15319         Clarify meaning of 'true' return value.
15320
15321         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15322
15323         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15324         rep_mode versus mode_rep.
15325
15326         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15327
15328         (TARGET_BUILTIN_DECL): Fix name.
15329
15330         (TARGET_COMMUTATIVE_P): Fix type of first argument.
15331
15332         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15333
15334         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15335
15336         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15337
15338         (TARGET_RELAXED_ORDERING): Use @deftypevr.
15339
15340         (TARGET_GET_DRAP_RTX): Note that this is a hook.
15341         Clarify language.
15342
15343         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15344         Rename argument tm_fn to md_fn.
15345
15346         (TARGET_OPTION_PRINT): Fix argument list.
15347
15348 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
15349
15350         PR target/42664
15351         * config/i386/i386.c (ix86_fixup_binary_operands):
15352         Revert FMA4 fixup of operands.
15353
15354 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15355
15356         PR gcc/42525
15357         * Makefile.in (write_entries_to_file, install-plugin):
15358         Use \012 instead of \n with tr.
15359
15360 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
15361
15362         * configure.ac (HAVE_AS_REF): New C macro.
15363         * configure: Regenerate.
15364         * config.in: Likewise.
15365         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15366         if HAVE_AS_REF.
15367         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15368         if HAVE_AS_REF.
15369
15370 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
15371
15372         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15373
15374         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15375
15376         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15377
15378         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15379
15380         (TARGET_IN_SMALL_DATA_P): Fix argument type.
15381
15382         (TARGET_BINDS_LOCAL_P): Fix argument type.
15383
15384         (TARGET_ASM_FILE_END): Use prototype.
15385
15386         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15387
15388         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15389
15390         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15391
15392         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15393
15394         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15395         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15396
15397         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15398         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15399
15400         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15401         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15402         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15403         (TARGET_ADDR_SPACE_CONVERT): Likewise.
15404
15405         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15406
15407         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15408
15409         (TARGET_INIT_BUILTINS): Use prototype.
15410
15411         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15412         Put 'const char *' in braces.  Fix parameter types.
15413         (TARGET_INVALID_CONVERSION): Fix parameter types.
15414         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15415         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15416
15417         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15418         Fix argument type.
15419
15420         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15421
15422         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15423
15424 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
15425
15426         * doc/tm.texi (TARGET_HELP): Fix return type.
15427
15428         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15429         in braces.  Fix argument types.
15430
15431         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15432
15433         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15434
15435         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15436
15437         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15438         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15439
15440         (TARGET_MANGLE_TYPE): Fix argument types.
15441
15442         (TARGET_IRA_COVER_CLASSES): Use prototype.
15443
15444         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
15445
15446         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15447
15448         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15449
15450         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15451
15452         (TARGET_CALLEE_COPIES): Fix argument types.
15453
15454         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15455
15456         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15457
15458         (TARGET_FUNCTION_VALUE): Fix argument types.
15459
15460         (TARGET_RETURN_IN_MSB): Fix argument type.
15461
15462         (TARGET_RETURN_IN_MEMORY): Fix argument types.
15463
15464         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15465
15466         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15467
15468         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15469         agree with return type.
15470
15471         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15472
15473 2010-01-15  Jing Yu  <jingyu@google.com>
15474
15475         PR rtl-optimization/42691
15476         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15477         a pseudo to a constant and are merged, and adjust comments.
15478
15479 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15480
15481         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15482
15483 2010-01-15  Richard Guenther  <rguenther@suse.de>
15484
15485         PR middle-end/42739
15486         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15487         labels of computed or non-local gotos to the destination.
15488         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15489         landing pad label is the first label.
15490
15491 2010-01-15  Richard Guenther  <rguenther@suse.de>
15492
15493         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15494
15495 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15496
15497         PR target/42747
15498         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15499         to allow generation of the xssqrtdp instruction on power7.
15500         (sqrtdf2_fpr): Ditto.
15501
15502 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
15503
15504         PR middle-end/42674
15505         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15506         functions with noreturn attribute.
15507
15508         PR c++/42608
15509         * varasm.c (declare_weak): Add weak attribute to decl if it
15510         doesn't have one already.
15511         (assemble_external): Only add decls to weak_decls if they also
15512         have weak attribute.
15513
15514 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
15515
15516         * var-tracking.c (var_reg_delete): Don't delete the association
15517         between REGs and values or one-part variables if the register
15518         isn't clobbered.
15519
15520 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
15521
15522         PR debug/42657
15523         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15524         because its first operand is a non-localized variable.
15525
15526 2010-01-14  Martin Jambor  <mjambor@suse.cz>
15527
15528         PR tree-optimization/42706
15529         * tree-sra.c (encountered_recursive_call): New variable.
15530         (encountered_unchangable_recursive_call): Likewise.
15531         (sra_initialize): Initialize both new variables.
15532         (callsite_has_enough_arguments_p): New function.
15533         (scan_function): Call decl and flags check only for IPA-SRA, check
15534         whether there is a recursive call and whether it has enough arguments.
15535         (all_callers_have_enough_arguments_p): New function.
15536         (convert_callers): Look for recursive calls only when
15537         encountered_recursive_call is set.
15538         (ipa_early_sra): Bail out either if
15539         !all_callers_have_enough_arguments_p or
15540         encountered_unchangable_recursive_call.
15541
15542 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15543
15544         * sel-sched.c: Add 2010 to copyright years.
15545         * sel-sched-ir.c: Likewise.
15546         * sel-sched-ir.h: Likewise.
15547
15548 2010-01-14  Martin Jambor  <mjambor@suse.cz>
15549
15550         PR tree-optimization/42714
15551         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15552         constructors specially.
15553
15554 2010-01-14  Andi Kleen  <ak@linux.intel.com>
15555
15556         * config/i386/drivers-i386.c (detect_caches_intel):
15557         Add l2sizekb parameter and fill in.
15558         (host_detect_local_cpu): Add l2sizekb, fill in.
15559         Add Atom small cache heuristic.
15560
15561 2010-01-14  Andi Kleen  <ak@linux.intel.com>
15562
15563         * config/i386/drivers-i386.c (detect_caches_cpuid4):
15564         Add level3 parameter and fill in.
15565         (detect_caches_intel): Handle level3 cache.
15566
15567 2010-01-14  Andi Kleen  <ak@linux.intel.com>
15568
15569         * config/i386/drivers-i386.c (host_detect_local_cpu):
15570         Fix core duo detection.
15571
15572 2010-01-14  Andi Kleen  <ak@linux.intel.com>
15573
15574         * config/i386/drivers-i386.c (host_detect_local_cpu):
15575         Fix Atom detection.
15576
15577 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15578
15579         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15580         (rs6000_variable_issue_1): this.  Use...
15581         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
15582
15583 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15584
15585         * sel-sched-ir.c (sel_restore_other_notes): Rename to
15586         sel_restore_notes.  Update all callers.  Call reemit_notes
15587         for all insns.
15588
15589 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
15590
15591         PR rtl-optimization/42246
15592         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15593         loops.
15594
15595 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
15596
15597         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15598         all successors is the same as number of successors in current region.
15599
15600 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15601
15602         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15603         to rename is not separable.  Otherwise check that its LHS is not NULL.
15604
15605 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15606
15607         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
15608
15609 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15610
15611         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15612         available registers when failed to discover LHS register class.
15613         Fix indentation.  Update comment.
15614
15615 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
15616             Alexander Monakov  <amonakov@ispras.ru>
15617
15618         PR rtl-optimization/42389
15619         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15620         to can_issue_more.
15621         (advance_state_on_fence): Likewise.
15622         (sel_target_adjust_priority): Print debug output only when
15623         sched_verbose >= 4, not 2.
15624         (get_expr_cost): Do not issue all unique insns on the next cycle.
15625         (fill_insns): Initialize can_issue_more from the value saved
15626         with the fence.
15627         * sel-sched-ir.c (flist_add): New parameter issue_more.
15628         Init FENCE_ISSUE_MORE with it.
15629         (merge_fences): Likewise.
15630         (init_fences): Update call to flist_add.
15631         (add_to_fences, add_clean_fence_to_fences)
15632         (add_dirty_fence_to_fences): Likewise.
15633         (move_fence_to_fences): Update call to merge_fences.
15634         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15635         sched groups.
15636         * sel-sched-ir.h (struct _fence): New field issue_more.
15637         (FENCE_ISSUE_MORE): New accessor macro.
15638
15639 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
15640
15641         PR rtl-optimization/42388
15642         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15643         that have no predecessors nor successors.  Do not call move_bb_info
15644         for empty blocks outside of current region.
15645
15646 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15647
15648         PR rtl-optimization/42294
15649         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15650         * sel-sched.c (move_exprs_to_boundary): Transitively add all
15651         originators' originators.
15652
15653 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
15654
15655         PR rtl-optimization/39453
15656         PR rtl-optimization/42246
15657         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15658         for pipelining_p.
15659         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15660
15661 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
15662             Alexander Monakov  <amonakov@ispras.ru>
15663
15664         PR middle-end/42245
15665         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
15666         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
15667         argument.  Update all callers.
15668         (tidy_control_flow): ... and here.  Recompute topological order
15669         of basic blocks in region if necessary.
15670         (sel_redirect_edge_and_branch): Change return type.  Return true
15671         if topological order might have been invalidated.
15672         (purge_empty_blocks): Export and move from...
15673         * sel-sched.c (purge_empty_blocks): ... here.
15674         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15675         (maybe_tidy_empty_bb): Delete prototype.
15676         (purge_empty_blocks): Declare.
15677
15678 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
15679
15680         PR rtl-optimization/42249
15681         * sel-sched.c (try_replace_dest_reg): When chosen register
15682         and original register is the same, do not bail out early, but
15683         still check all original insns for validity of replacing destination
15684         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15685         in this case.
15686
15687 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
15688
15689         PR c/42721
15690         Port from no-undefined-overflow branch:
15691         2009-03-09  Richard Guenther  <rguenther@suse.de>
15692
15693         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15694
15695 2010-01-14  Richard Guenther  <rguenther@suse.de>
15696
15697         PR lto/42665
15698         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15699
15700 2010-01-14  Ira Rosen  <irar@il.ibm.com>
15701
15702         PR tree-optimization/42709
15703         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15704         as scalar type in creation of constant vector operand.
15705
15706 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15707
15708         PR testsuite/42414
15709         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15710         (check-parallel-%): Match `testsuite' directory component only
15711         at the end.
15712
15713 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
15714
15715         PR translation/39521
15716         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15717         strings with _().
15718
15719 2010-01-13  Richard Guenther  <rguenther@suse.de>
15720
15721         PR tree-optimization/42730
15722         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15723         offset zero.
15724
15725 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
15726
15727         PR target/pr42542
15728         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15729         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15730         them signed.
15731
15732 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
15733
15734         * config/bfin/libgcc-bfin.ver: Regenerate based on current
15735         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
15736         ___umulsi3_highpart.
15737
15738         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15739         rather than schedule_insns if the pass is enabled.
15740
15741 2010-01-13  Martin Jambor  <mjambor@suse.cz>
15742
15743         PR tree-optimization/42704
15744         * tree-sra.c (sra_modify_assign): Do not delete assignments to
15745         SSA_NAMEs.
15746
15747 2010-01-13  Martin Jambor  <mjambor@suse.cz>
15748
15749         PR tree-optimization/42703
15750         * tree-sra.c (analyze_access_subtree): Check that we can build a
15751         reference to the original data within the aggregate.
15752
15753 2010-01-13  Richard Guenther  <rguenther@suse.de>
15754
15755         PR tree-optimization/42705
15756         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15757
15758 2010-01-13  Richard Guenther  <rguenther@suse.de>
15759
15760         PR middle-end/42716
15761         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15762
15763 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
15764
15765         PR debug/41371
15766         * var-tracking.c (values_to_unmark): New variable.
15767         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15768         values_to_unmark vector.  Moved body to...
15769         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
15770         instead queue it into values_to_unmark vector.
15771         (vt_find_locations): Free values_to_unmark vector.
15772
15773 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
15774
15775         * config/s390/s390.c (override_options): Set
15776         default of max-pending-list-length to 256
15777
15778 2010-01-13  Richard Guenther  <rguenther@suse.de>
15779
15780         PR lto/42678
15781         * tree-pass.h (PROP_gimple_lcx): New.
15782         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15783         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15784         before the final cleanup_eh.
15785         (dump_properties): Dump PROP_gimple_lcx.
15786         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15787         (tree_lower_complex_O0): Remove.
15788         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15789         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
15790         tree_lower_complex, schedule TODO_update_ssa.
15791         * lto-streamer-out.c (output_function): Stream the functions
15792         properties.
15793         * lto-streamer-in.c (input_function): Likewise.
15794         (lto_read_body): Do not override them here.
15795
15796 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
15797
15798         PR c/42708
15799         * c-typeck.c (build_c_cast): Fold value cast to union type before
15800         wrapping it in a CONSTRUCTOR.
15801
15802 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
15803
15804         PR rtl-optimization/42699
15805         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15806         involved.
15807
15808 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15809
15810         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15811         SUBTARGET_WARN_UNUSED_SPEC): Move ...
15812         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15813         SUBTARGET_WARN_UNUSED_SPEC): ... here
15814         * config/mips/iris5.h (LIBGCC_SPEC): Define.
15815
15816 2010-01-12  Julian Brown  <julian@codesourcery.com>
15817
15818         * config/arm/neon-schedgen.ml (Utils): Don't try to
15819         open missing module.
15820         (find_with_result): New.
15821
15822 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
15823
15824         PR debug/42662
15825         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15826         sharing when canonicalizing ({lt,ge}u (plus a b) b).
15827
15828         PR tree-optimization/42645
15829         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
15830         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15831         decl_map, set processing_debug_stmt to -1 and return name without
15832         any remapping.
15833
15834 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
15835
15836         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15837         binutils version, and reword target configuration description.
15838
15839 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
15840
15841         * config/avr/avr.h (LINKER_NAME): Remove.
15842
15843 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
15844
15845         PR target/42416
15846         * config/rs6000/rs6000.c (rs6000_override_options): On targets
15847         that support VSX, warn for -mno-altivec if vsx is not disabled,
15848         and disable vsx.
15849
15850 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
15851             Shujing Zhao  <pearly.zhao@oracle.com>
15852
15853         PR translation/42469
15854         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15855         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15856         character between option name and help text.
15857         * c.opt (imultilib): Likewise.
15858
15859 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
15860
15861         * lto-streamer-out.c (output_unreferenced_globals): Output static
15862         variables.
15863
15864 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
15865
15866         PR rtl-optimization/42621
15867         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15868         optimizing for size.
15869         (duplicate_computed_gotos): Remove now-redundant check.
15870
15871 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
15872
15873         PR target/37454
15874         * configure.ac: Save and restore LDFLAGS and LIBS
15875         * configure: Regenerate.
15876
15877 2010-01-10  Richard Guenther  <rguenther@suse.de>
15878
15879         PR middle-end/42667
15880         * builtins.c (fold_builtin_strlen): Add type argument and
15881         convert the resulting length to it.
15882         (fold_builtin_1): Adjust.
15883
15884 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
15885
15886         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15887         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15888         1 insn.
15889         (num_insns_constant_wide): Adjust for that change.
15890
15891 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15892
15893         PR debug/42631
15894         * web.c (union_defs): Add used argument, to combine uses of
15895         uninitialized regs.
15896         (entry_register): Adjust type and tests of used argument.
15897         (web_main): Widen used for new use.  Pass it to union_defs.
15898         * df.h (union_defs): Adjust prototype.
15899
15900 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15901
15902         PR debug/42630
15903         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15904         uses in new incoming argument.  Free body.
15905         (reset_debug_uses_in_loop): New.
15906         (analyze_insn_to_expand_var): Call the latter if the former found
15907         anything.  Fix whitespace.  Reject invalid dest overlaps before
15908         going through all insns in the loop.
15909
15910 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15911
15912         PR debug/42629
15913         * haifa-sched.c (dying_use_p): Debug insns don't count.
15914
15915 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15916
15917         PR middle-end/42363
15918         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15919         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15920         (verify_gimple_call): Reject LHS in noreturn calls.
15921
15922 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15923
15924         PR debug/42604
15925         PR debug/42395
15926         * tree-vect-loop-manip.c (adjust_info): New type.
15927         (adjust_vec): New pointer to vector.
15928         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15929         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15930         (slpeel_update_phis_for_duplicate_loop): Use them.
15931         (slpeel_update_phi_nodes_for_guard1): Likewise.
15932         (slpeel_update_phi_nodes_for_guard2): Likewise.
15933         (slpeel_tree_peel_loop_to_edge): Likewise.
15934         (vect_update_ivs_after_vectorizer): Likewise.
15935
15936 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15937
15938         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15939         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15940
15941 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15942
15943         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15944         bogus uninitialized warning.
15945
15946 2010-01-09  Richard Guenther  <rguenther@suse.de>
15947
15948         PR middle-end/42512
15949         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15950         the evolution is compatible with the initial condition.
15951
15952 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
15953
15954         * gcc.c (process_command): Update copyright notice dates.
15955         * gcov.c (print_version): Likewise.
15956         * gcov-dump.c (print_version): Likewise.
15957         * mips-tfile.c (main): Likewise.
15958         * mips-tdump.c (main): Likewise.
15959
15960 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
15961
15962         PR target/41885
15963         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15964         (rotlhi3): Delete.
15965         (rotlhi3_8): Delete.
15966         (rotlsi3): Delete.
15967         (rotlsi3_8): Delete.
15968         (rotlsi3_16): Delete.
15969         (rotlsi3_24): Delete.
15970         (rotl<mode>3): New.
15971         (*rotw<mode>3): New.
15972         (*rotb<mode>3): New.
15973         * config/avr/avr.c (avr_rotate_bytes): New function.
15974         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15975
15976 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
15977
15978         PR target/37454
15979         * configure.ac: Modify -rdynamic check.
15980         * configure: Regenerate.
15981
15982 2010-01-08  DJ Delorie  <dj@redhat.com>
15983
15984         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15985         register popping order.
15986
15987 2010-01-08  Richard Guenther  <rguenther@suse.de>
15988
15989         PR lto/42528
15990         * c.opt (fsigned-char): Also let LTO handle this option.
15991         (funsigned-char): Likewise.
15992
15993 2010-01-07  Richard Guenther  <rguenther@suse.de>
15994
15995         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15996         (gimple_op): Likewise.
15997         (gimple_op_ptr): Likewise.
15998         (gimple_assign_set_lhs): Remove gcc_assert.
15999         (gimple_assign_set_rhs1): Likewise.
16000         (gimple_assign_set_rhs2): Likewise.
16001         (gimple_call_set_lhs): Likewise.
16002         (gimple_call_set_fn): Likewise.
16003         (gimple_call_set_fndecl): Likewise.
16004         (gimple_call_fndecl): Likewise.
16005         (gimple_call_return_type): Likewise.
16006         (gimple_call_set_chain): Likewise.
16007         (gimple_call_num_args): Likewise.
16008         (gimple_call_set_arg): Likewise.
16009         (gimple_cond_set_code): Likewise.
16010         (gimple_cond_set_lhs): Likewise.
16011         (gimple_cond_set_rhs): Likewise.
16012         (gimple_cond_set_true_label): Likewise.
16013         (gimple_cond_set_false_label): Likewise.
16014         (gimple_label_set_label): Likewise.
16015         (gimple_goto_set_dest): Likewise.
16016         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
16017         (gimple_debug_bind_get_value): Likewise.
16018         (gimple_debug_bind_get_value_ptr): Likewise.
16019         (gimple_debug_bind_set_var): Likewise.
16020         (gimple_debug_bind_set_value): Likewise.
16021         (gimple_debug_bind_reset_value): Likewise.
16022         (gimple_debug_bind_has_value_p): Likewise.
16023         (gimple_return_retval_ptr): Remove gcc_assert.
16024         (gimple_return_retval): Likewise.
16025         (gimple_return_set_retval): Likewise.
16026         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
16027         (safe_referenced_var_iterator): Remove.
16028         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
16029         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
16030         (fill_referenced_var_vec): Remove.
16031         (first_readonly_imm_use): Remove redundant gcc_assert.
16032         (phi_arg_index_from_use): Combine gcc_asserts.
16033         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
16034         (first_imm_use_stmt): Remove redundant gcc_assert.
16035         * tree-cfg.c (verify_gimple_call): Verify function and chain
16036         operands.  Verify arguments.
16037         (verify_types_in_gimple_stmt): Verify condition code and labels.
16038
16039 2010-01-07  Richard Guenther  <rguenther@suse.de>
16040
16041         PR tree-optimization/42641
16042         * sese.c (rename_map_elt_info): Use the SSA name version, do
16043         not hash pointers.
16044
16045 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
16046
16047         PR tree-optimization/42625
16048         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
16049         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
16050
16051 2010-01-07  Duncan Sands  <baldrick@free.fr>
16052
16053         * Makefile.in (PLUGIN_HEADERS): Add version.h.
16054
16055 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
16056
16057         PR target/42511
16058         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
16059         note itself is not function_invariant_p.
16060
16061 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
16062
16063         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
16064         Do not add the DF_NOTE problem.
16065         * store-motion.c (execute_rtl_store_motion): Likewise.
16066
16067 2010-01-07  Martin Jambor  <mjambor@suse.cz>
16068
16069         PR tree-optimization/42157
16070         * tree-sra.c (compare_access_positions): Stabilize sort if both
16071         accesses have integer types, return zero immediately if they are the
16072         same.
16073
16074 2010-01-06  Richard Henderson  <rth@redhat.com>
16075
16076         PR middle-end/41883
16077         * haifa-sched.c (add_to_note_list): Merge into ...
16078         (concat_note_lists): ... here, and ...
16079         (unlink_other_notes, rm_other_notes): Merge into...
16080         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
16081         NOTE_INSN_EPILOGUE_BEG.
16082
16083 2010-01-06  Richard Guenther  <rguenther@suse.de>
16084
16085         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
16086         not inline regular functions into always-inline functions.
16087
16088 2010-01-06  Nick Clifton  <nickc@redhat.com>
16089
16090         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
16091         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
16092         used together.
16093         (OVERRIDE_OPTIONS): Delete.
16094         (OPTIMIZATION_OPTIONS): Define.
16095         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
16096         * config/rx/rx.c (rx_handle_option): Issue an error message if
16097         -mcpu=rx200 and -fpu are used together.
16098         (rx_set_optimization_options): New function.  Issue an error
16099         message if an optimization attribute attempts to reset the FPU/
16100         math optimization pairing.
16101         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
16102         * config/rx/rx.opt: Set the default to 32-bit doubles.
16103         * config/rx/t-rx: Add multilibs for -nofpu option.
16104         * doc/invoke.texi: Update documentation of RX options.
16105
16106 2010-01-06  Richard Guenther  <rguenther@suse.de>
16107
16108         * tree-ssa-pre.c (name_to_id): New global.
16109         (alloc_expression_id): Simplify SSA name handling.
16110         (lookup_expression_id): Likewise.
16111         (init_pre): Zero name_to_id.
16112         (fini_pre): Free it.
16113
16114 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
16115
16116         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
16117
16118 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16119
16120         PR target/42542
16121         * config/i386/sse.md (smaxv2di3): New.
16122         (umaxv2di3): Likewise.
16123         (sminv2di3): Likewise.
16124         (uminv2di3): Likewise.
16125
16126 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16127
16128         PR target/42564
16129         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
16130         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
16131         (legitimize_tls_address): Likewise.
16132         (sparc_tls_referenced_p): Likewise.
16133         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
16134         and adjust calls to legitimize_pic_address.
16135         (legitimate_constant_p) Use sparc_tls_referenced_p.
16136         (legitimate_pic_operand_p): Likewise.
16137         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
16138         (sparc_tls_symbol_ref_1): Delete.
16139         (sparc_tls_referenced_p): Make static, recognize specific patterns.
16140         (legitimize_tls_address): Make static, handle CONST patterns.
16141         (legitimize_pic_address): Make static, remove unused parameter and
16142         adjust recursive calls.
16143         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
16144         and adjust call to legitimize_pic_address.
16145         (sparc_output_mi_thunk): Likewise.
16146
16147 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
16148             H.J. Lu  <hongjiu.lu@intel.com>
16149
16150         PR target/42542
16151         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
16152         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
16153         operands to make them signed.
16154
16155         Revert:
16156         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
16157
16158         PR target/42542
16159         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16160         GTU to GT for V4SI and V2DI.
16161
16162         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16163         (umin<mode>3): Removed.
16164         (uminv8hi3): New.
16165         (uminv4si3): Likewise.
16166
16167 2010-01-05  Martin Jambor  <mjambor@suse.cz>
16168
16169         PR tree-optimization/42462
16170         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
16171         current_function_decl to helper functions and macros.
16172
16173 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16174
16175         PR bootstrap/41771
16176         * flags.h: Don't include real.h.
16177         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16178         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16179         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16180         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16181         * dominance.c: Update copyright.
16182         * gimple.c (walk_gimple_op): Remove inline.
16183         * tree-ssa-reassoc.c: Include real.h.
16184         * Makefile.in (FLAGS_H): Remove $(REAL_H).
16185         (tree-ssa-reassoc.o): Depend on $(REAL_H).
16186
16187 2010-01-05  Nick Clifton  <nickc@redhat.com>
16188
16189         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16190         register to push into the stack frame when the accumulator has to
16191         be saved during interrupts.
16192
16193 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
16194
16195         * doc/invoke.texi: Remove the documentation about option
16196         -Wunreachable-code.
16197         * common.opt (Wunreachable-code):  Preserved for backward
16198         compatibility.
16199         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16200         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16201         the backward compatibility flag section.
16202
16203 2010-01-05  Richard Guenther  <rguenther@suse.de>
16204
16205         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16206
16207 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
16208
16209         PR other/42611
16210         * cfgexpand.c (expand_one_var): Diagnose too large variables.
16211
16212         PR tree-optimization/42508
16213         * tree-sra.c (convert_callers): Check for recursive call
16214         by comparing cgraph nodes instead of decls.
16215         (modify_function): Call ipa_modify_formal_parameters also
16216         on all same_body aliases.
16217
16218         * cgraphunit.c (cgraph_materialize_all_clones): Compare
16219         cgraph nodes when checking for same_body aliases.
16220
16221 2010-01-05  Richard Guenther  <rguenther@suse.de>
16222
16223         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16224         allocation and lookup.
16225         (get_or_alloc_expr_for_constant): Likewise.
16226         (phi_translate): Sink allocation.
16227
16228 2010-01-04  Richard Guenther  <rguenther@suse.de>
16229
16230         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16231         a new entry only if needed.
16232         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16233         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16234         hashtable lookup.
16235         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16236         the result array.
16237         (phi_translate): Handle CONSTANTs early.
16238
16239 2010-01-04  Martin Jambor  <mjambor@suse.cz>
16240
16241         PR tree-optimization/42398
16242         * tree-sra.c (struct access): Removed flag grp_different_types.
16243         (dump_access): Do not dump the removed flag.
16244         (sort_and_splice_var_accesses): Do not set the removed flag.
16245         (sra_modify_expr): Check for type compatibility directly.
16246
16247 2010-01-04  Martin Jambor  <mjambor@suse.cz>
16248
16249         PR tree-optimization/42366
16250         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16251         edges with variable number of parameters.
16252         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16253         flag instead of asserting it.
16254         (ipa_read_node_info): Read uses_analysis_done flag.
16255
16256 2010-01-04  Richard Guenther  <rguenther@suse.de>
16257
16258         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16259         iterative_hash_* as intended.
16260         (vn_reference_compute_hash): Likewise.  Simplify hashing
16261         SSA names.
16262         (vn_reference_lookup_2): Likewise.
16263         (vn_nary_op_compute_hash): Likewise.
16264         (vn_phi_compute_hash): Likewise.
16265         (expressions_equal_p): Remove strange code.
16266         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16267         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
16268         (bitmap_insert_into_set_1): Take value-id as parameter.
16269         (add_to_value): Pass it.
16270         (bitmap_insert_into_set): Likewise.
16271         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
16272
16273 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
16274
16275         PR driver/42442
16276         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16277         (do_self_spec): For switches with SWITCH_IGNORE set set also
16278         SWITCH_IGNORE_PERMANENTLY.
16279         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16280         of SWITCH_IGNORE.
16281
16282 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
16283
16284         * lto-streamer-out.c (output_unreferenced_globals): Output the full
16285         tree of an unreferenced global var.
16286
16287 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
16288
16289         PR target/42542
16290         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16291         GTU to GT for V4SI and V2DI.
16292
16293         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16294         (umin<mode>3): Removed.
16295         (uminv8hi3): New.
16296         (uminv4si3): Likewise.
16297
16298 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
16299
16300         PR lto/42581
16301         * collect2.c (main): Turn on trace in collect2 if -v is passed
16302         to gcc with LTO.
16303
16304 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
16305
16306         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
16307         description of expression operand.
16308
16309 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
16310
16311         * configure.ac: Add install-html to target_list for Make-hooks.
16312         * configure: Regenerate.
16313         * fortran/Make-lang.in (F95_HTMLFILES): New.
16314         (fortran.html): Use it.
16315         (fortran.install-html): New.
16316         * Makefile.in (install-html): Add lang.install-html.
16317         * java/Make-lang.in (JAVA_HTMLFILES): New.
16318         (java.html): Use it.
16319         (java.install-html): New.
16320         * objc/Make-lang.in (objc.install-html): New.
16321         * objcp/Make-lang.in (obj-c++.install-html): New.
16322         * cp/Make-lang.in (c++.install-html): New.
16323         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16324         * lto/Make-lang.in (lto.install-html): New.
16325
16326 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
16327
16328         PR lto/42520
16329         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16330
16331 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
16332
16333         PR rtl-optimization/41862
16334         * store-motion.c (store_killed_in_insn, compute_store_table,
16335         remove_reachable_equiv_notes, replace_store_insn,
16336         build_store_vectors): Ignore all DEBUG_INSNs.
16337
16338 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
16339
16340         PR lto/41564
16341         * common.opt: Add dumpdir.
16342
16343         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16344         isn't specified.
16345         (option_map): Add --dumpdir.
16346
16347         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16348
16349         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16350
16351         * opts.c (decode_options): Try dump_dir_name first if
16352         dump_base_name isn't an absolute path.
16353         (common_handle_option): Handle OPT_dumpdir.
16354
16355         * toplev.c (dump_dir_name): New.
16356         (print_switch_values): Also ignore -dumpdir.
16357
16358         * toplev.h (dump_dir_name): New.
16359
16360 2010-01-03  Richard Guenther  <rguenther@suse.de>
16361
16362         PR tree-optimization/42589
16363         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16364         double-word expansion of bswap32.
16365
16366 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
16367
16368         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16369         with BLOCK_FOR_INSN.
16370         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16371         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16372         noce_process_if_block): Likewise.
16373         * gcse.c (compute_local_properties, insert_expr_in_table,
16374         insert_set_in_table, canon_list_insert, find_avail_set,
16375         pre_insert_copy_insn): Likewise.
16376
16377         * basic-block.h (BLOCK_NUM): Move from here...
16378         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16379
16380 2010-01-03  Richard Guenther  <rguenther@suse.de>
16381
16382         PR tree-optimization/42438
16383         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16384         contains_may_not_return_call flag.
16385         (BB_MAY_NOTRETURN): New.
16386         (valid_in_sets): Trapping nary operations are not valid
16387         in blocks that may not return.
16388         (insert_into_preds_of_block): Remove check for trapping expressions.
16389         (compute_avail): Compute also BB_MAY_NOTRETURN.
16390
16391 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
16392
16393         * doc/invoke.texi: Add 2010 to copyright years.
16394
16395 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
16396
16397         * config/sparc/sparc.c: Fix formatting nits.
16398
16399 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
16400             Alexander Monakov  <amonakov@ispras.ru>
16401
16402         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16403
16404 2010-01-02  Richard Guenther  <rguenther@suse.de>
16405
16406         PR middle-end/42577
16407         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16408         (simplify_switch_using_ranges): Mark to be removed edges
16409         as non-executable.
16410
16411 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16412
16413         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16414
16415         * collect2.c (scan_libraries): Add missing argument in call to
16416         scan_prog_file.
16417
16418 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
16419
16420         PR target/42448
16421         * config/alpha/predicates.md (aligned_memory_operand): Return false
16422         for CQImode.
16423         (unaligned_memory_operand): Return true for CQImode.
16424         * config/alpha/alpha.c (get_aligned_mem): Assert that location
16425         doesn not cross aligned SImode word boundary.
16426
16427 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
16428
16429         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16430         Remove.
16431         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16432         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16433
16434 2010-01-02  Richard Guenther  <rguenther@suse.de>
16435
16436         PR lto/41597
16437         * toplev.c (compile_file): Emit LTO marker properly.  Change
16438         it to __gnu_lto_v1.
16439         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16440
16441 2010-01-01  Richard Guenther  <rguenther@suse.de>
16442
16443         PR debug/42455
16444         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16445
16446 2010-01-01  Richard Guenther  <rguenther@suse.de>
16447
16448         PR c/42570
16449         * c-decl.c (grokdeclarator): For zero-size arrays force
16450         structural equality checks as layout_type does.
16451
16452 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
16453
16454         * builtins.c: Update copyright to 2010.
16455
16456 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
16457
16458         PR lto/42531
16459         * lto-streamer-out.c (produce_asm): Revert the last change.
16460         (copy_function): Likewise.
16461
16462         * lto-streamer.c (lto_get_section_name): Skip any leading
16463         asterisk in name.
16464
16465 2010-01-01  Richard Guenther  <rguenther@suse.de>
16466
16467         PR middle-end/42559
16468         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16469         for LABEL_DECLs.
16470
16471 \f
16472 Copyright (C) 2010 Free Software Foundation, Inc.
16473
16474 Copying and distribution of this file, with or without modification,
16475 are permitted in any medium without royalty provided the copyright
16476 notice and this notice are preserved.