OSDN Git Service

* config/rs6000/rs6000.c: Clean up trailing whitespace.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
2
3         * config/rs6000/rs6000.c: Clean up trailing whitespace.
4
5 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
6
7         * config/i386/i386.h (x86_use_xchgb): New.
8         (TARGET_USE_XCHGB): New macro.
9         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
10         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
11         Split after reload into bswaphi for shifts of 8.
12         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
13         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
14         or when optimizing for size.
15         
16 2007-02-16  Richard Guenther  <rguenther@suse.de>
17             Christian Bruel  <christian.bruel@st.com>
18
19         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
20         DECLs but prefer SSA_NAMEs over DECLs.
21
22 2007-02-16  Richard Guenther  <rguenther@suse.de>
23
24         * tree-flow-inline.h (single_imm_use_p): Remove.
25         (zero_imm_uses_p): Likewise.
26         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
27         instead of single_imm_use_p.
28         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
29         zero_imm_uses_p.
30
31 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32
33         PR other/27843
34         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
35         nested double- and backquotes.
36
37 2007-02-15  Roger Sayle  <roger@eyesopen.com>
38
39         PR middle-end/30391
40         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
41         should be unreachable.
42         (build2_stat): Allow construction of MODIFY_EXPR at any time.
43         For the time being redirect GIMPLE_MODIFY_STMT to the new
44         (renamed) build_gimple_modify_stmt_stat.
45         (build2_gimple_stat): Rename to...
46         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
47         Always build a GIMPLE_MODIFY_STMT node.
48         * tree.h (build2_gimple, build2_gimple_stat): Delete.
49         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
50         declarations.
51
52         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
53         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
54         * tree-complex.c (set_component_ssa_name, expand_complex_move,
55         expand_complex_div_wide): Likewise.
56         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
57         * tree-ssa-loop-im.c (schedule_sm): Likewise.
58         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
59         * tree-ssa-loop-manip.c (create_iv): Likewise.
60         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
61         abs_replacement): Likewise.
62         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
63         realify_fake_stores): Likewise.
64
65         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
66         node rather than a GIMPLE_MODIFY_STMT node.
67         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
68         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
69         Likewise.
70         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
71         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
72         GIMPLE_MODIFY_STMT.
73
74 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
75
76         PR middle-end/30433
77         * fold-const.c (fold_comparison): Add back the
78         folding of constant complex comparisions.
79
80 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
81
82         PR middle-end/30729
83         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
84         effects unknown to this function, return early.
85
86 2007-02-15  Ian Lance Taylor  <iant@google.com>
87
88         * lower-subreg.c (move_eh_region_note): New static function.
89         (resolve_simple_move): Call it.
90         (decompose_multiword_subregs): Track blocks for which we resolve a
91         simple move which is also a control flow insn.  Pass them to
92         find_many_sub_basic_blocks.
93         (pass_lower_subreg): Add TODO_verify_flow.
94         (pass_lower_subreg2): Likewise.
95
96 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
97             Brooks Moses  <brooks.moses@codesourcery.com>
98             Lee Millward  <lee.millward@codesourcery.com>
99
100         * tree.h (enum tree_code_class): Add tcc_vl_exp.
101         (VL_EXP_CLASS_P): New.
102         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
103         TREE_CODE_LENGTH.
104         (TREE_OPERAND_CHECK_CODE): Likewise.
105         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
106         (TREE_RTL_OPERAND_CHECK): Likewise.
107         (tree_operand_check_failed): Make second parameter the whole tree
108         instead of its code.  Fixed callers.
109         (VL_EXP_CHECK): New.
110         (TREE_OPERAND_LENGTH): New.
111         (VL_EXP_OPERAND_LENGTH): New.
112         (CALL_EXPR_FN): New.
113         (CALL_EXPR_STATIC_CHAIN): New.
114         (CALL_EXPR_ARGS): New.
115         (CALL_EXPR_ARG): New.
116         (call_expr_nargs): New.
117         (CALL_EXPR_ARGP): New.
118         (build_nt_call_list): Declare.
119         (build_vl_exp_stat): Declare.
120         (build_vl_exp): New.
121         (build_call_list): Declare.
122         (build_call_nary): Declare.
123         (build_call_valist): Declare.
124         (build_call_array): Declare.
125         (call_expr_arg): Declare.
126         (call_expr_argp): Declare.
127         (call_expr_arglist): Declare.
128         (fold_build_call_list): Declare.
129         (fold_build_call_list_initializer): Declare.
130         (fold_call_expr): Declare to replace fold_builtin.
131         (fold_builtin_fputs): Update to agree with modified definition.
132         (fold_builtin_strcpy): Likewise.
133         (fold_builtin_strncpy): Likewise.
134         (fold_builtin_memory_chk): Likewise.
135         (fold_builtin_stxcpy_chk): Likewise.
136         (fold_builtin_strncpy_chk): Likewise.
137         (fold_builtin_next_arg): Likewise.
138         (fold_build_call_expr): Declare.
139         (fold_builtin_call_list): Declare.
140         (fold_builtin_call_valist): Declare.
141         (build_call_expr): Declare.
142         (validate_arglist): Update to agree with modified definition.
143         (tree_operand_length): New.
144         (call_expr_arg_iterator): New.
145         (init_call_expr_arg_iterator): New.
146         (next_call_expr_arg): New.
147         (first_call_expr_arg): New.
148         (more_call_expr_args_p): New.
149         (FOR_EACH_CALL_EXPR_ARG): New.
150
151         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
152         and tcc_gimple_stmt.
153         (tree_code_size): Update documentation.  Use sizeof (tree) rather
154         than sizeof (char *).
155         (tree_size): Likewise.  Add case for tcc_vl_exp.
156         (tree_node_structure): Add case for tcc_vl_exp.
157         (contains_placeholder_p): Likewise.
158         (substitute_in_expr): Likewise.
159         (substitute_placeholder_in_expr): Likewise.
160         (stabilize_reference_1): Likewise.
161         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
162         to diagnose breakage of this interface for constructing CALL_EXPRs.
163         (build_nt): Add similar assertion here.
164         (build_nt_call_list): New.
165         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
166         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
167         TREE_CODE_LENGTH.
168         (get_callee_fndecl): Use new CALL_EXPR accessors.
169         (tree_operand_check_failed): Change parameters to pass entire node
170         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
171         (process_call_operands): New.
172         (build_vl_exp_stat): New.
173         (build_call_list): New.
174         (build_call_nary): New.
175         (build_call_valist): New.
176         (build_call_array): New.
177         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
178         (call_expr_arglist): New.
179
180         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
181         tcc_vl_exp instead of a fixed-size tcc_expression.
182
183         * doc/c-tree.texi (CALL_EXPR): Document new representation and
184         accessors for CALL_EXPRs.
185         (AGGR_INIT_EXPR): Likewise.
186
187 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
188             Brooks Moses  <brooks.moses@codesourcery.com>
189             Lee Millward  <lee.millward@codesourcery.com>
190
191         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
192         (expand_builtin_nonlocal_goto): Change parameter to be entire
193         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
194         (expand_builtin_prefetch): Likewise.
195         (expand_builtin_classify_type): Likewise.
196         (mathfn_built_in): Return NULL_TREE instead of 0.
197         (expand_errno_check): Use new CALL_EXPR accessors.
198         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
199         Return NULL_RTX instead of 0.
200         (expand_builtin_mathfn_2): Likewise.
201         (expand_builtin_mathfn_3): Likewise.
202         (expand_builtin_interclass_mathfn): Likewise.
203         (expand_builtin_sincos): Likewise.
204         (expand_builtin_cexpi): Likewise.
205         (expand_builtin_int_roundingfn): Likewise.
206         (expand_builtin_int_roundingfn_2): Likewise.
207         (expand_builtin_pow): Likewise.
208         (expand_builtin_powi): Likewise.
209         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
210         of arglist, fixing callers appropriately.  Use new CALL_EXPR
211         accessors and constructors.  Return NULL_RTX instead of 0.
212         (expand_builtin_strstr): Likewise.
213         (expand_builtin_strchr): Likewise.
214         (expand_builtin_strrchr): Likewise.
215         (expand_builtin_strpbrk): Likewise.
216         (expand_builtin_memcpy): Likewise.
217         (expand_builtin_mempcpy): Likewise.
218         (expand_builtin_mempcpy_args): New.
219         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
220         (expand_builtin_memmove_args): New.
221         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
222         (expand_movstr): Likewise.
223         (expand_builtin_strcpy): Likewise.
224         (expand_builtin_strcpy_args): New.
225         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
226         (expand_builtin_strncpy): Likewise.
227         (expand_builtin_memset): Likewise.
228         (expand_builtin_memset_args): New.
229         (expand_builtin_bzero): Similarly to expand_builtin_memset.
230         (expand_builtin_memcmp): Likewise.
231         (expand_builtin_strcmp): Likewise.
232         (expand_builtin_strncmp): Likewise.
233         (expand_builtin_strcat): Likewise.
234         (expand_builtin_strncat): Likewise.
235         (expand_builtin_strspn): Likewise.
236         (expand_builtin_strcspn): Likewise.
237         (expand_builtin_args_info): Likewise.
238         (expand_builtin_va_start): Likewise.
239         (gimplify_va_arg_expr): Likewise.
240         (expand_builtin_va_end): Likewise.
241         (expand_builtin_va_copy): Likewise.
242         (expand_builtin_frame_address): Likewise.
243         (expand_builtin_alloca): Likewise.
244         (expand_builtin_bswap): Likewise.
245         (expand_builtin_unop): Likewise.
246         (expand_builtin_fputs): Likewise.
247         (expand_builtin_expect): Likewise.
248         (expand_builtin_fabs): Likewise.
249         (expand_builtin_copysign): Likewise.
250         (expand_builtin_printf): Likewise.
251         (expand_builtin_fprintf): Likewise.
252         (expand_builtin_sprintf): Likewise.
253         (expand_builtin_init_trampoline): Likewise.
254         (expand_builtin_signbit): Likewise.
255         (expand_builtin_fork_or_exec): Likewise.
256         (expand_builtin_sync_operation): Likewise.
257         (expand_builtin_compare_and_swap): Likewise.
258         (expand_builtin_lock_test_and_set): Likewise.
259         (expand_builtin_lock_release): Likewise.
260         (expand_builtin): Likewise.
261         (builtin_mathfn_code): Likewise.
262
263         (fold_builtin_constant_p): Pass call arguments individually instead
264         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
265         accessors and constructors.  Return NULL_TREE instead of 0.
266         (fold_builtin_expect): Likewise.
267         (fold_builtin_classify_type): Likewise.
268         (fold_builtin_strlen): Likewise.
269         (fold_builtin_nan): Likewise.
270         (integer_valued_real_p): Likewise.
271         (fold_trunc_transparent_mathfn): Likewise.
272         (fold_fixed_mathfn): Likewise.
273         (fold_builtin_cabs): Likewise.
274         (fold_builtin_sqrt): Likewise.
275         (fold_builtin_cbrt): Likewise.
276         (fold_builtin_cos): Likewise.
277         (fold_builtin_cosh): Likewise.
278         (fold_builtin_tan): Likewise.
279         (fold_builtin_sincos): Likewise.
280         (fold_builtin_cexp): Likewise.
281         (fold_builtin_trunc): Likewise.
282         (fold_builtin_floor): Likewise.
283         (fold_builtin_ceil): Likewise.
284         (fold_builtin_round): Likewise.
285         (fold_builtin_int_roundingfn): Likewise.
286         (fold_builtin_bitop): Likewise.
287         (fold_builtin_bswap): Likewise.
288         (fold_builtin_logarithm): Likewise.
289         (fold_builtin_hypot): Likewise.
290         (fold_builtin_pow): Likewise.
291         (fold_builtin_powi): Likewise.
292         (fold_builtin_exponent): Likewise.
293         (fold_builtin_memset): Likewise.
294         (fold_builtin_bzero): Likewise.
295         (fold_builtin_memory_op): Likewise.
296         (fold_builtin_bcopy): Deleted; call site changed to invoke
297         fold_builtin_memory_op directly.
298         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
299         (fold_builtin_strncpy): Likewise.
300         (fold_builtin_memcmp): Likewise.
301         (fold_builtin_strcmp): Likewise.
302         (fold_builtin_strncmp): Likewise.
303         (fold_builtin_signbit): Likewise.
304         (fold_builtin_copysign): Likewise.
305         (fold_builtin_isascii): Likewise.
306         (fold_builtin_toascii): Likewise.
307         (fold_builtin_isdigit): Likewise.
308         (fold_builtin_fabs): Likewise.
309         (fold_builtin_abs): Likewise.
310         (fold_builtin_fmin_fmax): Likewise.
311         (fold_builtin_carg): Likewise.
312         (fold_builtin_classify): Likewise.
313         (fold_builtin_unordered_cmp): Likewise.
314
315         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
316         New functions split out from fold_builtin_1.
317         (fold_builtin_n): New.
318         (fold_builtin_varargs): New.
319         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
320         instead.
321         (fold_call_expr): New.
322         (build_function_call_expr): Rewrite to use new helper function.
323         (fold_builtin_call_list): New.
324         (build_call_expr): New.
325         (fold_builtin_call_valist): New.
326         (rewrite_call_expr): New.
327         (validate_arg): New.
328         (validate_arglist): Change parameter to be entire CALL_EXPR instead
329         of an arglist.  Change return type to bool.  Use new CALL_EXPR
330         accessors.
331
332         (fold_builtin_strstr):  Pass call arguments individually instead
333         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
334         accessors and constructors.  Return NULL_TREE instead of 0.
335         (fold_builtin_strchr): Likewise.
336         (fold_builtin_strrchr): Likewise.
337         (fold_builtin_strpbrk): Likewise.
338         (fold_builtin_strcat): Likewise.
339         (fold_builtin_strncat): Likewise.
340         (fold_builtin_strspn): Likewise.
341         (fold_builtin_strcspn): Likewise.
342         (fold_builtin_fputs): Likewise.
343         (fold_builtin_next_arg): Likewise.
344         (fold_builtin_sprintf): Likewise.
345
346         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
347         NULL_RTX instead of 0.
348         (expand_builtin_memory_chk): Likewise.
349         (maybe_emit_chk_warning): Likewise.
350         (maybe_emit_sprintf_chk_warning): Likewise.
351
352         (fold_builtin_object_size): Pass call arguments individually instead
353         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
354         accessors and constructors.  Return NULL_TREE instead of 0.
355         (fold_builtin_memory_chk): Likewise.
356         (fold_builtin_stxcpy_chk): Likewise.
357         (fold_builtin_strncpy_chk): Likewise.
358         (fold_builtin_strcat_chk): Likewise.
359         (fold_builtin_strcat_chk): Likewise.
360         (fold_builtin_strncat_chk): Likewise.
361         (fold_builtin_sprintf_chk): Likewise.
362         (fold_builtin_snprintf_chk): Likewise.
363         (fold_builtin_printf): Likewise.
364         (fold_builtin_vprintf): Likewise.
365
366         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
367         constructors.
368         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
369         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
370         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
371         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
372         (fold_unary): Likewise.
373         (fold_binary): Likewise.
374         (fold_ternary): Remove CALL_EXPR case, since they are no longer
375         ternary expressions.
376         (fold): Add logic for tcc_vl_exp.
377         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
378         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
379         (fold_build3_stat): Add assertion to flag broken interface for
380         constructing CALL_EXPRs.
381         (fold_build_call_list): New.
382         (fold_build_call_list_initializer): New.
383         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
384         constructors.
385         (fold_strip_sign_ops): Likewise.
386
387 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
388             Brooks Moses  <brooks.moses@codesourcery.com>
389             Lee Millward  <lee.millward@codesourcery.com>
390
391         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
392         accessors and dump arguments explicitly.
393
394         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
395         TREE_CODE_LENGTH.
396         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
397         explicitly.
398         (print_call_name): Use new CALL_EXPR accessors.
399
400         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
401         CALL_EXPR arguments explicitly instead of as a list.  Use
402         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
403
404         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
405         (vrp_visit_stmt): Likewise.
406
407         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
408         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
409         TREE_CODE_LENGTH.
410         (force_move_till_expr): Likewise.
411
412         * targhooks.c (default_external_stack_protect_fail): Use
413         build_call_expr instead of build_function_call_expr.
414         (default_hidden_stack_protect_fail): Likewise.
415
416         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
417         build the call.
418
419         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
420         and walk arguments explicitly.
421
422         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
423         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
424         (expand_simple_operations): Likewise.
425         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
426
427         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
428         of TREE_CODE_LENGTH.
429         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
430
431         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
432         instead of TREE_CODE_LENGTH.
433
434         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
435         (tree_ic_transform): Likewise.
436         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
437         parameter instead of arglist.  Fix callers.
438         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
439         (tree_stringops_transform): Likewise.
440         (tree_indirect_call_to_profile): Likewise.
441         (tree_stringops_values_to_profile): Likewise.
442
443         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
444         (eliminate_tail_call): Likewise.
445
446         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
447
448         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
449         Use TREE_OPERAND_LENGTH and generalize to handle any number of
450         operands.
451         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
452
453         * omp-low.c (build_omp_barrier): Use build_call_expr.
454         (lower_rec_input_clauses): Likewise.
455         (lower_reduction_clauses): Likewise.
456         (expand_parallel_call): Likewise.
457         (maybe_catch_exception): Likewise.
458         (expand_omp_for_generic): Likewise.
459         (expand_omp_for_static_nochunk): Likewise.
460         (expand_omp_sections): Likewise.
461         (lower_omp_single_simple): Likewise.
462         (lower_omp_single_copy): Likewise.
463         (lower_omp_master): Likewise.
464         (lower_omp_ordered): Likewise.
465         (lower_omp_critical): Likewise.
466
467         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
468         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
469
470         * tree-gimple.c (is_gimple_call_addr): Fix doc.
471         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
472         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
473
474         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
475         and generalize to handle any number of operands.
476         (chrec_contains_undetermined): Likewise.
477         (tree_contains_chrecs): Likewise.
478         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
479
480         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
481
482         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
483         fold_call_expr instead of fold_builtin.
484         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
485         match declarations there.
486         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
487         updates.
488
489         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
490         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
491
492         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
493         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
494
495         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
496         accessors.
497
498         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
499         (execute_cse_sincos): Use new CALL_EXPR accessors.
500
501         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
502
503         * gimple-low.c (lower_function_body): Use build_call_expr.
504         (lower_builtin_setjmp): Likewise.
505
506         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
507         (set_storage_via_libcall): Likewise.
508         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
509         instead of TREE_CODE_LENGTH.
510         (expand_expr_real_1): Use new CALL_EXPR accessors.
511
512         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
513         generalize to handle any number of operands.
514         (TB_parent_eq): Likewise.
515
516         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
517         (strip_builtin_expect): Likewise.
518
519         * function.c (gimplify_parameters): Use build_call_expr.
520
521         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
522         instead of TREE_CODE_LENGTH.
523
524         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
525         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
526
527         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
528         iterators.
529
530         * gimplify.c (build_stack_save_restore): Use build_call_expr.
531         (gimplify_decl_expr): Likewise.
532         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
533         Use new CALL_EXPR iterators.
534         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
535         (gimplify_modify_expr_to_memset): Likewise.
536         (gimplify_variable_sized_compare): Likewise.
537         (gimplify_omp_atomic_fetch_op): Likewise.
538         (gimplify_omp_atomic_pipeline): Likewise.
539         (gimplify_omp_atomic_mutex): Likewise.
540         (gimplify_function_tree): Likewise.
541
542         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
543         (call_expr_flags): Likewise.
544         (expand_call): Likewise.
545
546         * except.c (expand_builtin_eh_return_data_regno): Pass entire
547         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR 
548         accessors.
549
550         * coverage.c (create_coverage): Use build_call_expr.
551
552         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
553         (temp_call_expr_obstack): New.
554         (pool_copy_list): Delete.
555         (temp_copy_call_expr): New.
556         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
557         CALL_EXPR accessors.  Get rid of special goo for copying argument
558         lists and use temp_copy_call_expr instead.
559         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
560         CALL_EXPR accessors.
561         (create_expression_by_pieces): Likewise.  Use build_call_array
562         to construct the result instead of fold_build3.
563         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
564         dealing with argument lists.
565         (init_pre): Remove references to expression_node_pool and
566         list_node_pool.  Init temp_call_expr_obstack instead.
567         (fini_pre): Remove references to expression_node_pool and
568         list_node_pool.
569
570         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
571         and walk arguments explicitly instead of as a list.
572
573         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
574         (mx_register_decls): Likewise.
575         (mudflap_register_call): Likewise.
576         (mudflap_finish_file): Likewise.
577
578         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
579         (ipa_callsite_compute_param): Likewise.
580
581         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
582         accessors and constructor.
583
584         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
585         accessors and constructor.
586         (convert_tramp_reference): Likewise. 
587         (convert_call_expr): Likewise.
588         (finalize_nesting_tree_1): Likewise.
589
590         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
591         accessors.
592
593         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
594
595         * tree-inline.c (initialize_inlined_parameters): Pass entire
596         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
597         accessors.
598         (estimate_num_insns_1): Use new CALL_EXPR accessors.
599         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
600
601         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
602         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
603         (vectorizable_reduction): Likewise.
604         (vectorizable_call): Use new CALL_EXPR iterators.
605         (vectorizable_conversion): Use build_call_expr.
606         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
607         (vect_gen_widened_results_half): Use build_call_expr.
608         (vect_setup_realignment): Likewise.
609         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
610
611         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
612         (pass_through_call): Likewise.
613         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
614         fold_builtin.
615
616         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
617         (tree_gen_pow2_profiler): Likewise.
618         (tree_gen_one_value_profiler): Likewise.
619         (tree_gen_ic_func_profiler): Likewise.
620         (tree_gen_average_profiler): Likewise.
621         (tree_gen_ior_profiler): Likewise.
622
623         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
624         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
625         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
626
627         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
628         of TREE_CODE_LENGTH.
629
630         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
631         of TREE_CODE_LENGTH.
632
633         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
634         constructor.
635         (convert_to_integer): Likewise.
636
637         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
638         accessors.
639
640 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
641             Brooks Moses  <brooks.moses@codesourcery.com>
642             Lee Millward  <lee.millward@codesourcery.com>
643
644         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
645         accessors.
646         * config/frv/frv.c (frv_expand_builtin): Likewise.
647         * config/s390/s390.c (s390_expand_builtin): Likewise.
648
649         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
650         (sparc_expand_builtin): Use new CALL_EXPR accessors.
651
652         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
653         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
654         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
655         (ix86_expand_store_builtin): Likewise.
656         (ix86_expand_unop_builtin): Likewise.
657         (ix86_expand_unop1_builtin): Likewise.
658         (ix86_expand_sse_compare): Likewise.
659         (ix86_expand_sse_comi): Likewise.
660         (ix86_expand_vec_init_builtin): Likewise.
661         (ix86_expand_vec_ext_builtin): Likewise.
662         (ix86_expand_vec_set_builtin): Likewise.
663         (ix86_expand_builtin): Use new CALL_EXPR accessors.
664
665         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
666         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
667
668         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
669         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
670         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
671
672         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
673         build_call_expr.
674         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
675         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
676         arglist.  Use new CALL_EXPR accessors.  Fix callers.
677         (altivec_expand_abs_builtin): Likewise.
678         (rs6000_expand_binop_builtin): Likewise.
679         (altivec_expand_predicate_builtin): Likewise.
680         (altivec_expand_lv_builtin): Likewise.
681         (spe_expand_stv_builtin): Likewise.
682         (altivec_expand_stv_builtin): Likewise.
683         (rs6000_expand_ternop_builtin): Likewise.
684         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
685         (altivec_expand_st_builtin): Likewise.
686         (altivec_expand_dst_builtin): Likewise.
687         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
688         arglist.  Use new CALL_EXPR accessors.  Fix callers.
689         (altivec_expand_vec_set_builtin): Likewise.
690         (altivec_expand_vec_ext_builtin): Likewise.
691         (altivec_expand_builtin): Use new CALL_EXPR accessors.
692         (spe_expand_builtin): Likewise.
693         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
694         arglist.  Use new CALL_EXPR accessors.  Fix callers.
695         (spe_expand_evsel_builtin): Likewise.
696         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
697         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
698
699         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
700         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
701         (arm_expand_unop_builtin): Likewise.
702         (arm_expand_builtin): Use new CALL_EXPR accessors.
703
704         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
705         accessors.
706
707         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
708         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
709         (bfin_expand_unop_builtin): Likewise.
710         (bfin_expand_builtin): Use new CALL_EXPR accessors.
711
712 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
713             Brooks Moses  <brooks.moses@codesourcery.com>
714             Lee Millward  <lee.millward@codesourcery.com>
715
716         * c-semantics.c (build_stmt): Add internal diagnostic check.
717
718         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
719         accessors.  Print arguments explicitly instead of as a list.
720
721         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
722
723         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
724         (c_finish_omp_flish): Likewise.
725
726         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
727         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
728         instead of TREE_CODE_LENGTH.
729         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
730         (c_warn_unused_result): Likewise.
731
732 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
733
734         PR c/26494
735         * doc/invoke.texi (Warning Options): Remove
736         -Werror-implicit-function-declaration.
737         (Wimplicit-function-declaration): Update description.
738         * opts.c (common_handle_option): Move handling of -Werror=* to...
739         (enable_warning_as_error): ...here.
740         * opts.h (enable_warning_as_error): Declare.
741         * c-decl.c (implicit_decl_warning): Unless
742         -Wno-implicit-function-declaration is given, emit a pedwarn if
743         -std=c99 or emit a warning if -Wimplicit-function-declaration.
744         * c.opt (Wimplicit-function-declaration): Replace
745         mesg_implicit_function_declaration with
746         warn_implicit_function_declaration.
747         * c-opts.c (c_common_handle_option):
748         -Werror-implicit-function-declaration is exactly equal as
749         -Werror=implicit-function-declaration.
750         (set_Wimplicit): Replace mesg_implicit_function_declaration with
751         warn_implicit_function_declaration.
752         (c_common_post_options): -Wimplict-function-declaration is enabled
753         by default by -std=c99, otherwise is disabled by default.
754         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
755
756 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
757
758         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
759         DECL on the rhs to a DECL on the lhs for debug info purposes if the
760         former is ignored but not the latter.
761
762 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
763
764         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
765         is made and the reference doesn't use the alias set of its type,
766         do not create the temporary using that type.
767
768 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
769
770         * jump.c: Remove prototypes for delete_computation and
771         delete_prior_computation.
772
773 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
774
775         * jump.c (get_label_after): Delete.
776         (get_label_before, delete_computation, delete_jump,
777         delete_prior_computation, follow_jumps): Move...
778         * reorg.c (delete_computation, delete_prior_computation): ... here...
779         (get_label_before, delete_jump): ... making these static ...
780         (follow_jumps): ... and simplifying this since it only runs after
781         reload.
782         * rtl.h (get_label_after, get_label_before, delete_jump,
783         follow_jumps): Delete prototypes.
784
785 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
786
787         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
788         
789 2007-02-15  Nick Clifton  <nickc@redhat.com>
790
791         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
792         order to prevent it from being munged by the target.
793
794 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
795
796         * config/i386/i386.md: Remove misleading comment.
797
798 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
799
800         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
801         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
802         invalid patterns.
803
804 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
805
806         * tree-sra.c (instantiate_missing_elements): Canonicalize
807         bit-field types.
808         (sra_build_assignment): New.
809         (generate_copy_inout, generate_element_copy,
810         generate_element_zero, generate_one_element_init): Use it.
811
812 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
813
814         * tree-sra.c (instantiate_missing_elements): Canonicalize
815         bit-field types.
816         (sra_build_assignment): New.
817         (generate_copy_inout, generate_element_copy,
818         generate_element_zero, generate_one_element_init): Use it.
819
820 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
821
822         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
823         limbo die nodes.
824
825 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
826
827         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
828         types as aggregates not scalars.
829         * function.c (assign_stack_temp_for_type): Likewise.
830
831 2007-02-14  Roger Sayle  <roger@eyesopen.com>
832             Zdenek Dvorak  <dvorakz@suse.cz>
833
834         * tree-dump.c (dump_switch_p_1): Require exact match of the option
835         name.
836
837 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
838
839         * passes.c (next_pass_1): Clear the next field of the copied
840         pass structure.
841
842 2007-02-14  Richard Henderson  <rth@redhat.com>
843
844         * tree-sra.c (early_sra): New.
845         (decl_can_be_decomposed_p): Deny va_list if early_sra.
846         (tree_sra_early, pass_sra_early): New.
847         * tree-pass.h (pass_sra_early): Declare.
848         * passes.c (init_optimization_passes): Use it.
849
850 2007-02-14  Richard Guenther  <rguenther@suse.de>
851
852         * flags.h (issue_strict_overflow_warning): Convert to a macro.
853
854 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
855
856          PR tree-optimization/30771
857         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
858         also phi nodes.
859         (vect_analyze_operations): Induction phis can now be marked as
860         used_in_loop.
861         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
862         Update documentation accordingly.
863
864 2007-02-14  Nick Clifton  <nickc@redhat.com>
865
866         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
867         most 3 arguments are supported.
868         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
869
870 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
871
872         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
873         Ensure dst->current is valid.
874
875 2007-02-13  Paul Brook  <paul@codesourcery.com>
876
877         * config.gcc: Add arm*-*-uclinux-*eabi.
878         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
879         (SUBTARGET_EXTRA_LINK_SPEC): Define.
880         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
881         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
882         (LINK_SPEC): Define.
883         (LIB_SPEC): Define.
884         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
885         register.
886         * config/arm/uclinux-eabi.h: New file.
887         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
888         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
889         based targets.
890
891 2007-02-13  Ian Lance Taylor  <iant@google.com>
892
893         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
894         * flags.h (warn_strict_overflow): Declare.
895         (enum warn_strict_overflow_code): Define.
896         (issue_strict_overflow_warning): New static inline function.
897         * opts.c (warn_strict_overflow): New variable.
898         (common_handle_option): Handle OPT_Wstrict_overflow and
899         OPT_Wstrict_overflow_.
900         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
901         OPT_Wall.
902         * fold-const.c: Include intl.h.
903         (fold_deferring_overflow_warnings): New static variable.
904         (fold_deferred_overflow_warning): New static variable.
905         (fold_deferred_overflow_code): New static variable.
906         (fold_defer_overflow_warnings): New function.
907         (fold_undefer_overflow_warnings): New function.
908         (fold_undefer_and_ignore_overflow_warnings): New function.
909         (fold_deferring_overflow_warnings_p): New function.
910         (fold_overflow_warning): New static function.
911         (make_range): Add strict_overflow_p parameter.  Change all
912         callers.
913         (extract_muldiv, extract_muldiv_1): Likewise.
914         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
915         tree_expr_nonnegative_p.
916         (fold_negate_expr): Call fold_overflow_warning.
917         (fold_range_test): Likewise.
918         (fold_comparison): Likewise.
919         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
920         instead of tree_expr_nonnegative_p.
921         (tree_expr_nonnegative_warnv_p): Rename from
922         tree_expr_nonnegative_p, add strict_overflow_p parameter.
923         (tree_expr_nonnegative_p): New function.
924         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
925         strict_overflow_p parameter.
926         (tree_expr_nonzero_p): New function.
927         * passes.c (verify_interpass_invariants): New static function.
928         (execute_one_pass): Call it.
929         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
930         warnings.
931         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
932         (estimate_numbers_of_iterations): Likewise.
933         (scev_probably_wraps_p): Likewise.
934         * tree-ssa-ccp.c: Include "toplev.h".
935         (evaluate_stmt): Defer fold overflow warnings until we know we are
936         going to optimize.
937         (struct fold_stmt_r_data): Add stmt field.
938         (fold_stmt_r): Defer fold overflow warnings until we know we
939         optimized.
940         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
941         (fold_stmt_inplace): Likewise.
942         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
943         (cleanup_control_expr_graph): Defer fold overflow warnings until
944         we know we are going to optimize.
945         * tree-cfg.c (fold_cond_expr_cond): Likewise.
946         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
947         Likewise.
948         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
949         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
950         * tree-ssa-loop-manip.c (create_iv): Likewise.
951         * c-typeck.c (build_conditional_expr): Likewise.
952         (build_binary_op): Likewise.
953         * tree-vrp.c (vrp_expr_computes_nonzero): Call
954         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
955         (extract_range_from_unary_expr): Likewise.
956         * simplify-rtx.c (simplify_const_relational_operation): Warn when
957         assuming that signed overflow does not occur.
958         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
959         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
960         (fold_defer_overflow_warnings): Declare.
961         (fold_undefer_overflow_warnings): Declare.
962         (fold_undefer_and_ignore_overflow_warnings): Declare.
963         (fold_deferring_overflow_warnings_p): Declare.
964         (tree_expr_nonzero_warnv_p): Declare.
965         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
966         of warning options.
967         (Warning Options): Document -Wstrict-overflow.
968         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
969         (tree-ssa-ccp.o): Likewise.
970         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
971         (fold-const.o): Depend on intl.h.
972
973 2007-02-13  Ian Lance Taylor  <iant@google.com>
974
975         PR middle-end/30751
976         * lower-subreg.c (resolve_simple_move): Decompose subregs in
977         addresses.
978
979 2007-02-13  Stuart Hastings  <stuart@apple.com>
980
981         * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
982
983 2007-02-13  Richard Henderson  <rth@redhat.com>
984
985         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
986         handled_component_p before looking for the indirect_ref.
987
988 2007-02-13  Richard Henderson  <rth@redhat.com>
989
990         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
991         remove flags clobber.
992         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
993         (bswaphi_lowpart): New.
994         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
995         remove TARGET_BSWAP test.  Delete expander of the same name.
996
997         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
998         (expand_unop): Use them.
999
1000 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
1001
1002         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
1003         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
1004         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
1005         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
1006         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
1007         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
1008         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
1009         assembler dialect choice from asm templates.
1010
1011 2007-02-12  Richard Henderson  <rth@redhat.com>
1012
1013         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
1014         (fixuns_trunc<SSEMODEF>si2): Use it.
1015         * config/i386/sse.md (vec_setv4sf_0): Export.
1016         * config/i386/i386.c (ix86_build_const_vector): Export.
1017         (ix86_split_convert_uns_si_sse): Rename from
1018         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
1019         * config/i386/i386-protos.h: Update.
1020
1021 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1022
1023         PR c/29521
1024         * c-typeck.c (c_finish_return): Improve warning message.
1025
1026 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1027
1028         * alias.c (find_symbolic_term): Delete unused function.
1029         
1030 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
1031
1032         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
1033         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
1034         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
1035
1036 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
1037
1038         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
1039         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
1040         the function, temporarily point the debug interface to the null one.
1041
1042 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
1043
1044         * dwarf2out.c (round_up_to_align): New static function.
1045         (field_byte_offset): Use it to round the offset.
1046
1047 2007-02-12  Richard Henderson  <rth@redhat.com>
1048
1049         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
1050         (inswl_const): Export.
1051
1052 2007-02-12  Richard Henderson  <rth@redhat.com>
1053
1054         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
1055         result mode of the libcall, convert back to outmode.
1056
1057 2007-02-12  Roger Sayle  <roger@eyesopen.com>
1058
1059         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
1060         (bswapdi2): New define_expand to implement 32-bit implementation.
1061
1062 2007-02-12  Nick Clifton  <nickc@redhat.com>
1063
1064         * doc/invoke.texi (Overall Options): Document --help=.
1065         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
1066         (cc1_options): Pass --help= on to cc1.
1067         (display_help): Add description of --help=.
1068         (process_command): Add code to handle --help=.  Allow translated
1069         --help and --target-help switches to be passed on to compiler
1070         sub-process.
1071         (main): Remove unused if statement.
1072         * opts.c (columns): Remove.
1073         (LEFT_COLUMN): Define.
1074         (wrap_help): Add columns argument.
1075         (print_filtered_help): Change parameters to be an include bitmask,
1076         an exclude bitmask, an any bitmask and the column width.  Move the
1077         code to display the params list here.  Add code to display the
1078         status of options rather than their descriptions if the quiet flag
1079         is not active.
1080         (print_specific_help): Change parameters to be an include bitmask,
1081         an exclude bitmask and an any bitmask.  Move code to look up the
1082         column width here.  Decide upon the title for an options listing.
1083         (common_handle_options): Add code to handle --help=.  Adapt code
1084         for --help and --target-help to use the revised form of the
1085         print_specific_help function.
1086         (print_help): Delete.
1087         (print_param_help): Delete.
1088         (print_switch): Delete.
1089         * opts.h (cl_lang_count): Add prototype.
1090         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
1091         CL_MAX_OPTION_CLASS): New defines.
1092         * optc-gen.awk: Add construction of cl_lang_count.
1093         * c.opt: Add Warning attribute to warning options and Optimization
1094         attribute to optimization options.
1095         * common.opt: Likewise.
1096         Add --help=.
1097         Add -fhelp and -ftarget-help as aliases for the transformed --help
1098         and --target-help options.
1099         * opt-functions.awk: Add code to handle Warning and Optimization
1100         attributes.
1101
1102 2007-02-12  Richard Henderson  <rth@redhat.com>
1103
1104         * config/alpha/constraints.md: New file.
1105         * config/alpha/alpha.c: Include tm-constrs.h.
1106         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
1107         alpha_extra_constraint): Remove.
1108         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
1109         * config/alpha/alpha-protos.h: Update.
1110         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
1111         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
1112         (EXTRA_CONSTRAINT): Remove.
1113         * config/alpha/alpha.md: Include constraints.md.
1114         (adddi splitter): Use satisfies_constraint_*.
1115         * config/alpha/predicates.md (add_operand): Likewise.
1116         (sext_add_operand, addition_operation): Likewise.
1117
1118 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
1119
1120         PR tree-optimization/29145
1121         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
1122         in our handling of restrict qualified pointers.
1123
1124 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1125
1126         PR middle-end/7651
1127         * doc/invoke.texi (Wunused-value): Update description.
1128         (Wextra): Delete item.
1129         * opts.c (set_Wextra): Don't use the value of Wextra to set the
1130         value of Wunused-value.
1131         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
1132         (c_finish_stmt_expr): Don't check extra_warnings.
1133         (emit_side_effect_warnings): The caller is responsible to check
1134         warn_unused_value.
1135         
1136 2007-02-11  Roger Sayle  <roger@eyesopen.com>
1137             Matt Thomas  <matt@3am-software.com>
1138
1139         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
1140
1141 2007-02-11  Roger Sayle  <roger@eyesopen.com>
1142
1143         * simplify-rtx.c (simplify_relational_operation_1): Optimize
1144         comparisons of POPCOUNT against zero.
1145         (simplify_const_relational_operation): Likewise.
1146
1147 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1148
1149         * doc/invoke.texi (Wextra): Delete outdated paragraph.
1150         
1151 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1152
1153         * dwarf2out.c (root_type): Delete unused function.
1154         
1155 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1156
1157         * genattrtab.c (contained_in_p): Delete unused function.
1158         (write_expr_attr_cache): Likewise.
1159
1160 2007-02-11  Jan Hubicka  <jh@suse.cz>
1161
1162         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
1163         previous patch.
1164
1165 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
1166
1167         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
1168         to add the REG_EQ* note.
1169         * see.c (see_merge_one_use_extension): Likewise.
1170         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
1171         turn REG_EQUAL notes into REG_EQUIV notes if the target
1172         register may have more than one set.
1173         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
1174         * gcse.c (try_replace_reg): Likewise.
1175         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
1176         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
1177         more than one REG_EQUIV note.
1178         * reload1.c (gen_reload): Use set_unique_reg_note.
1179
1180 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
1181
1182         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
1183         (ix86_builtin_conversion): New function.
1184
1185 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
1186
1187         PR target/29487
1188         * tree.h (DECL_REPLACEABLE_P): New macro.
1189         * except.c (set_nothrow_function_flags): Likewise.
1190
1191 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
1192             Ira Rosen  <irar@il.ibm.com>
1193             Dorit Nuzman  <dorit@il.ibm.com>
1194
1195         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
1196         * targhooks.c (default_builtin_vectorized_conversion): New.
1197         * targhooks.h (default_builtin_vectorized_function): New declaration.
1198         * target.h (struct vectorize): Add builtin_conversion field.
1199         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
1200         stmt_vec_info_type value.
1201         (vectorizable_conversion): New declaration.
1202         * tree-vect-analyze.c (vect_analyze_operations): Add
1203         vectorizable_conversion call.
1204         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
1205         * tree-vect-transform.c (vectorizable_conversion): New function.
1206         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
1207         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
1208         mode.
1209         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
1210         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
1211         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
1212         or ALTIVEC_BUILTIN_VCFSX.
1213
1214 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1215
1216         PR target/30634
1217         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
1218         CONST_DOUBLE and operand 0 is a hard register.
1219         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
1220         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
1221         is a hard floating-point register.
1222
1223 2007-02-10  Richard Henderson  <rth@redhat.com>
1224             Jakub Jelinek  <jakub@redhat.com>
1225             Alexandre Oliva  <aoliva@redhat.com>
1226
1227         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
1228         * builtin-types.def (BT_WORD): Make unsigned.
1229         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
1230         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
1231         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
1232         * c-decl.c (grokdeclarator): Don't error if !have_tls.
1233         * c-parser.c (c_parser_omp_threadprivate): Likewise.
1234         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
1235         emulated tls.
1236         * expr.c (emutls_var_address): New.
1237         (expand_expr_real_1): Expand emulated tls.
1238         (expand_expr_addr_expr_1): Likewise.
1239         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
1240         * output.h (emutls_finish): Declare.
1241         * toplev.c (compile_file): Call it.
1242         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
1243         address before wrapping in CONST.
1244         * varasm.c (emutls_htab, emutls_object_type): New.
1245         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
1246         (get_emutls_object_name, get_emutls_object_type): New.
1247         (get_emutls_init_templ_addr, emutls_decl): New.
1248         (emutls_common_1, emutls_finish): New.
1249         (assemble_variable): When emulating tls, swap decls; generate
1250         constructor for the emutls objects.
1251         (do_assemble_alias): When emulating tls, swap decl and target name.
1252         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
1253         for emulated tls.
1254         * varpool.c (decide_is_variable_needed): Look at force_output.
1255         Recurse for emulated tls.
1256         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
1257         with decide_is_variable_needed.
1258         * emutls.c: New file.
1259         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
1260         tls_object for real tls.
1261
1262 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1263
1264         PR rtl-optimization/29599
1265         * reload1.c (eliminate_regs_in_insn): Take the destination
1266         mode into account when computing the offset.
1267
1268 2007-02-09  Stuart Hastings  <stuart@apple.com>
1269             Richard Henderson  <rth@redhat.com>
1270
1271         * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
1272         * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
1273         * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
1274         fixuns_truncdfhi2): New.
1275         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
1276         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
1277         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
1278         (floatunssidf2): Allow nonimmediate source.
1279         * gcc/config/i386/sse.md (movdi_to_sse): New.
1280         (vec_concatv2di): Drop '*'.
1281         * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
1282         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
1283         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
1284         New.
1285         * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
1286         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
1287         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
1288         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
1289         (ix86_build_signbit_mask): Fix decl of v, refactor to call
1290         ix86_build_const_vector.
1291         (x86_emit_floatuns): Rewrite.
1292
1293 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1294
1295         * genautomata.c (longest_path_length): Delete unused function.
1296         (struct state): Delete unused longest_path_length.
1297         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
1298         (get_free_state): Delete unused.
1299         
1300 2007-02-09  Jan Hubicka  <jh@suse.cz>
1301
1302         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
1303         * doc/invoke.texi (inline-unit-growth): Update default value.
1304
1305         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
1306         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
1307         (rebuild_cgraph_edges): Likewise.
1308         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
1309         (dump_cgraph_node): Dump frequencies.
1310         (cgraph_clone_edge): Add frequency scales.
1311         (cgraph_clone_node): Add freuqnecy.
1312         * cgraph.h (cgraph_edge): Add freuqnecy argument.
1313         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
1314         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
1315         * tree-pass.h (TODO_rebuild_frequencies): New constant.
1316         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
1317         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
1318         (save_inline_function_body): Likewise.
1319         * ipa-inline.c: inluce rtl.h
1320         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
1321         (cgraph_edge_badness): Use frequencies.
1322         (cgraph_decide_recursive_inlining): Update clonning.
1323         (cgraph_decide_inlining_of_small_function): Dump frequency.
1324         * predict.c (estimate_bb_frequencies): Export.
1325         * predict.h (estimate_bb_frequencies): Declare.
1326         * tree-inline.c (copy_bb): Watch overflows.
1327         (expand_call_inline): Update call of cgraph_create_edge.
1328         (optimize_inline_calls): Use TODO flags to update frequnecies.
1329         * passes.h: Include predict.h
1330         (init_optimization_passes): Move profile ahead.
1331         (execute_function_todo): Handle TODO_rebuild_frequencies.
1332
1333 2007-02-09  Roger Sayle  <roger@eyesopen.com>
1334
1335         * config/alpha/alpha.c (emit_insxl): Force the first operand of
1336         the insbl or inswl pattern into a register.
1337
1338 2007-02-09  Roger Sayle  <roger@eyesopen.com>
1339
1340         * config/ia64/ia64.md (bswapdi2): New define_insn.
1341
1342 2007-02-09  Richard Henderson  <rth@redhat.com>
1343
1344         * config/i386/constraints.md (Ym): New constraint.
1345         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
1346         (movdi_1_rex64): Split sse and xmm general register moves from
1347         memory move alternatives.  Use conditional register constraints.
1348         (movsf_1, movdf_integer): Likewise.
1349         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
1350         (movdf_integer_rex64): New.
1351         (pushsf_rex64): Fix output constraints.
1352         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
1353         (sse2_stored): Likewise.
1354         (sse2_storeq_rex64): New.
1355         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
1356         amd and not generic.
1357         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
1358         for optimize_size.  Remove SF/DFmode hack.
1359
1360 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1361
1362         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
1363         (bit_SSE4a): New.
1364
1365 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
1366             Richard Sandiford  <richard@codesourcery.com>
1367
1368         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
1369         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
1370         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
1371         m68k/t-mlib to tmake_file.
1372         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
1373         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
1374         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
1375         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
1376         variable is not empty, add t-$m68k_arch_family to tmake_file.
1377         Add t-mlibs to tmake_file.
1378         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
1379         * config/m68k/t-cf: New file.
1380         * config/m68k/t-m68k: Likewise.
1381         * config/m68k/t-mlibs: Likewise.
1382         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
1383         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
1384         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
1385         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
1386         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
1387         Delete.
1388         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
1389         (INSTALL_LIBGCC): Delete.
1390         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
1391         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
1392         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
1393         (M68K_MLIB_CPU): Define.
1394         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
1395         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
1396         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
1397
1398 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
1399             Richard Guenther  <rguenther@suse.de>
1400
1401         PR middle-end/23361
1402         * fold-const.c (fold_comparison): Handle obfuscated comparisons
1403         against INT_MIN/INT_MAX.
1404         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
1405         file if a loop is removed.
1406
1407 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
1408
1409         * calls.c (store_one_arg): Pass correct alignment to
1410         emit_push_insn for non-BLKmode values.
1411         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
1412         unaligned stack slot via a suitably aligned slot.
1413
1414 2007-02-08  DJ Delorie  <dj@redhat.com>
1415
1416         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
1417         warnings.
1418         (legal_subregs): Use unsigned char, make const.
1419         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
1420
1421 2007-02-08  Paul Brook  <paul@codesourcery.com>
1422
1423         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
1424         special interworking needed.
1425
1426 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
1427
1428         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
1429         conditional to __SSE2__.
1430         (Entries below should have been added to first ChangeLog
1431         entry for amdfam10 dated 2007-02-05)
1432         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
1433         defined.
1434         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
1435         defined.
1436         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
1437         defined.
1438
1439 2007-02-08  DJ Delorie  <dj@redhat.com>
1440
1441         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
1442         * config/m32c/m32c.c (legal_subregs): New.
1443         (m32c_illegal_subreg_p): New.
1444         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
1445         unsupported subregs of hard regs.
1446
1447 2007-02-08  Jan Hubicka  <jh@suse.cz>
1448
1449         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
1450         the same one; always update histograms.
1451
1452 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
1453
1454         * passes.c (init_optimization_passes): Tidy comment.
1455
1456 2007-02-08  Roger Sayle  <roger@eyesopen.com>
1457
1458         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
1459         strip zero_extend, bswap and rotates from POCOUNT's argument.
1460         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
1461         zero_extend and rotates from PARITY's argument.
1462         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
1463         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
1464         of an integer constant at compile-time.
1465
1466 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
1467
1468         PR 30562
1469         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
1470         Update all users.
1471         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
1472         users.
1473         (init_alias_info):
1474         * tree-ssa-live.c (remove_unused_locals): Do not remove
1475         TREE_ADDRESSABLE variables.
1476         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
1477         * tree-ssa-operands.c (add_virtual_operand): Remove argument
1478         FOR_CLOBBER.  Update all users.
1479         If VAR has an associated alias set, add a virtual operand for
1480         it if no alias is found to conflict with the memory reference.
1481
1482 2007-02-07  Jan Hubicka  <jh@suse.cz>
1483             Robert Kidd <rkidd@crhc.uiuc.edu>
1484
1485         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
1486
1487 2007-02-07  Ian Lance Taylor  <iant@google.com>
1488
1489         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
1490
1491 2007-02-07  Roger Sayle  <roger@eyesopen.com>
1492
1493         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1494         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
1495         tablejumpdi, movsi_to_cr_one): Remove constraints from
1496         define_expand's match_operands.
1497
1498 2007-02-07  Roger Sayle  <roger@eyesopen.com>
1499
1500         * global.c (compute_regsets): Move declatation of "i" inside of
1501         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
1502
1503 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1504
1505         PR c++/30703
1506         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
1507         of INDIRECT_REF <RESULT_DECL>.
1508
1509         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
1510
1511 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
1512             Kaz Kojima  <kkojima@gcc.gnu.org>
1513
1514         PR target/29746
1515         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
1516         properly.
1517         (sh_initialize_trampoline): Add parentheses to avoid a warning.
1518
1519 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
1520
1521         * doc/loop.texi: Document possibility not to perform disambiguation
1522         of loops with multiple latches.
1523         * cfgloopmanip.c (alp_enum_p): Removed.
1524         (add_loop): Handle subloops.  Use get_loop_body_with_size.
1525         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
1526         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
1527         the new forwarder block.
1528         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
1529         Handle the case latch is NULL.
1530         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
1531         when marking loop exits.
1532         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
1533         be modified.
1534         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
1535         disambiguate_loops_with_multiple_latches.
1536         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
1537         before fix_loop_structure.
1538         * cfgloop.c: Include pointer-set.h and output.h.
1539         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
1540         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
1541         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
1542         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
1543         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
1544         disambiguate_multiple_latches, get_loop_body_with_size,
1545         disambiguate_loops_with_multiple_latches): New functions.
1546         (flow_loop_dump): Dump multiple latch edges.
1547         (flow_loop_nodes_find): Handle loops with multiple latches.
1548         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
1549         (glb_enum_p): Modified.
1550         (get_loop_body): Use get_loop_body_with_size.
1551         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
1552         (AVOID_CFG_MODIFICATIONS): New constant.
1553         (disambiguate_loops_with_multiple_latches, add_loop,
1554         get_loop_body_with_size): Declare.
1555         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
1556
1557 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
1558
1559         PR inline-asm/28686
1560         * global.c (compute_regsets): New function.
1561         (global_alloc): Refactored ELIMINABLE_REGSET
1562         and NO_GLOBAL_ALLOC_REGS computation out.
1563         (rest_of_handle_global_alloc): Call compute_regsets()
1564         for non-optimizing case.
1565
1566 2007-02-06  Richard Henderson  <rth@redhat.com>
1567
1568         * config/i386/constraints.md (Y2): Rename from Y.
1569         (Yi): New constraint.
1570         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
1571         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
1572         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
1573         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
1574         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
1575         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
1576         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed, 
1577         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
1578         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
1579         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
1580         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
1581         vec_extractv2si_1): Change Y constraints to Y2.
1582         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
1583         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
1584         Change Y constraints to Y2.
1585         (sse2_loadld): Change Y constraints to x.
1586
1587 2007-02-06  Roger Sayle  <roger@eyesopen.com>
1588
1589         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
1590         (parity<mode>2): New define_expand using rs6000_emit_parity.
1591         * config/rs6000/rs6000.c (rs6000_emit_popcount,
1592         rs6000_emit_parity): New functions.
1593         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
1594         rs6000_emit_parity): Prototype here.
1595
1596 2007-02-06  Ian Lance Taylor  <iant@google.com>
1597
1598         * lower-subreg.c (simple_move_operand): Reject CONST.
1599         (resolve_clobber): Call validate_change rather than directly
1600         assigning to XEXP (pat, 0).
1601
1602 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
1603
1604         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
1605         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
1606         (tree-cfg.o): Remove hashtab.h dependency.
1607
1608         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
1609         (struct ivopts_data): Change niters to pointer_map_t.
1610         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
1611         (niter_for_exit): Create pointer_map on demand.  Change for
1612         pointer_map API.
1613         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
1614         (free_loop_data): Destroy data->niters if created and reset field.
1615         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
1616         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
1617
1618         * tree-ssa-reassoc.c: Include pointer-set.h.
1619         (bb_rank): Change to long *.
1620         (operand_rank): Change to pointer_map_t.
1621         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
1622         (insert_operand_rank): Accept long.
1623         (operand_entry_hash, operand_entry_eq): Remove.
1624         (get_rank): Return long.  Adjust for changes above.
1625         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
1626         and operand_rank.
1627         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
1628
1629         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
1630         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
1631         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
1632         is not NULL.
1633         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
1634         directly since it cannot be NULL.
1635         (get_vi_for_tree): Rewrite for pointer_map API.
1636         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
1637         (init_alias_vars): Create vi_for_tree as pointer_map.
1638         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
1639
1640         * tree-cfg.c: Don't include hashtab.h.
1641         (edge_to_cases): Declare as pointer_map.
1642         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
1643         Delete.
1644         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
1645         (start_recording_case_labels): Create edge_to_cases as pointer_map.
1646         (end_recoding_case_labels): Cleanup edge_to_cases manually before
1647         destroying it.
1648         (record_switch_edge): Delete.
1649         (get_cases_for_edge): Adjust for pointer_map API, inline
1650         record_switch_edge (rewritten for new API), remove goto.
1651
1652 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
1653
1654         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
1655         * tree-nested.c: Include pointer-set.h.
1656         (var_map_elt, var_map_eq, var_map_hash): Delete.
1657         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
1658         to pointer_map_t's.
1659         (nesting_info_bitmap_obstack): New.
1660         (lookup_field_for_decl): Adjust for pointer_map API.
1661         (lookup_tramp_for_decl): Adjust for pointer_map API.
1662         (get_nonlocal_debug_decl): Adjust for pointer_map API.
1663         (get_local_debug_decl): Adjust for pointer_map API.
1664         (convert_nl_goto_reference): Adjust for pointer_map API.
1665         (convert_nl_goto_receiver): Adjust for pointer_map API.
1666         (create_nesting_tree): Create outside GGC space.  Create bitmap on
1667         the new obstack.  Create field_map and var_map as pointer_maps.
1668         (free_nesting_tree): Adjust for changes to create_nesting_tree.
1669         (root): Delete. 
1670         (lower_nested_functions): Move root here, no need to NULL it.
1671         Initialize and release the obstack.
1672
1673 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
1674
1675         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
1676         Remove prototypes and make them non-static.
1677         (struct tree_int_map): Remove.
1678         * tree.h (struct tree_int_map): Move here, turning TO into an
1679         unsigned int.
1680         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
1681
1682         * tree.h (TREE_COMPLEXITY): Remove.
1683         (struct tree_exp): Remove complexity field.
1684         * tree.c (build1_stat): Don't set it.
1685
1686 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
1687             Victor Kaplansky  <victork@il.ibm.com>
1688
1689         * tree-vectorizer.c (vect_is_simple_use): Support induction.
1690         (vect_is_simple_reduction): Support reduction with induction as
1691         one of the operands.
1692         (vect_is_simple_iv_evolution): Fix formatting.
1693         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix 
1694         formatting.  Don't mark induction phis for vectorization.
1695         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
1696         * tree-vect-transform.c (get_initial_def_for_induction): New function.
1697         (vect_get_vec_def_for_operand): Support induction.
1698         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
1699         induction case.
1700         (vectorizable_reduction): Support reduction with induction as one of 
1701         the operands. 
1702         (vectorizable_type_demotion): Use def-type of stmt argument rather
1703         than dummy def-type.
1704
1705         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
1706         flag_tree_scev_cprop.
1707         * common.opt (tree-scev-cprop): New flag.
1708
1709         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
1710         call to vect_get_new_vect_var.
1711
1712 2007-02-06  Ira Rosen  <irar@il.ibm.com>
1713
1714         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that 
1715         vectype is not NULL.
1716         (vect_pattern_recog_1): Likewise.
1717
1718 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1719
1720         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
1721         (fold_negate_expr): Likewise.
1722
1723 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
1724
1725         PR debug/30189
1726         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
1727         even if cv-qualification is the same.
1728
1729 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
1730
1731         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
1732         __enable_execute_stack on completion.
1733
1734 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1735
1736         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
1737         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
1738         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
1739         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
1740         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
1741         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
1742         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
1743         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
1744
1745 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1746
1747         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
1748         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
1749         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
1750         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
1751         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
1752         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
1753         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
1754         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
1755         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
1756         umuldi3_highpart_rex64, umulsi3_highpart_insn,
1757         umulsi3_highpart_zext, smuldi3_highpart_rex64,
1758         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
1759         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
1760         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
1761         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
1762         sqrtextenddfxf2_i387): Added amdfam10_decode.
1763         
1764         * config/i386/athlon.md (athlon_idirect_amdfam10,
1765         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
1766         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
1767         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
1768         athlon_ivector_store_amdfam10): New define_insn_reservation.
1769         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
1770         amdfam10.
1771
1772 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1773
1774         * config/i386/athlon.md (athlon_call_amdfam10,
1775         athlon_pop_amdfam10, athlon_lea_amdfam10): New
1776         define_insn_reservation.
1777         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
1778         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
1779         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
1780
1781 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1782
1783         * config/i386/athlon.md (athlon_sseld_amdfam10,
1784         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
1785         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
1786
1787 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1788
1789         * config/i386/athlon.md (athlon_sseins_amdfam10): New
1790         define_insn_reservation.
1791         * config/i386/i386.md (sseins): Added sseins to define_attr type
1792         and define_attr unit.
1793         * config/i386/sse.md: Set type attribute to sseins for insertq
1794         and insertqi.
1795
1796 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1797
1798         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
1799         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
1800         ssecomi_load_amdfam10, ssecomi_amdfam10,
1801         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
1802         define_insn_reservation.
1803         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
1804
1805 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1806
1807         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
1808         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
1809         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
1810         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
1811         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
1812         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New 
1813         define_insn_reservation.
1814
1815         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
1816         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
1817         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
1818         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
1819         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
1820
1821 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1822
1823         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
1824         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
1825         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
1826         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
1827         athlon_ssemul_load_k8): Added amdfam10.
1828
1829 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1830
1831         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
1832         (x86_sse_unaligned_move_optimal): New variable.
1833         
1834         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for  
1835         m_AMDFAM10.
1836         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
1837         for unaligned vector SSE double/single precision loads for AMDFAM10.
1838
1839 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1840
1841         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
1842         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
1843         Define TARGET_CPU_DEFAULT_amdfam10.
1844         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
1845         (processor_type): Add PROCESSOR_AMDFAM10.       
1846         
1847         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
1848         processor_type in config/i386/i386.h.
1849         Enable imul peepholes for TARGET_AMDFAM10.
1850         
1851         * config.gcc: Add support for --with-cpu option for amdfam10.
1852         
1853         * config/i386/i386.c (amdfam10_cost): New variable.
1854         (m_AMDFAM10): New macro.
1855         (m_ATHLON_K8_AMDFAM10): New macro.
1856         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
1857         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
1858         x86_promote_QImode, x86_integer_DFmode_moves,
1859         x86_partial_reg_dependency, x86_memory_mismatch_stall, 
1860         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
1861         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
1862         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
1863         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
1864         Enable/disable for amdfam10.
1865         (override_options): Add amdfam10_cost to processor_target_table.
1866         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in 
1867         processor_alias_table.
1868         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
1869         (ix86_adjust_cost): Add code for amdfam10.
1870
1871 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
1872         
1873         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
1874         instruction set feature flag. Add new (-mpopcnt) flag for popcnt 
1875         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
1876         * config/i386/i386.h: Add builtin definition for SSE4A.
1877         * config/i386/i386.md: Add support for ABM instructions 
1878         (popcnt and lzcnt).
1879         * config/i386/sse.md: Add support for SSE4A instructions
1880         (movntss, movntsd, extrq, insertq).
1881         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
1882         Add -march=amdfam10 flag.
1883         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
1884         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
1885         and amdfam10.
1886         * doc/extend.texi: Add documentation for SSE4A builtins.
1887
1888 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
1889
1890         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
1891
1892 2007-02-05  Richard Guenther  <rguenther@suse.de>
1893
1894         * tree-vectorizer.h (vectorizable_function): Add argument type
1895         argument, change return type.
1896         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
1897         * tree-vect-transform.c (vectorizable_function): Handle extra
1898         argument, return vectorized function decl.
1899         (build_vectorized_function_call): Remove.
1900         (vectorizable_call): Handle calls with result and argument types
1901         differing.  Handle loop vectorization factor correctly.
1902         * targhooks.c (default_builtin_vectorized_function): Adjust for
1903         extra argument.
1904         * targhooks.h (default_builtin_vectorized_function): Likewise.
1905         * target.h (builtin_vectorized_function): Add argument type
1906         argument.
1907         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
1908         extra argument, allow vectorizing of lrintf.
1909         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
1910         documentation of target hook.
1911
1912 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
1913
1914         PR target/30665
1915         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
1916         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
1917         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
1918
1919 2007-02-05  Roger Sayle  <roger@eyesopen.com>
1920
1921         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
1922         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
1923         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
1924         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
1925         before canonicalizing sincos to cexpi.
1926         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
1927
1928 2007-02-05  Roger Sayle  <roger@eyesopen.com>
1929
1930         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
1931         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
1932         (alpha_init_builtins): Use alpha_add_builtins to process tables.
1933
1934 2007-02-05  Roger Sayle  <roger@eyesopen.com>
1935
1936         * mips-tfile.c (initialize_init_file): Correct endianness test.
1937
1938 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
1939
1940         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
1941         the 'y' constraint.
1942
1943 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
1944
1945         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
1946         saves in a PARALLEL before the register assignments.
1947
1948 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
1949
1950         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
1951         DWARF_FRAME_RETURN_COLUMN to be a general register.
1952         * dwarf2out.c (init_return_column_size): New function, split from...
1953         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
1954         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
1955         to be nongeneral registers.
1956         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
1957         integer registers.
1958         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
1959         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
1960
1961 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
1962
1963         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
1964
1965 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
1966
1967         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
1968         (remove_path): Use can_remove_branch_p and remove_branch instead
1969         of loop_delete_branch_edge.
1970         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
1971         (tree_transform_and_unroll_loop): Remove dead branches immediately.
1972         Update profile using scale_dominated_blocks_in_loop.
1973         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
1974         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
1975         (can_remove_branch_p, remove_branch): Declare.
1976         * tree-cfg.c (tree_can_remove_branch_p): New function.
1977         (tree_cfg_hooks): Add tree_can_remove_branch_p.
1978         * cfgrtl.c (rtl_can_remove_branch_p): New function.
1979         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
1980
1981 2007-02-05  Jan Hubicka  <jh@suse.cz>
1982
1983         PR middle-end/30696
1984         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
1985         nodes in cgraph, don't remove offline copy of the function.
1986
1987 2007-02-04  Jan Hubicka  <jh@suse.cz>
1988
1989         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
1990         vectors might cause maybe_lookup_element_for_expr to be called
1991         on non-sra-candidate.
1992
1993 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
1994
1995         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
1996         config/bfin/bfin.md, config/bfin/predicates.md: Follow
1997         spelling conventions.
1998
1999 2007-02-04  Richard Guenther  <rguenther@suse.de>
2000
2001         PR middle-end/30636
2002         * fold-const.c (try_move_mult_to_index): Make sure to not
2003         overflow one dimension of a multi-dimensional array access.
2004
2005 2007-02-04  Jan Hubicka  <jh@suse.cz>
2006
2007         * passes.c (init_optimization_passes): Reindent.
2008
2009 2007-02-04  Jan Hubicka  <jh@suse.cz>
2010             Eric Botcazou  <ebotcazou@adacore.com>
2011
2012         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
2013         (execute_fixup_cfg): Break out the abnormal goto code.
2014         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
2015         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
2016         (optimize_inline_calls): Call make_nonlocal_label_edges.
2017
2018 2007-02-04  Jan Hubicka  <jh@suse.cz>
2019
2020         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
2021         true when something was changed.
2022         (rename_ssa_copies): When something was changed, do
2023         TODO_remove_unused_locals.
2024         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
2025         add TODO_remove_unused_locals when instruction was removed.
2026
2027 2007-02-04  Jan Hubicka  <jh@suse.cz>
2028
2029         * ipa-inline.c (try_inline): Improve debug output; work on already
2030         inline edges too.
2031         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
2032         call try_inline for already inlined edges too when flattening; 
2033         inline also functions that make callee growth but overall unit size
2034         reduce.
2035
2036 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
2037
2038         * config/m32c/bitops.md, config/m32c/jump.md,
2039         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
2040         config/m32r/m32r.h, config/m32r/m32r.md,
2041         config/m32r/predicates.md, config/m68hc11/larith.asm,
2042         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2043         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
2044         config/mips/mips-protos.h, config/mips/mips.c,
2045         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
2046         config/mn10300/mn10300.h, config/mn10300/predicates.md,
2047         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
2048         spelling conventions.
2049
2050         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
2051         Follow spelling conventions.
2052
2053 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
2054
2055        * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
2056        warn about C++0x compatibility.
2057         
2058 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
2059
2060         * config/h8300/h8300.c, config/h8300/h8300.h,
2061         config/h8300/h8300.md: Follow spelling conventions.
2062
2063 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
2064
2065         PR middle-end/30667
2066         * combine.c (try_combine): Do not substitute source operand
2067         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
2068
2069 2007-02-03  Jan Hubicka  <jh@suse.cz>
2070
2071         PR gcov-profile/30650
2072         * value-prof.c (stringop_block_profile): Fix handling of size counter;
2073         do not divide by zero for never executed counters.
2074         (tree_find_values_to_profile): Fix counters.
2075         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
2076
2077 2007-02-03  Ian Lance Taylor  <iant@google.com>
2078
2079         * lower-subreg.c (simple_move_operand): New static function,
2080         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
2081         operands.
2082         (simple_move): Call simple_move_operand.
2083         (find_decomposable_subregs): Add special handling of MEMs.
2084         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
2085         meaning of return value.  If we see a hard register, test whether
2086         it can store a word_mode value.  Change all callers.
2087
2088 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2089
2090         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
2091         ftrapv insns and expanders.
2092         (subdi3): Change define_expand operand 1 to arith11_operand, and
2093         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
2094         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
2095         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
2096         respectively.
2097
2098         PR middle-end/30174
2099         * varasm.c (notice_global_symbol): Treat global objects as weak when
2100         flag_shlib is true.
2101
2102 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2103
2104         * emit-rtl.c (dconstpi): Delete.
2105         (dconstsqrt2): New.
2106         (init_emit_once): Delete dconstpi and init dconstsqrt2.
2107         * real.h (dconstpi): Delete.
2108         (dconstsqrt2): New.
2109         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
2110         (fold_builtin_hypot): Likewise.
2111
2112 2007-02-03  Tom Tromey  <tromey@redhat.com>
2113
2114         PR driver/30246
2115         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
2116         -gcoff3, -gxcoff3, -gvms3 implies -dD.
2117
2118 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
2119
2120         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
2121         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
2122         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
2123         config/rs6000/cell.md, config/rs6000/darwin.h,
2124         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
2125         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
2126         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
2127         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
2128         typos.  Follow spelling conventions.
2129         * doc/invoke.texi: Follow spelling conventions.
2130
2131 2007-02-03  Roger Sayle  <roger@eyesopen.com>
2132
2133         * simplify-rtx.c (simplify_relational_operation_1): Implement some
2134         canonicalization transformations that attempt to simplify integer
2135         constant comparisons to become comparisons against zero.
2136
2137 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2138
2139         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
2140         fabs(x)*sqrt(2).
2141         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
2142         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
2143
2144 2007-02-02  Mike Stump  <mrs@apple.com>
2145
2146         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
2147         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
2148         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
2149         generate a branch island.
2150
2151 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
2152
2153         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
2154         (xtensa_legitimate_address_p): New.
2155         (xtensa_legitimize_address): New.
2156         (xtensa_output_addr_const_extra): New.
2157         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
2158         (BASE_REG_P): New.
2159         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
2160         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
2161         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
2162         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
2163         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
2164         (xtensa_legitimize_address): New.
2165         (xtensa_output_addr_const_extra): New.
2166
2167 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
2168
2169         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
2170
2171 2007-02-02  Ian Lance Taylor  <iant@google.com>
2172
2173         * expmed.c (expand_divmod): Add comment.
2174
2175 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
2176
2177         * emit-rtl.c (renumber_insns): Remove.
2178         * flags.h: Remove the extern for flag_renumber_insns.
2179         * rtl.h: Remove the prototype for renumber_insns.
2180         * toplev.c (flag_renumber_insns): Remove.
2181
2182 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
2183
2184         Revert for x86 darwin:
2185         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
2186         
2187         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
2188         code before the following patch under TARGET_MACHO.
2189         (ix86_function_value_regno_p): Likewise.
2190
2191 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2192
2193         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
2194         COMPLEX_EXPR.
2195
2196 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2197
2198         PR target/29682
2199         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
2200         general or fp registers.  Add comments.
2201         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
2202
2203 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
2204
2205         * pointer-set.c (insert_aux): Only return insertion slot.
2206         (pointer_set_insert): Adjust.
2207         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
2208         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
2209         pointer_map_traverse): New.
2210         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
2211         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
2212         pointer_map_contains, pointer_map_traverse): Declare.
2213
2214 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2215
2216         PR middle-end/30473
2217         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
2218         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
2219
2220 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2221
2222         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
2223         
2224         (struct _dep): New type.
2225         (dep_t): New typedef.
2226         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
2227         (DEP_STATUS): New access macro.  The macro with the same name was
2228         renamed to DEP_LINK_STATUS.
2229         (dep_init): Declare function
2230
2231         (struct _dep_link): New type.
2232         (dep_link_t): New typedef.
2233         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
2234         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
2235         (DEP_LINK_STATUS): New macro.
2236         (debug_dep_links): New debug function.
2237
2238         (struct _deps_list): New type.
2239         (deps_list_t): New typedef.
2240         (DEPS_LIST_FIRST): New access macro.
2241         (FOR_EACH_DEP_LINK): New cycle macro.
2242         (create_deps_list, free_deps_list, delete_deps_list): Declare
2243         functions.
2244         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
2245         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
2246         (copy_deps_list_change_con): Ditto.
2247
2248         (move_dep_link): Declare function.
2249
2250         (struct _dep_node): New type.
2251         (dep_node_t): New typedef.
2252         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
2253
2254         (struct haifa_insn_data.back_deps): New field to hold backward
2255         dependencies of the insn.
2256         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
2257         to deps_list_t.
2258         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
2259         Change its type to deps_list_t.
2260         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
2261         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
2262         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
2263
2264         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
2265         
2266         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
2267
2268         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
2269         all callers.
2270         (dep_cost): Declare.
2271         
2272         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
2273         (ds_to_dk, dk_to_ds): New functions.
2274         
2275         (init_dep_1): New static function.
2276         (init_dep): New function.
2277         (copy_dep): New static function.
2278         
2279         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
2280         functions.
2281         (detach_dep_link): New static function.
2282         (move_dep_link): New function.
2283         
2284         (dep_links_consistent_p, dump_dep_links): New static functions.
2285         (debug_dep_links): New debugging function.
2286         
2287         (deps_obstack, dl_obstack, dn_obstack): New static variables.
2288         
2289         (alloc_deps_list, init_deps_list): New static functions.
2290         (create_deps_list): New function.
2291         (clear_deps_list): New static function.
2292         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
2293         (deps_list_consistent_p, dump_deps_list): New static functions.
2294         (debug_deps_list): New function.
2295         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
2296         functions.
2297         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
2298
2299         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
2300         use new scheduler dependencies lists.
2301         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
2302         (sched_analyze): Ditto.  Initialize dependencies lists.
2303         (add_forw_dep, compute_forward_dependences): Update to use new
2304         scheduler dependencies lists.
2305         
2306         (init_dependency_caches): Init deps_obstack.
2307         (free_dependency_caches): Free deps_obstack.
2308         
2309         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
2310         new scheduler dependencies lists.
2311         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
2312         (add_back_forw_dep, delete_back_forw_dep): Ditto.
2313
2314         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
2315         Update to use new scheduler dependencies lists.
2316         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
2317         (debug_dependencies): Ditto.
2318         (schedule_region): Update comments.
2319         
2320         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
2321         scheduler dependencies lists.
2322         (schedule_ebb): Update comments.
2323         
2324         * rtl.def (DEPS_LIST): Remove.
2325         
2326         * lists.c (unused_deps_list): Remove.
2327         (free_list): Update assertions.
2328         
2329         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
2330         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
2331
2332         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
2333         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
2334         
2335         * haifa-sched.c (comments): Update.
2336         (insn_cost1): Remove.  Inline the code into insn_cost ().
2337         (insn_cost): Update to use new scheduler dependencies lists.  Move
2338         processing of the dependency cost to dep_cost ().
2339         (dep_cost): New function.  Use it instead of insn_cost () when
2340         evaluating cost of the dependency.  Use compatible interface to
2341         interact with the target.
2342         (priority): Update to use new scheduler dependencies lists.
2343         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
2344         with greater number of insns that depend on the insn.
2345         (schedule_insn): Update to use new scheduler dependencies lists.  Add
2346         code to free backward dependencies lists.  Inline and optimize code
2347         from resolve_dep () - see PR28071.
2348         (ok_for_early_queue_removal): Update to use new scheduler dependencies
2349         lists.  Update call to targetm.sched.is_costly_dependence hook.
2350         
2351         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
2352         scheduler dependencies lists.
2353         
2354         (resolve_dep): Remove.  Move the logic to schedule_insn ().
2355         (init_h_i_d): Initialize dependencies lists.
2356         
2357         (process_insn_depend_be_in_spec): Rename to
2358         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
2359         dependencies lists.
2360         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
2361         Update to use new scheduler dependencies lists.
2362         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
2363         
2364         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
2365         new scheduler dependencies lists.
2366         (build_intra_loop_deps): Ditto.
2367         
2368         * target.h (struct _dep): Declare to use in
2369         gcc_target.sched.is_costly_dependence.
2370         (struct gcc_target.sched.adjust_cost): Fix typo.
2371         (struct gcc_target.sched.is_costly_dependence): Change signature to use
2372         single dep_t parameter instead of an equivalent triad.
2373         (struct gcc_target.sched.adjust_cost_2): Remove.
2374
2375         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
2376
2377         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
2378
2379         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
2380         documentation.
2381         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
2382
2383         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
2384         (REG_DEP_TRUE): Document.
2385         
2386         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
2387         Change signature to correspond to the targetm.sched.adjust_cost hook.  
2388         Update use in TARGET_SCHED_ADJUST_COST_2.
2389         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
2390         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
2391         new scheduler dependencies lists.
2392         (ia64_gen_check): Ditto.
2393
2394         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
2395         dependencies lists.
2396         
2397         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
2398         signature to correspond to the targetm.sched.is_costly_dependence hook.
2399         (is_costly_group): Update to use new scheduler dependencies lists.
2400
2401         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
2402         instead of INSN_COST () macro.
2403
2404 2007-02-01  Ian Lance Taylor  <iant@google.com>
2405
2406         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
2407
2408 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
2409
2410         * pa.md (tp_load): Correct mfctl instruction syntax.
2411
2412 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
2413
2414         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
2415         altivec_padding_size calculation on AIX.  Improve comment, add
2416         assert to verify that it's right.
2417
2418         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
2419         64-bit.
2420
2421 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
2422
2423         PR inline-asm/28686
2424         * global.c (global_alloc): Add mising initialization of
2425         ELIMINABLE_REGSET.
2426
2427 2007-02-01  Roger Sayle  <roger@eyesopen.com>
2428
2429         * alias.c (init_alias_analysis): Correct whitespace.
2430         * bb-reorder.c (fix_edges_for_rarely_executed_code,
2431         partition_hot_cold_basic_blocks): Likewise.
2432         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
2433         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
2434         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
2435         fold_builtin_snprintf_chk, fold_builtin_printf,
2436         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
2437         do_mpfr_arg3, do_mpfr_sincos): Likewise.
2438         * cfgcleanup.c (cleanup_cfg): Likewise.
2439         * cfgexpand.c (tree_expand_cfg): Likewise.
2440         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
2441         * function.c (get_next_funcdef_no): Likewise.
2442         * gengtype.c (main): Likewise.
2443         * genmodes.c (main): Likewise.
2444         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
2445         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
2446         * ifcvt.c (noce_emit_move_insn): Likewise.
2447         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
2448         Likewise.
2449         * stor-layout.c (get_best_mode): Likewise.
2450         * tree-ssa-loop-niter.c (get_val_for): Likewise.
2451         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
2452         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
2453         perform_var_substitution, solve_graph): Likewise.
2454         * tree-vrp.c (vrp_finalize): Likewise.
2455
2456 2007-02-01  Ian Lance Taylor  <iant@google.com>
2457
2458         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
2459         high part of a paradoxical subreg, return a constant zero.
2460
2461 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
2462
2463         * toplev.c (lang_dependent_init): Call init_set_costs.
2464         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
2465
2466 2007-02-01  Richard Guenther  <rguenther@suse.de>
2467
2468         PR middle-end/30656
2469         * fold-const.c (fold_negate_expr): Allow negating a
2470         constant if overflow does not change.
2471
2472 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2473
2474         * doc/c-tree.texi (Expression trees): Improve markup.
2475         * doc/tm.texi (Register Classes, Addressing Modes)
2476         (Floating Point): Fix spacing after abbreviations.  Fix some
2477         typos.
2478
2479 2007-02-01  Ben Elliston  <bje@au.ibm.com>
2480
2481         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
2482         * doc/contrib.texi: Likewise.
2483         * doc/install.texi: Likewise.
2484
2485 2007-01-31  Richard Henderson  <rth@redhat.com>
2486             Ian Lance Taylor  <iant@google.com>
2487
2488         * lower-subreg.c: New file.
2489         * rtl.def (CONCATN): Define.
2490         * passes.c (init_optimization_passes): Add pass_lower_subreg and
2491         pass_lower_subreg2.
2492         * emit-rtl.c (update_reg_offset): New static function, broken out
2493         of gen_rtx_REG_offset.
2494         (gen_rtx_REG_offset): Call update_reg_offset.
2495         (gen_reg_rtx_offset): New function.
2496         * regclass.c: Revert patch of 2006-03-05, restoring
2497         reg_scan_update.
2498         (clear_reg_info_regno): New function.
2499         * dwarf2out.c (concatn_loc_descriptor): New static function.
2500         (loc_descriptor): Handle CONCATN.
2501         * common.opt (fsplit_wide_types): New option.
2502         * opts.c (decode_options): Set flag_split_wide_types when
2503         optimizing.
2504         * timevar.def (TV_LOWER_SUBREG): Define.
2505         * rtl.h (gen_reg_rtx_offset): Declare.
2506         (reg_scan_update): Declare.
2507         * regs.h (clear_reg_info_regno): Declare.
2508         * tree-pass.h (pass_lower_subreg): Declare.
2509         (pass_lower_subreg2): Declare.
2510         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
2511         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
2512         -fsplit-wide-types.
2513         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
2514         * Makefile.in (OBJS-common): Add lower-subreg.o.
2515         (lower-subreg.o): New target.
2516
2517 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
2518
2519         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
2520
2521 2007-01-31  Anatoly Sokolov <aesok@post.ru>
2522
2523         PR target/19087
2524         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
2525
2526 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2527
2528         PR middle-end/29335
2529         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
2530
2531 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
2532
2533         * cfgloop.h: Include vec-prim.h.
2534         (enum li_flags): Remove LI_ONLY_OLD.
2535         (loop_iterator): Changed.
2536         (fel_next, fel_init): Iterate over loop tree.
2537         (FOR_EACH_LOOP_BREAK): New macro.
2538         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
2539         FOR_EACH_LOOP.
2540         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
2541         * modulo-sched.c (sms_schedule): Ditto.
2542         * tree-vectorizer.c (vectorize_loops): Ditto.
2543         * doc/loop.texi: Update information on loop numbering and behavior of
2544         FOR_EACH_LOOP wrto new loops.
2545         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2546         add_to_evolution_1): Test nestedness of loops instead of comparing
2547         their numbers.
2548         * tree-chrec.c (chrec_fold_plus_poly_poly,
2549         chrec_fold_multiply_poly_poly, chrec_evaluate,
2550         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
2551         reset_evolution_in_loop): Ditto.
2552         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
2553
2554 2007-01-31  Dirk Mueller  <dmueller@suse.de>
2555
2556         * c-common.c (warn_about_parentheses): Separate warning about
2557         un-parenthized sequence of comparison operators from the one
2558         which is supposed to warn about x <= y <= z.
2559
2560 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
2561
2562         * optabs.h (enum optab_index): Add new OTI_isinf.
2563         (isinf_optab): Define corresponding macro.
2564         * optabs.c (init_optabs): Initialize isinf_optab.
2565         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
2566         patterns.
2567         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
2568         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
2569         using isinf_optab.
2570         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
2571         expand_builtin_interclass_mathfn.
2572         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
2573         * config/i386/i386.md (UNSPEC_FXAM): New constant.
2574         (fxam<mode>2_i387): New insn pattern.
2575         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
2576         built-in functions as x87 inline asm.
2577
2578 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
2579
2580         * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
2581
2582 2007-01-30  Eric Christopher  <echristo@apple.com>
2583
2584         * config.gcc: Add geode.
2585
2586 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
2587
2588         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
2589         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
2590         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
2591         value-prof.c: Fix comment typos.
2592
2593 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2594
2595         PR c++/24745
2596         * doc/invoke.texi (Wpointer-arith): Document warning.
2597
2598 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
2599
2600         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
2601         the list of discrepancies from the draft TR.
2602
2603 2007-01-30  Dirk Mueller  <dmueller@suse.de>
2604
2605         PR c++/30601
2606         * doc/invoke.texi (-Wreturn-type): Update description to
2607         match new behavior.
2608
2609 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
2610
2611         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
2612
2613 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
2614
2615         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
2616         to handle optabs that operate on floating point input argument and
2617         output to integer output.
2618         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
2619         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
2620         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
2621         expand_builtin_interclass_mathfn ().
2622         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
2623         (ilogbsi2): Remove.
2624         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
2625         ilogbl built-in functions as x87 intrinsics.
2626
2627 2007-01-30  Richard Guenther  <rguenther@suse.de>
2628
2629         PR middle-end/27657
2630         * dwarf2out.c (reference_to_unused): Query varpool if the
2631         variable was output.
2632
2633 2007-01-30  Richard Guenther  <rguenther@suse.de>
2634
2635         PR middle-end/30313
2636         * passes.c (execute_one_pass): Reset in_gimple_form to not
2637         confuse non-unit-at-a-time mode.
2638
2639 2007-01-29  Roger Sayle  <roger@eyesopen.com>
2640             Richard Guenther  <rguenther@suse.de>
2641
2642         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
2643         avoid undefined behaviour on overflow.  Use force_fit_type_double
2644         to construct the constant with the specified TREE_OVERFLOW.
2645
2646 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
2647
2648         * config/dfp-bit.c: Add parameterized support for fp exceptions.
2649         * config/dfp-bit.h: Ditto.
2650
2651 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2652
2653         * c-decl.c (pop_scope): Replace warnings with call to
2654         warn_for_unused_label.
2655         * c-common.h (warn_for_unused_label): Declare.
2656         * c-common.c (warn_for_unused_label): Define.
2657
2658 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2659
2660         * tree-optimize.c (update_inlined_to_pointers): Delete unused
2661         function.
2662
2663 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
2664
2665         * Makefile.in (USER_H): Remove decfloat.h.
2666         * ginclude/decfloat.h: Delete, moving contents to ...
2667         * ginclude/float.h: Add support for decimal floating point,
2668         guarded by __STDC_WANT_DEC_FP__.
2669
2670 2007-01-29  Mike Stump  <mrs@apple.com>
2671
2672         * doc/gccint.texi (Top): Rename Loop Representation to Loop
2673         Analysis and Representation to resolve case insensitive conflict.
2674         * doc/loop.texi (Loop Analysis and Representation): Likewise.
2675
2676 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
2677
2678         * tree.h (struct tree_memory_tag): Add aliases member.
2679         (MTAG_ALIASES): New macro.
2680         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
2681         (add_may_alias): Remove pointer-set. Update for may_aliases being
2682         a bitmap.
2683         (mark_aliases_call_clobbered): Update for may_aliases being a
2684         bitmap.
2685         (compute_tag_properties): Ditto.
2686         (create_partition_for): Ditto.
2687         (compute_memory_partitions): Ditto.
2688         (dump_may_aliases_for): Ditto.
2689         (is_aliased_with): Ditto.
2690         (add_may_alias_for_new_tag): Ditto.
2691         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
2692         (compute_is_aliased): New function.
2693         (compute_may_aliases): Call compute_is_aliased).
2694         (init_alias_info): Initialize alias_bitmap_obstack.
2695         (union_alias_set_into): New function.
2696         (compute_flow_sensitive_aliasing): Use union_aliases_into.
2697         (have_common_aliases_p): Rewrite to take two bitmaps and use
2698         intersection.
2699         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
2700         Update for bitmaps.
2701         (finalize_ref_all_pointers): Update for add_may_alias changes.
2702         (new_type_alias): Ditto.
2703         * tree-flow-inline.h (may_aliases): Return a bitmap.
2704         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
2705         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
2706         may_aliases being a bitmap.
2707         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
2708         may_aliases now returns a bitmap.
2709         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
2710         being a bitmap.
2711         * tree-ssa-operands.c (add_virtual_operand): Update for
2712         may_aliases being a bitmap.
2713
2714 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
2715
2716         PR tree-optimization/30630
2717         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
2718         variable as changed.
2719
2720 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
2721
2722         PR c++/28266
2723         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
2724         expanded only once even if an error occurs.
2725
2726 2007-01-29  Ben Elliston  <bje@au.ibm.com>
2727
2728         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
2729         (__gcov_average_profiler): Likewise.
2730         (__gcov_ior_profiler): Likewise.
2731         (__gcov_merge_ior): Likewise.
2732
2733 2007-01-28  Jan Hubicka  <jh@suse.cz>
2734
2735         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
2736         * value-prof.c (stringop_block_profile): Likewise.
2737
2738 2007-01-28  Jan Hubicka  <jh@suse.cz>
2739
2740         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
2741         variant handling histograms; add wrapper.
2742         (clear_storage_via_libcall): Export.
2743         (emit_block_move_hints): Break out from ...; add histograms.
2744         (emit_block_move): ... this one.
2745         (clear_storage_hints): Break out from ...; add histograms.
2746         (clear_storage): ... this one.
2747         (set_storage_via_memset): Handle histogram.
2748         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
2749         (clear_storage_hints, clear_storage_via_libcall): Declare.
2750         (set_storage_via_setmem): Update prototype.
2751         * doc/md.texi (movmem, setmem): Document new arguments.
2752
2753         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
2754         new histograms.
2755         (stringop_block_profile): New global function.
2756         (tree_stringops_values_to_profile): Profile block size and alignment.
2757         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
2758         HIST_TYPE_IOR.
2759         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
2760         (stringop_block_profile): Declare.
2761         * builtins.c: Include value-prof.h.
2762         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
2763         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
2764         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
2765         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
2766         * profile.c (instrument_values): Add new counters.
2767         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
2768         calls.
2769         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
2770         (tree_init_edge_profiler): Build new profilers.
2771         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
2772         (pass_tree_profile): Add dump.
2773         (tree_profile_hooks): Update.
2774         * Makefile.in (LIBGCOV): Add new constants.
2775         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
2776         __gcov_ior_profiler): New.
2777         * i386.md (movmem/setmem expanders): Add new optional arguments.
2778
2779 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
2780
2781         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
2782
2783 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
2784
2785         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
2786         (tree_unswitch_single_loop): Pass eni_size_weights to
2787         tree_num_loop_insns.
2788         * tree-ssa-loop-manip.c: Include tree-inline.h.
2789         (can_unroll_loop_p): Pass eni_size_weights to
2790         tree_num_loop_insns.
2791         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
2792         Pass eni_size_weights to estimate_num_insns.
2793         * tree.h (init_inline_once): Export.
2794         * toplev.c (backend_init): Call init_inline_once.
2795         * cgraphunit.c (cgraph_process_new_functions,
2796         cgraph_analyze_function): Pass eni_inlining_weights to
2797         estimate_num_insns.
2798         * ipa-inline.c (compute_inline_parameters): Ditto.
2799         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
2800         to estimate_num_insns.
2801         (try_unroll_loop_completely): Pass eni_size_weights to
2802         tree_num_loop_insns.
2803         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
2804         ot estimate_num_insns.
2805         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
2806         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
2807         * tree-inline.c (eni_inlining_weights, eni_size_weights,
2808         eni_time_weights): New variables.
2809         (init_inline_once): Initialize them.
2810         (struct eni_data): Mew.
2811         (estimate_num_insns_1, estimate_num_insns): Use weights.
2812         * tree-inline.h (struct eni_weights_d): New.
2813         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
2814         (estimate_num_insns): Declaration changed.
2815         * cfgloop.h (tree_num_loop_insns): Declaration changed.
2816         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
2817         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
2818
2819 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
2820
2821         * tree-data-ref.c (conflict_fn): Assert that the number of affine
2822         relations in the conflict function is valid.
2823
2824 2007-01-27  Ian Lance Taylor  <iant@google.com>
2825
2826         * common.opt: Add fstrict-overflow.
2827         * opts.c (decode_options): Set flag_strict_overflow if -O2.
2828         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
2829         (TYPE_OVERFLOW_UNDEFINED): Define.
2830         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
2831         Replace all uses.
2832         * tree.h (TYPE_TRAP_SIGNED): Don't define.
2833         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
2834         (fold_negate_expr): Likewise.
2835         (make_range): Likewise.
2836         (extract_muldiv_1): Likewise.
2837         (maybe_canonicalize_comparison): Likewise.
2838         (fold_comparison): Likewise.
2839         (fold_binary): Likewise.
2840         (tree_expr_nonnegative_p): Likewise.
2841         (tree_expr_nonzero_p): Likewise.
2842         * tree-vrp.c (compare_values): Likewise.
2843         (extract_range_from_binary_expr): Likewise.
2844         (extract_range_from_unary_expr): Likewise.
2845         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
2846         Likewise.
2847         (nowrap_type_p): Likewise.
2848         * tree-scalar-evolution.c (simple_iv): Likewise.
2849         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
2850         (build_range_check): Likewise.
2851         (extract_muldiv_1): Likewise.
2852         (fold_comparison): Likewise.
2853         * tree-vrp.c (vrp_int_const_binop): Likewise.
2854         (extract_range_from_unary_expr): Likewise.
2855         * convert.c (convert_to_integer): Likewise.
2856         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
2857         (fold_comparison): Likewise.
2858         (fold_binary): Likewise.
2859         * optabs.c (optab_for_tree_code): Likewise.
2860         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
2861         * simplify-rtx.c (simplify_const_relational_operation): Check
2862         flag_strict_overflow and flag_trapv.
2863         (simplify_const_relational_operation): Likewise.
2864         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
2865         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
2866         -fstrict-overflow.
2867
2868 2007-01-27  Roger Sayle  <roger@eyesopen.com>
2869
2870         * tree.c (tree_fold_gcd): Delete.
2871         * tree.h (tree_fold_gcd): Remove prototype.
2872         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
2873         test whether one constant integer is a multiple of another.  Instead
2874         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
2875         * fold-const.c (multiple_of_p):  We've determined both TOP and
2876         BOTTOM are integer constants so we can call int_const_binop directly
2877         instead of the more generic const_binop.
2878
2879 2007-01-27  Roger Sayle  <roger@eyesopen.com>
2880
2881         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
2882         1*X check that the constant hasn't overflowed, to preserve the
2883         TREE_OVERFLOW bit.
2884         (round_up): Provide an efficient implementation when rouding-up an
2885         INTEGER_CST to a power-of-two.
2886
2887 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2888
2889         * doc/sourcebuild.texi: Add comma for clarity.
2890         * doc/extend.texi: Fix some typos.
2891         * doc/passes.texi: Likewise.
2892         * doc/cppinternals.texi: Likewise.
2893         * doc/c-tree.texi: Likewise.
2894         * doc/tree-ssa.texi: Likewise.
2895         * doc/install.texi: Likewise.
2896
2897 2007-01-27  Jan Hubicka  <jh@suse.cz>
2898
2899         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
2900         (pass_sra): Do not require alias information.
2901         * passes.c (init_optimization_passes): Add SRA
2902
2903 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
2904
2905         * tracer.c (rest_of_handle_tracer): We already cleaned
2906         up the CFG in tracer() so don't do it here again.
2907         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
2908         cleanup_cfg here, either.  And don't call renumber_insns.
2909
2910         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
2911         and BB_HEAD are in the insn stream here.  Instead make sure
2912         that BB_INSN is valid on all insns.  Also, do check here that
2913         there are no pending branch predictions...
2914         (rtl_verify_flow_info): ...instead of doing it here.  Checks
2915         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
2916         here.
2917
2918 2007-01-26  Roger Sayle  <roger@eyesopen.com>
2919
2920         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
2921         function to simplify/factorize operand order canonicalization.
2922         (ix86_fixup_binary_operands): Reorganize using the above function.
2923         (ix86_binary_operator_ok): Likewise.
2924
2925 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
2926
2927         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
2928         file scope from optimize_attrs.
2929         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
2930         up search.
2931         (optimize_attrs): Clear insn_code_values after freeing it.
2932
2933 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
2934
2935         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
2936         a parts.base assignment.
2937
2938 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
2939
2940         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
2941         (compute_subscript_distance, initialize_data_dependence_relation,
2942         finalize_ddr_dependent, analyze_ziv_subscript,
2943         analyze_siv_subscript_cst_affine,
2944         compute_overlap_steps_for_affine_univar,
2945         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
2946         analyze_siv_subscript, analyze_miv_subscript,
2947         analyze_overlapping_iterations, subscript_dependence_tester_1,
2948         compute_self_dependence, free_dependence_relation): Work
2949         with affine_fn instead of chrecs.
2950         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
2951         common_affine_function, affine_function_base,
2952         affine_function_constant_p, affine_fn_op, affine_fn_plus,
2953         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
2954         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
2955         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
2956         (all_chrecs_equal_p): Removed.
2957         * tree-data-ref.h (affine_fn, conflict_function): New types.
2958         (struct subscript): Change type of conflicting_iterations_in_a
2959         and conflicting_iterations_in_b.
2960
2961 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
2962
2963         PR other/30182
2964         * config/pa/pa.h (TARGET_HPUX_11): New.
2965         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
2966         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
2967
2968 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
2969         Richard Guenther  <rguenther@suse.de>
2970
2971         * tree-ssa-structalias.c (solve_graph): Handle case
2972         we merged the variable to another.
2973
2974 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2975
2976         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
2977         functions.
2978
2979         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
2980         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
2981
2982 2007-01-25  DJ Delorie  <dj@redhat.com>
2983
2984         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
2985         allow changes to modes which don't fit in those registers.
2986
2987         * reload1.c (choose_reload_regs): Check for invalid subregs before
2988         computing their locations, not after.
2989
2990 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
2991
2992         PR 25127
2993         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
2994         save Altivec registers in an eh_return function.
2995         (compute_vrsave_mask): Likewise.
2996         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
2997         for saving Altivec registers.
2998         (rs6000_emit_prologue): Don't allocate stack twice in
2999         eh_return function.  Correct expected value of altivec_save_offset
3000         when using save_world.  Describe save of R0 to stack when using
3001         save_world.  Describe stack pointer adjustment when using
3002         save_world.  Remove duplicated eh_return parameter register saving.
3003         Update sp_offset variable after save_world.
3004         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
3005         darwin-world.asm.
3006         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
3007         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
3008         implies Altivec.
3009
3010 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
3011
3012         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
3013
3014 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
3015
3016         PR other/30182
3017         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
3018         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
3019
3020 2007-01-25  Richard Guenther  <rguenther@suse.de>
3021
3022         * doc/invoke.texi (-Wcoverage-mismatch): Document.
3023         * common.opt (-Wcoverage-mismatch): New warning option.
3024         * coverage.c (get_coverage_counts): Ignore coverage mismatch
3025         if -Wcoverage-mismatch is given.
3026
3027 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
3028
3029         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
3030         (ipcp_driver): Change to static definition.
3031         Add dumping of the ifunctions.
3032         (constant_val_insert): Remove unused parameter. Support for SSA.
3033         (ipcp_propagate_const): Support for SSA.
3034         (ipcp_profile_bb_print): Print only analyzed nodes.
3035         (ipcp_replace_map_create): Remove support for Fortran constant
3036         for now.
3037         * ipa-prop.c (ipa_method_modify_stmt,
3038         ipa_callsite_compute_param): Support for SSA.
3039         * ipa-prop.h (ipcp_driver): Remove declaration.
3040         (IS_VALID_TREE_MAP_INDEX): Add define.
3041
3042 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
3043
3044         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
3045
3046 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3047
3048         PR middle-end/30447
3049         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
3050         constant argument to cabs and do it without checking for
3051         -funsafe-math-optimizations.
3052
3053 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
3054
3055         * c-common.h (RID_FIRST_CXX0X): New.
3056         (RID_LAST_CXX0X): New.
3057         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
3058         by -Wall.
3059         * c.opt (Wc++0x-compat): New.
3060         * doc/invoke.texi (-Wc++0x-compat): Document.
3061
3062 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3063
3064         * builtins.c (fold_builtin_carg): New.
3065         (fold_builtin_1): Use it.
3066
3067 2007-01-24  Jan Hubicka  <jh@suse.cz>
3068
3069         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
3070
3071         * ipa-inline.c (initial_insns, max_insns): Delete.
3072         (compute_max_insns): New function.
3073         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
3074         of insns as base for code growth.
3075         (cgraph_decide_inlining): Make initial_insns local; do not compute
3076         max_insns.
3077         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
3078         * doc/invoke.texi (inline-unit-growth): Update docs.
3079
3080 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3081
3082         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
3083         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
3084         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
3085         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
3086         for CPUs that have PTA_CX16 set.
3087
3088         PR middle-end/27416
3089         * gimplify.c (omp_check_private): New function.
3090         (gimplify_scan_omp_clauses): Use it for
3091         firstprivate/lastprivate/reduction.
3092
3093         PR middle-end/30494
3094         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
3095         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
3096
3097         PR middle-end/30421
3098         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
3099         If lower_lastprivate_clauses emits some statements, append them
3100         to dlist rather than body_p and to body_p append an initializer.
3101         (lower_omp_for): Adjust caller.
3102
3103 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
3104
3105         * target.h (globalize_decl_name): New.
3106         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
3107         * output.h (default_globalize_decl_name): New.
3108         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
3109         globalize_label.
3110         (globalize_decl): Ditto.
3111         (default_globalize_decl_name): New.
3112         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
3113         (ia64_handle_version_id_attribute): New.
3114         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
3115         (ia64_asm_output_external): Use globalize_decl_name instead
3116         of globalize_label.
3117         * doc/extend.texi (version_id): New pragma.
3118         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
3119
3120 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3121
3122         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
3123         _uleb128_t and _Unwind_SWord with _sleb128_t.
3124         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
3125         uw_frame_state_for, uw_update_context_1): Likewise.
3126         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
3127         * unwind-pe.h (read_uleb128, read_sleb128,
3128         read_encoded_value_with_base): Likewise.
3129         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
3130
3131 2007-01-24  Richard Guenther  <rguenther@suse.de>
3132
3133         * builtins.c (expand_builtin_cexpi): Get the fndecl
3134         for cexp in the correct way.
3135
3136 2007-01-24  Jan Hubicka  <jh@suse.cz>
3137
3138         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
3139
3140 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3141
3142         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
3143         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
3144         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
3145         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
3146         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
3147         __SIZEOF_PTRDIFF_T__.
3148         * doc/cpp.texi: Documentation for the new builtin macros added.
3149
3150 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
3151
3152         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
3153         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
3154         instead of operands[2] to avoid access past the end of array.
3155
3156 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
3157
3158         * reload1.c (emit_reload_insns): Pass the reload register
3159         for a non-spill output reload through forget_old_reloads_1.
3160
3161 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
3162
3163         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3164         _SOFT_DOUBLE if doubles use software floating-point.
3165         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
3166         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
3167         * config/rs6000/darwin-ldouble.c: Also compile functions for
3168         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
3169         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
3170         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
3171         commented-out long double override.
3172         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
3173         * config/rs6000/eabispe.h: Likewise.
3174         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
3175         long double for non-SPE.
3176         (rs6000_handle_option): Likewise.
3177         (invalid_e500_subreg): Disallow more subregs involding DImode,
3178         DFmode, TImode or TFmode.
3179         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
3180         E500 double.
3181         (legitimate_lo_sum_address_p): Also check for TFmode for E500
3182         double.
3183         (rs6000_legitimize_address): Also handle TFmode for E500 double.
3184         (rs6000_legitimize_reload_address): Also handle TFmode for E500
3185         double.
3186         (rs6000_legitimate_address): Also check for TFmode for E500
3187         double.
3188         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
3189         (spe_build_register_parallel): Handle TFmode and TCmode.
3190         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
3191         double.
3192         (function_arg): Handle TFmode and TCmode for E500 double.
3193         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
3194         in general.
3195         (print_operand): Handle TFmode and TImode for %y.
3196         (rs6000_generate_compare): Handle TFmode comparisons for E500
3197         double.
3198         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
3199         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
3200         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
3201         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
3202         TFmode for E500 double.
3203         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
3204         (floatsidf2): Enable for E500 double.
3205         (movtf_softfloat): Use rs6000_nonimmediate_operand.
3206         (extenddftf2): Change to extenddftf2_fprs.
3207         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
3208         depending on TARGET_E500_DOUBLE.
3209         (extendsftf2): Enable for E500 double.
3210         (trunctfdf2): Enable for E500 double.
3211         (trunctfsf2): Change to trunctfsf2_fprs.
3212         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
3213         depending on TARGET_E500_DOUBLE.
3214         (floatsitf2): Enable for E500 double.
3215         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
3216         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
3217         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
3218         (negtf2): Change to negtf2_internal.
3219         (negtf2): New expander.
3220         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
3221         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
3222         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
3223         (movdi_internal32): Use rs6000_nonimmediate_operand.
3224         (unnamed splitter): Likewise.
3225         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
3226         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
3227         (SPE64TF, DITI): New mode macros.
3228         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
3229         modes.
3230         (frob_tf_ti): New.
3231         (frob_<mode>_di_2): New.
3232         (frob_tf_di_8_2): New.
3233         (frob_di_df): Change to frob_di_<mode>; allow more modes.
3234         (frob_ti_tf): New.
3235         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
3236         more modes.
3237         (frob_ti_<mode>_8_2): New.
3238         (frob_ti_tf_2): New.
3239         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
3240         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
3241         TFmode.
3242         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
3243         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
3244         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
3245         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
3246         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
3247         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
3248         tsttflt_gp): New.
3249
3250 2007-01-23  Ian Lance Taylor  <iant@google.com>
3251
3252         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
3253         insn-*.o first.
3254         (OBJS-archive): Reformat, alphabetize.
3255         (OBJS): Change out_object_file to OBJS-md.
3256
3257 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
3258
3259         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
3260         JUMP_P and CALL_P predicates where applicable.
3261         * config/i386/i386.c: Ditto.
3262         * config/i386/i386.md: Ditto.
3263         * config/i386/mmx.md: Ditto.
3264         * config/i386/predicates.md: Ditto.
3265
3266 2007-01-22  Andreas Schwab  <schwab@suse.de>
3267
3268         * config/m68k/m68k.h: Fix comment.
3269
3270 2007-01-22  Jan Hubicka  <jh@suse.cz>
3271
3272         * passes.c (init_optimization_passes): Do not rerun
3273         pass_early_warn_uninitialized.
3274
3275 2007-01-22  Richard Guenther  <rguenther@suse.de>
3276
3277         PR tree-optimization/30038
3278         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
3279         function.
3280         (execute_cse_sincos_1): Likewise.
3281         (execute_cse_sincos): Likewise.
3282         (gate_cse_sincos): Likewise.
3283         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
3284         the cexpi() canonicalization of sincos().
3285         * tree-pass.h (pass_cse_sincos): Declare.
3286         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
3287
3288 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3289
3290         PR rtl-optimization/29329
3291         * combine.c (replaced_rhs_insn): Rename to i2mod.
3292         (replaced_rhs_value): Rename to i2mod_new_rhs.
3293         (i2mod_old_rhs): New global variable.
3294         (combine_instructions): Adjust for above change.  Save a copy of
3295         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
3296         note are substituted in the second instruction.
3297         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
3298         ditch the note if it pertains to the second eliminated register
3299         and this register is mentioned in i2mod_old_rhs.
3300
3301         Revert:
3302         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3303
3304         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
3305         the insn to which the note was originally attached.
3306
3307 2007-01-21  Jan Hubicka  <jh@suse.cz>
3308
3309         * ipa-inline.c (inlining_mode): Comment, move up.
3310         (cgraph_decide_inlining_incrementally): Do not perform inlining
3311         itself; fix handling of flattening of self recursive functions.
3312         (cgraph_find_cycles): Remove.
3313         (cgraph_flatten_node): Remove.
3314         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
3315         (try_inline): New function.
3316         (cgraph_early_inlining): Update call of
3317         cgraph_decide_inlining_incrementally.  Apply inlining here.
3318         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
3319
3320 2007-01-21  Dirk Mueller  <dmueller@suse.de>
3321
3322         PR bootstrap/30511
3323         * tree-vrp.c (check_array_bounds): do not warn
3324         about ADDR_EXPR's of ARRAY_REF's which are immediately
3325         used in binary expressions.
3326
3327 2007-01-21  Ira Rosen  <irar@il.ibm.com>
3328
3329         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
3330         read_write_dep and macros for its access.
3331         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
3332         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
3333         argument, call vect_check_interleaving for every independent pair of
3334         data-refs. Mark loads that access the same memory location as a store
3335         in the loop.
3336         (vect_check_dependences): Remove.
3337         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
3338         call, fix the call to vect_analyze_data_ref_dependence.
3339         (vect_analyze_data_ref_access): For statements that access the same
3340         data-ref, check that they are not stores; for loads, check that there
3341         is no store that access the same location.
3342
3343 2007-01-20  Roger Sayle  <roger@eyesopen.com>
3344             Joseph Myers  <joseph@codesourcery.com>
3345
3346         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
3347         (-fdump-rtl-stack): Likewise.
3348         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
3349         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
3350         (-mpt-fixed): Use @minus{} for minus sign.
3351         (Using Precompiled Headers): Fix under/overfull hbox.
3352
3353 2007-01-20  Jan Hubicka  <jh@suse.cz>
3354
3355         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
3356         place within annotation.
3357
3358 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3359
3360         * pa.c (output_move_double): Change array size of xoperands to 4.
3361
3362 2007-01-20  Jan Hubicka  <jh@suse.cz>
3363
3364         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
3365         as temporary.
3366
3367 2007-01-19  Ian Lance Taylor  <iant@google.com>
3368
3369         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
3370         constant to unsigned HOST_WIDE_INT before negating.
3371
3372 2007-01-19  Ian Lance Taylor  <iant@google.com>
3373
3374         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
3375         to unsigned.
3376         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
3377         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
3378         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
3379         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
3380         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
3381         (realloc_vdef, realloc_vuse): Change second parameter to
3382         unsigned.
3383         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
3384         fields to unsigned.
3385         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
3386         unsigned. Change x and lim locals to unsigned.
3387         (realloc_vdef, realloc_vuse): Change num_elem parameter to
3388         unsigned.
3389         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
3390         (copy_virtual_operands): Change i and n locals to unsigned.
3391
3392 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3393
3394         PR middle-end/29335
3395         * builtins.c (fold_builtin_1): Handle builtin fdim.
3396
3397 2007-01-20  Jan Hubicka  <jh@suse.cz>
3398
3399         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
3400         * tree-ssa-structalias.c (compute_points_to_sets): Do call
3401         init_alias_heapvars.
3402         (init_alias_heapvars): Initialize only when not already initialized.
3403         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
3404
3405 2007-01-19  Roger Sayle  <roger@eyesopen.com>
3406
3407         * common.opt (fsigned-zeros): New command line option.
3408         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
3409         of flag_unsafe_math_optimizations.
3410         * opts.c (set_fast_math_flags): The -ffast-math command line option
3411         implies -fno-signed-zeros.
3412         (fast_math_flags_set_p): Likewise.
3413
3414         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
3415         the documentation of -ffast-math appropriately.  Wrap long lines.
3416
3417 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
3418
3419         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
3420         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
3421
3422 2007-01-19  Tomas Bily  <tbily@suse.cz>
3423
3424         * cgraphunit.c (cgraph_finalize_function): Updating of pid
3425         * tree-profile.c:
3426         (tree_init_ic_make_global_vars): New function
3427         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
3428         (tree_gen_ic_profiler): New function
3429         (tree_gen_ic_func_profiler): New function
3430         (tree_profiling): Added calling of tree_gen_ic_func_profiler
3431         (tree_profile_hooks): Added hook for indirec/virtual calls
3432         * value-prof.c (tree_find_values_to_profile): New case for
3433         indirect calls
3434         (tree_values_to_profile): Call for determining indirect/virtual
3435         counters
3436         (tree_indirect_call_to_profile): New function
3437         (tree_ic_transform): New function
3438         (tree_ic): New function
3439         (find_func_by_pid): New function
3440         (init_pid_map): New function
3441         (tree_value_profile_transformations): Added check for
3442         indirect/virtual call transformation
3443         * value-prof.h (enum hist_type): New counter type for
3444         indirect/virtual calls
3445         (profile_hooks): Added new hook for profiling indirect/virtual
3446         calls
3447         * profile.c (instrument_values): New case for indirect/virtual
3448         call added
3449         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
3450         (GCOV_COUNTER_V_INDIR): New counter type
3451         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
3452         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
3453         call added
3454         * cgraph.c: Definition of cgraph_max_pid
3455         (cgraph_create_node): Default init of pid attribute
3456         * cgraph.h: Declaration of cgraph_max_pid
3457         (struct cgraph_node): Added pid attribute
3458         * libgcov.c (__gcov_indirect_call_profiler): New function
3459         (__gcov_one_value_profiler_body): New function
3460         (__gcov_one_value_profiler): Body was moved to
3461         __gcov_one_value_profiler_body and calls it
3462
3463 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
3464
3465         * doc/gty.texi (Options): Document the mark_hook option to GTY.
3466         * gengtype.c (write_types_data, write_func_for_structure,
3467         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
3468         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
3469         (walk_type, write_func_for_structure): Generate the mark_hook if
3470         needed.
3471
3472 2007-01-19  Jan Hubicka  <jh@suse.cz>
3473
3474         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
3475         'early' argument take inlining mode argument specifying whether to
3476         inline for size/speeed or all functions; add support for flattening;
3477         improve dumpting.
3478         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
3479
3480 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3481
3482         PR c++/17947
3483         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
3484         the name of the declared identifier.
3485
3486 2007-01-19  Dirk Mueller  <dmueller@suse.de>
3487
3488         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
3489         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
3490         duplicate evaluation.
3491
3492 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
3493
3494         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
3495         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
3496         to XFMode, use acosxf2 and truncate result to requested mode.
3497         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
3498         (asin<mode>2): Similarly, with asin expanders.
3499         (*fscalexf4_i387): Rename from *fscalexf4.
3500         (expNcorexf3): New expander.
3501         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
3502         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
3503         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
3504         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
3505         patterns for SSE math.
3506         (exp10<mode>2): Similarly, with exp10 expanders.
3507         (exp2<mode>2): Similarly, with exp2 expanders.
3508         (expm1<mode>2): Similarly, with expm1 expanders.
3509         (ldexp<mode>3): Similarly, with ldexp expanders.
3510         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
3511         Use gen_truncxf<mode>2_i387_noop to truncate result.
3512
3513 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3514
3515         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
3516         for ColdFire targets.
3517
3518 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
3519             Richard Sandiford  <richard@codesourcery.com>
3520
3521         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
3522         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
3523         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
3524         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
3525         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
3526         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
3527
3528 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3529
3530         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
3531         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
3532         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
3533         (*adddi_dilshr32_cf): New pattern.
3534         (adddi3, subdi3): Remove first alternatives.
3535
3536 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3537
3538         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
3539         implemented using move.l, do not use its cc result for floating-point
3540         comparisons.
3541
3542 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3543
3544         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
3545         from accepting 's' constraints if flag_pic.
3546
3547 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3548
3549         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
3550         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
3551         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
3552         condition from TARGET_68881 to TARGET_HARD_FLOAT.
3553
3554 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
3555
3556         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
3557         ColdFire alternatives.
3558         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
3559         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
3560         architectures that support ff1 instruction.
3561
3562 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3563             Julian Brown  <julian@codesourcery.com>
3564
3565         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
3566         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
3567         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
3568         Add commentary.
3569
3570 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
3571
3572         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
3573         and return a bool.
3574         (output_move_const_into_data_reg, output_move_simode_const): Delete.
3575         * config/m68k/m68k.c (const_method, const_int_cost): Take a
3576         HOST_WIDE_INT instead of an rtx.
3577         (m68k_rtx_costs): Update call accordingly.
3578         (output_move_const_into_data_reg): Likewise.  Fix formatting.
3579         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
3580         Return a bool.
3581         (output_move_simode_const): Update calls after above changes.
3582         Rework to use automatic variables and predicates like MEM_P.
3583         * config/m68k/m68k.md (pushexthisi_const): Update call to
3584         valid_mov3q_const.
3585
3586 2007-01-19  Dirk Mueller  <dmueller@suse.de>
3587
3588         * tree-ssa-alias.c (perform_var_substitution): Fix typo
3589         in dump_flags test.
3590
3591 2007-01-19  Richard Guenther  <rguenther@suse.de>
3592
3593         * builtins.c (expand_builtin_cexpi): Fall back to expanding
3594         via cexp in case sincos is not available.
3595
3596 2007-01-19  Richard Guenther  <rguenther@suse.de>
3597
3598         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
3599         * defaults.h (TARGET_HAS_SINCOS): Default to off.
3600         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
3601         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
3602         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
3603         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
3604         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
3605         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
3606
3607 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
3608
3609         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
3610         New insn patterns.
3611         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
3612         (atan2xf3): Directly generate RTL pattern.
3613         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
3614         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
3615         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
3616         disable patterns for SSE math.
3617         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
3618         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
3619         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
3620         disable patterns for SSE math.
3621
3622 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
3623
3624         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
3625
3626 2007-01-18  Roger Sayle  <roger@eyesopen.com>
3627
3628         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
3629         VIEW_CONVERT_EXPR to the same type as it's operand.
3630
3631 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
3632
3633         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
3634         configured for long double 128.
3635
3636 2007-01-18  Mike Stump  <mrs@apple.com>
3637
3638         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
3639         error.
3640
3641 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
3642
3643         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
3644         type correct.
3645
3646 2007-01-18  Jan Hubicka  <jh@suse.cz>
3647
3648         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
3649         greater than NUM_VOP_FREE_BUCKETS.
3650
3651 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
3652
3653         * tree-ssa-structalias.c: Update comments.
3654         (ptabitmap_obstack): Removed.
3655         (pta_obstack): New.
3656         (oldpta_obstack): Ditto.
3657         (stats): Add a few members.
3658         (struct variable_info): Remove node, complex, address_taken, and
3659         indirect_target members. Add oldsolution member.
3660         (new_var_info): Do not initialize removed members.
3661         (constraint_expr_type): Remove INCLUDES.
3662         (constraint_graph): Add size, implicit_preds, rep,
3663         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
3664         (FIRST_REF_NODE): New macro.
3665         (LAST_REF_NODE): Ditto.
3666         (FIRST_ADDR_NODE): Ditto.
3667         (find): New function.
3668         (unite): Ditto.
3669         (dump_constraint): Do not handle INCLUDES.
3670         (insert_into_complex): Do not insert duplicate constraints.
3671         (condense_varmap_nodes): Renamed and rewritten into ...
3672         (merge_node_constraints): This. Also fix bug in handling of
3673         offseted copy constraints.
3674         (clear_edges_for_node): No longer need to deal with preds at all,
3675         or removing associated preds/succs.
3676         (merge_graph_nodes): Deal with indirect_cycles.
3677         Don't deal with predecessors.
3678         (add_implicit_graph_edge): New function.
3679         (add_pred_graph_edge): Ditto.
3680         (add_graph_edge): Don't deal with predecessors.
3681         (build_constraint_graph): Removed.
3682         (build_pred_graph): New function.
3683         (build_succ_graph): Ditto.
3684         (struct scc_info): Removed in_component. Added roots, dfs, and
3685         node_mapping. Remove visited_index, unification_queue.
3686         (scc_visit): Deal with union-find we do now.
3687         Deal with cycles with REF nodes.
3688         (collapse_nodes): Renamed and rewritten to ...
3689         (unify_nodes): This.
3690         (process_unification_queue): Removed.
3691         (topo_visit): Cleanup
3692         (do_da_constraint): Use find.
3693         (do_sd_constraint): Ditto.
3694         (do_ds_constraint): Ditto.
3695         (do_complex_constraint): Ditto.
3696         (init_scc_info): Update for removed and added members.
3697         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
3698         (find_indirect_cycles): This.
3699         (equivalence_class): New variable.
3700         (label_visit): New function.
3701         (perform_variable_substitution): Rewritten.
3702         (free_var_substitution_info): New function.
3703         (find_equivalent_node): Ditto.
3704         (move_complex_constraints): Ditto.
3705         (eliminate_indirect_cycles): Ditto.
3706         (solve_graph): Only propagate changed bits.
3707         Use indirect cycle elimination.
3708         Use find.
3709         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
3710         (tree_id_eq): Renamed to ...
3711         (tree_vi_eq): This. Update for member change
3712         (insert_id_for_tree): Renamed and rewritten to ...
3713         (insert_vi_for_tree): This.
3714         (lookup_id_for_tree): Renamed and rewritten to ...
3715         (lookup_vi_for_tree): This.
3716         (get_id_for_tree): Renamed and rewritten to ...
3717         (get_vi_for_tree): Ditto.
3718         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
3719         (process_constraint): Don't handle INCLUDES.
3720         Remove special ADDRESSOF case.
3721         (find_func_aliases): Rewrite to use vi functions instead of id
3722         ones.
3723         (create_function_info_for): Ditto.
3724         (create_variable_info_for): Ditto.
3725         (intra_create_variable_infos): Ditto.
3726         (merge_smts_into): Ditto.
3727         (find_what_p_points_to): Ditto.
3728         (init_base_vars): Ditto.
3729         (init_alias_vars): Ditto.
3730         (remove_preds_and_fake_succs): New function.
3731         (dump_sa_points_to_info): Dump new stats.
3732         (dump_solution_for_var): Use find.
3733         (set_used_smts): Fix formatting.
3734         (compute_points_to_sets): Updated for new functions.
3735         (ipa_pta_execute): Ditto.
3736
3737 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
3738             Richard Sandiford  <richard@codesourcery.com>
3739
3740         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
3741         parallels.
3742         * calls.c (expand_call): If the return value is a PARALLEL,
3743         extract its first member.
3744         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
3745         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
3746         use FUNCTION_EXTRA_EPILOGUE.
3747         (m68k_function_value): Return a PARALLEL if the return value
3748         is of a pointer type.
3749         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
3750         (FUNCTION_EXTRA_EPILOGUE): Remove.
3751         * config/m68k/m68k.md (D0_REG): New constant.
3752
3753 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
3754
3755         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
3756         output a NOP for empty epilogues.
3757
3758 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3759
3760         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
3761         before function.  Extend register save check to include all
3762         registers, not just integer ones.
3763
3764 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
3765
3766         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
3767         (m68k_use_return_insn): ...this.
3768         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
3769         * config/m68k/m68k.c (use_return_insn): Rename to...
3770         (m68k_use_return_insn): ...this.
3771         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
3772         of USE_RETURN_INSN.
3773
3774 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3775
3776         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
3777         nearest even, fix denormal rounding overflow.
3778
3779 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3780
3781         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
3782         f%$smove and f%$move.
3783         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
3784         (extendsfdf2_cf): Use fdmove instead of f%&move.
3785         (truncdfsf2_cf): Use fsmove instead of f%$smove.
3786         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
3787
3788 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3789
3790         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
3791         GPR<-GPR moves.
3792
3793 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3794
3795         * real.h (real_format): Add a canonical_nan_lsbs_set field.
3796         (coldfire_single_format): Declare.
3797         (coldfire_double_format): Likewise.
3798         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
3799         of qnan_msb_set to determine the lower bits of a canonical
3800         NaN significand.
3801         (encode_ieee_double): Likewise.
3802         (encode_ieee_quad): Likewise.
3803         (ieee_single_format): Initialize canonical_nan_lsbs_set.
3804         (mips_single_format): Likewise.
3805         (ieee_double_format): Likewise.
3806         (mips_double_format): Likewise.
3807         (ieee_extended_motorola_format): Likewise.
3808         (ieee_extended_intel_96_format): Likewise.
3809         (ieee_extended_intel_128_format): Likewise.
3810         (ieee_extended_intel_96_round_53_format): Likewise.
3811         (ibm_extended_format): Likewise.
3812         (mips_extended_format): Likewise.
3813         (ieee_quad_format): Likewise.
3814         (mips_quad_format): Likewise.
3815         (vax_f_format): Likewise.
3816         (vax_d_format): Likewise.
3817         (vax_g_format): Likewise.
3818         (i370_single_format): Likewise.
3819         (i370_double_format): Likewise.
3820         (decimal_single_format): Likewise.
3821         (decimal_double_format): Likewise.
3822         (decimal_quad_format): Likewise.
3823         (c4x_single_format): Likewise.
3824         (c4x_extended_format): Likewise.
3825         (real_internal_format): Likewise.
3826         (coldfire_single_format): New real_format.
3827         (coldfire_double_format): Likewise.
3828         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
3829         canonical_nan_lsbs_set.
3830         (pdp11_d_format): Likewise.
3831         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
3832         if TARGET_COLDFIRE_CPU.
3833
3834 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3835
3836         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
3837         (output_call, m68k_legitimize_call_address): Declare.
3838         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
3839         parenthesees.  Add support for a 'W' constraint.
3840         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
3841         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
3842         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
3843         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
3844         variables.
3845         (override_options): Initialize them.  Do not set flag_no_function_cse
3846         for TARGET_ID_SHARED_LIBRARY.
3847         (m68k_output_pic_call): Delete.
3848         (m68k_legitimize_call_address): New function.
3849         (print_operand): Remove the %o prefix.  Handle the %p prefix.
3850         (output_call): New function.
3851         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
3852         target address from the GOT if symbolic jumps are not allowed.
3853         * config/m68k/m68k.md (call, general_operand): Do not set
3854         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
3855         Merge separate flag_pic and !flag_pic define_insns into...
3856         (*call, *call_value): ...these new patterns.  Match the address
3857         rather than the containing MEM and require it to be a call_operand.
3858         Use output_call to generate the asm template.
3859         * config/m68k/predicates.md (const_call_operand): New predicate.
3860         (call_operand): Likewise.
3861
3862 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3863
3864         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
3865         (STACK_GROWS_DOWNWARD): Define to 1.
3866         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
3867         comments, emphasizing that these values are only defaults.
3868         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
3869         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
3870
3871 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3872
3873         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
3874
3875 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
3876             Richard Sandiford  <richard@codesourcery.com>
3877
3878         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
3879         (FP_REGNO_P): New macros.
3880         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
3881         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
3882         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
3883         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
3884
3885 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3886
3887         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
3888         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
3889         to $tmake_file.
3890         * config/m68k/t-floatlib: New file, extracting common code from...
3891         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
3892         * config/m68k/t-uclinux: Here.
3893         * config/m68k/fpgnulib.c: Do not compile extendeed precision
3894         routines on ColdFire targets.
3895
3896 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
3897
3898         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
3899         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
3900         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
3901         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
3902         explicitly set MOTOROLA to 1.
3903         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
3904
3905 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3906             Nathan Sidwell  <nathan@codesourcery.com>
3907
3908         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
3909         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
3910         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
3911         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
3912         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
3913         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
3914         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3915         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
3916         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
3917         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
3918         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
3919         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
3920         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
3921         (DBX_REGISTER_NUMBER): Delete.
3922         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
3923         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
3924         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
3925
3926 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3927
3928         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
3929         * config/flat.h: New file.
3930         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
3931         OBJECT_FORMAT_FLAT.
3932         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
3933         indirect references for -msep-data or -mid-shared-library.
3934         Do not use PC-relative code addresses either.
3935         * config/m68k/m68k.c (override_options): Restrict -fPIC error
3936         to -mpcrel.
3937         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
3938         for shared libraries and crt1.o for executables.  Use crti.o and
3939         crtbegin.o.
3940         (ENDFILE_SPEC): Use crtend.o and crtn.o.
3941         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
3942         Do not add -elf2flt or -shared-lib-id options here.
3943         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
3944         Pass -shared-lib-id if -mid-shared-library, taking the library
3945         identifier from -mshared-library-id if given, otherwise
3946         defaulting to 0.
3947         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
3948         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
3949         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
3950         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
3951         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
3952         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
3953         and crtend.o.
3954         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
3955         jump sequence for ISA A and ISA A+.
3956         (PICJUMP): Likewise.
3957
3958 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3959
3960         * config.gcc (m68k-*-uclinux*): Base the port on the common
3961         and m68k GNU/Linux files rather than on the generic ELF ones.
3962         * config/m68k/uclinux.h (TARGET_VERSION): Override.
3963         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
3964
3965 2007-01-18  Julian Brown  <julian@codesourcery.com>
3966             Richard Sandiford  <richard@codesourcery.com>
3967
3968         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
3969         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
3970         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
3971         before redefining.
3972         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
3973         80 unconditionally.
3974         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
3975
3976 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
3977
3978         * doc/install.texi: Document m68k-uclinuxoldabi.
3979         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
3980         * config/m68k/uclinux-oldabi.h: New file, copied from
3981         config/m68k/uclinux.h.
3982
3983 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3984
3985         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
3986         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
3987         (m32r_compute_frame_size): Use unsigned for regno.
3988         (m32r_reload_lr): Use gen_frame_mem.
3989         (pop): New.
3990         (m32r_output_function_epilogue): Don't output the function epilogue
3991         textually here.
3992         (m32r_expand_epilogue): New.
3993         (direct_return): Return false if the function has the interrupt
3994         attribute.
3995         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
3996         * config/m32r/m32r.md (epilogue): New expander.
3997         (return_lr, return_rte): New insns.
3998         (return): Make it expander.
3999         (return_normal): New expander.
4000
4001 2007-01-18  Josh Conner  <jconner@apple.com>
4002
4003         PR target/30485
4004         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
4005         support for UNLE, UNLT, UNGE, and UNGT.
4006
4007 2007-01-18  Jan Hubicka  <jh@suse.cz>
4008
4009         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
4010         * tree-tailcall (add_virtual_phis): Likewise.
4011         (optimize_tail_call): Return TODOs.
4012         (execute_tail_calls): Return TODOs.
4013         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
4014         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
4015         changed.
4016         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
4017         Cleanup cfg using TODO.
4018         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
4019         * passes.c (execute_function_todo): When cleanup did something, remove
4020         unused locals.
4021         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
4022         (make_edges): Don't cleanup_cfg.
4023
4024 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
4025
4026         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
4027         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
4028         operate on the top of stack.
4029         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
4030         register handling of instructions that output to the second
4031         stack slot.
4032         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
4033         (move_for_stack_reg): Special-case check for dead destination
4034         stack slot for constant load of 1.0 inside UNSPEC_TAN.
4035
4036         * config/i386/i386.md (UNSPEC_TAN): New constant.
4037         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
4038         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
4039         to correctly model move of constant 1.0 to top stack slot.
4040         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
4041         (unnamed peephole2 pattern): Remove corresponding peephole2
4042         pattern that optimizes tan insn and loading of constant 1.0.
4043         (tanxf2): Use fptanxf4_i387.
4044         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
4045         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
4046         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
4047         disable patterns for SSE math.
4048         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
4049         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
4050
4051 2007-01-18  Dirk Mueller  <dmueller@suse.de>
4052             Richard Guenther <rguenther@suse.de>
4053
4054         PR diagnostic/8268
4055         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
4056         * common.opt (Warray-bounds): Add new warning option.
4057         * c-opts.c (c_common_handle_option): Define -Warray-bounds
4058         if -Wall is given.
4059         * Makefile.in: make tree-vrp.o depend on toplev.h
4060         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
4061         is enabled.
4062         (check_array_refs, check_array_bounds, check_array_ref): New.
4063
4064 2007-01-18  Jan Hubicka  <jh@suse.cz>
4065
4066         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
4067         (execute_ssa_ccp): Return flags conditionally.
4068         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
4069         changed.
4070         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
4071
4072 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
4073
4074         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
4075         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
4076
4077         * Makefile.c (GTFILES): Add cfglayout.h.
4078         * gengtype.c (open_base_files): Likewise.
4079         * cfglayout.c (cfg_layout_function_footer,
4080         cfg_layout_function_header) Reindent to make gengtype happy.
4081         * cfglayout.h (cfg_layout_function_footer,
4082         cfg_layout_function_header): Add GTY(()) marker.
4083
4084         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
4085
4086 2007-01-18  Ben Elliston  <bje@au.ibm.com>
4087
4088         * genautomata.c (write_automata): Include xstrerror output in the
4089         error message if writing the DFA description file fails.
4090
4091 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4092
4093         * config/mips/mips-protos.h (mips_output_external): Make it
4094         return void.
4095         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
4096         * config/mips/mips.c (irix_output_external_libcall): Likewise.
4097         (extern_list): Likewise.
4098         (extern_head): Likewise.
4099         (TARGET_ASM_FILE_END): Likewise.
4100         (mips_file_end): Likewise.
4101         (mips_output_external): Rewritten.
4102
4103 2007-01-18  Ben Elliston  <bje@au.ibm.com>
4104
4105         * genpreds.c (write_insn_preds_c): Only write out the function
4106         body for regclass_for_constraint if we have register constraints.
4107
4108 2007-01-17  Tom Tromey  <tromey@redhat.com>
4109
4110         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
4111         * doc/install.texi (Testing): Use sourceware.org.
4112         (Binaries): Likewise.
4113         (Specific): Likewise.
4114         * doc/contrib.texi (Contributors): Use sourceware.org.
4115
4116 2007-01-17  Anatoly Sokolov <aesok@post.ru>
4117
4118         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
4119         (AVR_ENHANCED): Rename to ...
4120         (AVR_HAVE_MUL): ... new.
4121         (avr_enhanced_p): Rename to ...
4122         (avr_have_mul_p): ... new.
4123         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
4124         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
4125         * config/avr/avr.c (avr_enhanced_p): Rename to ...
4126         (avr_have_mul_p): ... new.
4127         (base_arch_s): Rename 'enhanced' to 'have_mul'.
4128         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
4129         'avr_enhanced_p' and 'enhanced'.
4130         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
4131         AVR_HAVE_MUL instead of AVR_ENHANCED.
4132         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
4133         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
4134         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
4135         instead of AVR_ENHANCED.
4136         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
4137         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
4138         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
4139
4140 2007-01-17  Ian Lance Taylor  <iant@google.com>
4141
4142         * vec.h (VEC_reserve_exact): Define.
4143         (vec_gc_p_reserve_exact): Declare.
4144         (vec_gc_o_reserve_exact): Declare.
4145         (vec_heap_p_reserve_exact): Declare.
4146         (vec_heap_o_reserve_exact): Declare.
4147         (VEC_OP (T,A,reserve_exact)): New static inline function, three
4148         versions.
4149         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
4150         negative parameter.
4151         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
4152         (VEC_OP (T,A,copy)) [all versions]: Likewise.
4153         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
4154         * vec.c (calculate_allocation): Add exact parameter.  Change all
4155         callers.
4156         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
4157         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
4158         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
4159         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
4160         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
4161         (vec_heap_p_reserve_exact): New function.
4162         (vec_heap_o_reserve_exact): New function.
4163
4164 2007-01-17  Jan Hubicka  <jh@suse.cz>
4165
4166         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
4167
4168 2007-01-17  Eric Christopher  <echristo@apple.com>
4169
4170         * config.gcc: Support core2 processor.
4171
4172 2007-01-16  Jan Hubicka  <jh@suse.cz>
4173
4174         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
4175         the names, just unlink the chain so we don't crash on dangling pointers
4176         to dead SSA names.
4177
4178 2007-01-16  Jan Hubicka  <jh@suse.cz>
4179
4180         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
4181         * tree-pass.h: Reorder to make IPA passes appear toegher.
4182         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
4183         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
4184         parameters, do not call early inliner.
4185         * ipa-inline.c: Update comments.  Include tree-flow.h
4186         (cgraph_decide_inlining): Do not compute inlining parameters.
4187         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
4188         be called with function context set up.
4189         (pass_ipa_inline): Remove unreachable functions before pass.
4190         (cgraph_early_inlining): Simplify assuming to be called from the
4191         PM as local pass.
4192         (pass_early_inline): New pass.
4193         (cgraph_gate_ipa_early_inlining): New gate.
4194         (pass_ipa_early_inline): Turn into simple wrapper.
4195         (compute_inline_parameters): New function.
4196         (gate_inline_passes): New gate.
4197         (pass_inline_parameters): New pass.
4198         (apply_inline): Move here from tree-optimize.c
4199         (pass_apply_inline): New pass.
4200         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
4201         transforming.
4202         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
4203         doing them by hand.
4204         (tree_function_versioning): Do not allocate dummy struct function.
4205         * tree-inline.h (optimize_inline_calls): Update prototype.
4206         * tree-optimize.c (execute_fixup_cfg): Export.
4207         (pass_fixup_cfg): Remove
4208         (tree_rest_of_compilation): Do not apply inlines.
4209         * tree-flow.h (execute_fixup_cfg): Declare.
4210         * Makefile.in (gt-passes.c): New.
4211         * passes.c: Include gt-passes.h
4212         (init_optimization_passes): New passes.
4213         (nnodes, order): New static vars.
4214         (do_per_function_toporder): New function.
4215         (execute_one_pass): Dump current pass here.
4216         (execute_ipa_pass_list): Don't dump current pass here.
4217
4218 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
4219
4220         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
4221         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
4222
4223 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
4224
4225         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
4226         (strong_alias): Define.
4227         (__gcc_qmul): Provide non-FMA for soft-float.
4228         (__gcc_qdiv): Same.
4229         (__gcc_qneg): New.
4230         (__gcc_qeq): New.
4231         (__gcc_qle): New.
4232         (__gcc_qge): New.
4233         (__gcc_qunord): New.
4234         (__gcc_stoq): New.
4235         (__gcc_dtoq): New.
4236         (__gcc_qtos): New.
4237         (__gcc_qtod): New.
4238         (__gcc_qtoi): New.
4239         (__gcc_qtou): New.
4240         (__gcc_itoq): New.
4241         (__gcc_utoq): New.
4242         (fmsub): New.
4243         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
4244         soft-float functions.
4245         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
4246         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
4247         about long double soft float.
4248
4249 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
4250             Tehila Meyzels  <tehila@il.ibm.com>
4251
4252         * tree-vectorizer.h (is_pattern_stmt_p): New.
4253         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
4254         formatting (tabs instead of spaces). Cleanup and clarify setting
4255         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
4256         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
4257         (vectorizable_type_demotion): Check that types are integral.
4258         (vectorizable_type_promotion): Likewise.
4259         (vectorizable_store): Fix typo.  Eliminate new-line at end of
4260         comments.
4261
4262 2007-01-16  Jan Hubicka  <jh@suse.cz>
4263
4264         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
4265         cgraph edges too.
4266
4267 2007-01-15  Eric Christopher  <echristo@apple.com>
4268
4269         * ifcvt.c: Include vec.h, vecprim.h.
4270         (check_cond_move_block): New argument regs.
4271         Reorganize. Add registers used to regs.
4272         (cond_move_process_if_block): Use regs set above as
4273         loop bounds.
4274
4275 2007-01-15  Eric Christopher  <echristo@apple.com>
4276
4277         * config/darwin.h: Update copyright.
4278         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
4279         (LINK_COMMAND_SPEC): Add -u.
4280         (LINK_SPEC): Fix umbrella for above.
4281
4282 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
4283
4284         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
4285         glibc CVS.
4286
4287 2007-01-15  Tom Tromey  <tromey@redhat.com>
4288
4289         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
4290         * doc/install.texi (Testing): Don't mention jacks.
4291         (Configuration): Document --enable-java-maintainer-mode.  Move
4292         --with-java-home to libgcj-specific section.  Document
4293         --with-ecj-jar.
4294         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
4295
4296 2007-01-15  Jan Hubicka  <jh@suse.cz>
4297
4298         * tree-ssa-dce.c (DCE_TODOs): New.
4299         (propagate_necessity): Return if something changed.
4300         (eliminate_unnecessary_stmts): Likewise.
4301         (perform_tree_ssa_dce): Return TODO flags when needed.
4302         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
4303
4304 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
4305
4306         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
4307         (fyl2x_extend<mode>xf3_i387): New insn pattern.
4308         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
4309         patterns using X87MODEF12 mode macro.  Extend operand 1
4310         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
4311         (log10<mode>2): Ditto.
4312         (log2<mode>2): Ditto.
4313         (log1p<mode>2): Ditto.
4314         (logb<mode>2): Ditto.
4315         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
4316         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
4317         (*fxtractxf3_i387): Rename from *fxtractxf3.
4318         (fxtract_extend<mode>xf3_i387): New insn pattern.
4319         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
4320         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
4321         and gen_fyl2xxf3_i387().
4322
4323 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
4324
4325         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
4326         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
4327         get_loop_exit_edges.  Changed return type to bool.
4328         * cfgloop.h (fix_loop_placement): Declaration removed.
4329
4330 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
4331
4332         * param.h (MIN_VECT_LOOP_BOUND): New.
4333         * params.def (MIN_VECT_LOOP_BOUND): New.
4334         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
4335         argument - minimum threshold for number of iterations.
4336         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
4337         argument to declaration.
4338         * tree-vect-analyze.c (vect_analyze_operations): Check value of
4339         MIN_VECT_LOOP_BOUND.
4340         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
4341         slpeel_tree_peel_loop_to_edge with additional argument.
4342         (vect_do_peeling_for_alignment): Likewise.
4343         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
4344
4345 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
4346
4347         PR target/30413
4348         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
4349         operands of size 1.
4350
4351 2007-01-14  Jan Hubicka  <jh@suse.cz>
4352
4353         * tree-dfa.c (remove_referenced_var): New function.
4354         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
4355         prune referenced vars list too.
4356         * tree-flow.h (remove_referenced_var): Declare.
4357
4358 2007-01-14  Jan Hubicka  <jh@suse.cz>
4359
4360         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
4361         separately.
4362         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
4363         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
4364         * except.h (verify_eh_throw_table_statements): Kill prototype.
4365         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
4366         into call exrepssions.
4367         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
4368         eh trhow verifier.
4369         * tree-cfg.c: Include pointer-set.h.
4370         (verify_node_sharing): Work on pointer set.
4371         (verify_eh_throw_stmt_node): New.
4372         (verify_stmts): Use pointers sets, verify throw_stmt.
4373
4374 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
4375
4376         * ipa-reference.c (analyze_function): Consider also addresses taken
4377         in phi nodes.
4378
4379 2007-01-12  Roger Sayle  <roger@eyesopen.com>
4380
4381         * c-typeck.c (null_pointer_constant_p): Replace use of
4382         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
4383         (build_c_cast): Likewise.
4384
4385 2007-01-12  Roger Sayle  <roger@eyesopen.com>
4386
4387         * tree.h (force_fit_type_double): Remove unused final argument.
4388         * c-common.c (constant_expression_warning): Replace use of
4389         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
4390         (convert_and_check): Likewise.
4391         (shorten_compare): Update call to force_fit_type_double.
4392         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
4393         * convert.c (convert_to_pointer): Update call to
4394         force_fit_type_double.
4395         * fold-const.c (force_fit_type_double): Remove overflowed_const
4396         argument.
4397         (int_const_binop, fold_convert_const_int_from_int,
4398         fold_convert_const_int_from_real, fold_div_compare,
4399         fold_sign_changed_comparison, fold_unary, fold_negate_const,
4400         fold_abs_const, fold_not_const): Remove the final argument from
4401         calls to force_fit_type_double.
4402
4403 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4404
4405         * configure.ac: Set insn to "nop" for spu-*-* also.
4406         * configure: Regenerate.
4407
4408 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
4409
4410         * builtins.def : Add BUILT_IN_FREE.
4411
4412 2007-01-12  Jan Hubicka  <jh@suse.cz>
4413
4414         PR tree-optimization/30443
4415         * tree-inline.c (tree_function_versioning): Do not optimize when
4416         cloning for inlining.
4417
4418 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
4419
4420         * doc/loop.texi: Document recording of loop exits.
4421         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
4422         (update_single_exits_after_duplication,
4423         update_single_exit_for_duplicated_loop,
4424         update_single_exit_for_duplicated_loops): Removed.
4425         (duplicate_loop_to_header_edge): Do not call
4426         update_single_exits_after_duplication and
4427         update_single_exit_for_duplicated_loops.
4428         (loop_version): Do not update single_exit information.
4429         (fix_loop_structure): Use record_loop_exits instead of
4430         mark_single_exit_loops.
4431         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
4432         the lists of loop exits.
4433         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
4434         split_edge, merge_blocks): Update the lists of loop exits.
4435         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
4436         loop_optimizer_init.
4437         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
4438         of mark_single_exit_loops.
4439         (loop_optimizer_finalize): Call release_recorded_exits.
4440         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
4441         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
4442         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
4443         update single exit information.
4444         * lambda-code.c (perfect_nestify): Ditto.
4445         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
4446         (mark_single_exit_loops): Removed.
4447         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
4448         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
4449         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
4450         functions.
4451         (get_loop_exit_edges, single_exit): Use recorded exit lists.
4452         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
4453         (verify_loop_structure): Verify consistency of the exit lists.
4454         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
4455         (set_single_exit): Removed.
4456         * cfgloop.h (struct loop_exit): New function.
4457         (struct loop): single_exit_ field replaced by exits field.
4458         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
4459         (struct loops): Added exits hash.
4460         (mark_single_exit_loops, set_single_exit): Declaration removed.
4461         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
4462
4463 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4464
4465         * doc/invoke.texi: Avoid use of @headitem.
4466
4467 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4468
4469         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
4470
4471 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4472
4473         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
4474         list of targets.
4475
4476 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
4477             Richard Sandiford  <richard@codesourcery.com>
4478
4479         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
4480         * config/m68k/m68k.opt: Resort options.
4481         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
4482
4483 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
4484             Richard Sandiford  <richard@codesourcery.com>
4485
4486         * doc/invoke.texi: Document the macros that are defined by
4487         m68k's -mtune and -mhard-float options.
4488         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
4489         (m68k_cpp_cpu_family): Likewise.
4490         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
4491         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
4492         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
4493         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
4494         (m68k_cpp_cpu_family): Likewise.
4495
4496 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4497
4498         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
4499         macros besides mc68000 as tuning macros.  Use a switch statement
4500         to set them and mcpu32.
4501
4502 2007-01-12  Julian Brown  <julian@codesourcery.com>
4503
4504         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
4505         (TARGET_68040_ONLY): Rename to...
4506         (TARGET_68040): ...this.
4507         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
4508         * config/m68k/m68k.md: Likewise.
4509
4510 2007-01-12  Julian Brown  <julian@codesourcery.com>
4511             Nathan Sidwell  <nathan@codesourcery.com>
4512             Richard Sandiford  <richard@codesourcery.com>
4513
4514         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
4515         the -mcpu= argument associated with the --with-cpu setting.
4516         Define M68K_DEFAULT_TUNE to the default -mtune= option,
4517         if different from the one implied by the -mcpu setting.
4518         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
4519         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
4520         * doc/invoke.texi: Mention ColdFire in the introduction to the
4521         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
4522         -mno-div and -mhard-float options.  Make -m68881 a synonym for
4523         -mhard-float.  Document the previously-undocumented -m5206e,
4524         -m528x, -m5307 and -m5407 options.  Tweak the existing option
4525         documentation for consistency.
4526         * doc/install.texi: Mention new --with-cpu arguments.
4527         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
4528         default CPU if neither -mcpu nor -march are specified.
4529         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
4530         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
4531         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
4532         using m68k_tune to decide between families that implement the
4533         same ISA.  Use m68k_tune to set __mcfv4e__.
4534         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
4535         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
4536         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
4537         (FL_ISA_C, FL_ISA_MMU): New macros.
4538         (MASK_COLDFIRE): Delete.
4539         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
4540         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
4541         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
4542         (TARGET_HARD_FLOAT): Do not define here.
4543         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
4544         (TUNE_68000): New macro.
4545         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
4546         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
4547         (TUNE_CFV2): Redefine in terms of m68k_tune.
4548         (uarch_type, target_device, fpu_type): New enums.
4549         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
4550         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
4551         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
4552         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
4553         (FL_FOR_isa_c): New macros.
4554         (m68k_isa): New enum.
4555         (m68k_target_selection): New structure.
4556         (all_devices, all_isas, all_microarchs): New tables.
4557         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
4558         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
4559         (MASK_ALL_CPU_BITS): Delete.
4560         (m68k_find_selection): New function.
4561         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
4562         Map the legacy target options to a combination of the new ones.
4563         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
4564         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
4565         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
4566         settings.
4567         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
4568         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
4569         properties.
4570         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
4571         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
4572         * config/m68k/m68k-devices.def: New file.
4573
4574 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4575             Nathan Sidwell  <nathan@codesourcery.com>
4576
4577         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
4578         (SUBTARGET_EXTRA_SPECS): New macros.
4579         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
4580         use %(asm_cpu_spec) instead.
4581         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
4582         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4583         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4584         (EXTRA_SPECS): Rename to...
4585         (SUBTARGET_EXTRA_SPECS): ...this.
4586
4587 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
4588             Richard Sandiford  <richard@codesourcery.com>
4589             Julian Brown  <julian@codesourcery.com>
4590
4591         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
4592         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
4593         to the configuration's default CPU.
4594         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
4595         Remove default masks.
4596         (m680[012]0-*-*): Set the default with_cpu to the first part of
4597         the target name.
4598         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
4599         (m68k*-*-linux): Extend the --with-cpu handling to...
4600         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
4601         and m68010.  Don't set target_cpu_default2.
4602         * doc/install.texi: Document --with-cpu for m68k.
4603         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
4604         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
4605         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
4606         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
4607         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
4608         (ASM_SPEC): Remove use of %(asm_cpu_default).
4609         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
4610         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
4611         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
4612         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
4613         __HAVE_FPU__ if TARGET_HARD_FLOAT.
4614         (TARGET_DEFAULT): Delete.
4615         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
4616         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
4617         (CPP_CPU_SPEC): Delete.
4618         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
4619         the appropriate string.
4620         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
4621         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
4622         (ASM_SPEC): Don't use %(asm_default_spec).
4623         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
4624         TARGET_DEFAULT and add MASK_68881.
4625         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
4626
4627 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4628
4629         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
4630         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
4631         MASK_68010 alongside MASK_68020.
4632         * doc/invoke.texi: Document -m68010.
4633         * config/m68k/m68k.opt (m68010): New.
4634         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
4635         if TUNE_68010.
4636         (TUNE_68010): New macro.
4637         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
4638         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
4639         (M68K_CPU_m68332): Add MASK_68010.
4640         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
4641         fallback definition.
4642         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
4643         defines.
4644         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
4645         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
4646         to all entries that use MASK_68020.
4647         (output_move_simode_const, output_move_himode, output_move_qimode)
4648         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
4649         instead of TARGET_68020 to select clr behavior.  Remove comment
4650         about there being no TARGET_68010.
4651         * config/m68k/m68k.md: Likewise throughout.
4652
4653 2007-01-12  Julian Brown  <julian@codesourcery.com>
4654
4655         * config/m68k/m68k.h (TARGET_ISAB): New macro.
4656         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
4657         * config/m68k/m68k.md: Likewise.
4658
4659 2007-01-12  Julian Brown  <julian@codesourcery.com>
4660
4661         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
4662         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
4663
4664 2007-01-12  Julian Brown  <julian@codesourcery.com>
4665
4666         * config/m68k/m68k.h (TUNE_68040_60): New macro.
4667         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
4668         * config/m68k/m68k.md: Likewise.
4669
4670 2007-01-12  Julian Brown  <julian@codesourcery.com>
4671             Richard Sandiford  <richard@codesourcery.com>
4672
4673         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
4674         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
4675         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
4676         TARGET_CPU32.
4677         (TARGET_CPU32): Rename to...
4678         (TUNE_CPU32): ...this.
4679         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
4680         (TUNE_CFV2): New macros.
4681         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
4682         remove conditions that are implied by TARGET_68020.
4683         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
4684         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
4685         (m68k_output_function_epilogue): Likewise.
4686         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
4687         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
4688         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
4689         non-68000 timings.  Refactor multiplication and division costs.
4690         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
4691         TUNE_CPU32 instead of TARGET_CPU32.
4692         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
4693         and TUNE_68060 instead of TARGET_68060.
4694         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
4695         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
4696         TARGET_CPU32.
4697         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
4698         && !TARGET_COLDFIRE" to choose between moveq and clr.
4699         Likewise in the unnamed movsf pattern.
4700         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
4701         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
4702         ashiftrt pattern.
4703
4704 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
4705
4706         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
4707         of tabbing before backslashes.
4708
4709 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4710
4711         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
4712         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
4713         (ASM_OUTPUT_INTERNAL_LABEL): Define.
4714
4715 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
4716
4717         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
4718         find_interesting_uses_cond.
4719         (find_interesting_uses_cond): Use extract_cond_operands.
4720         (rewrite_use_compare): Use extract_cond_operands and
4721         force_gimple_operand_bsi.  Do not call update_stmt.
4722         (determine_use_iv_cost_condition): Use extract_cond_operands.
4723         Return cheaper of using original bound and changing the exit bound.
4724
4725 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
4726
4727         PR tree-optimization/29516
4728         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
4729         most_expensive_mult_to_index, addr_to_parts,
4730         create_mem_ref, maybe_fold_tmr): Make the type of
4731         fields of TARGET_MEM_REF sizetype.
4732         (move_fixed_address_to_symbol, move_pointer_to_base):
4733         New functions.
4734         * tree.def (TARGET_MEM_REF): Add comment on types of
4735         the operands.
4736
4737 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
4738
4739         * c-common.c (vector_types_convertible_p): Treat opaque types as
4740         always convertible if they have the same size, but not otherwise.
4741
4742 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
4743
4744         * ifcvt.c (struct noce_if_info): Add comments to the fields.
4745         Remove the b_unconditional field.
4746         (noce_try_sign_mask): Do not look at b_unconditional.
4747         (noce_process_if_block): Do not use merge_if_blocks.  Update
4748         the CFG here.  Do not set b_unconditional.
4749         (cond_move_process_if_block): Likewise.
4750         (find_cond_trap): Likewise.
4751         (check_cond_move_block): Require simple jump insns at the end
4752         of the basic block.
4753
4754 2007-01-11  Jan Hubicka  <jh@suse.cz>
4755
4756         PR tree-optimization/1046
4757         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
4758         when alias info is not ready.
4759         (pass_tail_recursion): Do not require aliasing.
4760         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
4761         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
4762         * tree-ssa-copy.c (pass_copy_prop): Likewise.
4763         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
4764         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
4765         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
4766         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
4767         before inlining.
4768         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
4769         When aliasing is not build, mark statement as volatile.
4770
4771 2007-01-11  Tom Tromey  <tromey@redhat.com>
4772
4773         PR preprocessor/15185, PR preprocessor/20989:
4774         * doc/cppopts.texi <-MT>: Update description of algorithm for
4775         computing default target.
4776         <-M, -MD>: Reword "basename" text.
4777
4778 2007-01-11  Roger Sayle  <roger@eyesopen.com>
4779
4780         * builtins.c (expand_builtin_pow, expand_builtin_powi,
4781         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
4782         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
4783         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
4784         fold_builtin_bswap, real_constp, fold_builtin_pow,
4785         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
4786         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
4787         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
4788         * convert.c (convert_to_pointer): Likewise.
4789         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
4790         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
4791         const_binop, fold_convert_const_int_from_int,
4792         fold_convert_const_int_from_real,
4793         fold_convert_const_real_from_real, sign_bit_p,
4794         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
4795         fold_sign_changed_comparison, fold_unary, fold_comparison,
4796         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
4797         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
4798         * print-tree.c (print_node_brief, print_node): Likewise.
4799         * stor-layout.c (place_field, layout_type): Likewise.
4800         * tree-chrec.c (keep_cast): Likewise.
4801         * tree.c (build_vector, build_real, build_real_from_int_cst,
4802         build_complex): Likewise.
4803
4804 2007-01-11  Roger Sayle  <roger@eyesopen.com>
4805
4806         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
4807         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
4808
4809 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
4810
4811         * configure.ac (strict1_warn): Rename to strict_warn.
4812         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
4813         cc_set_by_configure, quoted_cc_set_by_configure,
4814         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
4815         all_boot_languages, all_stagestuff): Remove.
4816         (target_list): Remove bootstrap targets.
4817         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
4818         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
4819         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
4820         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
4821         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
4822         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
4823         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
4824         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
4825         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
4826         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
4827         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
4828         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
4829         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
4830         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
4831         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
4832         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
4833         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
4834         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
4835         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
4836         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
4837         (mostlyclean): Adjust.
4838         (clean, distclean): Don't mention bootstrap stuff.
4839         * configure: Regenerate.
4840         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
4841         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
4842         treelang/config-lang.in (stagestuff): Remove.
4843         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
4844         stageprofile, stagefeedback, stagestuff): Remove mention.
4845
4846 2007-01-11  Nick Clifton  <nickc@redhat.com>
4847
4848         * config/mcore/predicates.md (mcore_general_movesrc_operand):
4849         Accept CONSTs.
4850         (mcore_general_movdst_operand): Do not accept CONST_INTs.
4851         (mcore_arith_K_S_operand): Run the test for the S constraint not
4852         the test for the M constraint.
4853         (mcore_addsub_operand): Do not accept integer values that are
4854         larger than 32 bits.
4855         * config/mcore/mcore.md: Remove unused constraints from split.
4856         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
4857         (addsi3): Likewise.
4858         (allocate_stack): Likewise.
4859         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
4860         operands to 32 bits.
4861         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
4862         INTVAL.
4863         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
4864         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
4865         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
4866         mcore_output_bclri, mcore_output_andn, output_inline_const,
4867         mcore_output_move, mcore_output_movedouble): Likewise.
4868         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
4869         (output_inline_const): Likewise.
4870         (output_inline_const): Fix format strings used in sprintf
4871         statements.
4872         * config/mcore/mcore-protos.h: Update prototypes for changed
4873         functions in mcore.c.
4874         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
4875         HOST_WIDE_INT and not int.
4876         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
4877         CONST_OK_FOR_N): Likewise.
4878         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
4879         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
4880         an INTVAL.
4881
4882 2007-01-10  Jan Hubicka  <jh@suse.cz>
4883
4884         * tree-vrp.c (remove_range_assertions): Release defs.
4885         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
4886         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
4887
4888 2007-01-10  Paul Brook  <paul@codesourcery.com>
4889
4890         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
4891         * config/arm/arm.md (mulsi3subsi): New insn.
4892
4893 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
4894
4895         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
4896         (tree_transform_and_unroll_loop): New.
4897         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
4898         Declare.
4899
4900 2007-01-10  Robert Kennedy <jimbob@google.com>
4901
4902         * fold-const.c (fold_comparison): Fold comparisons like (x *
4903         1000 < 0) to (x < 0).
4904
4905 2007-01-10  Ian Lance Taylor  <iant@google.com>
4906
4907         * tree-pretty-print.c (dump_generic_node): Print parentheses when
4908         operands have the same priority.
4909
4910 2007-01-10  Tom Tromey  <tromey@redhat.com>
4911
4912         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
4913         (fold_binary): Likewise.
4914         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
4915         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
4916         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
4917         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
4918         * langhooks.h (struct lang_hooks): Removed field
4919         'can_use_bit_fields_p'.
4920
4921 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
4922
4923         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
4924
4925 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
4926
4927         * function.c (get_last_funcdef_no): New function.
4928         * function.h (get_last_funcdef_no): Declare.
4929         * tree-inline.c (initialize_cfun): Add initialization.
4930         (tree_function_versioning): Cleanup.
4931
4932 2007-01-10  Jan Hubicka  <jh@suse.cz>
4933
4934         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
4935         PHIs.
4936
4937 2007-01-10  Sa Liu  <saliu@de.ibm.com>
4938             Ben Elliston  <bje@au.ibm.com>
4939
4940         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
4941         for SAVE_NONLOCAL and Pmode for any other save level.
4942         * spu-protos.h (spu_restore_stack_block): Declare.
4943         * spu.md (save_stack_block): Remove.
4944         (restore_stack_block): Call spu_restore_stack_block.
4945         * spu.c (spu_restore_stack_block): New function.
4946         (spu_expand_epilogue): Remove old comment.
4947
4948 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
4949
4950         PR tree-optimization/30322
4951         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
4952         (cand_value_at): Return the value as aff_tree.
4953         (may_eliminate_iv): Convert the bound from aff_tree to tree.
4954         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
4955         aff_combination_mult): New functions.
4956         (aff_combination_add): Use aff_combination_add_cst.
4957         (aff_combination_convert): Allow conversions to a wider type.
4958         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
4959         * tree-affine.h (aff_combination_mult): Declare.
4960
4961 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
4962
4963         * doc/tm.texi: Update documentation to reflect reality of exec
4964         and start file search behaviours. Update copyright year.
4965         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
4966         header file directories.
4967
4968 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
4969
4970         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
4971         (*cosxf2): Rename to cosxf2_i387.
4972         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
4973         using X87MODEF12 mode macro. Rename patterns to
4974         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
4975         for SSE math.
4976         (*cosdf2, *cossf2): Ditto.
4977         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
4978         to match extended input operands.
4979         (sincos<mode>3): New expander.
4980         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
4981         insn patterns and corresponding splitters.
4982
4983 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4984
4985         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
4986         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
4987
4988 2007-01-09  Nicolas Pitre  <nico@cam.org>
4989
4990         PR target/30173
4991         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
4992
4993 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
4994
4995         * target.h (struct gcc_target): New field library_rtti_comdat.
4996         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
4997         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
4998         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
4999         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
5000
5001 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
5002
5003         * doc/invoke.texi (Optimize Options): Correct description of -O0.
5004
5005 2007-01-08  Richard Guenther  <rguenther@suse.de>
5006
5007         * tree.h (force_fit_type_double): Export.
5008         (force_fit_type): Remove.
5009         * fold-const.c (force_fit_type_double): New function.
5010         (force_fit_type): Remove.
5011         (int_const_binop): Use it.
5012         (fold_convert_const_int_from_int): Likewise.
5013         (fold_convert_const_int_from_real): Likewise.
5014         (fold_div_compare): Likewise.
5015         (fold_sign_changed_comparison): Likewise.
5016         (fold_unary): Likewise.
5017         (fold_negate_const): Likewise.
5018         (fold_abs_const): Likewise.
5019         (fold_not_const): Likewise.
5020         * c-common.c (shorten_compare): Use force_fit_type_double.
5021         * convert.c (convert_to_pointer): Likewise.
5022
5023 2007-01-08  Richard Guenther  <rguenther@suse.de>
5024
5025         * tree.h (build_int_cst_wide_type): Export.
5026         * tree.c (build_int_cst_wide_type): New function.
5027         (build_int_cst_wide): Fix comment.
5028         * builtins.c (fold_builtin_object_size): Use build_int_cst
5029         to build -1 or 0 of the correct type.  Use fit_double_type
5030         to check for overflow.
5031         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
5032         to build the mask.
5033         (decode_field_reference): Likewise.
5034         (all_ones_mask_p): Likewise.
5035         (native_interpret_int): Use build_int_cst_wide_type.
5036         (fold_binary): Use build_int_cst_type to build an all-ones
5037         value.
5038         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
5039
5040 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
5041
5042         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
5043
5044 2007-01-09  Ben Elliston  <bje@au.ibm.com>
5045
5046         * genautomata.c (STATS_OPTION): New option.
5047         (stats_flag): New flag.
5048         (gen_automata_option): Handle it.
5049         (initiate_automaton_gen): Ditto.
5050         (write_automata): Output statistics only if stats_flag is
5051         set. Likewise, output time statistics only if time_flag is set.
5052         * doc/md.texi (Processor pipeline description): Document new flag.
5053
5054 2007-01-08  Richard Guenther  <rguenther@suse.de>
5055
5056         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
5057         * tree.c (build_int_cst_type): Likewise.
5058         (size_in_bytes): Don't call force_fit_type on the result.
5059         (int_fits_type_p): Use fit_double_type.
5060         * fold-const.c (fit_double_type): New function.
5061         (force_fit_type): Use it.
5062         * tree.h (fit_double_type): Export.
5063
5064 2007-01-08  Jan Hubicka  <jh@suse.cz>
5065
5066         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
5067         * ipa.c (function_and_variable_visibility): Fix return type.
5068
5069 2007-01-08  Richard Guenther  <rguenther@suse.de>
5070
5071         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
5072         of offset to build the index.
5073         * tree-pretty-print.c (dump_generic_node): Don't build negated
5074         const just for printing.
5075         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5076         * builtins.c (fold_builtin_int_roundingfn): Check if result
5077         fits the type by using force_fit_type and comparing the result.
5078         * predict.c (predict_loops): Use compare_tree_int for comparison.
5079         * tree.c (build_int_cst): Fall back to integer_type_node for
5080         NULL_TREE type.
5081         (build_int_cst_wide): Assert type is non-null.
5082
5083 2007-01-08  Roberto Costa  <roberto.costa@st.com>
5084
5085         * tree-vrp.c (extract_range_from_cond_expr): New.
5086         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
5087         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
5088         as expressions.
5089         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
5090         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
5091         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
5092         used as expressions.
5093         * tree-object-size.c (cond_expr_object_size): New.
5094         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
5095
5096 2007-01-08  Jan Hubicka  <jh@suse.cz>
5097
5098         * tree-ssa-forwprop.c (forward_propagate_into_cond,
5099         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
5100         statement.
5101
5102 2007-01-08  Richard Guenther  <rguenther@suse.de>
5103
5104         PR tree-optimization/23603
5105         * tree-vrp.c (set_value_range_to_truthvalue): New function.
5106         (extract_range_from_binary): Fall back to truthvalue instead of
5107         varying for TRUTH_*_EXPR.
5108         (extract_range_from_comparison): Fall back to truthvalue instead of
5109         varying.
5110         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
5111         if all visited PHI values were constant.
5112
5113 2007-01-08  Jan Hubicka  <jh@suse.cz>
5114
5115         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
5116         (cgraph_analyze_function): break out from ...
5117         (cgraph_finalize_compilation_unit): ... here.
5118         (cgraph_expand_function): Remove forgoten commented out line.
5119         (cgraph_optimize): Analyze functions.
5120
5121 2007-01-08  Jan Hubicka  <jh@suse.cz>
5122
5123         * tree-pas.h (TODO_remove_function): New flag.
5124         (TODO_update*): Renumber.
5125         (pass_ipa_increase_alignment,
5126         pass_ipa_function_and_variable_visibility): New passes.
5127         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
5128         (cgraph_function_and_variable_visibility): Move to ipa.c
5129         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
5130         cgraph_increase_alignment.
5131         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
5132         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
5133         calling tree-inline.
5134         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
5135         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
5136         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
5137         (gate_increase_alignment): New function.
5138         (pass_ipa_increase_alignment): New pass.
5139         * ipa.c: Inline tree-pass.h and timevar.h
5140         (function_and_variable_visibility): Move here from cgraphunit.c
5141         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
5142         * passes.c (init_optimization_passes): Add the two new passes.
5143         (execute_todo): Handle cgraph_remove_functions.
5144
5145 2007-01-08  Nick Clifton  <nickc@redhat.com>
5146
5147         * config/frv/predicates.md (reg_or_0_operand): Accept
5148         CONST_DOUBLEs.
5149
5150 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
5151
5152         * config/bfin/rtems.h, config/bfin/t-rtems: New.
5153         * config.gcc: Add bfin*-rtems*.
5154
5155 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
5156
5157         * c.opt: Add -flax-vector-conversions.
5158         * c-typeck.c (convert_for_assignment): Pass flag to
5159         vector_types_convertible_p to allow emission of note.
5160         (digest_init): Likewise.
5161         * c-opts.c: Handle -flax-vector-conversions.
5162         * c-common.c (flag_lax_vector_conversions): New.
5163         (vector_types_convertible_p): Unless -flax-vector conversions
5164         has been passed, disallow conversions between vectors with
5165         differing numbers of subparts and/or element types.  If such
5166         a conversion is disallowed, possibly emit a note on the first
5167         occasion only to inform the user of -flax-vector-conversions.
5168         The new last argument specifies this.
5169         * c-common.h (flag_lax_vector_conversions): New.
5170         (vector_types_convertible_p): Add extra argument.
5171         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
5172         char_type_node for V*QI type vectors.
5173         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
5174         Update to satisfy new typechecking rules.
5175         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
5176         C and C++ variants.
5177         * doc/invoke.texi (C Dialect Options): Document
5178         -flax-vector-conversions.
5179
5180 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
5181
5182         PR tree-optimization/29877
5183         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
5184         a register variable on the RHS to not be replaceable.
5185
5186 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
5187         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
5188         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
5189         const_simm15, const_pow2, const_npow2): Added.
5190         * config/score/misc.md (insv, extv, extzv, movmemsi,
5191         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
5192         * config/score/score.c (score_address_cost, score_select_cc_mode):
5193         Added.
5194         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
5195         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
5196         Update score_print_operand.
5197         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
5198         Adjust register allocate order and update some macro define.
5199         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
5200         mdx_block_move_straight, mdx_block_move_loop_head,
5201         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
5202         mdx_block_move): Added.
5203         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
5204         mdp_limm): Updated and fix some bug and typo.
5205         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
5206         (movsf, movdf, doloop_end): Added.
5207
5208 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
5209
5210         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
5211         config/arm/thumb2.md: Fix comment typos.
5212         * doc/extend.texi: Fix a typo.
5213
5214 2007-01-07  Eric Christopher  <echristo@apple.com>
5215
5216         * configure.ac: Check for __stack_chk_fail for darwin.
5217         * configure: Regenerate.
5218
5219 2007-01-07  Richard Guenther  <rguenther@suse.de>
5220
5221         * tree-vrp.c (extract_range_from_assert): CSE calls to
5222         compare_values where possible.
5223         (extract_range_from_unary_expr): Likewise.
5224
5225 2007-01-07  Anatoly Sokolov <aesok@post.ru>
5226
5227         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
5228         * config/avr/avr.c (call_insn_operand): Delete function.
5229         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
5230         instead of register number. Use predicates.
5231         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
5232         call_insn_operand): Add.
5233
5234 2007-01-06  Jan Hubicka  <jh@suse.cz>
5235
5236         * tree-pass.h (pass_build_cgraph_edges): Declare.
5237         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
5238         (visited_nodes): Remove.
5239         (cgraph_create_edges): Move to cgraphbuild.c; rename to
5240         build_cgrpah_edges; make visited_nodes local.
5241         (cgraph_process_new_functions): DO not call initialize_inline_failed.
5242         (record_references_in_initializer): Move to cgraphbuild.c
5243         (initialize_inline_failed, rebuild_cgraph_edges,
5244         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
5245         (verify_cgraph_node): Make visited_nodes local.
5246         (cgraph_analyze_function): Do not call cgraph_create_edges and
5247         initialize_inline_failed.
5248         (cgraph_expand_function): Do not call cgraph_lower_function;
5249         assert that function is already lowered.
5250         * Makefile.in (cgraphbuild.o): New.
5251         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
5252         at the end of lowering passes.
5253
5254 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
5255
5256         * ifcvt.c (cond_move_convert_if_block): New function, code
5257         factored out from...
5258         (cond_move_process_if_block): ...here.  Call the new function
5259         on the THEN and ELSE blocks.
5260         (merge_if_block): Do not copy global_live_at_end, merge_blocks
5261         already takes care of this.
5262
5263 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5264
5265         PR c/19978
5266         * tree.h (TREE_OVERFLOW_P): New.
5267         * c-typeck.c (parser_build_unary_op): Warn only if result
5268         overflowed and operands did not.
5269         (parser_build_binary_op): Likewise.
5270         (convert_for_assignment): Remove redundant overflow_warning.
5271         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
5272
5273 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5274
5275         * c-typeck.c (store_init_value): Split over two lines to follow
5276         the GNU coding style.
5277
5278 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
5279
5280         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
5281         __GXX_EXPERIMENTAL_CXX0X__.
5282         * doc/cpp.texi: Same.
5283
5284 2007-01-05  Richard Guenther  <rguenther@suse.de>
5285
5286         PR middle-end/27826
5287         * tree.c (get_narrower): Do not construct COMPONENT_REFs
5288         with mismatched types.  Instead explicitly build a
5289         conversion NOP_EXPR.
5290
5291 2007-01-05  Ian Lance Taylor  <iant@google.com>
5292
5293         * c-common.c (decl_with_nonnull_addr_p): New function.
5294         (c_common_truthvalue_conversion): Call it.
5295         * c-typeck.c (build_binary_op): Likewise.
5296         * c-common.h (decl_with_nonnull_addr_p): Declare.
5297
5298 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
5299
5300         PR c/30360
5301         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
5302         denom against 0.0.
5303
5304 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
5305
5306         * doc/install.texi (Final install): Document the fact that
5307         the GNAT runtime should not be stripped.
5308
5309 2007-01-04  Jan Hubicka  <jh@suse.cz>
5310
5311         * tree-inline.c (fold_marked_statements): Update operand caches
5312         and EH after folding
5313
5314 2007-01-04  Ian Lance Taylor  <iant@google.com>
5315
5316         * c-common.c (check_function_nonnull): Whitespace fix.
5317
5318 2007-01-04  Jan Hubicka  <jh@suse.cz>
5319
5320         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
5321         comitted older version of patch.
5322         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
5323         function, celanup cfg and collect garbage.
5324
5325 2007-01-04  Mike Stump  <mrs@apple.com>
5326
5327         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
5328         (clean): Likewise.
5329
5330 2007-01-04  Eric Christopher  <echristo@apple.com>
5331
5332         * libgcc2.c (__bswapsi2): Use SItype.
5333         (__bswapdi2): Use DItype.
5334         * libgcc2.h: Update for above.
5335
5336 2007-01-04  Paul Brook  <paul@codesourcery.com>
5337
5338         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
5339         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
5340         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
5341         umulsidi3, umulsidi3adddi, smulsi3_highpart,
5342         umulsi3_highpart): Make conditional on !arm_arch6.
5343         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
5344         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
5345         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
5346         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
5347         umulsi3_highpart_v6): New insns.
5348
5349 2007-01-04  Roger Sayle  <roger@eyesopen.com>
5350
5351         * fold-const.c (fold_convert): When casting an expression to void,
5352         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
5353         have a type.  Instead of attempting to build a NOP_EXPR, return
5354         these "special" trees directly.
5355
5356 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
5357
5358         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
5359         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
5360         rs6000_cost->fp not 0 as adjustment for outer NEG.
5361
5362 2007-01-04  Jan Hubicka  <jh@suse.cz>
5363
5364         * cgraph.c (cgraph_release_function_body): New function.
5365         (cgraph_remove_node): Use it.
5366         * cgraph.h (cgraph_release_function_body): Declare.
5367         * cgraphunit.c (cgraph_expand_function): Use it.
5368         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
5369         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
5370         is initialized and while compilation of other function is running.
5371         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
5372         statement CFG annotations from here to ...
5373         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
5374
5375 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
5376
5377         * cfgloop.h (enum li_flags): Make the constants powers of two.
5378
5379 2007-01-04  Jan Hubicka  <jh@suse.cz>
5380
5381         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
5382         set.
5383         (fold_marked_statements): New function.
5384         (optimize_inline_calls, tree_function_versioning): Fold new statements.
5385         * tree-inline.h (copy_body_data): Add statements_to_fold.
5386
5387 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
5388
5389         * config.gcc: Mention libgcc/config.host.
5390         * Makefile.in: Update comments mentioning libgcc.
5391         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
5392         (all.cross, start.encap, rest.encap, rest.cross): Update
5393         dependencies for libgcc move.
5394         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
5395         (clean-target, clean-target-libgcc): Delete.
5396         (srcdirify, GCC_EXTRA_PARTS): New macros.
5397         (libgcc-support, libgcc.mvars): New rules.
5398         (distclean): Remove mention of mklibgcc.
5399         (install): Don't reference INSTALL_LIBGCC.
5400         (install-common): Don't reference EXTRA_PARTS.
5401         (install-libgcc, install-multilib): Delete rules.
5402         * mklibgcc.in: Delete file.
5403         * doc/configfiles.texi: Don't mention mklibgcc.
5404
5405         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
5406         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
5407         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
5408         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
5409         (mklibgcc, ldblspecs): Likewise.
5410
5411         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
5412         (posixpre.def): Use $(T).
5413         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
5414         (SHLIB_SRC, SHLIB_INSTALL): Delete.
5415         (SHLIB_LINK): Make dummy.
5416         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
5417
5418         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
5419
5420         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
5421         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
5422         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
5423         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
5424
5425         * configure.ac (all_outputs): Remove mklibgcc.
5426         * configure: Regenerated.
5427
5428 2007-01-03  Josh Conner  <jconner@apple.com>
5429
5430         PR middle-end/29683
5431         * calls.c (compute_argument_addresses): Set stack and stack_slot
5432         for partial args, too.
5433         (store_one_arg): Use locate.size.constant for the size when
5434         generating a save_area.
5435
5436 2007-01-03  Robert Kennedy <jimbob@google.com>
5437
5438         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
5439         whose definitions are deleted due to basic block merging.
5440
5441 2007-01-03  Paul Brook  <paul@codesourcery.com>
5442
5443         PR target/16634
5444         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
5445         functions.
5446         (use_return_insn): Return 0 for Thumb interrupt functions.
5447         (print_multi_reg): Add rfe argument for IRQ returns.
5448         (arm_output_epilogue): Pop interrupt return address directly into PC.
5449         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
5450
5451 2007-01-03  Paul Brook  <paul@codesourcery.com>
5452
5453         Merge from sourcerygxx-4_1.
5454         * config/arm/thumb2.md: New file.
5455         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
5456         Thumb-2.
5457         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
5458         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
5459         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
5460         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
5461         tables.
5462         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
5463         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
5464         comptibility.
5465         * config/arm/ieee754-sf.S: Ditto.
5466         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
5467         (thumb1_base_register_rtx_p): ... to this.
5468         (thumb_index_register_rtx_p): Rename...
5469         (thumb1_index_register_rtx_p): ... to this.
5470         (thumb_output_function_prologue): Rename...
5471         (thumb1_output_function_prologue): ... to this.
5472         (thumb_legitimate_address_p): Rename...
5473         (thumb1_legitimate_address_p): ... to this.
5474         (thumb_rtx_costs): Rename...
5475         (thumb1_rtx_costs): ... to this.
5476         (thumb_compute_save_reg_mask): Rename...
5477         (thumb1_compute_save_reg_mask): ... to this.
5478         (thumb_final_prescan_insn): Rename...
5479         (thumb1_final_prescan_insn): ... to this.
5480         (thumb_expand_epilogue): Rename...
5481         (thumb1_expand_epilogue): ... to this.
5482         (arm_unwind_emit_stm): Rename...
5483         (arm_unwind_emit_sequence): ... to this.
5484         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
5485         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
5486         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
5487         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
5488         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
5489         thumb2_output_casesi): New functions.
5490         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
5491         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
5492         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
5493         THUMB2_WORK_REGS): Define.
5494         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
5495         arm_condexec_mask, arm_condexec_masklen)): New variables.
5496         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
5497         (arm_override_options): Check new CPU capabilities.
5498         Set new architecture flag variables.
5499         (arm_isr_value): Handle v7m interrupt functions.
5500         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
5501         Thumb-2.
5502         (const_ok_for_arm): Handle Thumb-2 constants.
5503         (arm_gen_constant): Ditto.  Use movw when available.
5504         (arm_function_ok_for_sibcall): Return false for v7m interrupt
5505         functions.
5506         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
5507         (thumb_find_work_register, arm_load_pic_register,
5508         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
5509         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
5510         print_multi_reg, output_mov_long_double_fpa_from_arm,
5511         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
5512         output_mov_double_fpa_from_arm, output_move_double,
5513         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
5514         output_return_instruction, arm_output_function_prologue,
5515         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
5516         arm_output_mi_thunk, thumb_set_return_address): Ditto.
5517         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
5518         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
5519         (arithmetic_instr, shift_op): Use arm_shift_nmem.
5520         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
5521         '!' and 'L'.
5522         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
5523         (thumb_expand_prologue): Use thumb_set_frame_pointer.
5524         (arm_file_start): Output directive for unified syntax.
5525         (arm_unwind_emit_set): Handle stack alignment instruction.
5526         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
5527         Add v6t2, v7, v7a, v7r and v7m.
5528         (RETLDM): Add Thumb-2 code.
5529         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
5530         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
5531         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
5532         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
5533         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
5534         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
5535         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
5536         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
5537         ADJUST_INSN_LENGTH): Define.
5538         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
5539         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
5540         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
5541         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
5542         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
5543         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
5544         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
5545         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
5546         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
5547         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
5548         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
5549         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
5550         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
5551         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
5552         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
5553         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
5554         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
5555         cortex-m3.
5556         * config/arm/arm-tune.md: Regenerate.
5557         * config/arm/arm-protos.h: Update prototypes.
5558         * config/arm/vfp.md: Enable patterns for Thumb-2.
5559         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
5560         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
5561         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
5562         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
5563         * config/arm/libunwind.S: Add Thumb-2 code.
5564         * config/arm/constraints.md: Update include Thumb-2.
5565         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
5566         * config/arm/ieee754-df.S: Ditto.
5567         * config/arm/bpabi.S: Ditto.
5568         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
5569         * config/arm/predicates.md (low_register_operand,
5570         low_reg_or_int_operand, thumb_16bit_operator): New.
5571         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
5572         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
5573         * config/arm/t-arm-elf: Add armv7 multilib.
5574         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
5575         Include thumb2.md.
5576         (UNSPEC_STACK_ALIGN, ce_count): New.
5577         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
5578         arm_zero_extendsidi2, arm_zero_extendqidi2): New
5579         insns/expanders.
5580         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
5581         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
5582         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
5583         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
5584         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
5585         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
5586         insns.
5587         * doc/extend.texi: Document ARMv7-M interrupt functions.
5588         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
5589
5590 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
5591
5592         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
5593         (struct _Unwind_Context): Rename args_size to flags, remove
5594         signal_frame field, add a new args_size field and version field.
5595         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
5596         _Unwind_IsExtendedContext): New inline functions.
5597         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
5598         Assume by_value array is only present if _Unwind_IsExtendedContext.
5599         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
5600         _Unwind_IsSignalFrame.
5601         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
5602         (uw_update_context_1): Use _Unwind_SetSignalFrame.
5603         (uw_init_context_1): Initialize context->flags to
5604         EXTENDED_CONTEXT_BIT.
5605         * config/rs6000/linux-unwind.h (frob_update_context): Use
5606         _Unwind_SetSignalFrame.
5607
5608 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5609
5610         PR middle-end/30353
5611         * gimplify.c (gimplify_modify_expr_complex_part): Move below
5612         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
5613         the value.
5614
5615 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
5616
5617         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
5618         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
5619         RET, AT_SP): Remove.
5620         * config/i386/i386.md (*sse_prologue_save_insn): Use return
5621         instead of RET.
5622
5623         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
5624         * cfgbuild.c (find_basic_blocks): Likewise.
5625         * cfgrtl.c (rtl_create_basic_block): Likewise.
5626         * function.c (temp_slots_at_level): Likewise.
5627         * reg-stack.c (stack_regs_mentioned): Likewise.
5628         * regclass.c (allocate_reg_info): Likewise.
5629         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
5630         set_bb_for_stmt, move_block_to_fn): Likewise.
5631         * tree-complex.c (tree_lower_complex): Likewise.
5632         * vec.h (VEC_safe_grow_cleared): New.
5633
5634         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
5635
5636 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
5637
5638         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
5639         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
5640         to loop_version.
5641         * cfgloopmanip.c (scale_loop_frequencies): Export.
5642         (loopify): Scale the frequencies by prescribed coefficients.
5643         (set_zero_probability): New function.
5644         (duplicate_loop_to_header_edge): Improve updating of frequencies.
5645         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
5646         and frequencies according to arguments.
5647         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
5648         correctly.
5649         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
5650         * modulo-sched.c (sms_schedule): Set probabilities for entering
5651         versioned loop correctly.
5652         * tree-vect-transform.c (vect_transform_loop): Ditto.
5653         * cfgloop.h (loopify, loop_version): Declaration changed.
5654         (scale_loop_frequencies): Declared.
5655
5656 2007-01-02  Jan Hubicka  <jh@suse.cz>
5657
5658         * cgraph.c: Include tree-flow.h
5659         (cgraph_add_new-function): Handle IPA_SSA mode; execute
5660         early_local_passes.
5661         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
5662         * tree-pass.h (pass_all_early_optimizations): Declare.
5663         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
5664         early_local_passes.
5665         (cgraph_analyze_function): Do early_local_passes.
5666         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
5667         Do not add referenced vars.
5668         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
5669         SSA form.
5670         (gate_all_early_local_passes): New gate.
5671         (pass_early_local_passes): Use new gate.
5672         (execute_early_local_optimizations): New functions.
5673         (gate_all_early_optimizations): New gate.
5674         (pass_all_early_optimizations): New pass.
5675         (execute_free_datastructures): Free SSA only when initialized.
5676         (gate_init_datastructures): Init only when optimizing.
5677         (tree_lowering_passes): Do early local passes when called late.
5678         * tree-profile.c (do_tree_profiling): Don't profile functions added
5679         late.
5680         (do_early_tree_profiling, pass_early_tree_profile): Kill.
5681         * tree-cfg.c (update_modified_stmts): Do not update when operands are
5682         not active.
5683         * passes.c (init_optimizations_passes): Reorder so we go into SSA
5684         during early_local_passes.
5685         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
5686
5687
5688 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
5689
5690         * Makefile.in: Update copyright year.
5691
5692 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
5693
5694         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
5695         in $(lang_checks) and check-consistency targets.
5696
5697 2007-01-02  Jan Hubicka  <jh@suse.cz>
5698
5699         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
5700         Do not add referenced vars.
5701         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
5702         are not active.
5703         * passes.c (init_optimization_passes): Put mudflap_2 after
5704         free_datastructures.
5705
5706 2007-01-02  Jan Hubicka  <jh@suse.cz>
5707
5708         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
5709         Set NOTHROW flag on call statements proved to be nothrow.
5710         Update statement of local calls so new pure/const functions are
5711         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
5712         goto receivers.
5713         (tree_rest_of_compilation): Register hooks and initialize bitmap
5714         early. Do not set after_inlining flag.
5715
5716 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
5717
5718         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
5719         HOST_BITS_PER_LONGLONG
5720
5721 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5722
5723         PR c/19977
5724         * c-typeck.c (store_init_value): Don't emit pedantic overflow
5725         warning for non-static initializers.
5726
5727 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
5728
5729         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
5730         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
5731         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
5732         Always use set_unique_reg_note to add REG_EQUAL notes.
5733
5734 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
5735
5736         Revert:
5737         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
5738
5739         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
5740         * cfgbuild.c (find_basic_blocks): Likewise.
5741         * cfgrtl.c (rtl_create_basic_block): Likewise.
5742         * function.c (temp_slots_at_level): Likewise.
5743         * reg-stack.c (stack_regs_mentioned): Likewise.
5744         * regclass.c (allocate_reg_info): Likewise.
5745         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
5746         set_bb_for_stmt, move_block_to_fn): Likewise.
5747         * tree-complex.c (tree_lower_complex): Likewise.
5748         * vec.h (VEC_safe_grow_cleared): New.
5749
5750 2007-01-02  Ian Lance Taylor  <iant@google.com>
5751
5752         * c-common.c (c_common_truthvalue_conversion): When warning about
5753         using an assignment as a truth value, set TREE_NO_WARNING.
5754
5755 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5756
5757         PR middle-end/7651
5758         * c.opt (Wold-style-declaration): New.
5759         * doc/invoke.texi (C-only Warning Options): New.
5760         (Wold-style-declaration): Document it.
5761         (Wextra): Enabled by -Wextra.
5762         * c-opts.c (c_common_post_options): Enabled by -Wextra.
5763         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
5764         -Wold-style-declaration.
5765
5766 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
5767
5768         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
5769         * cfgbuild.c (find_basic_blocks): Likewise.
5770         * cfgrtl.c (rtl_create_basic_block): Likewise.
5771         * function.c (temp_slots_at_level): Likewise.
5772         * reg-stack.c (stack_regs_mentioned): Likewise.
5773         * regclass.c (allocate_reg_info): Likewise.
5774         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
5775         set_bb_for_stmt, move_block_to_fn): Likewise.
5776         * tree-complex.c (tree_lower_complex): Likewise.
5777         * vec.h (VEC_safe_grow_cleared): New.
5778
5779 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
5780
5781         * c-common.c (c_common_nodes_and_builtins): Since variants of
5782         void_type_node get built before it is given a name, we need to
5783         give those variants the name, too.
5784         (complete_array_type): We need to work with the canonical main
5785         type of the array, from which we will build the qualified version.
5786         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
5787         * print-tree.c (print_node): Display canonical type information
5788         for each type.
5789         * stor-layout.c (layout_type): When we don't know the
5790         alignment of a type for which we're building an array, we end up
5791         guessing wrong, so make the type require structural equality.
5792         * tree.c (make_node_stat): When we build a new type, it is its
5793         own canonical type.
5794         (build_type_attribute_qual_variant): When building an attribute
5795         variant, its canonical type is the non-attribute variant. However,
5796         if the attributes are target-dependent and they differ, we need to
5797         use structural equality checks for this type.
5798         (build_qualified_type): A qualified type is not equivalent to its
5799         unqualified variant; set the canonical type appropriately.
5800         (build_distinct_type_copy): When building a distinct type from
5801         another type, the new type is its own canonical type.
5802         (build_variant_type_copy): When building a new type variant, we
5803         assume that it is equivalent to the original type.
5804         (build_pointer_type_for_mode): When building a pointer type, also
5805         build a canonical type pointer.
5806         (build_reference_type_for_mode): When building a reference type,
5807         also build a canonical type reference.
5808         (build_index_type): When we can't hash an index type (e.g.,
5809         because its maximum value is negative), the index type requires
5810         structural equality tests.
5811         (build_array_type): Build the canonical form of an array type.
5812         (build_function_type): Function types require structural equality,
5813         because they contain default arguments, attributes, etc.
5814         (build_method_type_directly): Ditto for method types.
5815         (build_offset_type): Build the canonical offset type.
5816         (build_complex_type): Build the canonical vector type.
5817         (make_vector_type): Build the canonical vector type.
5818         * tree.h (TYPE_CANONICAL): New.
5819         (TYPE_STRUCTURAL_EQUALITY_P): New.
5820         (SET_TYPE_STRUCTURAL_EQUALITY): New.
5821         (struct tree_type): Added "canonical" field.
5822         * params.h (VERIFY_CANONICAL_TYPES): New.
5823         * doc/c-tree.texi (TYPE_CANONICAL): Document.
5824         (TYPE_STRUCTURAL_EQUALITY_P): Document.
5825         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
5826         * doc/invoke.texi (verify-canonical-types): Document --param
5827         parameter for verifying canonical types.
5828
5829 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
5830
5831         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
5832         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
5833         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
5834         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
5835         tm_file.
5836         * config/rs6000/e500.h: New.
5837         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
5838         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
5839         Remove.
5840         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
5841         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
5842         TARGET_E500_DOUBLE): Remove.
5843         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
5844         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
5845         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
5846         * config/rs6000/rs6000.c (rs6000_override_options): Use
5847         CHECK_E500_OPTIONS.
5848
5849 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
5850
5851         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
5852         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
5853         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
5854         rs6000_emit_cmove): Don't check TARGET_E500.
5855         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
5856         sordered): Don't check TARGET_E500.
5857
5858 2007-01-01  Eric Christopher  <echristo@apple.com>
5859
5860         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
5861         HARD_REGISTER_NUM_P.
5862
5863 2007-01-01  Roger Sayle  <roger@eyesopen.com>
5864
5865         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
5866         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
5867         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
5868         eq/ne Y".
5869
5870 2007-01-01  Mike Stump  <mrs@apple.com>
5871
5872         * configure.ac: Remove support for building with Apple's gcc-3.1.
5873
5874 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
5875
5876         PR middle-end/30311
5877         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
5878         REG is a hard register.  Do not modify REG before calling
5879         subreg_nregs.
5880         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
5881         multiple of the size of YMODE for certain lowpart cases.
5882
5883 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
5884
5885         PR middle-end/30253
5886         * gimplify (voidify_wrapper_expr): Update for
5887         GIMPLE_MODIFY_STMT.
5888
5889 2007-01-01  Andreas Schwab  <schwab@suse.de>
5890
5891         PR target/29166
5892         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
5893         save of BR0 in extra_spill_size instead of spill_size.
5894         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
5895         area.
5896         (ia64_expand_epilogue): Restore BR0 from its new location.
5897
5898 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
5899
5900         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
5901         Use a temporary variable if the left hand side is not a gimple
5902         register.
5903
5904 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
5905
5906         * gimplify.c (gimplify_return_expr): Make the temporary variable
5907         for the return expression, a gimple register variable.
5908
5909 2007-01-01  Jan Hubicka  <jh@suse.cz>
5910
5911         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
5912         INSN_LIST.
5913
5914 2007-01-01  Mike Stump  <mrs@apple.com>
5915
5916         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
5917         .literal16.
5918         * config/darwin.c (machopic_select_rtx_section): Use
5919         HAVE_GAS_LITERAL16.
5920         (darwin_mergeable_constant_section): Likewise.
5921         * configure: Regenerate.
5922         * config.in: Regenerate.
5923
5924 2007-01-01  Jan Hubicka  <jh@suse.cz>
5925             Andrew Pinski  <pinskia@gmail.com>
5926
5927         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
5928         before starting IPA passes.