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