OSDN Git Service

2f6576bc33e805c317d3a8c2b9e2080eb63ea46d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
2
3         * configure.ac: Add --enable-checking=df.  Explicitly mention that
4         the variables are initialized as for "release".
5         * df-core.c: Use it.
6         * configure: Regenerate.
7         * config.in: Regenerate.
8
9 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
10
11         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
12         validate_replace_rtx instead of replace_rtx.
13         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
14
15 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
16
17         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
18         (DWARF2_UNWIND_INFO): Override default if configured with
19         SJLJ EH disabled.
20         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
21         (ENDFILE_SPEC): Add crtend.o.
22         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
23         (ENDFILE_SPEC): Add crtend.o.
24         (TARGET_USE_JCR_SECTION): Define.
25         (MD_UNWIND_SUPPORT): Define for 32-bit target.
26
27         * config/i386/cygming-crtbegin.c: New file.
28         * config/i386/cygming-crtend.c: New file.
29
30 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
31
32         * config/i386/w32-unwind.h: New file.
33
34 2007-06-13  Eric Christopher  <echristo@apple.com>
35
36         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
37         the user set a value below STACK_BOUNDARY.
38
39 2007-06-13  Thiemo Seufer  <ths@networkno.de>
40
41         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
42         imply -lpthread for -pthread.
43
44 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
45
46         * basic-block.h: Remove the prototype for
47         free_basic_block_vars.
48         * cfglayout.h: Remove the prototype for
49         insn_locators_initialize.
50         * tree.h: Remove the prototype for emit_line_note.
51
52         * tree-ssa-pre.c (mergephitemp): Remove.
53         (init_pre): Don't use mergephitemp.
54
55 2007-06-13  Eric Christopher  <echristo@apple.com>
56
57         * config/i386/i386.c (override_options): If we've specified
58         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
59
60 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
61
62         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
63         is defined.
64
65 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
66
67         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
68         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
69         (eh_store_handler): New pattern.
70         (eh_return): Emit it instead of a plain move.
71
72 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
73
74         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
75         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
76         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
77         def_builtin_const.
78
79 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
80
81         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
82         (find_next_insn_start, find_load): New functions.
83         (bfin_reorg): Use them to deal with the fact that parallel insns are
84         no longer represented as a SEQUENCE.
85
86 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
87
88         * config/sparc/sparc.c (sparc_override_options): Initialize
89         fpu mask correctly.
90
91 2007-06-13  Dave Korn  <dave.korn@artimi.com>
92
93         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
94         df_get_live_out.
95
96 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
97
98         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
99         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
100         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
101         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
102         tree-vect-transform.c: Fix comment typos.  Follow spelling
103         conventions.
104
105 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
106
107        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
108        to the exit block use set.
109        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
110        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
111
112 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
113
114         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
115         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
116         to indicate an error.
117         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters): New functions
118         (dbg_cnt_process_opt): Print an error on a bad argument.
119         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
120         * common.opt (-fdbg-cnt-list): New.
121         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
122
123 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
124
125         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
126         flag on ref-all pointers.
127
128 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
129
130         PR middle-end/31579
131         * expr.c (expand_expr_addr_expr_1): Call expand_expr
132         for the offset with the modifier as EXPAND_INITIALIZER
133         if the modifier is EXPAND_INITIALIZER.
134         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
135         a register if we had an overflow.
136
137 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
138
139         * real.c (real_isfinite): New.
140         (real_sqrt): Use it.
141         * real.h (real_isfinite): New.
142         * builtins.c: Use it.
143
144 2007-06-12  Ian Lance Taylor  <iant@google.com>
145             Daniel Berlin  <dberlin@dberlin.org>
146
147         PR libstdc++/29286
148         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
149         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
150         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
151         (DECL_NO_TBAA_P): Define.
152         (struct tree_decl_common): Add no_tbaa_flag field.
153         * tree-ssa-structalias.c (struct variable_info): Add
154         no_tbaa_pruning field.
155         (new_var_info): Initialize no_tbaa_pruning field.
156         (unify_nodes): Copy no_tbaa_pruning field.
157         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
158         (dump_solution_for_var): Print no_tbaa_pruning flag.
159         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
160         callers.
161         (compute_tbaa_pruning): New static function.
162         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
163         Call compute_tbaa_pruning.
164         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
165         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
166         * gimple-low.c (lower_stmt): Likewise.
167         * tree-gimple.c (is_gimple_stmt): Likewise.
168         * tree-ssa-operands.c (get_expr_operands): Likewise.
169         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
170         * tree-inline.c (estimate_num_insns_1): Likewise.
171         (copy_result_decl_to_var): Likewise.
172         * expr.c (expand_expr_real_1): Likewise.
173         * tree-pretty-print.c (dump_generic_node): Likewise.
174         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
175         * omp-low.c (omp_copy_decl_2): Likewise.
176         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
177         * doc/c-tree.texi (Expression trees): Document
178         CHANGE_DYNAMIC_TYPE_EXPR.
179
180 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
181
182         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
183         with !HONOR_NANS and !HONOR_INFINITIES.
184         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
185
186 2007-06-12  Tristan Gingold  <gingold@adacore.com>
187
188         * gcov.c: Comments updated.
189         (source_info): Add file_time field.
190         (source_index): New variable.
191         (mutiple_files): New variable.
192         (generate_results): New function extracted from process_file.
193         (process_file): Save and restore chain of functions, generate
194         results and free structures only if not merging results.
195         (release_structures): File names are now freed in create_file_names
196         (create_file_names): Free previous file names.
197         (find_source): File date is now read here and modifications in
198         source files is checked here.
199         (read_graph_file): Only reverse order of functions for the current
200         object file.
201         (make_gcov_file_name): Do not generate long names if input_name is
202         NULL.
203         (output_lines): If merging results do not display graph, data and
204         runs informations.
205         Checking source file modification is done in find_source.
206
207         * doc/gcov.texi: Append an s to sourcefile.
208
209 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
210
211         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
212         (forced_nop): New pattern.
213         * config/bfin/bfin.c: Include "df.h".
214         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
215         (bfin_discover_loop): Use df_get_live_in instead of
216         global_live_at_start.
217         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
218         df_analyze when done.
219         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
220         the insns.  Use QImode for the final insn in a bundle.  Call
221         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
222         gen_nop.
223         (reorder_var_tracking_notes): New function.
224         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
225         update_life_info.  Call df_analyze after scheduling and bundle
226         generation.  Call reorder_var_tracking_notes if generating these notes.
227         Call df_finish_pass at the end.
228
229 2007-06-12  Dirk Mueller  <dmueller@suse.de>
230
231         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
232         a comparison, not an assignment.
233
234 2007-06-12  Olivier Hainque  <hainque@adacore.com>
235
236         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
237         Request walking the subtrees only, leaving the current is_lhs/val_only
238         untouched.
239         (convert_non_local_reference): Likewise.
240
241 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
242
243         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
244
245 2007-06-12  Richard Guenther  <rguenther@suse.de>
246
247         PR tree-optimization/15353
248         PR tree-optimization/31657
249         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
250         * timevar.def: Add TV_TREE_IFCOMBINE.
251         * tree-pass.h (pass_tree_ifcombine): Declare.
252         * tree-ssa-ifcombine.c: New file.
253         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
254         * tree-flow.h (blocks_in_phiopt_order): Declare.
255         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
256         (tree-ssa-ifcombine.o): New dependencies.
257
258 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
259
260         PR rtl-optimization/32293
261         * combine.c (simplify_if_then_else): Truncate return from
262         nonzero_bits() to correct mode.
263
264 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
265
266         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
267         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
268
269 2007-06-11  Diego Novillo  <dnovillo@google.com>
270
271         * Makefile.in (reload1.o-warn): Remove.
272
273 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
274
275         * combine.c (subst): Use reg_overlap_mentioned_p
276         instead of comparing register numbers directly.
277
278 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
279
280         * reload1.c (mark_home_live_1): Use the mode parameter.
281
282 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
283
284         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
285         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
286         word "deferred".
287         * df-core.c: Ditto.
288
289 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
290
291         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
292
293 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
294
295         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
296         from integer registers.
297         (FP mode splitters): Handle TFmode.
298
299 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
300
301         * tree-ssa-structalias.c (find_what_p_points_to): Return false
302         for ref-all pointers that point-to anything.
303
304 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
305
306         * config/arm/arm.c (arm_output_dwarf_dtprel,
307         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
308
309 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
310
311         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
312         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
313         to memory moves.
314
315 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
316
317         * gcc/tree.c (signed_or_unsigned_type_for): New.
318         (unsigned_type_for): Use signed_or_unsigned_type_for.
319         (signed_type_for): Use signed_or_unsigned_type_for.
320         * gcc/tree.h (signed_or_unsigned_type_for): New.
321         (get_signed_or_unsigned_type): Remove.
322         * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
323         lang_hooks.types.signed_type
324         (size_diffop): Likewise.
325         (all_ones_mask_p): Likewise.
326         (build_range_check): Likewise.
327         (fold_cond_expr_with_comparison): Likewise.
328         (fold_cond_expr_with_comparison): Likewise.
329         (unextend): Likewise.
330         (extract_muldiv_1): Likewise.
331         (fold_single_bit_test_into_sign_test): Likewise.
332         (fold_binary): Likewise.
333         (fold_ternary): Likewise.
334         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
335         instead of get_signed_or_unsigned_type.
336         * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
337         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
338         * gcc/expr.c (signed_or_unsigned_type_for): Use
339         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
340         * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
341         (lhd_signed_or_unsigned_type): Remove.
342         * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
343         signed_or_unsigned_type.
344         (lhd_signed_or_unsigned_type): Remove.
345         * gcc/expmed.c (make_tree): Use signed_type_for instead of
346         lang_hooks.types.signed_type.
347         * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
348         c_common_signed_type instead of lang_hooks.types.signed_type.
349         (c_common_unsigned_type): New.
350         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
351         (shorten_compare): Use c_common_unsigned_type instead of
352         c_common_signed_or_unsigned_type.
353         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
354         unsigned_type_for.
355         * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
356         lang_hooks.types.signed_type.
357         * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
358         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
359         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
360         * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
361         instead of unsigned_type_for.
362         * gcc/c-decl.c (groakdeclarator): Likewise.
363         * gcc/c-typeck.c (convert_for_assignment): Likewise.
364         * gcc/c-common.h (c_common_unsigned_type): New.
365
366 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
367
368         PR target/32280
369         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
370         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
371
372 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
373
374         PR middle-end/32279
375         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
376         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
377
378 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
379             Sebastian Pop  <sebpop@gmail.com>
380
381         * lambda-code.c (remove_iv): New.
382         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
383
384 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
385
386         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
387         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
388         * tree-ssa-loop-prefetch.c: Include optabs.h.
389         (FENCE_FOLLOWING_MOVNT): New macro.
390         (struct mem_ref): Add independent_p and storent_p fields.
391         (record_ref): Initalize the new fields.
392         (gather_memory_references_ref): Return true if the reference
393         could be analysed.
394         (gather_memory_references): Check whether all memory accesses
395         in loop were recorded.
396         (should_issue_prefetch_p): Return false for nontemporal stores.
397         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
398         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
399         (determine_loop_nest_reuse): Detect independent memory references.
400         (loop_prefetch_arrays): Call mark_nontemporal_stores.
401         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
402         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
403         * config/i386/i386.h (x86_mfence): Declare.
404         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
405         * config/i386/i386.c (x86_mfence): New variable.
406         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
407
408         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
409         * optabs.c (init_optabs): Initialize storent_optab.
410         * optabs.h (enum optab_index): Add OTI_storent.
411         (storent_optab): Declare.
412         * genopinit.c (optabs): Add initialization for storent_optab.
413         * tree.h (MOVE_NONTEMPORAL): New macro.
414         * expr.c (expand_assignment, store_expr, store_constructor_field,
415         store_constructor, store_field, expand_expr_real_1): Propagate
416         nontemporality of the expanded store.
417         (emit_storent_insn): New function.
418         * expr.h (expand_assignment, store_expr): Declaration changed.
419         * function.c (assign_parm_setup_reg): Pass false as nontemporality
420         to expand_assignment.
421         * stmt.c (expand_asm_expr): Ditto.
422         * calls.c (initialize_argument_information): Pass false as
423         nontemporality to store_expr.
424         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
425         storentsi): New.
426
427 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
428
429         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
430         parameter, use it.
431         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
432
433 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
434
435         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
436         and allow DECL_P here.
437
438 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
439
440         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
441         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
442         track of the size of the expression.
443         * cfghooks.c (merge_blocks): Remove block from loops structure only
444         after call of the merge_blocks hook.
445
446 2007-06-09  Tom Tromey  <tromey@redhat.com>
447
448         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
449         (deprecated_state): Removed.
450         (start_decl): Update.
451         (enum deprecated_states): Moved earlier.
452         (groktypename): Update.
453         (push_parm_decl): Likewise.
454         (grokfield): Likewise.
455         (start_function): Likewise.
456
457 2007-06-09  Ian Lance Taylor  <iant@google.com>
458
459         PR tree-optimization/32169
460         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
461         CONVERT_EXPR, check whether min and max both converted to an
462         overflow infinity representation.
463
464 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
465
466         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
467         not inserted on the edge.
468
469 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
470
471         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
472         instructions if they are supported.
473         (__divsi3, __umodsi3, __modsi3): Likewise.
474         (__ashldi3, __ashrdi3, __lshrdi3): New.
475         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
476
477 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
478             Tony Linthicum <tony.linthicum@amd.com>
479
480         * doc/extend.texi: Add fvect-cost-model flag.
481         * common.opt (fvect-cost-model): New flag.
482         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
483         cost fields in stmt_vec_info struct for STMT.
484         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
485         fields in stmt_vec_info struct and access functions for the same.
486         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
487         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
488         load, store and vector to scalar operation.
489         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
490         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
491         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
492         (TARG_VEC_STORE_COST): Define cost of vector store.
493         (vect_estimate_min_profitable_iters): Define new function.
494         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
495         check to evaluate if loop iterations are less than minimum profitable
496         iterations determined by cost model or minimum vect loop bound defined
497         by user, whichever is more conservative.
498         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
499         run-time check to evaluate if loop iterations are less than minimum
500         profitable iterations determined by cost model or minimum vect loop
501         bound defined by user, whichever is more conservative.
502         (vect_estimate_min_profitable_iterations): New function to estimate
503         mimimimum iterartions required for vector version of loop to be
504         profitable over scalar version.
505         (vect_model_reduction_cost): New function.
506         (vect_model_induction_cost): New function.
507         (vect_model_simple_cost): New function.
508         (vect_cost_strided_group_size): New function.
509         (vect_model_store_cost): New function.
510         (vect_model_load_cost): New function.
511         (vectorizable_reduction): Call vect_model_reduction_cost during
512         analysis phase.
513         (vectorizable_induction): Call vect_model_induction_cost during
514         analysis phase.
515         (vectorizable_load): Call vect_model_load_cost during analysis phase.
516         (vectorizable_store): Call vect_model_store_cost during analysis phase.
517         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
518         vectorizable_promotion, vectorizable_demotion): Call
519         vect_model_simple_cost during analysis phase.
520
521 2007-06-08  Simon Baldwin  <simonb@google.com>
522
523         * reg-stack.c (get_true_reg): Readability change.  Moved default case
524         label into direct switch statement scope.
525
526 2007-06-08  Simon Baldwin  <simonb@google.com>
527
528         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
529         in gcc_assert() with '==' comparison.
530
531 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
532
533         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
534         TARGET_ABM handling of x86_popcnt variable.
535
536 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
537
538         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
539         __builtin_copysignq and __builtin_infq built-in functions.
540
541 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
542
543         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
544         SSE4.2 section.  Correct built-in function names in SSE4A section.
545
546 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
547
548         PR tree-optimization/32243
549         * tree-vect-transform.c (vectorizable_type_promotion): Move check
550         for ncopies after ratio check between nunits_out and nunits_in.
551         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
552
553 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
554
555         PR tree-optimization/32224
556         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
557         vectorization upon a non GIMPLE_MODIFY_STMT.
558
559 2007-06-08  Christian Bruel  <christian.bruel@st.com>
560
561         PR target/29953
562         * config/sh/sh.md (doloop_end): New pattern and splitter.
563         * loop-iv.c (simple_rhs_p): Check for hardware registers.
564
565 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
566
567         PR middle-end/32209
568         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
569         functions.
570         (verify_dominators): Do not change dominance tree.
571
572 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
573
574         * config/sh/constraints.md: New file.
575         * config/sh/sh.c: Include tm-constrs.h.
576         (reg_class_from_letter): Remove.
577         (prepare_cbranch_operands): Use satisfies_constraint_*
578         function instead of macro.
579         (andcosts, broken_move, sh_secondary_reload): Likewise.
580         * config/sh/predicates.md (trapping_target_operand): Likewise.
581         (and_operand, arith_operand, arith_reg_or_0_operand,
582         cmp_operand, logical_operand, target_operand,
583         ua_address_operand, ua_offset, xor_operand): Likewise.
584         * config/sh/sh.md: Include constraints.md.
585         (*movsicc_t_false): Use satisfies_constraint_* function
586         instead of macro.
587         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
588         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
589         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
590         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
591         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
592         (REG_CLASS_FROM_CONSTRAINT): Remove.
593         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
594         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
595         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
596         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
597         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
598         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
599         function instead of macro.
600         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
601         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
602         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
603         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
604         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
605         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
606         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
607         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
608         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
609         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
610         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
611         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
612         EXTRA_CONSTRAINT_STR): Likewise.
613         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
614
615 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
616
617         * config/i386/darwin.h (STACK_BOUNDARY): Define.
618
619 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
620
621         PR c++/30759
622         * c-common.h (flag_cpp0x): Replaced by...
623         (cxx_dialect): ... this new variable specifying the C++ dialect that
624         is used.
625         * c-common.c (flag_cpp0x): Removed.
626         (cxx_dialect): Defined.
627         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
628         cxx_dialect.
629         * c-opts.c (c_common_post_options): Likewise.
630         (set_std_cxx98): Set cxx_dialect to cxx98.
631         (set_std_cxx0x): Set cxx_dialect to cxx0x.
632
633 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
634             Hui-May Chang <hm.chang@apple.com>
635
636         * doc/invoke.texi (Darwin Options): Update documentation for
637         -mmacosx-version-min.
638         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
639         * config/darwin-driver.c: New file.
640         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
641         * config/t-darwin (darwin-driver.o): New rule.
642
643         * config/darwin-c.c (version_as_macro): Ignore low digit.
644
645 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
646
647         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
648         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
649         (CSGNMODE): New mode macro.
650         (CSGNVMODE): New mode attribute.
651         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
652         expander using CSGNMODE mode macro.  Handle TFmode.
653         (copysign<mode>3_const): Rename from copysignsf3_const and
654         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
655         Handle TFmode.
656         (copysign<mode>3_var): Rename from copysignsf3_var and
657         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
658         Handle TFmode.
659         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
660         mode macro.  Handle TFmode.
661         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
662         (iortf3, *iortf3): Ditto.
663         (xortf3, *xortf3): Ditto.
664         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
665         TFmode and TImode masks.
666         (ix86_expand_copysign): Expand TFmode copysign insn.
667         (IX86_BUILTIN_INFQ): New.
668         (IX86_BUILTIN_FABSQ): Ditto.
669         (IX86_BUILTIN_COPYSIGNQ): Ditto.
670         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
671         [__builtin_fabsq]: Ditto.
672         [__builtin_copysignq]: Ditto.
673         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
674         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
675         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
676         ix86_expand_binop_builtin().
677
678 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
679
680         * config/xtensa/lib1funcs.asm: Clean up whitespace.
681
682 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
683
684         PR target/31850
685         * rtl.h (push_to_sequence2): New.
686         * emit-rtl.c (push_to_sequence2): New.
687         * function.c (assign_parm_data_all): Add new fields.
688         (assign_parm_setup_block): Call push_to_sequence2 instead of
689         push_to_sequence.
690         (assign_parm_setup_reg): Ditto.
691         (assign_parm_setup_stack): Ditto.
692         (assign_parms_unsplit_complex): Ditto.
693         (assign_parms): Change field name.
694
695 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
696
697         PR tree-optimization/32220
698         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
699         phi node is reached before defining statement.
700
701 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
702
703         PR tree-opt/32231
704         * tree-vect-transform.c (vectorizable_call): Call update_stmt
705         after changing the right hand side of the assignment.
706
707 2007-06-06  Eric Christopher  <echristo@apple.com>
708
709         * config.gcc (i?86-*-darwin*): Remove arch parameter.
710         (x86_64-*-darwin*): Ditto.
711         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
712         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
713
714 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
715
716         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
717         coding conventions.
718         (add_key): Likewise.
719         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
720         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
721         variable names.
722         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory macros.
723         (add_cost_one_coalesce): Likewise.
724         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
725         variable names. Rename orig to orig_name for consistency.
726         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the coding
727         conventions.
728         (cprop_into_successor_phis): Avoid using C++ keywords as variable names.
729         (record_equivalences_from_stmt): Likewise.
730         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
731         the coding conventions.
732         (memory_ssa_name_same): Likewise.
733         (dse_optimize_stmt): Likewise.
734         (dse_record_phis): Likewise.
735         (dse_finalize_block): Likewise.
736         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
737         keywords as variable names.
738         (may_move_till): Cast according to the coding conventions.
739         (force_move_till_expr): Avoid using C++ keywords as variable names.
740         (force_move_till): Cast according to the coding conventions.
741         (memref_hash): Likewise.
742         (memref_eq): Likewise.
743         (gather_mem_refs_stmt): Likewise.
744         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid using C++
745         keywords as variable names.
746         (idx_find_step): Cast according to the coding conventions.
747         (idx_record_use): Likewise.
748         (find_depends): Likewise.
749         (prepare_decl_rtl): Likewise.
750         (mbc_entry_hash): Likewise.
751         (mbc_entry_eq): Likewise.
752         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
753         (simplify_replace_tree): Avoid using C++ keywords as variable names.
754         (idx_infer_loop_bounds): Cast according to the coding conventions.
755         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
756         * tree-ssa-math-opts.c (occ_new ): Likwise.
757         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
758         macros.
759         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as variable
760         names.
761         (add_use_op): Likewise.
762         (add_vop): Likewise.
763         (add_vuse_op): Likewise.
764         (add_vdef_op): Likewise.
765         (get_expr_operands): Likewise.
766         (push_stmt_changes): Use type safe memory macros.
767         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
768         keywords as variable names.
769         (conditional_replacement): Likewise.
770         (minmax_replacement): Likewise.
771         (abs_replacement): Likewise.
772         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
773         coding conventions.
774         (insert_fake_stores): Avoid using C++ keywords as variable names.
775         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
776         conventions.
777         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
778         (heapvar_insert): Use type safe memory macros.
779         (new_var_info): Cast according to the coding conventions.
780         (new_constraint): Likewise.
781         (remove_preds_and_fake_succs): Use type safe memory macros.
782         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
783         conventions.
784         (thread_single_edge): Likewise.
785         (thread_through_loop_header): Likewise.
786
787 2007-06-06  Eric Christopher  <echristo@apple.com>
788
789         * config/i386/i386.c (override_options): Move handling
790         of TARGET_SUBTARGET* earlier.
791
792 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
793
794         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
795         use %n on printf.
796
797 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
798
799         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
800         emited outside of basic block.
801         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
802         the created blocks.
803         * rtl.h (delete_insn_chain): Declaration changed.
804         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
805         non-removed insns.
806         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
807         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
808         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
809         to delete_insn_chain.
810         (rtl_verify_flow_info_1): Verify that the insns in header and footer
811         do not have bb field set.
812         (rtl_verify_flow_info): Verify that insns between basic blocks do not
813         have bb field set.
814         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
815         * cfgcleanup.c (try_optimize_cfg): Ditto.
816
817 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
818
819         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
820         (lambda_body_vector_new): Use type safe memory macros.
821         (lambda_linear_expression_new): Likewise.
822         (lambda_loopnest_new): Likewise.
823         (lambda_lattice_new): Likewise.
824         (replace_uses_equiv_to_x_with_y): Cast according to the coding
825         conventions. Use type safe memory macros.
826         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
827         (lambda_body_vector_s): Likewise.
828         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
829         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
830
831 2007-06-06  Richard Guenther  <rguenther@suse.de>
832
833         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
834         if we need to schedule cfg_cleanup.
835         (tree_ssa_forward_propagate_single_use_vars): Do so.
836
837 2007-06-06  Ian Lance Taylor  <iant@google.com>
838
839         * fold-const.c (merge_ranges): If range_successor or
840         range_predecessor fail, just return 0.
841
842 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
843
844         PR tree-optimization/32216
845         * tree-vectorizer.c (supportable_widening_operation): Determine
846         signedness of FIX_TRUNC_EXPR from output operand.
847         (supportable_narrowing_operation): Ditto.
848         * tree-vect-generic.c (expand_vector_operations_1): Determine
849         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
850         from input operand.
851
852 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
853
854         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
855         (struct pta): ...from here. Change flags to unsigned to avoid
856         excessive casting (as it is used as a bit mask).
857         (override_options): Add casts according to the coding convenventions.
858         (x86_64_elf_unique_section): Likewise.
859         (examine_argument): Avoid using C++ keywords as variable names.
860         (construct_container): Likewise.
861         (legitimize_pic_address): Likewise.
862         (get_dllimport_decl): Cast according to the coding conventions. Use
863         type safe memory macros.
864         (legitimize_address): Cast according to the coding conventions.
865         (emit_i387_cw_initialization): Corrected the type of slot to enum
866         ix86_stack_slot.
867         (ix86_init_machine_status): Use type safe memory macros.
868         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
869         (bdesc_pcmpistr): Likewise.
870         (bdesc_crc32): Likewise.
871         (bdesc_sse_3arg): Likewise.
872         (bdesc_2arg): Likewise.
873         (bdesc_1arg): Likewise.
874         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
875         (ix86_expand_sse_pcmpistr): Likewise.
876         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
877         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
878         int to match the langhook definition.
879         (ix86_builtin_conversion): Change the type of code to unsigned init to
880         match the langhook definition.
881         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
882         names.
883         (ix86_preferred_output_reload_class): Likewise.
884         (ix86_cannot_change_mode_class): Likewise.
885         (ix86_memory_move_cost): Likewise.
886         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
887         avoid excessive casting later on.
888         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
889
890 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
891
892         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
893         as flags setting insn.
894         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
895
896 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
897
898         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
899         (UNSPEC_ROUND): New.
900         ("sse4_1_round<mode>2"): New insn pattern.
901         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
902         SSE4.1 targets.
903         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
904         expander using SSEMODEF mode macro.  Expand using
905         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
906         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
907         expander using SSEMODEF mode macro.  Expand using
908         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
909         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
910         expander using SSEMODEF mode macro.  Expand using
911         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
912         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
913         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
914         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
915         UNSPEC_ROUNDS.
916
917 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
918             Sebastian Pop  <sebpop@gmail.com>
919
920         * lambda.h (build_linear_expr): New.
921         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
922         Use build_linear_expr, call fold and force_gimple_operand.
923         (lambda_loopnest_to_gcc_loopnest): Check that there is
924         something to insert.
925         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
926
927 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
928
929         PR preprocessor/23479
930         * doc/extend.texi: Document the 0b-prefixed binary integer
931         constant extension.
932
933 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
934
935         PR tree-optimization/32215
936         * tree-vectorizer.c (supportable_widening_operation): Return false
937         for unsupported FIX_TRUNC_EXPR tree code.
938         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
939
940 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
941
942         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
943         register on SPE targets.  Change documentation to reflect
944         reality.
945         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
946         Change FIXED_SCRATCH to 14 and document why we're keeping r14
947         out of the register allocation pool.
948         (rs6000_reg_live_or_pic_offset_p): New function.
949         (rs6000_emit_prologue): Move the actual saving of LR up to free
950         r0 for holding r11.  Split saving of SPE 64-bit registers into
951         its own case.  Ensure that offsets will always be in-range for
952         'evstdd' by using r11 as a scratch register to point at the start
953         of the SPE save area.  Save r11 if necessary, as it is the static
954         chain register.
955         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
956         into its own case.  Ensure that offsets will always be in-range
957         for 'evldd' by using r11 as a scratch register to point at the
958         start of the SPE save area.  Also adjust r11 when restoring
959         the stack pointer to compensate for pre-loading r11.
960
961 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
962
963         * cfg.c (init_flow): Use type safe memory macros.
964         (alloc_block): Likewise.
965         (unchecked_make_edge): Likewise.
966         (dump_flow_info): Avoid using C++ keywords as variable names.
967         (copy_original_table_clear): Cast according to the coding conventions.
968         (copy_original_table_set): Likewise.
969         * cfgexpand (label_rtx_for_bb): Likewise.
970         (expand_gimple_basic_block): Likewise.
971         * cfghooks.c (dump_bb): Likewise.
972         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
973         variable names.
974         (lv_add_condition_to_bb): Likewise.
975         * cfglayout (relink_block_chain): Cast according to the coding
976         conventions.
977         (fixup_reorder_chain): Likewise.
978         (fixup_fallthru_exit_predecessor): Likewise.
979         * cfgloop.c (glb_enum_p): Likewise.
980         (get_exit_description): Likewise.
981         (dump_recorded_exit): Likewise.
982         * cfgloop.h (enum loop_estimation): Move out of struct scope...
983         (struct loop): ... from here.
984         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
985         conventions.
986         * cfgrtl.c (rtl_create_basic_block): Likewise.
987         (rtl_split_block): Likewise.
988         (rtl_dump_bb): Likewise.
989         (cfg_layout_split_block): Likewise.
990         (init_rtl_bb_info): Use typesafe memory macros.
991
992         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
993         * graphds.h: Updated all usages of edge to graph_edge.
994         * graphds.c: Likewise.
995         * cfgloopanal.c: Likewise.
996
997 2007-06-05  Ian Lance Taylor  <iant@google.com>
998
999         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
1000         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
1001         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
1002         expression.
1003         (test_for_singularity): Likewise.
1004
1005 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1006
1007         * config/i386/constraints.md ("Y2"): Replaced by ...
1008         ("Yt"): This.
1009         * config/i386/i386.md: Likewise.
1010         * config/i386/mmx.md: Likewise.
1011         * config/i386/sse.md: Likewise.
1012
1013 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
1014
1015         * config/i386/constraints.md ("z"): Replaced by ...
1016         ("Y0"): This.
1017         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
1018         (sse4_1_blendvps): Likewise.
1019         (sse4_1_pblendvb): Likewise.
1020         (sse4_2_pcmpestr): Likewise.
1021         (sse4_2_pcmpestrm): Likewise.
1022         (sse4_2_pcmpestr_cconly): Likewise.
1023         (sse4_2_pcmpistr): Likewise.
1024         (sse4_2_pcmpistrm): Likewise.
1025         (sse4_2_pcmpistr_cconly): Likewise.
1026
1027 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
1028
1029         * matrix-reorg.c (transform_access_sites): Fix computation.
1030         (transform_allocation_sites): Same.
1031
1032 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
1033
1034         * config/i386/i386.c (override_options): Use
1035         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
1036
1037 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
1038
1039         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
1040         (nonimm_not_xmm0_operand): Ditto.
1041         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
1042         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
1043         as operand[2] predicate.  Require "z" class XMM register for
1044         operand[3].  Adjust asm template.
1045         ("sse4_1_blendvpd"): Ditto.
1046         ("sse4_1_pblendvb"): Ditto.
1047         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
1048         force op2 into xmm0 register for variable blend instructions.
1049
1050 2007-06-04  Tom Tromey  <tromey@redhat.com>
1051
1052         * c-tree.h (start_enum): Update.
1053         (build_enumerator): Likewise.
1054         * c-decl.c (enum_next_value): Removed.
1055         (enum_overflow): Likewise.
1056         (start_enum): Add c_enum_contents argument.  Don't use globals.
1057         (build_enumerator): Likewise.
1058         * c-tree.h (struct c_enum_contents): New struct.
1059
1060 2007-06-04  Tom Tromey  <tromey@redhat.com>
1061
1062         * c-common.c (c_common_get_alias_set): Fix indentation.
1063
1064 2007-06-04  Ian Lance Taylor  <iant@google.com>
1065
1066         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
1067         to overflow, reduce overflow infinity to regular infinity.
1068         (vrp_var_may_overflow): New static function.
1069         (vrp_visit_phi_node): Check vrp_var_may_overflow.
1070
1071 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
1072
1073         * stor-layout.c (layout_type): Remove duplicate code.
1074
1075 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
1076
1077         PR c/32191
1078         * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
1079         before build_common_builtin_nodes ().
1080
1081 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
1082
1083         PR target/31733
1084         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
1085
1086 2007-06-04  Jan Hubicka  <jh@suse.cz>
1087
1088         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
1089         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
1090         instead of _stat version.
1091
1092 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
1093
1094         PR tree-optimization/32194
1095         * tree-predcom.c (determine_offset): Check that both references have
1096         the same type.
1097
1098 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
1099
1100         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
1101         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
1102         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
1103         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
1104         Add argument to iterate_fix_dominators call.
1105         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
1106         * gcse.c (hoist_code): Change domby to vector.
1107         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
1108         Add argument to iterate_fix_dominators call.
1109         * loop-doloop.c (doloop_modify): Changed recount_dominator to
1110         recompute_dominator.
1111         * lambda-code.c (perfect_nestify): Ditto.
1112         * cfgloopanal.c: Include graphds.h.
1113         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
1114         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
1115         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
1116         add_edge call.
1117         * graphds.c: New file.
1118         * graphds.h: New file.
1119         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
1120         (get_dominated_by, get_dominated_by_region): Change return type to
1121         vector.
1122         (verify_dominators): Recompute all dominators and compare the results.
1123         (recount_dominator): Renamed to ...
1124         (recompute_dominator): ... this.  Do not check that the block is
1125         dominated by entry.
1126         (iterate_fix_dominators): Reimplemented.
1127         (prune_bbs_to_update_dominators, root_of_dom_tree,
1128         determine_dominators_for_sons): New functions.
1129         * et-forest.c (et_root): New function.
1130         * et-forest.h (et_root): Declare.
1131         * Makefile.in (graphds.o): Add.
1132         (cfgloopanal.o): Add graphds.h dependency.
1133         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
1134         * basic-block.h (get_dominated_by, get_dominated_by_region,
1135         iterate_fix_dominators): Declaration changed.
1136         (recount_dominator): Renamed to ...
1137         (recompute_dominator): ... this.
1138         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
1139         (thread_through_all_blocks): Do not free dominance info.
1140
1141 2007-06-03  Andreas Schwab  <schwab@suse.de>
1142
1143         * config/m68k/m68k.c (override_options): Don't override
1144         REAL_MODE_FORMAT.
1145         * config/m68k/m68k-modes.def (SF, DF): Define to use
1146         motorola_single_format and motorola_double_format, resp.
1147         * real.c (motorola_single_format): Renamed from
1148         coldfire_single_format.
1149         (motorola_double_format): Renamed from coldfire_double_format.
1150         (encode_ieee_extended): Generate a proper canonical NaN image
1151         respecting canonical_nan_lsbs_set.
1152         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
1153         true.
1154         * real.h: Adjust declarations.
1155
1156 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1157
1158         PR target/32163
1159         * config/sh/sh.md (symGOT_load): Don't schedule insns when
1160         the symbol is generated with the stack protector.
1161
1162 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
1163
1164         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
1165         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
1166         "interrupt".
1167         * doc/extend.texi (interrupt): Mention m68k.
1168
1169 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
1170
1171         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
1172         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
1173         (ix86_expand_sse_pcmpestr): Do not check operands for
1174         "register_operand", when insn operand predicate is "register_operand".
1175         (ix86_expand_sse_pcmpistr): Ditto.
1176
1177 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1178             Uros Bizjak  <ubizjak@gmail.com>
1179
1180         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
1181         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
1182         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
1183         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
1184         * config/i386/constraints.md ("z"): New register constraint
1185         for members of SSE_FIRST_REG class.
1186         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
1187         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
1188         SSE_FIRST_REG class.
1189         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
1190         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
1191         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
1192         (IX86_BUILTIN_PCMPESTRM128): Likewise.
1193         (IX86_BUILTIN_PCMPESTRA128): Likewise.
1194         (IX86_BUILTIN_PCMPESTRC128): Likewise.
1195         (IX86_BUILTIN_PCMPESTRO128): Likewise.
1196         (IX86_BUILTIN_PCMPESTRS128): Likewise.
1197         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
1198         (IX86_BUILTIN_PCMPISTRI128): Likewise.
1199         (IX86_BUILTIN_PCMPISTRM128): Likewise.
1200         (IX86_BUILTIN_PCMPISTRA128): Likewise.
1201         (IX86_BUILTIN_PCMPISTRC128): Likewise.
1202         (IX86_BUILTIN_PCMPISTRO128): Likewise.
1203         (IX86_BUILTIN_PCMPISTRS128): Likewise.
1204         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
1205         (struct builtin_description): Change "flag" field to unsigned.
1206         (bdesc_pcmpestr): New builtin description table.
1207         (bdesc_pcmpistr): Likewise.
1208         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
1209         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
1210         Initialize pcmp[ei]str[im] insns for SSE4.2.
1211         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
1212         (ix86_expand_sse_pcmpistr): Likewise.
1213         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
1214         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
1215         (UNSPEC_PCMPISTR): Likewise.
1216         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
1217         (sse4_2_pcmpestri):New isns pattern.
1218         (sse4_2_pcmpestrm): Likewise.
1219         (sse4_2_pcmpestr_cconly): Likewise.
1220         (sse4_2_pcmpistr): New insn patern and splitter.
1221         (sse4_2_pcmpistri):New isns pattern.
1222         (sse4_2_pcmpistrm): Likewise.
1223         (sse4_2_pcmpistr_cconly): Likewise.
1224         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
1225         in SSE4.2.
1226
1227 2007-06-01  David Daney  <ddaney@avtrex.com>
1228
1229         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
1230         LOADGP_ABSOLUTE and not binds_local_p.
1231
1232 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
1233
1234         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
1235
1236 2007-06-01  Ian Lance Taylor  <iant@google.com>
1237
1238         * tree-vrp.c (compare_name_with_value): Always set
1239         used_strict_overflow if we get a result from the variable itself.
1240
1241 2007-06-01  Ian Lance Taylor  <iant@google.com>
1242
1243         PR rtl-optimization/31455
1244         * lower-subreg.c (find_decomposable_subregs): Don't decompose
1245         subregs which have a cast between modes which are not tieable.
1246
1247 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
1248
1249         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
1250         breaks after return statements.
1251
1252 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1253
1254         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
1255         only after no_new_pseudos.
1256
1257 2007-05-31  Eric Christopher  <echristo@apple.com>
1258
1259         * expr.c (convert_move): Assert that we don't have a BLKmode
1260         operand.
1261         (store_expr): Handle BLKmode moves by calling emit_block_move.
1262
1263 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
1264
1265         * c-typeck.c (build_indirect_ref): Include type in error message.
1266         (build_binary_op): Pass types to binary_op_error.
1267         * c-common.c (binary_op_error): Take two type arguments, print out
1268         types with error.
1269         * c-common.h (binary_op_error): Update prototype.
1270
1271 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1272
1273         * config/i386/i386.c: Correct coments on -mno-sse4.
1274
1275 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1276
1277         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
1278         (x86_64-*-*): Likewise.
1279         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
1280         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
1281         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
1282         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
1283         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
1284         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
1285         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
1286         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
1287         (OPTION_MASK_ISA_SSE4): Likewise.
1288         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
1289         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
1290         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
1291         (override_options): Support SSE4.2.
1292         (ix86_build_const_vector): Support SImode and DImode.
1293         (ix86_build_signbit_mask): Likewise.
1294         (ix86_expand_int_vcond): Support V2DImode.
1295         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
1296         (IX86_BUILTIN_CRC32HI): Likewise.
1297         (IX86_BUILTIN_CRC32SI): Likewise.
1298         (IX86_BUILTIN_CRC32DI): Likewise.
1299         (IX86_BUILTIN_PCMPGTQ): Likewise.
1300         (bdesc_crc32): Likewise.
1301         (bdesc_sse_3arg): Likewise.
1302         (ix86_expand_crc32): Likewise.
1303         (ix86_init_mmx_sse_builtins): Support SSE4.2.
1304         (ix86_expand_builtin): Likewise.
1305         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
1306         __SSE4_2__ for -msse4.2.
1307         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
1308         (CRC32MODE): Likewise.
1309         (crc32modesuffix): Likewise.
1310         (crc32modeconstraint): Likewise.
1311         (sse4_2_crc32<mode>): Likewise.
1312         (sse4_2_crc32di): Likewise.
1313         * config/i386/i386.opt (msse4.2): New for SSE4.2.
1314         (msse4): Likewise.
1315         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
1316         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
1317         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
1318         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
1319         (vcondu<mode>): Likewise.
1320         * doc/extend.texi: Document SSE4.2 built-in functions.
1321         * doc/invoke.texi: Document -msse4.2/-msse4.
1322
1323 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
1324
1325         PR tree-optimization/32160
1326         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
1327         variable as gimple reg.
1328         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
1329
1330 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
1331
1332         * gcc.c (main): Don't consider linker options when issuing the
1333         warning about a linker input file not being used.
1334
1335 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1336
1337         * tree-vrp.c (compare_names): Initialize sop.
1338
1339 2007-05-30  Dirk Mueller  <dmueller@suse.de>
1340
1341         * cgraphunit.c (cgraph_analyze_function): Remove
1342         computation of inline parameters.
1343
1344 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
1345
1346         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
1347
1348 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
1349
1350         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
1351         Add vx-common.h.  Include vxworks.h between vx-common.h and
1352         arm/vxworks.h.
1353         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
1354         redefining.
1355         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
1356         (TARGET_ASM_DESTRUCTOR): Likewise.
1357         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
1358         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
1359         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
1360         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
1361         (VXWORKS_ENDIAN_SPEC): Define.
1362         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
1363         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
1364         VXWORKS_* equivalents.
1365         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
1366         (ASM_FILE_START): Delete.
1367         (TARGET_VERSION): Reformat.
1368         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
1369         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
1370         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
1371         (FPBIT, DPBIT): Define.
1372         (fp-bit.c, dp-bit.c): New rules.
1373         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
1374         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
1375         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
1376         * config/arm/arm.h: Include vxworks-dummy.h.
1377         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
1378         Mark with ATTRIBUTE_UNUSED.
1379         (arm_override_options): Do not allow VxWorks RTP PIC to be used
1380         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
1381         make it incompatible with -msingle-pic-base.
1382         (arm_function_ok_for_sibcall): Return false for calls that might
1383         go through a VxWorks PIC PLT entry.
1384         (require_pic_register): New function, split out from...
1385         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
1386         for VxWorks RTPs.
1387         (arm_load_pic_register): Handle the VxWorks RTP initialization
1388         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
1389         (arm_emit_call_insn): New function.
1390         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
1391         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
1392         (pic_offset_arm): New pattern.
1393         (call, call_value): Use arm_emit_call_insn.
1394         (call_internal, call_value_internal): New expanders.
1395         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
1396         VxWorks unless __PIC__.
1397
1398 2007-05-30  Eric Christopher  <echristo@gmail.com>
1399
1400         * genrecog.c: Include regs.h in generated file.
1401         * genemit.c: Ditto. Fix up formatting.
1402         * config/mn10300/constraints.md: New.
1403         * config/mn10300/mn10300.md: Include.
1404         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
1405         Fix up for removed macro.
1406         * config/mn10300/predicates.md (call_address_operand):  Ditto.
1407         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
1408         (CONST_OK_FOR_I): Ditto.
1409         (CONST_OK_FOR_J): Ditto.
1410         (CONST_OK_FOR_K): Ditto.
1411         (CONST_OK_FOR_L): Ditto.
1412         (CONST_OK_FOR_M): Ditto.
1413         (CONST_OK_FOR_N): Ditto.
1414         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
1415         (OK_FOR_Q): Ditto.
1416         (OK_FOR_R): Ditto.
1417         (OK_FOR_T): Ditto.
1418         (EXTRA_CONSTRAINT): Ditto.
1419
1420 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
1421
1422         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
1423         Remove defines.
1424         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
1425         OPTION_MASK_ISA_64BIT.
1426         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
1427
1428 2007-05-30  Richard Guenther  <rguenther@suse.de>
1429
1430         PR middle-end/32152
1431         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
1432         types for comparison.
1433         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
1434         with original typed arguments.
1435         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
1436
1437 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
1438
1439         PR tree-optimization/31769
1440         * except.c (duplicate_eh_regions): Clear prev_try if
1441         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
1442
1443 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
1444
1445         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
1446         * tree-ssa-sink.c (statement_sink_location): Return basic block and
1447         bsi of the location where statements should be inserted.
1448         (sink_code_in_bb): Take bsi from statement_sink_location.
1449         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
1450         instead of bsi_start.
1451         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
1452         bsi_insert_after.
1453         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
1454         (bsi_move_before): Document inconsistency with bsi_move_after.
1455         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
1456
1457 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
1458
1459         * config/i386/i386.h (TARGET_ABM): New define.
1460         (TARGET_POPCNT): Ditto.
1461         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
1462         New temporary defines to redefine from OPTION_ISA_* defines.
1463         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
1464         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
1465         (ix86_isa_flags): New extern int declaration.
1466         (TARGET_SUBTARGET_DEFAULT): New define.
1467         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
1468         (TARGET_SUBTARGET32_DEFAULT): Ditto.
1469         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
1470         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
1471         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
1472         * config/i386/darwin.h: Change TARGET_64BIT define to
1473         OPTION_ISA_64BIT.
1474
1475         * config/i386/i386.opt (m3dnowa): Define as undocumented option
1476         using existing "ix86_isa_flags" varible.
1477         (m32, m64): Use existing "ix86_isa_flags" variable.
1478         (mmmx, m3dnow): Ditto.
1479         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
1480         (mabm): Define as non-negative option using "x86_abm" variable.
1481         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
1482
1483         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
1484         Rewrite feature test bitmap.
1485         (ix86_isa_flags): New initialized global int varible.
1486         (ix86_isa_flags_explicit): New static int variable.
1487         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
1488         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
1489         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
1490         target_flags_explicit.
1491         (override_options): Remove "target_enable" and "target_disable" fields
1492         from "struct ptt". Update processor_target_table accordingly. Remove
1493         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
1494         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
1495         "target_flags" and "ix86_isa_flags_explicit" instead of
1496         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
1497         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
1498         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
1499         to true when either of PTA_POPCNT or PTA_ABM is set in
1500         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
1501         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
1502         processor_alias_table flags entry.  Remove handling of
1503         "target_enable" and "target_disable" fields of processor_target_table.
1504         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
1505         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
1506         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
1507         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
1508         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
1509         "target_flags".
1510         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
1511
1512 2007-05-29  David Daney  <ddaney@avtrex.com>
1513
1514         PR gcc/31975
1515         * config/mips/mips.c (mips_output_mi_thunk): Emit
1516         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
1517
1518 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
1519         * config/i386/i386.c (ix86_function_regparm): Added checking of
1520         ix86_force_align_arg_pointer to determine the number of
1521         register parameters.
1522
1523 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
1524
1525         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
1526         (SET_DR_MISALIGNMENT): New.
1527         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
1528         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
1529         Use SET_DR_MISALIGNMENT.
1530         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
1531         pointer.
1532         * tree-data-ref.c (create_data_ref, compute_all_dependences,
1533         find_loop_nest): Export.
1534         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
1535         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
1536         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
1537         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
1538         New macros.
1539         (struct mem_ref): Add field reuse_distance.
1540         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
1541         Initialize reuse_distance field.
1542         (issue_prefetch_ref): Select temporality of prefetch according to
1543         reuse_distance.
1544         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
1545         self_reuse_distance, determine_loop_nest_reuse): New functions.
1546         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
1547         (tree_ssa_prefetch_arrays): Dump L2 cache size.
1548         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
1549         dependency.
1550
1551 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
1552
1553         * tree-ssa-alias.c: Add aliasing overview.
1554
1555 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
1556             Danny Smith  <dannysmith@users.sourceforge.net>
1557
1558         PR target/29498
1559         * config/i386/t-crtfm: Compile crtfastmath.o with
1560         -minline-all-stringops.
1561         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
1562         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
1563
1564 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1565
1566         * doc/md.texi: Document constraints on HP PA-RISC.
1567
1568         * pa/constraints.md: New file.
1569         * pa.md: Include constraints.md.
1570         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
1571         (integer_store_memory_operand, ldil_cint_p): New functions.
1572         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
1573         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1574         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
1575         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
1576         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
1577
1578 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
1579
1580         PR c/31339
1581         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
1582         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
1583         case POSTDECREMENT_EXPR>): Return the error_mark_node
1584         if either the real or imaginary parts would an
1585         error_mark_node.
1586
1587 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
1588
1589         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
1590         name when we remove it from a call.
1591
1592 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
1593
1594         * targhooks.c (default_narrow_bitfield): Remove.
1595         * targhooks.h: Remove the prototype for
1596         default_narrow_bitfield.
1597
1598         * langhooks-def.h: Remove the prototype for
1599         hook_get_alias_set_0.
1600         * langhooks.c (hook_get_alias_set_0): Remove.
1601
1602         * global.c (EXECUTE_IF_CONFLICT): Remove.
1603
1604 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1605
1606         PR tree-opt/32100
1607         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
1608         return true when truth_value_p is true and the type
1609         is of signed:1.
1610
1611 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
1612
1613         * doc/install.texi (Prerequisites): We no longer require Autoconf
1614         2.13 for the top-level.
1615
1616 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
1617
1618         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
1619         memory access via x86_expand_vector_move_misalign() only for
1620         TImode values on 32-bit targets.
1621
1622 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
1623
1624         * matrix-reorg.c: New file. Implement matrix flattening and
1625         transposing optimization.
1626         * tree-pass.h: Add matrix reorg pass.
1627         * common.opt: Add fipa-mreorg flag.
1628         * Makefile.in: Add matrix-reorg.c.
1629         * passes.c: Add matrix reorg pass.
1630         * varpool.c (add_new_static_var): New function.
1631         * cgraph.h (add_new_static_var): Declare.
1632
1633 2007-05-27  Eric Christopher  <echristo@apple.com>
1634
1635         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
1636         sp_offset depending on stack size. Save r12 depending
1637         on registers we're saving later.
1638         (rs6000_emit_epilogue): Update sp_offset depending only
1639         on stack size.
1640
1641 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
1642
1643         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
1644         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
1645         * ifcvt.c (if_convert): Ditto.
1646         * tree-ssa-threadupdate.c (thread_block): Ditto.
1647         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
1648         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
1649         verify_loop_closed_ssa): Check number_of_loops instead of
1650         current_loops.
1651         * predict.c (tree_estimate_probability): Ditto.
1652         * tree-if-conv.c (main_tree_if_conversion): Ditto.
1653         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1654         * modulo-sched.c (sms_schedule): Ditto.
1655         * tree-scalar-evolution.c (scev_const_prop): Ditto.
1656         (scev_finalize): Do not do anything if scev analysis was not
1657         initialized.
1658         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
1659         current_loops == NULL.
1660         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
1661         * loop-init.c (loop_optimizer_init): Do not free current_loops when
1662         there are no loops.
1663         (loop_optimizer_finalize): Assert that loops were analyzed.
1664         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
1665         rtl_doloop): Check number_of_loops instead of current_loops.
1666         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
1667         current_loops == NULL.
1668         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
1669         gate_tree_vectorize tree_linear_transform, check_data_deps,
1670         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
1671         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
1672         Check number_of_loops instead of current_loops.
1673         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
1674         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
1675         free loops if available.
1676         (execute_pre): Do not pass do_fre to fini_pre.
1677
1678 2007-05-27  Tobias Burnus  <burnus@net-b.de>
1679
1680         PR middle-end/32083
1681         * real.c (mpfr_from_real): Fix sign of -Inf.
1682
1683 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1684
1685         * tree-vect-transform.c (vectorizable_conversion): Initialize
1686         tree_code variables to ERROR_MARK.
1687         (vectorizable_type_demotion): Likewise.
1688         (vectorizable_type_promotion): Likewise.
1689
1690 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
1691
1692         PR target/32065
1693         * config/i386/i386.md (movti): Handle push operands via
1694         ix86_expand_push().
1695
1696 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
1697
1698         * basic-block.h: Remove the prototype for merge_seq_blocks.
1699         * cfgcleanup.c (merge_seq_blocks): Remove.
1700
1701         * tree-flow.h: Remove the prototype for is_aliased_with.
1702         * tree-ssa-alias.c (is_aliased_with): Remove.
1703
1704 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1705
1706         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
1707
1708         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
1709
1710         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
1711         ix86_expand_sse4_unpack if SSE4.1 is enabled.
1712         (vec_unpacks_hi_v16qi): Likewise.
1713         (vec_unpacku_lo_v16qi): Likewise.
1714         (vec_unpacks_lo_v16qi): Likewise.
1715         (vec_unpacku_hi_v8hi): Likewise.
1716         (vec_unpacks_hi_v8hi): Likewise.
1717         (vec_unpacku_lo_v8hi): Likewise.
1718         (vec_unpacks_lo_v8hi): Likewise.
1719         (vec_unpacku_hi_v4si): Likewise.
1720         (vec_unpacks_hi_v4si): Likewise.
1721         (vec_unpacku_lo_v4si): Likewise.
1722         (vec_unpacks_lo_v4si): Likewise.
1723
1724 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
1725
1726         * c-typeck.c, config/arm/arm.c, config/darwin.c,
1727         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
1728         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
1729         follow spelling conventions in various
1730         warning/error/diagnostic messages.
1731
1732         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
1733         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
1734         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
1735         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
1736         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
1737         * doc/tm.texi: Follow spelling conventions.
1738
1739 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1740
1741         PR tree-opt/32090
1742         * tree-ssa-forwprop.c
1743         (forward_propagate_addr_into_variable_array_index): Remove
1744         the lhs argument.  Use the type of def_rhs instead of lhs.
1745         (forward_propagate_addr_expr_1): Update use of
1746         forward_propagate_addr_into_variable_array_index.
1747
1748 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
1749             Nigel Stephens  <nigel@mips.com>
1750
1751         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
1752         function attributes, "far" being an alias for "long_call".
1753         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
1754         (mips_near_type_p, mips_far_type_p): New.
1755         (mips_comp_type_attributes): New function to check that attributes
1756         attached to a function type are compatible.
1757         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
1758         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
1759         to the target function of the thunk.
1760         (mips_encode_section_info): Check for "near" and "far" function
1761         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
1762
1763         * config/mips/predicates.md (const_call_insn_operand): Test only
1764         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
1765
1766         * doc/extend.texi (Function Attributes): Document MIPS "near" and
1767         "far" attributes.
1768
1769         * testsuite/gcc.target/mips/near-far-1.c:  New test case.
1770         * testsuite/gcc.target/mips/near-far-2.c:  New test case.
1771         * testsuite/gcc.target/mips/near-far-3.c:  New test case.
1772         * testsuite/gcc.target/mips/near-far-4.c:  New test case.
1773
1774 2007-05-25  Eric Christopher  <echristo@apple.com>
1775
1776         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
1777         to x86-darwin configurations.
1778         * config/i386/t-darwin: Add softfp support.
1779         * config/i386/t-darwin64: Ditto.
1780         * config/i386/sfp-machine.h: If mach then don't use
1781         aliasing, emit a stub to call.
1782
1783 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
1784
1785         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
1786         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
1787         tree-predcom.c, tree-ssa-alias-warnings.c,
1788         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
1789         comment typos.  Follow spelling conventions.
1790         * doc/cpp.texi, doc/invoke.texi: Fix typos.
1791
1792 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
1793
1794         PR target/32065
1795         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
1796         constants into memory.  Expand unaligned memory references for
1797         SSE modes via x86_expand_vector_move_misalign() function.
1798
1799 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
1800
1801         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
1802         "memory" attribute for "sseishft" type insn without operands[2].
1803
1804 2007-05-25  Dirk Mueller  <dmueller@suse.de>
1805             Marcus Meissner <meissner@suse.de>
1806
1807         * doc/extend.texi (alloc_size): New attribute.
1808         * c-common.c (handle_alloc_size_attribute): New.
1809         * tree-object-size.c (alloc_object_size): Use alloc_size
1810         attribute, if available.
1811
1812 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1813
1814         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
1815         with MASK_SSE2.
1816         (__builtin_ia32_vec_ext_v2di): Likewise.
1817         (__builtin_ia32_vec_ext_v4si): Likewise.
1818         (__builtin_ia32_vec_ext_v8hi): Likewise.
1819         (__builtin_ia32_vec_ext_v16qi): Likewise.
1820         (__builtin_ia32_vec_set_v8hi): Likewise.
1821
1822 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1823
1824         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
1825
1826 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
1827
1828         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
1829         (arm_is_longcall_p): Rename to...
1830         (arm_is_long_call_p): ...this.  Take a single tree argument and
1831         return a bool.
1832         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
1833         (CUMULATIVE_ARGS): Remove call_cookie.
1834         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
1835         (ENCODED_LONG_CALL_ATTR_P): Delete.
1836         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
1837         LONG_CALL_FLAG_CHAR cases.
1838         (ARM_DECLARE_FUNCTION_SIZE): Delete.
1839         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
1840         ARM_DECLARE_FUNCTION_SIZE.
1841         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
1842         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
1843         (arm_encode_call_attribute, current_file_function_operand): Delete.
1844         (arm_function_in_section_p): New function.
1845         (arm_is_longcall_p): Rename to...
1846         (arm_is_long_call_p): ...this.  Take the target function as a single
1847         argument and return a bool.  Do not rely on call cookies.  Check
1848         whether the target symbol is in the same section as the current
1849         function, not just the same compilation unit.
1850         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
1851         (arm_encode_section_info): Don't encode a call type.
1852         * config/arm/arm.md (call, call_value): Update calls to
1853         arm_is_long(_)call_p.  Simplify logic.
1854         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
1855         Update calls to arm_is_long(_)call_p.
1856
1857 2007-05-25  Richard Guenther  <rguenther@suse.de>
1858
1859         PR tree-optimization/31982
1860         * tree-ssa-forwprop.c
1861         (forward_propagate_addr_into_variable_array_index): Handle arrays
1862         with element size one.
1863
1864 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1865
1866         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
1867         (umulsi3_highpart): Likewise.
1868
1869 2007-05-24  Ian Lance Taylor  <iant@google.com>
1870
1871         PR rtl-optimization/32069
1872         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
1873         is NULL.
1874
1875 2007-05-24  Ollie Wild  <aaw@google.com>
1876
1877         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
1878         description.
1879
1880 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
1881
1882         * postreload-gcse.c (reg_changed_after_insn_p): New function.
1883         (oprs_unchanged_p): Use it to check all registers in a REG.
1884         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
1885         (reg_set_between_after_reload_p): Delete.
1886         (reg_used_between_after_reload_p): Likewise.
1887         (reg_set_or_used_since_bb_start): Likewise.
1888         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
1889         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
1890         Use reg_set_between_p instead of reg_set_between_after_reload_p.
1891         * rtlanal.c (reg_set_p): Check whether REG overlaps
1892         regs_invalidated_by_call, rather than just checking the
1893         membership of REGNO (REG).
1894
1895 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
1896
1897         * doc/passes.texi: Document predictive commoning.
1898         * doc/invoke.texi (-fpredictive-commoning): Document.
1899         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
1900         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
1901         adding indices to the generated name.
1902         (schedule_sm): Pass 0 to get_lsm_tmp_name.
1903         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
1904         * tree-pretty-print.c (op_symbol_1): Renamed to ...
1905         (op_symbol_code): ... and exported.
1906         (dump_omp_clause, op_symbol): Use op_symbol_code
1907         instead of op_symbol_1.
1908         * tree-pass.h (pass_predcom): Declare.
1909         * timevar.def (TV_PREDCOM): New timevar.
1910         * tree-ssa-loop.c (run_tree_predictive_commoning,
1911         gate_tree_predictive_commoning, pass_predcom): New.
1912         * tree-data-ref.c (find_data_references_in_loop): Find the
1913         references in dominance order.
1914         (canonicalize_base_object_address): Ensure that the result has
1915         pointer type.
1916         (dr_analyze_innermost): Export.
1917         (create_data_ref): Code to fail for references with invariant
1918         address moved ...
1919         (find_data_references_in_stmt): ... here.
1920         * tree-data-ref.h (dr_analyze_innermost): Declare.
1921         * tree-affine.c: Include tree-gimple.h and hashtab.h.
1922         (aff_combination_find_elt, name_expansion_hash,
1923         name_expansion_eq, tree_to_aff_combination_expand,
1924         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
1925         New functions.
1926         * tree-affine.h (aff_combination_constant_multiple_p,
1927         tree_to_aff_combination_expand): Declare.
1928         * tree-predcom.c: New file.
1929         * common.opt (fpredictive-commoning): New option.
1930         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
1931         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
1932         * Makefile.in (tree-predcom.o): Add.
1933         (tree-affine.o): Add TREE_GIMPLE_H dependency.
1934         * passes.c (init_optimization_passes):  Add dceloop after
1935         copy propagation in loop optimizer.  Add predictive commoning
1936         to loop optimizer passes.
1937
1938 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1939
1940         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
1941         default hook.
1942
1943 2007-05-24  Jan Hubicka  <jh@suse.cz>
1944
1945         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
1946         statistics.
1947         (genheader): Include statistics.h.
1948
1949         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
1950         notes are gone.
1951         * print-rtl.c (flag_dump_unnumbered): Update comments.
1952         (print_rtl): Fix my previous change.
1953         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
1954         specific data.
1955
1956 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
1957
1958         PR middle-end/32018
1959         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
1960         set_loop_copy.
1961         (thread_through_all_blocks): Call initialize_original_copy_tables
1962         and free_original_copy_tables.
1963         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
1964         Use set_loop_copy.
1965         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
1966         * cfghooks.c (duplicate_block): Use get_loop_copy.
1967         * cfg.c: Include cfgloop.h.
1968         (loop_copy): New hash table.
1969         (initialize_original_copy_tables): Initialize loop_copy table.
1970         (free_original_copy_tables): Free loop_copy table.
1971         (copy_original_table_clear, copy_original_table_set,
1972         set_loop_copy, get_loop_copy): New functions.
1973         (set_bb_original, set_bb_copy): Use copy_original_table_set.
1974         * cfgloop.h (struct loop): Remove copy field.
1975         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
1976         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
1977
1978 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1979
1980         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
1981         -msse/-msse2/-msse3.
1982
1983 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1984
1985         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
1986         __builtin_ia32_vec_set_v2di with MASK_64BIT.
1987
1988 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1989
1990         PR target/27067
1991         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
1992         * targhooks.h (default_mangle_decl_assembler_name): Declare
1993         default hook.
1994         * targhooks.c (default_mangle_decl_assembler_name): Define
1995         default hook.
1996         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
1997         default hook.
1998         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
1999         * langhooks.c (lhd_set_decl_assembler_name): Call
2000         targetm.mangle_decl_assembler_name for names with global scope.
2001
2002         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
2003         default.
2004         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
2005         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
2006         Declare.
2007         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2008         New. Factored out of i386_pe_encode_section_info.
2009         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
2010         Move check for prior decoration of stdcall
2011         symbols to i386_pe_encode_section_info.
2012         (i386_pe_encode_section_info): Adjust call to
2013         gen_stdcall_or_fastcall_suffix.  Use
2014         i386_pe_maybe_mangle_decl_assembler_name, if needed.
2015         (i386_pe_mangle_decl_assembler_name): New. Wrap
2016         i386_pe_maybe_mangle_decl_assembler_name.
2017
2018 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
2019
2020         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
2021         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
2022         * langhooks.c (get_signed_or_unsigned_type): Don't check for
2023         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
2024         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
2025         TYPE_UNSIGNED.
2026
2027 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
2028             Nigel Stephens  <nigel@mips.com>
2029             Richard Sandiford  <richard@codesourcery.com>
2030
2031         Fix up MIPS16 hard float and add support for complex.
2032
2033         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
2034         (TARGET_SOFT_FLOAT_ABI): New.
2035         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
2036         __mips_soft_float to reflect the ABI in use, not whether the
2037         FPU is directly accessible (e.g., in MIPS16 mode).
2038         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
2039         (UNITS_PER_FPVALUE): Likewise.
2040
2041         * config/mips/mips.c (mips_expand_call): Remove redundant
2042         TARGET_MIPS16 check.
2043         (mips_arg_regno): New.
2044         (function_arg_advance): When setting bits in cum->fp_code for
2045         MIPS16, don't subtract 1 from cum->arg_number, since it is now
2046         zero-based.
2047         (function_arg): Use mips_arg_regno.
2048         (mips_return_mode_in_fpr_p): New.
2049         (mips16_call_stub_mode_suffix): New.
2050         (mips16_cfun_returns_in_fpr_p): New.
2051         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
2052         (mips_output_function_prologue): Test mips16_hard_float, not
2053         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
2054         (mips_expand_epilogue): Call MIPS16 helper routines to copy
2055         return value into a floating-point register.
2056         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
2057         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
2058         (mips16_fp_args): Handle MIPS32r2 ISA which supports
2059         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
2060         word of double arguments from or to the high bits of 64-bit
2061         floating point registers.
2062         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
2063         (mips16_fpret_double): New helper function.
2064         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
2065         support for complex modes.  Fill in DECL_RESULT for stubdecl.
2066         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
2067
2068         * config/mips/mips16.S
2069         (RET, ARG1, ARG2): New.
2070         (MERGE_GPRf, MERGE_GPRt): New.
2071         (DELAYt, DELAYf): New.
2072         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
2073         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
2074         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
2075         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
2076         (SFOP): Renamed to...
2077         (OPSF3): This, and macro-ified.  Updated all uses.
2078         (SFOP2): Renamed to...
2079         (OPSF2): This, and macro-ified.  Updated all uses.
2080         (SFCMP): Renamed to...
2081         (CMPSF): This, and macro-ified.  Updated all uses.
2082         (SFREVCMP): Renamed to...
2083         (REVCMPSF): This, and macro-ified.  Updated all uses.
2084         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
2085         (LDDBL1, LDDBL2, RETDBL): Deleted.
2086         (DFOP): Renamed to...
2087         (OPDF3): This, and macro-ified.  Updated all uses.
2088         (DFOP2): Renamed to...
2089         (OPDF2): This, and macro-ified.  Updated all uses.
2090         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
2091         (DFCMP): Renamed to...
2092         (CMPDF): This, and macro-ified.  Updated all uses.
2093         (DFREVCMP): Renamed to...
2094         (REVCMPDF): This, and macro-ified.  Updated all uses.
2095         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
2096         (RET_FUNCTION): New.
2097         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
2098         (__mips16_ret_sc, __mips16_ret_dc): New.
2099         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
2100         STUB_ARGS_6, STUB_ARGS_10): New.
2101         (CALL_STUB_NO_RET): New.
2102         (__mips16_call_stub_1): Macro-ified.
2103         (__mips16_call_stub_5): Macro-ified.
2104         (__mips16_call_stub_2): Macro-ified.
2105         (__mips16_call_stub_6): Macro-ified.
2106         (__mips16_call_stub_9): Macro-ified.
2107         (__mips16_call_stub_10): Macro-ified.
2108         (CALL_STUB_RET): New.
2109         (__mips16_call_stub_sf_0): Macro-ified.
2110         (__mips16_call_stub_sf_1): Macro-ified.
2111         (__mips16_call_stub_sf_5): Macro-ified.
2112         (__mips16_call_stub_sf_2): Macro-ified.
2113         (__mips16_call_stub_sf_6): Macro-ified.
2114         (__mips16_call_stub_sf_9): Macro-ified.
2115         (__mips16_call_stub_sf_10): Macro-ified.
2116         (__mips16_call_stub_df_0): Macro-ified.
2117         (__mips16_call_stub_df_1): Macro-ified.
2118         (__mips16_call_stub_df_5): Macro-ified.
2119         (__mips16_call_stub_df_2): Macro-ified.
2120         (__mips16_call_stub_df_6): Macro-ified.
2121         (__mips16_call_stub_df_9): Macro-ified.
2122         (__mips16_call_stub_df_10): Macro-ified.
2123         (__mips16_call_stub_sc_0): New.
2124         (__mips16_call_stub_sc_1): New.
2125         (__mips16_call_stub_sc_5): New.
2126         (__mips16_call_stub_sc_2): New.
2127         (__mips16_call_stub_sc_6): New.
2128         (__mips16_call_stub_sc_9): New.
2129         (__mips16_call_stub_sc_10): New.
2130         (__mips16_call_stub_dc_0): New.
2131         (__mips16_call_stub_dc_1): New.
2132         (__mips16_call_stub_dc_5): New.
2133         (__mips16_call_stub_dc_2): New.
2134         (__mips16_call_stub_dc_6): New.
2135         (__mips16_call_stub_dc_9): New.
2136         (__mips16_call_stub_dc_10): New.
2137
2138         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
2139         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
2140         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
2141
2142 2007-05-23  Ian Lance Taylor  <iant@google.com>
2143
2144         * doc/invoke.texi (Invoking GCC): Document that the order of the
2145         -l option matters.
2146
2147 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
2148
2149         PR target/30987
2150         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
2151         * config/score/predicate.md (const_pow2, const_npow2): Remove.
2152         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
2153         undef.
2154
2155         PR target/30474
2156         * config/score/score.c (score_print_operand): Make sure that only
2157         lower bits are used.
2158
2159 2007-05-22  Ian Lance Taylor  <iant@google.com>
2160
2161         * tree-vrp.c (avoid_overflow_infinity): New static function,
2162         broken out of set_value_range_to_value.
2163         (set_value_range_to_value): Call avoid_overflow_infinity.
2164         (extract_range_from_assert): Likewise.
2165
2166 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2167
2168         PR middle-end/31095
2169          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
2170         change the type before looking for a COMPOUND_EXPR.
2171
2172 2007-05-22  Ian Lance Taylor  <iant@google.com>
2173
2174         * lower-subreg.c (decompose_multiword_subregs): If we change an
2175         insn, call remove_retval_note on it.
2176
2177 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
2178
2179         * regs.h (end_hard_regno): New function.
2180         (END_HARD_REGNO, END_REGNO): New macros.
2181         (add_to_hard_reg_set): New function.
2182         (remove_from_hard_reg_set): Likewise.
2183         (in_hard_reg_set_p): Likewise.
2184         (overlaps_hard_reg_set_p): Likewise.
2185         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
2186         (note_btr_set): Use END_HARD_REGNO.
2187         * caller-save.c (setup_save_areas): Use end_hard_regno.
2188         (mark_set_regs): Use END_HARD_REGNO.
2189         (add_stored_regs): Use end_hard_regno.
2190         (mark_referenced_regs): Use add_to_hard_reg_set.
2191         * combine.c (update_table_tick): Use END_REGNO.
2192         (record_value_for_reg): Likewise.
2193         (record_dead_and_set_regs): Likewise.
2194         (get_last_value_validate): Likewise.
2195         (use_crosses_set_p): Likewise.
2196         (reg_dead_at_p_1): Likewise.
2197         (reg_dead_at_p): Likewise.
2198         (mark_used_regs_combine): Use add_to_hard_reg_set.
2199         (move_deaths): Use END_HARD_REGNO.
2200         (reg_bitfield_target_p): Use end_hard_regno.
2201         (distribute_notes): Use END_HARD_REGNO.
2202         * cse.c (mention_regs): Use END_REGNO.
2203         (insert): Use add_to_hard_reg_set.
2204         (invalidate): Use END_HARD_REGNO.
2205         (invalidate_for_call): Likewise.
2206         (exp_equiv_p): Use END_REGNO.
2207         (cse_insn): Likewise.
2208         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
2209         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
2210         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
2211         * function.c (keep_stack_depressed): Use end_hard_regno.
2212         * global.c (global_alloc): Use end_hard_regno.
2213         (global_conflicts): Use add_to_hard_reg_set instead of
2214         mark_reg_live_nc.
2215         (find_reg): Likewise.
2216         (mark_reg_store): Likewise.
2217         (mark_reg_conflicts): Likewise.
2218         (mark_reg_death): Use remove_from_hard_reg_set.
2219         (mark_reg_live_nc): Delete.
2220         (set_preference): Use end_hard_regno.
2221         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
2222         remove_from_hard_reg_set.
2223         (post_mark_life): Use add_to_hard_reg_set.
2224         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
2225         (reg_becomes_live): Use add_to_hard_reg_set.
2226         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
2227         (peep2_find_free_register): Use add_to_hard_reg_set.
2228         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
2229         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
2230         * regrename.c (note_sets): Use add_to_hard_reg_set.
2231         (clear_dead_regs): Use remove_from_hard_reg_set.
2232         (regrename_optimize): Use add_to_hard_reg_set.
2233         (find_oldest_value_reg): Use in_hard_reg_set_p.
2234         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
2235         (hard_reg_set_here_p): Use end_hard_regno.
2236         (decompose): Likewise.
2237         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
2238         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
2239         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
2240         (mark_home_live): Use end_hard_regno.
2241         (spill_hard_reg): Likewise.
2242         (clear_reload_reg_in_use): Likewise.
2243         * reorg.c (delete_prior_computation): Use END_REGNO.
2244         * resource.c (update_live_status): Use END_HARD_REGNO.
2245         (mark_referenced_resources): Use add_to_hard_reg_set.
2246         (mark_set_resources): Likewise.
2247         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
2248         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
2249         (reg_overlap_mentioned_p): Likewise.
2250         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
2251         (covers_regno_no_parallel_p): Use END_REGNO.
2252         (find_regno_note): Likewise.
2253         (find_reg_fusage): Use END_HARD_REGNO.
2254         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
2255         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
2256
2257 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
2258
2259         * mode-switching.c (reg_dies): Change type of second argument to
2260         "HARD_REG_SET *".
2261         (optimize_mode_switching): Update accordingly.
2262
2263 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
2264
2265         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
2266         in favor of...
2267         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
2268         (hard_reg_set_empty_p): ...these new functions.
2269         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
2270         GO_IF_HARD_REG_SUBSET.
2271         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
2272         instead of GO_IF_HARD_REG_EQUAL.
2273         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
2274         instead of GO_IF_HARD_REG_EQUAL.
2275         * global.c (find_reg): Use hard_reg_set_empty_p instead of
2276         GO_IF_HARD_REG_SUBSET.
2277         (modify_reg_pav): Use hard_reg_set_empty_p instead of
2278         GO_IF_HARD_REG_EQUAL.
2279         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
2280         of GO_IF_HARD_REG_SUBSET.
2281         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
2282         instead of GO_IF_HARD_REG_EQUAL.
2283         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
2284         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
2285         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
2286         of GO_IF_HARD_REG_SUBSET,
2287         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
2288         GO_IF_HARD_REG_SUBSET.
2289         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
2290         instead of GO_IF_HARD_REG_EQUAL.
2291         * config/sh/sh.c (push_regs, calc_live_regs): Use
2292         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
2293         (hard_regs_intersect_p): Delete.
2294
2295 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
2296
2297         * doc/sourcebuild.texi (Test Directives) Add dg-message.
2298
2299 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2300             Richard Henderson  <rth@redhat.com>
2301
2302         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
2303         extra_headers.
2304         (x86_64-*-*): Likewise.
2305
2306         * i386/i386-modes.def (V2QI): New.
2307
2308         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
2309         SSE4A.
2310         (override_options): Support SSE4.1.
2311         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
2312         (IX86_BUILTIN_BLENDPS): Likewise.
2313         (IX86_BUILTIN_BLENDVPD): Likewise.
2314         (IX86_BUILTIN_BLENDVPS): Likewise.
2315         (IX86_BUILTIN_PBLENDVB128): Likewise.
2316         (IX86_BUILTIN_PBLENDW128): Likewise.
2317         (IX86_BUILTIN_DPPD): Likewise.
2318         (IX86_BUILTIN_DPPS): Likewise.
2319         (IX86_BUILTIN_INSERTPS128): Likewise.
2320         (IX86_BUILTIN_MOVNTDQA): Likewise.
2321         (IX86_BUILTIN_MPSADBW128): Likewise.
2322         (IX86_BUILTIN_PACKUSDW128): Likewise.
2323         (IX86_BUILTIN_PCMPEQQ): Likewise.
2324         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
2325         (IX86_BUILTIN_PMAXSB128): Likewise.
2326         (IX86_BUILTIN_PMAXSD128): Likewise.
2327         (IX86_BUILTIN_PMAXUD128): Likewise.
2328         (IX86_BUILTIN_PMAXUW128): Likewise.
2329         (IX86_BUILTIN_PMINSB128): Likewise.
2330         (IX86_BUILTIN_PMINSD128): Likewise.
2331         (IX86_BUILTIN_PMINUD128): Likewise.
2332         (IX86_BUILTIN_PMINUW128): Likewise.
2333         (IX86_BUILTIN_PMOVSXBW128): Likewise.
2334         (IX86_BUILTIN_PMOVSXBD128): Likewise.
2335         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
2336         (IX86_BUILTIN_PMOVSXWD128): Likewise.
2337         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
2338         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
2339         (IX86_BUILTIN_PMOVZXBW128): Likewise.
2340         (IX86_BUILTIN_PMOVZXBD128): Likewise.
2341         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
2342         (IX86_BUILTIN_PMOVZXWD128): Likewise.
2343         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
2344         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
2345         (IX86_BUILTIN_PMULDQ128): Likewise.
2346         (IX86_BUILTIN_PMULLD128): Likewise.
2347         (IX86_BUILTIN_ROUNDPD): Likewise.
2348         (IX86_BUILTIN_ROUNDPS): Likewise.
2349         (IX86_BUILTIN_ROUNDSD): Likewise.
2350         (IX86_BUILTIN_ROUNDSS): Likewise.
2351         (IX86_BUILTIN_PTESTZ): Likewise.
2352         (IX86_BUILTIN_PTESTC): Likewise.
2353         (IX86_BUILTIN_PTESTNZC): Likewise.
2354         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
2355         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
2356         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
2357         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
2358         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
2359         (bdesc_ptest): New.
2360         (bdesc_sse_3arg): Likewise.
2361         (bdesc_2arg): Likewise.
2362         (bdesc_1arg): Likewise.
2363         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
2364         with 3 args.
2365         (ix86_expand_sse_4_operands_builtin): New.
2366         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
2367         smaller than 8 bits as the 2nd arg.
2368         (ix86_expand_sse_ptest): New.
2369         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
2370         (ix86_expand_vector_set): Support SSE4.1.
2371         (ix86_expand_vector_extract): Likewise.
2372
2373         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
2374         __SSE4_1__ for -msse4.1.
2375
2376         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
2377         (UNSPEC_INSERTPS): Likewise.
2378         (UNSPEC_DP): Likewise.
2379         (UNSPEC_MOVNTDQA): Likewise.
2380         (UNSPEC_MPSADBW): Likewise.
2381         (UNSPEC_PHMINPOSUW): Likewise.
2382         (UNSPEC_PTEST): Likewise.
2383         (UNSPEC_ROUNDP): Likewise.
2384         (UNSPEC_ROUNDS): Likewise.
2385
2386         * config/i386/i386.opt (msse4.1): New for SSE4.1.
2387
2388         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
2389         (const_pow2_1_to_32768_operand): Likewise.
2390
2391         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
2392         file.
2393
2394         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
2395         SSE4.1.
2396         (sse4_1_insertps): Likewise.
2397         (*sse4_1_extractps): Likewise.
2398         (sse4_1_ptest): Likewise.
2399         (sse4_1_mulv2siv2di3): Likewise.
2400         (*sse4_1_mulv4si3): Likewise.
2401         (*sse4_1_smax<mode>3): Likewise.
2402         (*sse4_1_umax<mode>3): Likewise.
2403         (*sse4_1_smin<mode>3): Likewise.
2404         (*sse4_1_umin<mode>3): Likewise.
2405         (sse4_1_eqv2di3): Likewise.
2406         (*sse4_1_pinsrb): Likewise.
2407         (*sse4_1_pinsrd): Likewise.
2408         (*sse4_1_pinsrq): Likewise.
2409         (*sse4_1_pextrb): Likewise.
2410         (*sse4_1_pextrb_memory): Likewise.
2411         (*sse4_1_pextrw_memory): Likewise.
2412         (*sse4_1_pextrq): Likewise.
2413         (sse4_1_blendpd): Likewise.
2414         (sse4_1_blendps): Likewise.
2415         (sse4_1_blendvpd): Likewise.
2416         (sse4_1_blendvps): Likewise.
2417         (sse4_1_dppd): Likewise.
2418         (sse4_1_dpps): Likewise.
2419         (sse4_1_movntdqa): Likewise.
2420         (sse4_1_mpsadbw): Likewise.
2421         (sse4_1_packusdw): Likewise.
2422         (sse4_1_pblendvb): Likewise.
2423         (sse4_1_pblendw): Likewise.
2424         (sse4_1_phminposuw): Likewise.
2425         (sse4_1_extendv8qiv8hi2): Likewise.
2426         (*sse4_1_extendv8qiv8hi2): Likewise.
2427         (sse4_1_extendv4qiv4si2): Likewise.
2428         (*sse4_1_extendv4qiv4si2): Likewise.
2429         (sse4_1_extendv2qiv2di2): Likewise.
2430         (*sse4_1_extendv2qiv2di2): Likewise.
2431         (sse4_1_extendv4hiv4si2): Likewise.
2432         (*sse4_1_extendv4hiv4si2): Likewise.
2433         (sse4_1_extendv2hiv2di2): Likewise.
2434         (*sse4_1_extendv2hiv2di2): Likewise.
2435         (sse4_1_extendv2siv2di2): Likewise.
2436         (*sse4_1_extendv2siv2di2): Likewise.
2437         (sse4_1_zero_extendv8qiv8hi2): Likewise.
2438         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
2439         (sse4_1_zero_extendv4qiv4si2): Likewise.
2440         (*sse4_1_zero_extendv4qiv4si2): Likewise.
2441         (sse4_1_zero_extendv2qiv2di2): Likewise.
2442         (*sse4_1_zero_extendv2qiv2di2): Likewise.
2443         (sse4_1_zero_extendv4hiv4si2): Likewise.
2444         (*sse4_1_zero_extendv4hiv4si2): Likewise.
2445         (sse4_1_zero_extendv2hiv2di2): Likewise.
2446         (*sse4_1_zero_extendv2hiv2di2): Likewise.
2447         (sse4_1_zero_extendv2siv2di2): Likewise.
2448         (*sse4_1_zero_extendv2siv2di2): Likewise.
2449         (sse4_1_roundpd): Likewise.
2450         (sse4_1_roundps): Likewise.
2451         (sse4_1_roundsd): Likewise.
2452         (sse4_1_roundss): Likewise.
2453         (mulv4si3): Don't expand for SSE4.1.
2454         (smax<mode>3): Likewise.
2455         (umaxv4si3): Likewise.
2456         (uminv16qi3): Likewise.
2457         (umin<mode>3): Likewise.
2458         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
2459
2460         * doc/extend.texi: Document SSE4.1 built-in functions.
2461
2462         * doc/invoke.texi: Document -msse4.1.
2463
2464 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
2465
2466         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
2467         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
2468         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
2469         (ASM_SPEC): Add asm_pcrel_spec.
2470         (EXTRA_SPECS): Add asm_pcrel_spec.
2471
2472 2007-05-21  David Daney  <ddaney@avtrex.com>
2473
2474         * doc/install.texi (Building a cross compiler): Add requirements
2475         for Java cross compiler.
2476
2477 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2478
2479         PR middle-end/31995
2480         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
2481         Add loopno argument.  Use evolution_function_is_invariant_rec_p
2482         instead of evolution_function_is_constant_p.
2483         Update calls to evolution_function_is_affine_multivariate_p.
2484         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
2485         Add loopno argument.
2486         * tree-scalar-evolution.c (gather_chrec_stats): Call
2487         evolution_function_is_affine_multivariate_p with a loop
2488         number of 0.
2489         * tree-data-ref.c (analyze_miv_subscript): Likewise.
2490         (analyze_overlapping_iterations): Likewise.
2491         (access_functions_are_affine_or_constant_p): Likewise.
2492         (build_classic_dist_vector_1): If the access functions
2493         are equal, don't do anything.
2494
2495 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
2496             Paolo Carlini  <pcarlini@suse.de>
2497             Uros Bizjak  <ubizjak@gmail.com>
2498
2499         * c-cppbuiltin.c (c_cpp_builtins): Define
2500         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
2501         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
2502         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
2503         * doc/cpp.texi ([Standard Predefined Macros]): Document.
2504
2505 2007-05-21  Mike Stump  <mrs@apple.com>
2506
2507         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
2508         handling as well.
2509         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
2510
2511 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
2512
2513         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
2514         implementation if __OPTIMIZE__ is not defined.
2515         (_mm_alignr_pi8): Ditto.
2516         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
2517         (_mm_inserti_si64): Ditto.
2518         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
2519         (_mm_slli_epi16): Ditto.
2520         (_mm_slli_epi32): Ditto.
2521         (_mm_slli_epi64): Ditto.
2522         (_mm_srai_epi16): Ditto.
2523         (_mm_srai_epi32): Ditto.
2524         (_mm_srli_si128): Ditto.
2525         (_mm_slli_si128): Ditto.
2526         (_mm_srli_epi16): Ditto.
2527         (_mm_srli_epi32): Ditto.
2528         (_mm_srli_epi64): Ditto.
2529         (_mm_extract_epi16): Ditto.
2530         (_mm_insert_epi16): Ditto.
2531         (_mm_shufflehi_epi16): Ditto.
2532         (_mm_shufflelo_epi16): Ditto.
2533         (_mm_shuffle_epi32): Ditto.
2534         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
2535         (_m_pextrw): Ditto.
2536         (_mm_insert_pi16): Ditto.
2537         (_m_pinsrw): Ditto.
2538         (_mm_shuffle_pi16): Ditto.
2539         (_m_pshufw): Ditto.
2540         (_mm_shufle_ps): Ditto.
2541         (_mm_prefetch): Ditto.
2542
2543 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2544
2545         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
2546         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
2547         * real.c (encode_i370_single, decode_i370_single,
2548         encode_i370_double, decode_i370_double): Functions removed.
2549         (i370_single_format, i370_double_format): Initializations removed.
2550         (real_maxval, round_for_format, exact_real_truncate, significand_size):
2551         Consider the log2_b field to always be one.
2552         (ieee_single_format, mips_single_format, coldfire_single_format,
2553         ieee_double_format, mips_double_format, coldfire_double_format,
2554         ieee_extended_motorola_format, ieee_extended_intel_96_format,
2555         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
2556         ibm_extended_format, mips_extended_format, ieee_quad_format,
2557         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
2558         decimal_single_format, decimal_double_format, decimal_quad_format,
2559         c4x_single_format, c4x_extended_format, real_internal_format): Remove
2560         initialization of log2_b.
2561         * real.h (i370_single_format, i370_double_format): Declarations removed.
2562         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
2563         field to always be one.
2564
2565 2007-05-21  Andreas Schwab  <schwab@suse.de>
2566
2567         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
2568         NOTE_INSN_BASIC_BLOCK_P.
2569         (process_for_unwind_directive): Likewise.
2570
2571 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
2572
2573         * builtins.c (expand_builtin_setjmp_setup): Update comment.
2574         * function.h (struct function): Move va_list_gpr_size,
2575         va_list_fpr_size, function_frequency to front of bitfields.  Add
2576         calls_unwind_init.
2577         (current_function_calls_unwind_init): New.
2578         * except.c (expand_builtin_unwind_init): Set
2579         current_function_calls_unwind_init not
2580         current_function_has_nonlocal_label.
2581         * reload1.c (has_nonexceptional_receiver): New.
2582         (reload): Use it and current_function_calls_unwind_init to
2583         determine whether call-saved regs must be saved.
2584
2585 2007-05-20  Jan Hubicka  <jh@suse.cz>
2586
2587         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
2588         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
2589         * ddg.c (create_ddg): LIkewise.
2590         * final.c (final): Remove hunk moving line numbernotes around since
2591         they are no longer present at this stage.
2592         (final_scan_insn): Use NOTE_KIND instead of
2593         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
2594         (output_asm_label): Likewise.
2595         * reorg.c (dbr_schedule): Likewise.
2596         * haifa-sched.c (unlink_other_notes): Likewise.
2597         * mode-switching.c (optimize_mode_switching): Likewise.
2598         * graph.c (start_bb): Likewise.
2599         * rtl.def (NOTE): Update description.
2600         * jump.c (squeeze_notes): Delete.
2601         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
2602         NOTE_INSN_BASIC_BLOCK_P when possible.
2603         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
2604         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
2605         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
2606         (dwarf2out_var_location): Likewise.
2607         * cfgbuild.c (make_edges): Likewise.
2608         (find_basic_blocks_1): Likewise.
2609         * function.c (reorder_blocks_1): Likewise.
2610         (epilogue_done): Likewise.
2611         (reposition_prologue_and_epilogue_notes): Likewise.
2612         * print-rtl.c (print_rtx): Likewise; drop code for printing line number
2613         notes.
2614         (print_rtl): Likewise.
2615         (print_rtl_single): Likewise.
2616         * gcse.c (insert_insn_start_bb): Likewise.
2617         * alias.c (init_alias_analysis): Likewise.
2618         * calls.c (fixup_tail_calls): Likewise.
2619         * except.c (sjlj_emit_function_enter): Likewise.
2620         * emit-rtl.c (add_insn_after): Likeiwse.
2621         (emit_label_before): Likewise.
2622         (emit_label_after): Likewise.
2623         (emit_note_before, emit_note_after, emit_note): Update
2624         parameter to be enum insn_note; do not deal with source
2625         files.
2626         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
2627         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
2628         when possible.
2629         (merge_blocks_move_successor_nojumps): Simplify now when
2630         we don't have BLOCK notes.
2631         (try_optimize_cfg): Likewise.
2632         * cfglayout.c (skip_insns_after_block): Likewise.
2633         (record_effective_endpoints): Likewise.
2634         (duplicate_insn_chain): Likewise.
2635         * varasm.c (output_constant_pool_1): Likewise.
2636         * sched-deps.c (sched_analyze): Likewise.
2637         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
2638         Exterminate.
2639         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
2640         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
2641         (SET_INSN_DELETED): Simplify.
2642         (NOTE_LINE_NUMBER): Exterminate.
2643         (NOTE_LINE_KIND): New.
2644         (NOTE_INSN_BASIC_BLOCK_P): Update.
2645         (enum insn_note): Simplify.
2646         (GET_NOTE_INSN_NAME) Simplify.
2647         (emit_note_before, emit_note_after, emit_note): Update prototype.
2648         (squeeze_notes): Remove.
2649         * sched-int.h (NOTE_NOT_BB_P): Update.
2650         * resource.c (mark_target_live_regs): Update.
2651         * sched-rgn.c (debug_dependencies): Update.
2652         * sched-vis.c (print_insn): Update.
2653         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
2654         * config/i386/i386.c (ix86_output_function_epilogue): Update.
2655         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
2656         (TARGET_ADJUST_UNROLL_MAX): Likewise.
2657         (split_branches): Update.
2658         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
2659         4.0.0.
2660         (sh_adjust_unroll_max): Exterminate.
2661         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
2662         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
2663         (m68hc11_reorg): Likewise.
2664         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
2665         (emit_predicate_relation_info): Update.
2666         (process_for_unwind_directive): Update.
2667         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
2668         (output_call): Update.
2669         * config/pa/pa.c (output_lbranch): Update.
2670         (output_millicode_call): Update.
2671         (output_call): Update.
2672         (pa_combine_instructions): Update.
2673         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
2674         * config/bfin/bfin.c (gen_one_bundle): Update.
2675         * cfgrtl.c (can_delete_note_p): Update.
2676         (delete_insn): Update.
2677         (rtl_merge_blocks): Update.
2678         (commit_one_edge_insertion): Update.
2679         (rtl_verify_flow_info): Update.
2680         * stmt.c (expand_case): Do not call squeeze_notes.
2681
2682 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2683
2684         PR middle-end/7651
2685         PR c++/11856
2686         PR c/12963
2687         PR c/23587
2688         PR other/29694
2689         * c.opt (Wtype-limits): New.
2690         * doc/invoke.texi (Wtype-limits): Document it.
2691         (Wextra): Enabled by -Wextra.
2692         * c-opts.c (c_common_post_options): Enabled by -Wextra.
2693         * c-common.c (shorten_compare): Warn with Wtype-limits.
2694
2695 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
2696
2697         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
2698         inlined function, not as a macro.
2699         (_mm_alignr_pi8): Ditto.
2700         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
2701         (_mm_inserti_si64): Ditto.
2702         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
2703         (_mm_extract_epi16): Ditto.
2704         (_mm_insert_epi16): Ditto.
2705         (_mm_shufflehi_epi16): Ditto.
2706         (_mm_shufflelo_epi16): Ditto.
2707         (_mm_shuffle_epi32): Ditto.
2708         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
2709         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
2710         all functions.
2711         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
2712         float constant.
2713         (_m_to_float): Use C89 compatible assignment.
2714
2715 2007-04-20  Martin Michlmayr  <tbm@cyrius.com>
2716
2717         PR target/32007
2718         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
2719
2720 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2721
2722         PR middle-end/7651
2723         * doc/invoke.texi (Wreturn-type): Complete description.
2724         (Wextra): Delete item about return-type warning.
2725         * c-decl.c: Delete redundant Wextra warning.
2726
2727 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
2728
2729         PR target/31585
2730         * config/i386/pmmintrin.h: Do not include xmmintrin.h
2731         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
2732         inlined function, not as a macro.
2733         (_mm_prefetch): Ditto.
2734         (_m_pextrw): Ditto.
2735         (_mm_insert_pi16): Ditto.
2736         (_m_pinsrw): Ditto.
2737         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
2738         (_m_pshufw): Ditto. Add const to __N argument.
2739         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
2740         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
2741         (_mm_slli_epi32): Ditto.
2742         (_mm_srli_si128): Implement as always inlined function, not as a macro.
2743         Add __inline to function declaration.
2744         (_mm_slli_si128): Ditto.
2745
2746 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
2747
2748         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
2749         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
2750         New constants.
2751         (struct fenv): New structure.
2752         (FP_HANDLE_EXCEPTIONS): New define.
2753         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
2754         (_FP_DECL_EXP): New define.
2755         (FP_INIT_ROUNDMODE): New define.
2756         (FP_ROUNDMODE): New define.
2757
2758 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2759
2760         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
2761         (Wconversion): Update description.
2762         (Wconversion-sign): New.
2763         * c.opt (Wconversion-sign): New.
2764         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
2765         means disabled for C++. Otherwise, take the status of Wconversion.
2766         * c-common.c (conversion_warning): Warn with either Wconversion or
2767         Wconversion-sign.
2768         (warnings_for_convert_and_check): Conditions are already checked by
2769         conversion_warning.
2770         (convert_and_check): Don't check warnings if the conversion failed.
2771
2772 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
2773            Anatoly Sokolov <aesok@dol.ru>
2774
2775         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
2776         avr_epilogue_uses) : Add declaration.
2777         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
2778         * config/avr/constraints.md (R): New constraint.
2779         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
2780         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
2781         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
2782         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
2783         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
2784         call_prologue_saves, epilogue_restores, return_from_epilogue,
2785         return_from_main_epilogue, return_from_interrupt_epilogue,
2786         return_from_naked_epilogue, prologue, epilogue): New patterns.
2787         (jump): Handle symbol reference.
2788         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
2789         avr_output_function_prologue, avr_output_function_epilogue): Remove
2790         functions.
2791         (avr_init_machine_status, expand_prologue, expand_epilogue,
2792         avr_asm_function_end_prologue, avr_epilogue_uses,
2793         avr_asm_function_begin_epilogue): New functions.
2794         (prologue_size, epilogue_size, jump_tables_size): Remove global
2795         variables.
2796         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2797         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
2798         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
2799         (avr_override_options): Initialise init_machine_status.
2800         (output_movhi): Handle all stack pointer loads.
2801         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
2802         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
2803         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
2804         (EPILOGUE_USES) Redefine.
2805         (machine_function) Declare.
2806
2807 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
2808
2809         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
2810         Use a single return statement.
2811
2812 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2813
2814         PR middle-end/30250
2815         * builtins.c (do_mpfr_lgamma_r): New.
2816         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
2817         * tree.h (CASE_FLT_FN_REENT): New.
2818
2819 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
2820
2821         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
2822         (output_die): Use 'unsigned long' with %x.
2823         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
2824         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
2825         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
2826
2827         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
2828
2829 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2830
2831         PR target/31989
2832         PR target/31681
2833         PR target/31666
2834         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
2835         true if function has no argument.
2836
2837 2007-05-18  DJ Delorie  <dj@redhat.com>
2838
2839         * config/mips/mips.c (mips_offset_within_alignment_p): New.
2840         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
2841
2842 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
2843
2844         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
2845         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
2846         count_trailing_zeros.
2847         (__i386__): Implement count_leading_zeros using __builtin_clz().
2848         Implement count_trailing_zeros usign __builtin_ctz().
2849
2850 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
2851
2852         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
2853
2854 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
2855
2856         PR middle-end/31344
2857         * expr.c (emit_move_change_mode): Change mode of push operands here.
2858
2859 2007-05-17  Ian Lance Taylor  <iant@google.com>
2860
2861         PR tree-optimization/31953
2862         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
2863         Change all callers.
2864         (set_value_range_to_null): Call set_value_range_to_value.
2865         (extract_range_from_comparison): Likewise.
2866
2867 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2868
2869         * toplev.c (print_version): Output GMP/MPFR version info.
2870
2871         * builtins.c (CASE_MATHFN_REENT): New macro.
2872         (mathfn_built_in): Use it.
2873         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
2874         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
2875         BUILT_IN_LGAMMAL_R): New.
2876         * doc/extend.texi: Document new builtins.
2877
2878         PR middle-end/31796
2879         * builtins.c (do_mpfr_remquo): New.
2880         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
2881         (fold_builtin_3): Handle BUILT_IN_REMQUO.
2882
2883         PR middle-end/30251
2884         * builtins.c (fold_builtin_1): Handle y0, y1.
2885         (fold_builtin_2): Handle yn.
2886
2887         PR middle-end/30251
2888         * builtins.c (do_mpfr_bessel_n): New.
2889         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
2890         (fold_builtin_2): Handle BUILT_IN_JN.
2891
2892 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
2893
2894         PR target/31965
2895         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
2896         TYPE_PRECISION (intmax_type_node).
2897
2898 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
2899
2900         PR target/31850
2901         * reload.c (subst_reloads): Remove checking.
2902
2903 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2904
2905         PR rtl-optimization/31691
2906         * combine.c (simplify_set): Build a new src pattern instead of
2907         substituting its operands in the COMPARE case.
2908
2909 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
2910
2911         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
2912         (execute_vrp): Preserve loops through jump threading.
2913         * tree-ssa-threadupdate.c (thread_single_edge,
2914         dbds_continue_enumeration_p, determine_bb_domination_status,
2915         thread_through_loop_header): New functions.
2916         (create_edge_and_update_destination_phis,
2917         create_edge_and_update_destination_phis): Set loops for the new blocks.
2918         (prune_undesirable_thread_requests): Removed.
2919         (redirect_edges): Do not pretend that redirect_edge_and_branch can
2920         create new blocks.
2921         (thread_block): Do not call prune_undesirable_thread_requests.
2922         Update loops.
2923         (mark_threaded_blocks): Select edges to thread here.
2924         (thread_through_all_blocks): Take may_peel_loop_headers argument.
2925         Thread edges through loop headers independently.
2926         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
2927         * tree-pass.h (TODO_mark_first_instance): New.
2928         (first_pass_instance): Declare.
2929         * cfghooks.c (duplicate_block): Put the block to the original loop
2930         if copy is not specified.
2931         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
2932         jump threading.  Pass may_peel_loop_headers to
2933         thread_through_all_blocks according to first_pass_instance.
2934         * cfgloop.h (create_preheader): Declare.
2935         * tree-flow.h (thread_through_all_blocks): Declaration changed.
2936         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
2937         * passes.c (first_pass_instance): New variable.
2938         (next_pass_1): Set TODO_mark_first_instance.
2939         (execute_todo): Set first_pass_instance.
2940
2941 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
2942
2943         PR tree-optimization/24659
2944         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
2945         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
2946         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
2947         OTI_vec_pack_ufix_trunc.
2948         (vec_unpacks_float_hi_optab): Define new macro.
2949         (vec_unpacks_float_lo_optab): Ditto.
2950         (vec_unpacku_float_hi_optab): Ditto.
2951         (vec_unpacku_float_lo_optab): Ditto.
2952         (vec_pack_sfix_trunc_optab): Ditto.
2953         (vec_pack_ufix_trunc_optab): Ditto.
2954         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
2955         and vec_pack_[s|u]fix_trunc_optab using
2956         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
2957         * tree-vectorizer.c (supportable_widening_operation): Handle
2958         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
2959         (supportable_narrowing_operation): New function.
2960         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
2961         * tree-vect-transform.c (vectorizable_conversion): Handle
2962         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
2963         (vect_gen_widened_results_half): Move before vectorizable_conversion.
2964         (vectorizable_type_demotion): Call supportable_narrowing_operation()
2965         to check for target support.
2966         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
2967         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
2968         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
2969         for VEC_PACK_FIX_TRUNC_EXPR.
2970         (expand_binop): Special case mode of the result for
2971         vec_pack_[u|s]fix_trunc_optab.
2972         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
2973         vec_pack_[u|s]fix_trunc_optab.
2974
2975         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
2976         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
2977         * tree-pretty-print.c (dump_generic_node): Handle
2978         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
2979         VEC_PACK_FIX_TRUNC_EXPR.
2980         (op_prio): Ditto.
2981         * expr.c (expand_expr_real_1): Ditto.
2982         * tree-inline.c (estimate_num_insns_1): Ditto.
2983         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2984
2985         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
2986         (vec_unpacks_float_lo_v8hi): Ditto.
2987         (vec_unpacku_float_hi_v8hi): Ditto.
2988         (vec_unpacku_float_lo_v8hi): Ditto.
2989         (vec_unpacks_float_hi_v4si): Ditto.
2990         (vec_unpacks_float_lo_v4si): Ditto.
2991         (vec_pack_sfix_trunc_v2df): Ditto.
2992
2993         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
2994         Document.
2995         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
2996         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
2997         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
2998         [vec_pack_ufix_trunc]: Ditto.
2999         [vec_unpacks_float_hi]: Ditto.
3000         [vec_unpacks_float_lo]: Ditto.
3001         [vec_unpacku_float_hi]: Ditto.
3002         [vec_unpacku_float_lo]: Ditto.
3003
3004 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
3005
3006         * soft-fp/README: Update for new files.
3007         * soft-fp/floattisf.c: New file.
3008         * soft-fp/floattidf.c: New file.
3009         * soft-fp/floattitf.c: New file.
3010         * soft-fp/floatuntisf.c: New file.
3011         * soft-fp/floatuntidf.c: New file.
3012         * soft-fp/floatuntitf.c: New file.
3013         * soft-fp/fixsfti.c: New file.
3014         * soft-fp/fixdfti.c: New file.
3015         * soft-fp/fixtfti.c: New file.
3016         * soft-fp/fixunssfti.c: New file.
3017         * soft-fp/fixunsdfti.c: New file.
3018         * soft-fp/fixunstfti.c: New file.
3019         * soft-fp/extendxftf.c: New file.
3020         * soft-fp/trunctfxf.c: New file.
3021
3022         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
3023         (__trunctfxf2): Ditto.
3024
3025         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
3026         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
3027         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
3028         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
3029         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
3030         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
3031
3032         * config/i386/t-fprules-softfp64: New file.
3033         * config/i386/sfp-machine.h: New file.
3034         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
3035         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
3036         and soft-fp/t-softfp to tmake_file.
3037         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3038         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
3039
3040         * config/i386/t-linux64 (softfp_wrap_start): New.
3041         (softfp_wrap_end): New.
3042         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
3043         supported for TARGET_64BIT.
3044
3045 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
3046
3047         * c-common.c (c_common_signed_or_unsigned_type): Emulate
3048         c_common_unsigned_type behavior.
3049
3050 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
3051
3052         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
3053         calls as pure.
3054
3055 2007-05-16  Eric Christopher  <echristo@apple.com>
3056
3057         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
3058         saving after stack push. Set sp_offset whenever we push.
3059         (rs6000_emit_epilogue): Move altivec register restore before
3060         stack push.
3061
3062 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
3063
3064         * configure.ac: Allow sysroots to be relocated under $prefix as
3065         well as $exec_prefix.
3066         * configure: Regenerate.
3067
3068 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
3069
3070         Revert:
3071
3072         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
3073
3074         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
3075         (gcc_tooldir): Likewise.
3076         * configure: Regenerate.
3077         * Makefile.in (libsubdir_to_prefix): New variable, based on the
3078         old configure.ac gcc_tooldir setting.
3079         (prefix_to_exec_prefix): New variable.
3080         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
3081         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
3082
3083 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
3084
3085         * c-typeck.c (build_binary_op): Return early for error.
3086
3087 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
3088
3089         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
3090         struct nb_iter_bound.
3091         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
3092         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
3093         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
3094         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
3095         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
3096         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
3097         (del_scev_info): Use ggc_free.
3098         (scev_initialize): Allocate scalar_evolution_info in gc memory.
3099         * loop-init.c: Include ggc.h.
3100         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
3101         (loop_optimizer_finalize): Use ggc_free.
3102         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
3103         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
3104         pass_iv_optimize): Add TODO_ggc_collect.
3105         * function.h (struct function): Remove skip marker from x_current_loops.
3106         * cfgloop.c: Include ggc.h.
3107         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
3108         memory.
3109         (establish_preds): Vector superloops is gc allocated.
3110         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
3111         loop->exits list.
3112         (flow_loops_find): Vector larray is gc allocated.
3113         (loop_exit_free): Use ggc_free.
3114         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
3115         that head of exits list is now not a part of struct loop.
3116         (record_loop_exits): Allocate exits table in gc memory.
3117         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
3118         head of exits list is now not a part of struct loop.
3119         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
3120         struct loop_exit): Add GTY marker.
3121         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
3122         Add skip marker to aux field.  Make head of exits list a separate
3123         object.
3124         (struct loops): Add GTY marker.  Make larray vector gc allocated.
3125         Add param marker to exits table.
3126         (get_loops): Type changed.
3127         * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
3128         dependency.
3129         (cfgloop.o, loop-init.o): Add ggc.h dependency.
3130         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
3131         * basic-block.h (struct basic_block_def): Remove skip marker from
3132         loop_father field.
3133
3134 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
3135
3136         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
3137         of 0 in the call to expand_expr().
3138         (expand_builtin_mathfn_3): Ditto.
3139         (expand_builtin_interclass_mathfn): Ditto.
3140         (expand_builtin_cexpi): Ditto.
3141         (expand_builtin_int_roundingfn): Ditto.
3142         (expand_builtin_int_roundingfn_2): Ditto.
3143         (expand_builtin_pow): Ditto.
3144         (expand_builtin_powi): Ditto.
3145         (expand_builtin_bswap): Ditto.
3146         (expand_builtin_unop): Ditto.
3147         (expand_builtin_fabs): Ditto.
3148         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
3149         the call to expand_expr().
3150         (expand_builtin_sync_operation): Ditto.
3151         (expand_builtin_compare_and_swap): Ditto.
3152         (expand_builtin_lock_test_and_set): Ditto.
3153         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
3154         instead of 0 in the call to expand_expr().
3155         (expand_builtin_extract_return_addr): Ditto.
3156         (expand_builtin_eh_return): Ditto.
3157         (expand_eh_return): Ditto.
3158         * explow.c (expr_size): Ditto.
3159         * expr.c (optimize_bitfield_assignment_op): Ditto.
3160         (expand_assignement): Ditto.
3161         (store_expr): Ditto.
3162         (store_field): Ditto.
3163         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
3164         the call to expand_expr().
3165         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
3166         in the call to expand_expr().
3167         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
3168         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
3169         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
3170         of expand_expr().
3171         * optabs.c (expand_vec_shift_expr): Ditto.
3172         (expand_vec_cond_expr): Ditto.
3173         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
3174         call to expand_expr().
3175         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
3176         in the call to expand_expr().
3177
3178 2007-05-14  Dave Korn  <dave.korn@artimi.com>
3179
3180         * genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
3181
3182 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
3183
3184         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
3185         instead of c_common_unsigned_type.
3186         (c_common_unsigned_type): Remove.
3187         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
3188         c_common_unsigned_type.
3189         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
3190         c_common_unsigned_type.
3191         * c-common.h (c_common_unsigned_type): Remove.
3192         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
3193         c_common_unsigned_type.
3194         * c-format.c (check_format_types): Use unsigned_type_for instead of
3195         c_common_unsigned_type.
3196         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
3197         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
3198         c_common_unsigned_type.
3199         * convert.c (convert_to_integer): Use unsigned_type_for instead of
3200         lang_hooks.types.unsigned_type.
3201         * expmed.c (make_tree): Use unsigned_type_for instead of
3202         lang_hooks.types.unsigned_type.
3203         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
3204         lang_hooks.types.unsigned_type.
3205         (build_range_check): Likewise.
3206         (fold_unary): Likewise.
3207         (fold_binary): Likewise.
3208         (fold_ternary): Likewise.
3209         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
3210         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
3211         * tree.c (get_unsigned_type): New.
3212         (unsigned_type_for): Use get_unsigned_type instead of
3213         lang_hooks.types.unsigned_type.
3214
3215 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
3216
3217         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
3218         to m68k_get_function_kind.  Update its prototype.
3219         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
3220         interrupt_thread.
3221         (m68k_interrupt_function_p): Return enum m68k_function_type
3222         instead of bool.  Rename to m68k_get_function_kind.
3223         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
3224         target is not fido.
3225         (m68k_compute_frame_layout): Don't mark any register for save
3226         if an interrupt_thread attribute is specified.
3227         (m68k_hard_regno_rename_ok): Update a use of
3228         m68k_interrupt_function_p.
3229         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
3230         m68k_interrupt_function_p.
3231         (m68k_function_type): New.
3232         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
3233         for a function with an interrupt_thread attribute.
3234         * doc/extend.texi: Document the interrupt_thread attribute.
3235
3236 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
3237
3238         Fix PR tree-optimization/31911
3239         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
3240         if they didn't change the expression.
3241
3242 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
3243
3244         * tree-scalar-evolution.c (resolve_mixers): Exported.
3245         * tree-scalar-evolution.h (resolve_mixers): Declare.
3246         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
3247         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
3248         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
3249         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
3250         init_array_ref, init_pointer_ref, analyze_indirect_ref,
3251         strip_conversion, analyze_offset_expr, address_analysis,
3252         object_analysis, analyze_offset): Removed.
3253         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
3254         split_constant_offset, canonicalize_base_object_address,
3255         object_address_invariant_in_loop_p, disjoint_objects_p,
3256         dr_may_alias_p, dr_address_invariant_p): New functions.
3257         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
3258         and dr_analyze_alias.
3259         (initialize_data_dependence_relation): Use dr_may_alias_p
3260         and object_address_invariant_in_loop_p.
3261         (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
3262         is chrec_dont_know.
3263         (find_data_references_in_stmt): Restrict the analysis of data references
3264         to the given loop nest.
3265         (find_data_references_in_loop): Made static.  Pass loop nest to
3266         find_data_references_in_stmt.
3267         (compute_data_dependences_for_loop): Use DR_VOPS.
3268         (free_data_ref): Free DR_VOPS.
3269         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
3270         (struct innermost_loop_behavior): ... new.
3271         (struct base_object_info): Replaced by ...
3272         (struct indices): ... new.
3273         (struct dr_alias): New.
3274         (enum data_ref_type): Removed.
3275         (struct data_reference): Consist of struct innermost_loop_behavior,
3276         struct indices and struct dr_alias.
3277         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
3278         (DR_MEMTAG): Renamed to ...
3279         (DR_SYMBOL_TAG): ... this.
3280         (find_data_references_in_loop): Declaration removed.
3281         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
3282         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
3283         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
3284         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
3285
3286 2007-05-13  Revital Eres  <eres@il.ibm.com>
3287
3288         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
3289         which walks virtual def-use chains to find redundant stores.
3290         (dse_optimize_stmt): Call it.
3291
3292 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
3293
3294         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
3295         * passes.c (init_optimization_passes): Move pass_jump_bypass
3296         after loop2.
3297
3298         * basic-block.h (bb_has_eh_pred): Fix style issue.
3299
3300 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
3301
3302         PR rtl-optimization/31848
3303         * loop-invariant.c (move_invariant_reg): If we move an insn
3304         with a REG_EQUAL note, and that insn is not always executed,
3305         remove the REG_EQUAL note.
3306
3307 2007-05-12  Richard Guenther  <rguenther@suse.de>
3308
3309         PR tree-optimization/31797
3310         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
3311         propagate into a stmt that has volatile ops.
3312
3313 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
3314
3315         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
3316         (gcc_tooldir): Likewise.
3317         * configure: Regenerate.
3318         * Makefile.in (libsubdir_to_prefix): New variable, based on the
3319         old configure.ac gcc_tooldir setting.
3320         (prefix_to_exec_prefix): New variable.
3321         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
3322         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
3323
3324 2007-05-11  Silvius Rus  <rus@google.com>
3325
3326         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
3327         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
3328         * c-common.h (strict_aliasing_warning): Change return type.
3329         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
3330         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
3331         (build_c_cast): Condition call to strict_aliasing_warning.
3332         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
3333         * flags.h (set_Wstrict_aliasing): Declare.
3334         * opts.c (set_Wstrict_alising): Define, add call to.
3335         * tree-flow.h (strict_aliasing_warning_backend): Declare.
3336         * tree-ssa-alias-warnings.c: New file.
3337         * tree-ssa-alias.c (compute_may_aliases): Add call to
3338         strict_aliasing_warning_backend.
3339
3340 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
3341
3342         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
3343         Use loop_depth and loop_outer accessor functions.
3344         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
3345         determine_invariantness_stmt, move_computations_stmt): Ditto.
3346         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
3347         add_loop, loopify, unloop, fix_loop_structure): Ditto.
3348         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
3349         * tree-scalar-evolution.c (interpret_loop_phi,
3350         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
3351         instantiate_parameters_1, scev_const_prop): Ditto.
3352         * cfghooks.c (make_forwarder_block): Ditto.
3353         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
3354         * modulo-sched.c (loop_canon_p): Ditto.
3355         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
3356         slpeel_can_duplicate_loop_p): Ditto.
3357         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
3358         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
3359         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
3360         cancel_loop, verify_loop_structure): Ditto.
3361         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
3362         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
3363         superloops vector instead of "pred" array.
3364         (establish_preds): Take father loop as an argument.  Initialize the
3365         superloops vector.
3366         (flow_loop_tree_node_add): Pass father loop to establish_preds.  Do not
3367         initialize loop->outer.
3368         (flow_loop_tree_node_remove): Truncate the superloops vector.
3369         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
3370         "pred" merged to "superloops" vector.
3371         (loop_depth, loop_outer): New.
3372         (fel_init): Use loop_outer.
3373
3374 2007-05-11  Jan Hubicka  <jh@suse.cz>
3375
3376         * cgraphunit.c: Include gt-cgraphunit.h
3377         (static_ctors, static_dtors): New static vars.
3378         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
3379         based on implementation in c-common.c
3380         (cgraph_finalize_function): Call record_cdtor_fn.
3381         (cgraph_optimize): Call cgraph_build_cdtor_fns.
3382         * decl.c (finish_function): Do not call c_record_cdtor_fn.
3383         (c_write_global_declarations): Do not call c_build_cdtor_fns.
3384         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
3385         build_cdtor, c_build_cdtor_fns): Remove.
3386         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
3387         c_build_cdtor_fns): Remove prototype.
3388
3389 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
3390
3391         PR other/31852
3392         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
3393         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
3394         * builtins.c (fold_builtin_memchr): New.
3395         (expand_builtin_memchr): Call the latter.
3396         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
3397         * doc/extend.texi ([Other built-in functions provided by GCC]):
3398         Document memchr.
3399
3400 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
3401
3402         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
3403         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
3404         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
3405         PFPO_OP1_TYPE_SHIFT): Constants added.
3406         (DFP_ALL): Mode macro defined.
3407         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
3408         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
3409         Insn definitions added.
3410         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
3411         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
3412         Expanders added.
3413
3414 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
3415
3416         PR tree-optimization/31885
3417         * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
3418         to be undetermined.
3419         (automatically_generated_chrec_p): Return false for NULL.
3420
3421 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3422
3423         * config/bfin/bfin.h (MOVE_RATIO): Define.
3424
3425 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
3426
3427         * config.gcc (sparc-wrs-vxworks): New target.
3428         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
3429         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
3430         * config/sparc/sparc.h: Include vxworks-dummy.h.
3431         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
3432         include LABEL_REFs too.
3433         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
3434         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
3435         VxWorks.
3436         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
3437         on VxWorks.
3438         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
3439         (sparc_emit_call_insn): New function.
3440         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
3441         functions when generating VxWorks PIC.
3442         * config/sparc/sparc.md (vxworks_load_got): New pattern.
3443         (call, call_value): Use sparc_emit_call_insn instead of
3444         emit_call_insn.
3445
3446 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
3447
3448         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
3449
3450 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
3451
3452         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
3453         for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
3454         instead of operand_subword.
3455
3456 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3457
3458         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
3459         * config/bfin/bfin.c (bfin_local_alignment): New function.
3460         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
3461
3462 2007-05-08  Chao-ying Fu  <fu@mips.com>
3463
3464         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
3465         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
3466         (smsub_widen_optab, umsub_widen_optab): Define.
3467         * optabs.c (init_optabs): Initialize smsub_widen_optab and
3468         umsub_widen_optab.
3469         * genopinit.c (optabs): Fill in smsub_widen_optab and
3470         umsub_widen_optab.
3471         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
3472         and umsub_widen_optab to implement multiply-subtract sequences.
3473         * config/mips/mips.md (*msac<u>_di): Rename to...
3474         (<u>msubsidi4): ...this.  Extend condition to include
3475         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
3476         of operand 0 to "ka" and use the three-operand form of msub<u>
3477         for TARGET_DSPR2.
3478         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
3479         to define_expands.
3480
3481 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3482
3483         PR rtl-optimization/28011
3484         * reload.c (push_reload): Set dont_share if IN appears in OUT
3485         also when IN is a PLUS rtx.
3486         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
3487         are same PLUS rtx.
3488
3489 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
3490
3491         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
3492         call unshare_all_decls.
3493         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
3494         (unshare_all_decls): Remove.
3495
3496 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
3497
3498         PR 31847
3499         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
3500         dumps.
3501
3502 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3503             Nigel Stephens  <nigel@mips.com>
3504
3505         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
3506         Update comments and all uses.
3507         (MIN_FPRS_PER_FMT): Define.
3508         * config/mips/mips.c (function_arg): Fix to correctly handle
3509         the -mips32r2 -mfp64 -mabi=32 case.
3510         (override_options): Enable use of odd-numbered registers for
3511         SFmode values on MIPS32.
3512         (mips_save_reg_p): Save whole floating-point register pair if
3513         either half is used.
3514         (compute_frame_size): Fix comment.
3515
3516 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
3517
3518         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
3519         argument of type bool.
3520         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
3521         argument. Safely select temporary P register according to it.
3522         (do_link): Change call site of add_to_reg accordingly.
3523         (do_unlink): Add epilogue_p as a fourth argument and pass it
3524         to add_to_reg.
3525         (expand_interrupt_handler_epilogue): Change call of do_unlink
3526         accordingly.
3527         (bfin_expand_prologue): Add a third argument sibcall_p.
3528         * config/bfin/bfin.md (epilogue): Change call of
3529         bfin_expand_epilogue accordingly.
3530         (sibcall_epilogue): Likewise.
3531         (eh_return_internal): Likewise.
3532
3533         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
3534         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
3535         * config/bfin/bfin.c (bfin_handle_option): Handle
3536         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
3537         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
3538         Support bf534, bf536 and bf561.
3539         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
3540
3541 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
3542
3543         PR target/31854
3544         * config/i386/i386.c (ix86_function_regparm): Process local
3545         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
3546
3547 2007-05-07  Mike Stump  <mrs@apple.com>
3548
3549         * doc/invoke.texi (Warning Options): Document that -Wempty-body
3550         also checks for and while statements in C++.
3551
3552 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
3553
3554         * gcc.c (at_file_supplied): New variable.
3555         (main): Set it if we expanded argv.
3556         (do_spec_1): Pass an @-file to the linker if we were called with
3557         an @-file argument and HAVE_GNU_LD.
3558         * collect2.c (at_file_supplied): New variable.
3559         (response_file): New variable.
3560         (collect_exit): Unlink response_file if necessary.
3561         (handler): Likewise.
3562         (do_wait): Likewise.
3563         (main): Set at_file_supplied if we expanded argv.
3564         (collect_execute): Pass an @-file to subprocesses if we were called
3565         with an @-file argument.
3566         * configure.ac: Add define for HAVE_GNU_LD.
3567         * configure: Regenerate.
3568         * config.in: Regenerate.
3569
3570 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
3571
3572         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
3573         operand to HI mode.
3574         (mulsi3): New.
3575         (divsi3): New.
3576         (udivsi3): New.
3577
3578 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
3579
3580         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
3581         (TARGET_ENCODE_SECTION_INFO): Re-define.
3582         (m32c_encode_section_info): New
3583         (function_vector_handler): New
3584         (current_function_special_page_vector): New
3585         (m32c_special_page_vector_p): New.
3586         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
3587         Prototype.
3588         * config/m32c/jump.md: Added instruction JSRS for functions
3589         with attribute "function_vector".
3590         * doc/extend.texi (function_vector): Added description
3591         for M16C, M32C targets.
3592
3593 2007-05-07  DJ Delorie  <dj@redhat.com>
3594
3595         PR 31794
3596         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
3597         ashrpsi3, lshrpsi3): Update shift count constraint.
3598
3599 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
3600             Nathan Froyd  <froydnj@codesourcery.com>
3601
3602         PR 22133
3603         * c-incpath.c (add_path): Strip trailing path separators.
3604
3605 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
3606
3607         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
3608         Free dominance info before purging EH edges.
3609         (eliminate_degenerate_phis): Likewise.
3610         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
3611
3612 2007-05-07  Jan Hubicka  <jh@suse.cz>
3613
3614         * gimplify.c (gimplify_expr): Do not crash when folding
3615         (void *)(int)&a + 4.
3616
3617 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3618
3619         PR driver/31694
3620         * c-opts.c (lang_fortran): Make it non static.
3621         * c-common.h (lang_fortran): New prototype.
3622         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
3623         -lang-fortran option was passed by the driver.
3624
3625 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
3626
3627         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
3628         of ASSERT_CHECKING.  Tweak message.
3629
3630 2007-05-06  Revital Eres  <eres@il.ibm.com>
3631
3632         PR 30957
3633         * loop-unroll.c (insert_var_expansion_initialization):
3634         Initialize the expansions with -zero instead of +zero.
3635
3636 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3637
3638         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
3639         into pic and non-pic versions. Mark r19 as used for
3640         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
3641         for tgd_load, tld_load and tie_load .
3642         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
3643         version of tgd_load, tld_load and tie_load depending on the
3644         value of flag_pic.
3645
3646 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
3647             Jakub Jelinek  <jakub@redhat.com>
3648
3649         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
3650         (__do_global_dtors_aux): Use more paranoid loop to run
3651         destructors if HIDDEN_DTOR_LIST_END.
3652         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
3653
3654 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
3655
3656         * varasm.c (align_variable): Don't increase alignment for
3657         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
3658         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
3659
3660 2007-05-04  Josh Conner  <jconner@apple.com>
3661
3662         * basic-block.h (cdi_direction): Assign values to all enumeration
3663         constants.
3664         (dom_computed): Remove.
3665         (dom_info_state): New.
3666         (set_dom_info_availability): New.
3667         * tree-ssa-loop-im.c (determine_invariantness): Initialize
3668         walk_data.dom_direction.
3669         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
3670         instead of dom_computed[].
3671         (split_edge): Likewise.
3672         (create_basic_block): Likewise.
3673         (merge_blocks): Likewise.
3674         * ifcvt.c (find_if_header): Likewise.
3675         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
3676         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3677         * tree-ssa.c (verify_ssa): Likewise.
3678         * tree-cfg.c (tree_verify_flow_info): Likewise.
3679         (remove_edge_and_dominated_blocks): Likewise.
3680         * dominance.c (dom_computed): Make static.
3681         (calc_dfs_tree_nonrec): Change third param to a bool.
3682         (calc_dfs_tree): Change second param to a bool.
3683         (calc_idioms): Change second param to a bool.  Use
3684         dom_convert_dir_to_idx.
3685         (init_dom_info): Validate dir before using.
3686         (dom_convert_dir_to_idx): New.
3687         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
3688         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
3689         (free_dominance_info): Use dom_convert_dir_to_idx.
3690         (get_immediate_dominator): Likewise.
3691         (set_immediate_dominator): Likewise.
3692         (get_dominated_by): Likewise.
3693         (redirect_immediate_dominators): Likewise.
3694         (nearest_common_denominator): Likewise.
3695         (dominated_by_p): Likewise.
3696         (bb_dom_dfs_in): Likewise.
3697         (bb_dom_dfs_out): Likewise.
3698         (recount_dominator): Likewise.
3699         (iterate_fix_dominators): Likewise.
3700         (add_to_dominance_info): Likewise.
3701         (delete_from_dominance_info): Likewise.
3702         (first_dom_son): Likewise.
3703         (next_dom_son): Likewise.
3704         (dom_info_available_p): Likewise.
3705         (dom_info_state): New.
3706         (set_dom_info_availability): New.
3707
3708 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
3709
3710         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
3711         Expander removed.
3712         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
3713
3714 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
3715
3716         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
3717         (subdi3, subdi_carry): Delete.
3718
3719 2007-05-04  Jan Hubicka  <jh@suse.cz>
3720             Richard Guenther  <rguenther@suse.de>
3721
3722         * opts.c (decode_options): Do not fiddle with inlining
3723         parameters in case of optimizing for size.
3724         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
3725         for size do nothing.
3726         (cgraph_decide_inlining_of_small_function): When optimizing for
3727         size never inline functions increasing caller size.
3728         (cgraph_early_inlining): Inline for size when optimizing for size.
3729
3730 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
3731
3732         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
3733         logical operations piecewise.
3734         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
3735         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
3736         subdi_sesidi_di): Delete.
3737         (add_with_carry): Produce carry in CC instead of a DREG to shorten
3738         the generated sequence.  Allow three-reg add in constraints.  Rewrite
3739         the rtl expression for carry to avoid zero_extend of a constant.
3740         (sub_with_carry): New pattern.
3741         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
3742         different sequence not involving jumps.
3743         (notbi): Now a named pattern.
3744
3745 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
3746
3747         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
3748         Add the note about a significant loss of accuracy of some
3749         mathematical routines when these options are used.
3750
3751 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3752
3753         * haifa-sched.c (rtx_vec_t): New typedef.
3754         (contributes_to_priority_p): Extract piece of priority () into new
3755         static function.
3756         (priority): Use the function.  Add assertion.
3757         (rank_for_schedule, set_priorities): Add assertion to check that
3758         insn's priority is initialized.
3759         (clear_priorities, calc_priorities): Change signature.  Make it update
3760         all relevant insns.  Update all callers ('add_to_speculative_block ()'
3761         and 'create_block_check_twin ()').
3762         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
3763         Add new field 'priority_status'.
3764         (INSN_PRIORITY_STATUS): New macro.
3765         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
3766
3767 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3768
3769         * sched-ebb.c (debug_ebb_dependencies): New static function.
3770         (init_ready_list): Use it.
3771
3772         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
3773         with changed signature and 'debug_rgn_dependencies ()'.
3774         (debug_rgn_dependencies): New static function.
3775         (init_ready_list): Use it.
3776
3777         * sched-int.h (debug_dependencies): Declare.
3778
3779 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
3780
3781         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
3782
3783 2007-05-04  Dirk Mueller  <dmueller@suse.de>
3784
3785         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
3786
3787 2007-05-03  Jan Hubicka  <jh@suse.cz>
3788
3789         * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
3790         for pointer type in more cases than before.
3791
3792         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
3793
3794         * tree-object-size.c (plus_expr_object_size): When operand size is
3795         unknown, return unknown.
3796
3797 2007-05-03  Dirk Mueller  <dmueller@suse.de>
3798
3799         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
3800
3801         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
3802         options.
3803
3804         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
3805
3806 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
3807
3808         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
3809
3810 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
3811
3812         * config/soft-fp/double.h, config/soft-fp/extended.h,
3813         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
3814         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
3815         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
3816         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
3817         glibc CVS.
3818
3819 2007-05-03  Ian Lance Taylor  <iant@google.com>
3820
3821         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3822         MASK_PPC_GFXOPT for 8540 or 8548.
3823
3824 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
3825
3826         * tree-vect-transform.c (vect_update_inits_of_drs): Use
3827         vect_print_dump_info() to output debug information.
3828
3829 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
3830
3831         PR target/31768
3832         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
3833         operands of size 2 when operand is not MEM_P.
3834
3835 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
3836
3837         PR tree-optimization/30565
3838         * lambda-code.c (perfect_nestify): Fix updating of dominators.
3839
3840 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3841
3842         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
3843         (umulsi3_highpart): Use them.
3844         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
3845         for final accumulator to D regisster tranfser.
3846
3847 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
3848
3849         PR tree-optimization/31699
3850         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
3851         code.
3852         (vect_enhance_data_refs_alignment): Compute peel amount using
3853         TYPE_VECTOR_SUBPARTS instead of vf.
3854         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
3855
3856 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
3857
3858         PR bootstrap/31776
3859         * system.h: Remove inclusion of double-int.h
3860         * tree.h: Include double-int.h
3861         * gengtype.c: Likewise
3862         * cfgloop.h: Likewise
3863         * Makefile.in: Adjust dependencies on double-int.h
3864
3865 2007-05-02  Eric Christopher  <echristo@apple.com>
3866
3867         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
3868         -shared to -Zdynamiclib.
3869
3870 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
3871
3872         PR c++/31663
3873         * c-common.c (strip_pointer_or_array_types): New function.
3874         * c-common.h (strip_pointer_or_array_types): New function declaration.
3875
3876 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
3877
3878         PR tree-optimization/31771
3879         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
3880
3881 2007-05-02  Paul Brook  <paul@codesourcery.com>
3882
3883         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
3884
3885 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3886
3887         PR middle-end/29715
3888         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
3889         transformation.
3890
3891 2007-05-02  Nick Clifton  <nickc@redhat.com>
3892
3893         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
3894
3895 2007-05-02  Richard Guenther  <rguenther@suse.de>
3896
3897         PR tree-optimization/31146
3898         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
3899         argument, single_use_p.  If we have a single use that is
3900         a conversion to the definition rhs type, propagate that rhs.
3901         (forward_propagate_addr_expr): Pass single_use_p argument
3902         to forward_propagate_addr_expr_1.
3903
3904 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3905
3906         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
3907         variable.
3908
3909 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3910
3911         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
3912         'AMD Family 10 core'.
3913
3914 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3915
3916         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
3917         and athlon64-sse3 as improved versions of k8, opteron and athlon64
3918         with SSE3 instruction set support.
3919         * doc/invoke.texi: Likewise.
3920
3921 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3922
3923         * config/i386/i386.c (override_options): Tuning 32-byte loop
3924         alignment for amdfam10 architecture. Increasing the max loop
3925         alignment to 24 bytes.
3926
3927 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
3928
3929         * config/m68k/constraints.md: New.
3930         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
3931         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3932         EXTRA_CONSTRAINT): Remove.
3933         * config/m68k/m68k.md: Include constraints.md.
3934         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
3935
3936 2007-05-01  Ian Lance Taylor  <iant@google.com>
3937
3938         PR tree-optimization/31739
3939         * tree-vrp.c (vrp_val_is_max): New static function.
3940         (vrp_val_is_min): New static function.
3941         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
3942         copying the node.
3943         (set_value_range): Use vrp_val_is_{max,min}.
3944         (extract_range_from_assert): Likewise.
3945         (extract_range_from_binary_expr): Likewise.
3946         (extract_range_from_unary_expr): Likewise.
3947         (dump_value_range, vrp_meet): Likewise.
3948         (vrp_visit_phi_node): Likewise.
3949         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
3950
3951 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
3952
3953         * config/i386/gmon-sol2.c (size_t): New type.
3954         (intptr_t): Likewise.
3955         (s_textsize): Declare as size_t.
3956         (sbrk): Declare.
3957         (monstartup): Use size_t for sizes.
3958         (_mcount): Save and restore registers.
3959         (internal_mcount): Pass 0 as the first argument to monstartup
3960         in 64-bit mode.
3961         (moncontrol): Convert pointer to appropriately sized integer
3962         before passing to profil.
3963
3964 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
3965
3966         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
3967         __NO_FPRS__, not just if _SOFT_DOUBLE.
3968         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
3969         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
3970         also for E500 double.
3971         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
3972         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
3973         && !TARGET_FPRS).
3974
3975 2007-05-01  Richard Guenther  <rguenther@suse.de>
3976
3977         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
3978         is NULL.
3979
3980 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
3981
3982         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
3983
3984 2007-05-01  Jan Hubicka  <jh@suse.cz>
3985
3986         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
3987         invariant.
3988
3989 2007-05-01  Jan Hubicka  <jh@suse.cz>
3990
3991         * tree.h (maybe_fold_offset_to_component_ref): Remove.
3992         (maybe_fold_offset_to_reference): Declare.
3993         * fold-const.c (fold_unary): Do not fold
3994         (type *)&A into &A->field_of_type_and_offset_0
3995         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
3996         size is unknown, give up.
3997         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
3998         offsets.
3999         (maybe_fold_offset_to_reference): New.
4000         (maybe_fold_stmt_indirect): Use it.
4001         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
4002         * gimplify.c (gimplify_conversion): Canonicalize conversions to
4003         field references.
4004         (gimplify_expr): Likewise for plus_expr.
4005
4006 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
4007
4008         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
4009         bsi_after_labels.  Always insert statements before bsi.
4010         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
4011         * predict.c (apply_return_prediction): Check for empty blocks.
4012         * cfgexpand.c (lab_rtx_for_bb): New variable.
4013         (label_rtx_for_bb): Do not create new tree labels.
4014         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
4015         (tree_expand_cfg): Initialize lab_rtx_for_bb.
4016         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
4017         creating edges.
4018         (label_for_bb): Add field used.
4019         (update_eh_label, main_block_label): Mark the label used.
4020         (cleanup_dead_labels): Remove unused labels.
4021
4022 2007-05-01  Richard Guenther  <rguenther@suse.de>
4023
4024         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
4025         if it is not about to be set.
4026         (get_value_range): Do not pre-allocate equiv bitmap.
4027         (update_value_range): No need to clear equiv field.
4028         (add_equivalence): Change prototype to get bitmap pointer.
4029         Allocate bitmap here if it is not already.
4030         (extract_range_from_assert): Do not allocate bitmap here.
4031         Update callers to add_equivalence.
4032         (extract_range_from_ssa_name): Likewise.
4033         (get_vr_for_comparison): New static helper.
4034         (compare_name_with_value): Handle NULL equiv bitmap by
4035         peeling the first iteration of the comparison loop.
4036         Use get_vr_for_comparison.
4037         (compare_names): Handle NULL equiv bitmaps by using fake
4038         ones.  Use get_vr_for_comparison.
4039
4040 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
4041
4042         * double-int.c (mpz_set_double_int): Moved from
4043         tree-ssa-loop-niter.c.
4044         (mpz_get_double_int): Likewise; also, add option to wrap
4045         out-of-range integers.
4046         * double-int.h: New prototypes for above.
4047         * tree.c (get_static_type_bounds): Moved from
4048         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
4049         TYPE_MAX_VALUE if they exist..
4050         * tree.h: New prototype for above.
4051         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
4052         get_type_bounds calls.
4053         (mpz_set_double_int): Move to double-int.c.
4054         (get_type_bounds): Move to tree.c, rename to
4055         get_static_type_bounds.
4056         (mpz_to_double_int): Move to double-int.c, rename to
4057         mpz_get_double_int.
4058
4059 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
4060
4061         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
4062         DIV0 exception can fall through to a normal return.
4063
4064 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
4065
4066         PR middle-end/22156
4067         Temporarily revert:
4068         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
4069         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
4070         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
4071         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
4072         initialize align to silence bogus warning.
4073         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
4074         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
4075         all_no_warning.
4076         (struct sra_walk_fns): Remove use_all parameter from use.
4077         (sra_hash_tree): Handle BIT_FIELD_REFs.
4078         (sra_elt_hash): Don't hash bitfld blocks.
4079         (sra_elt_eq): Skip them in parent compares as well.  Handle
4080         BIT_FIELD_REFs.
4081         (sra_walk_expr): Don't maintain or pass down use_all_p.
4082         (scan_use): Remove use_all parameter.
4083         (scalarize_use): Likewise.  Re-expand assignment to
4084         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
4085         output, and re-scalarize after output.  Don't mark anything
4086         for no warning.
4087         (scalarize_ldst): Adjust.
4088         (scalarize_walk_gimple_modify_statement): Likewise.
4089         (build_element_name_1): Handle BIT_FIELD_REFs.
4090         (instantiate_element): Don't warn for any element whose parent
4091         is used as a whole.
4092         (instantiate_missing_elements_1): Return the sra_elt.
4093         (canon_type_for_field): New.
4094         (try_instantiate_multiple_fields): New.
4095         (instantiate_missing_elemnts): Use them.
4096         (mark_no_warning): Removed.
4097         (generate_one_element_ref): Handle BIT_FIELD_REFs.
4098         (REPLDUP, sra_build_elt_assignment): New.
4099         (generate_copy_inout): Use them.
4100         (generate_element_copy): Likewise.  Handle bitfld differences.
4101         (generate_element_zero): Don't recurse for blocks.  Use
4102         sra_build_elt_assignment.
4103         (generate_one_element_int): Take elt instead of var.  Use
4104         sra_build_elt_assignment.
4105         (generate_element_init_1): Adjust.
4106         (scalarize_use, scalarize_copy): Use REPLDUP.
4107         (scalarize_ldst): Move assert before dereference.
4108         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
4109
4110 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4111
4112         PR C++/31721
4113         * tree.c (reconstruct_complex_type): Reconstruct a reference
4114         correctly.
4115         Also use the same mode for the pointer as the old pointer type.
4116
4117 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4118
4119         * doc/trouble.texi (Interoperation): Remove note about Ultrix
4120         Fortran compiler.
4121
4122 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
4123
4124         PR rtl-optimization/31676
4125         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
4126         (df_refs_record): Call it.
4127
4128 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
4129
4130         * rtl.def (SS_ABS): New code.
4131         * config/bfin/bfin.c (print_operand): New modifier 'v'.
4132         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
4133         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
4134         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
4135         (bfin_init_builtins): Define them.
4136         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
4137         (bfin_expand_builtin): ... and handle the others here.
4138         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
4139         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
4140         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
4141         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
4142         operand is only HImode.
4143
4144 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
4145
4146         * regclass.c (scan_one_insn): Remove splitting of
4147         two address insns.
4148
4149 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
4150             Nigel Stephens  <nigel@mips.com>
4151
4152         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
4153
4154 2007-04-28  Jan Hubicka  <jh@suse.cz>
4155
4156         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
4157         insn_locators_alloc instead of insn_locators_initialize;
4158         call reset_block_changes.
4159         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4160         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
4161         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
4162         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4163         * config/score/score.c (th_output_mi_thunk): Likewise.
4164         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
4165         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
4166         tolerate uninitialized locator info.
4167
4168         Re-apply:
4169         * function.c (init_function_start): Don't init line number info.
4170         (expand_function_end): Update.
4171         (reset_block_changes, record_block_change, finalize_block_changes,
4172         check_block_change, free_block_changes): Kill.
4173         * function.h (reset_block_changes, record_block_change,
4174         finalize_block_changes, check_block_change, free_block_changes): Remove
4175         prototypes.
4176         (struct function): Remove ib_boundaries_block.
4177         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
4178         Use curr_insn_locator to initialize locator.
4179         (emit_line_note): Remove.
4180         * cfgexpand.c (expand_gimple_cond_expr): Update.
4181         (construct_exit_block): Likewise.
4182         (tree_expand_cfg): Initialize/finalize locators.
4183         * expr.c (expand_expr_real): Update.
4184         * cfglayout.c (line_locators_locs, line_locators_lines,
4185         file_locators_locs, file_locators_files): Remove.
4186         (set_block_levels): Move to cfgexpand.c.
4187         (insn_locators_initialize): Remove.
4188         (pass_insn_locators_initialize): Remove.
4189         (locations_locators_locs, locations_locators_vals): New static vars.
4190         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
4191         Likewise.
4192         (insn_locators_alloc, insn_locators_finalize,
4193         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
4194         New functions.
4195         (locator_location): New.
4196         (locator_line, locator_file): Rewrite.
4197         * rtl.h (emit_line_note): Kill.
4198         (insn_locators_alloc, insn_locators_finalize,
4199         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
4200         Declare.
4201         * tree-inline.c (initialize_cfun): Do not initialize
4202         ib_boundaries_block.
4203         * passes.c (pass_insn_locators_initialize): Remove.
4204
4205 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
4206
4207         * tree-cfg.c (move_block_to_fn): Release bb from dominance
4208         info.  Update last_basic_block correctly.
4209
4210 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4211
4212         PR target/31701
4213         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
4214         register itself to hold the offset constant.  Tell flow the use
4215         of r4 and r5 when they are used.
4216
4217 2007-04-27  Richard Guenther  <rguenther@suse.de>
4218
4219         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
4220         if we simplified anything.
4221         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
4222         warnings until we did a simplification and the stmt was not
4223         marked as TREE_NO_WARNING.
4224
4225 2007-04-27  Mike Stump  <mrs@apple.com>
4226
4227         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
4228
4229 2007-04-27  Ian Lance Taylor  <iant@google.com>
4230
4231         PR middle-end/31710
4232         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
4233         TYPE_MAX_VALUE exist, convert them to the new type.
4234
4235 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
4236
4237         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
4238         if it claims to be available.
4239         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
4240         edge is redirected.
4241         (perform_tree_ssa_dce): Always free postdominators.
4242
4243 2007-04-27  Richard Henderson  <rth@redhat.com>
4244
4245         * config/alpha/predicates.md (aligned_memory_operand): Mark
4246         as define_special_predicate.
4247         (unaligned_memory_operand, normal_memory_operand): Likewise.
4248         (reg_or_unaligned_mem_operand): Remove.
4249         (any_memory_operand): Match the documentation and check for
4250         non-renumbered pseudos during reload.
4251         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
4252         alpha_secondary_reload_class, update to new interface, make static.
4253         Handle CQImode like HImode.  Remove FP subreg check.
4254         (alpha_expand_mov): Use replace_equiv_address.
4255         (alpha_expand_mov_nobwx): Use any_memory_operand.
4256         (TARGET_SECONDARY_RELOAD): New.
4257         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
4258         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
4259         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
4260         * config/alpha/alpha.md: ... here.
4261         (RELOAD12, reloadmode): New.
4262         (movcqi): New.
4263         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
4264         Don't handle the aligned case here.
4265         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
4266         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
4267         reload_inhi_help.  Don't expect a scratch register.
4268         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
4269         reload_outhi_help.
4270         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
4271
4272 2007-04-27  Richard Guenther  <rguenther@suse.de>
4273
4274         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
4275
4276 2007-04-27  Richard Guenther  <rguenther@suse.de>
4277
4278         PR tree-optimization/30965
4279         PR tree-optimization/30978
4280         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
4281         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
4282         (find_equivalent_equality_comparison): Likewise.
4283         (simplify_cond): Likewise.
4284         (get_prop_source_stmt): New helper.
4285         (get_prop_dest_stmt): Likewise.
4286         (can_propagate_from): Likewise.
4287         (remove_prop_source_from_use): Likewise.
4288         (combine_cond_expr_cond): Likewise.
4289         (forward_propagate_comparison): New function.
4290         (forward_propagate_into_cond): Rewrite to use fold for
4291         tree combining.
4292         (tree_ssa_forward_propagate_single_use_vars): Call
4293         forward_propagate_comparison to propagate comparisons.
4294
4295 2007-04-27  Richard Guenther  <rguenther@suse.de>
4296
4297         PR tree-optimization/31715
4298         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
4299         sure to do computation on the offset in an appropriate
4300         signed type.
4301
4302 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
4303
4304         * reload.h (elimination_target_reg_p): Declare.
4305         * reload.c (find_reloads): Don't apply the reg_rtx move
4306         optimization if the SET_DEST satisfies elimination_target_reg_p.
4307         * reload1.c (elimination_target_reg_p): New function.
4308         (gen_reload): In the move/add2 fallback, make sure that op0
4309         does not overlap the destination register.
4310
4311 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
4312
4313         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
4314         transform only GIMPLE_MODIFY_STMTs.
4315         * tree-complex.c (expand_complex_operations_1): Ditto.
4316         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
4317         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
4318         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
4319         branches.
4320         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
4321         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
4322         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
4323         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
4324         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
4325         slpeel_add_loop_guard): Ditto.
4326         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
4327         * lambda-code.c (perfect_nestify): Ditto.
4328         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
4329         before the first statement.
4330         * tree-optimize.c (execute_free_datastructures): Fix comments.
4331         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
4332         * tree-flow.h (disband_implicit_edges): Declaration removed.
4333         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
4334         branches.
4335         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
4336         without gotos.
4337         (disband_implicit_edges, has_label_p): Removed.
4338         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
4339         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
4340         branches.
4341         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
4342         side effects.
4343         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
4344         also for COND_EXPRs.
4345         * cfgexpand.c (label_rtx_for_bb): New function.
4346         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
4347         Use label_rtx_for_bb to find the labels.
4348         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
4349         last block.  Detect fallthru edges.
4350
4351 2007-04-26  Ian Lance Taylor  <iant@google.com>
4352
4353         PR target/28675
4354         * reload.c (find_reloads_subreg_address): If the address was valid
4355         in the original mode but not in the new mode, reload the whole
4356         address.
4357
4358 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
4359
4360         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
4361         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
4362         (cleanup_control_expr_graph): Do not invalidate dominance info.
4363         Record altered blocks.
4364         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
4365         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
4366         cleanup_tree_cfg_bb): New functions.
4367         (remove_forwarder_block): Do not maintain the worklist of blocks.
4368         Record altered blocks.
4369         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
4370         not over whole cfg.
4371         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
4372         delete_unreachable_blocks if dominators are not available.
4373         * tree-inline.c (optimize_inline_calls): Free dominance information
4374         earlier.
4375         * tree-flow.h (remove_edge_and_dominated_blocks,
4376         cfgcleanup_altered_bbs): Altered.
4377         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
4378         blocks.
4379         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
4380         functions.
4381         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
4382         do not invalidate dominators.
4383
4384 2007-04-26  Anatoly Sokolov <aesok@post.ru>
4385
4386         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
4387         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
4388         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4389         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4390
4391 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
4392
4393         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
4394
4395 2007-04-26  Richard Guenther  <rguenther@suse.de>
4396
4397         PR tree-optimization/31703
4398         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
4399         the right type for the target of the bittest.
4400
4401 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
4402
4403         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
4404         ix86_sol10_return_in_memory.
4405
4406 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
4407
4408         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
4409         variables.
4410
4411 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
4412
4413         PR c++/31598
4414         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
4415
4416         PR tree-optimization/30558
4417         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
4418         clear this_state.prev_try.
4419
4420 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
4421             Mark Mitchell  <mark@codesourcery.com>
4422
4423         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
4424         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
4425         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
4426
4427 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
4428
4429         PR driver/31107
4430         * doc/invoke.texi (%:print-asm-header): Document.
4431         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
4432         and -ftarget-help.
4433         (static_spec_functions): Add print-asm-header.
4434         (main): Print a banner before the --target-help linker options.
4435         (print_asm_header_spec_function): New function.
4436
4437 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4438
4439         PR target/31403
4440         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
4441         (movsf_ie): Likewise.
4442
4443 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
4444
4445         * doc/extend.texi ([Type Traits]): Adjust per N2255.
4446
4447 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
4448
4449         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
4450         for divide-by-zero.
4451         (__umodsi3, __modsi3): Likewise.
4452
4453 2007-04-25  Dirk Mueller  <dmueller@suse.de>
4454
4455         * c-typeck.c (build_compound_expr): Annotate warning()
4456         call with OPT_Wunused_value.
4457         * tree-ssa.c (warn_uninit): Annotate warning with
4458         OPT_Wunintialized.
4459         * c-common.c (handle_sentinel_attribute): Annotate warning
4460         call with OPT_Wattributes.
4461
4462 2007-04-25  Thiemo Seufer  <ths@mips.com>
4463
4464         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
4465         (mips16): Fix typo.
4466         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
4467         on to the assembler.  Improve handling of -mno-mips16.  Add handling
4468         of -mno-mips3d, -mno-dsp, -mno-dspr2.
4469         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
4470         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
4471         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
4472
4473 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
4474
4475         PR target/31680
4476         * config/i386/winnt.c (i386_pe_file_end): Strip only
4477         USER_LABEL_PREFIX when writing export name.
4478
4479 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
4480
4481         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
4482         sh/elf.h, vx-common.h and vxworks.h.
4483         * config/sh/sh.h: Include config/vxworks-dummy.h.
4484         (SUBTARGET_OVERRIDE_OPTIONS): Define.
4485         (OVERRIDE_OPTIONS): Use it.
4486         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
4487         (vxworks_picreg): New pattern.
4488         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
4489         VXWORKS_OS_CPP_BUILTINS.
4490         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
4491         to their VXWORKS_* equivalents.
4492         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
4493         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
4494         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
4495         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
4496         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
4497         -mrtp/-fPIC multilibs.
4498         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
4499         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
4500         (MULTILIB_OSDIRNAMES): Delete.
4501
4502 2007-04-25  Anatoly Sokolov <aesok@post.ru>
4503
4504         PR target/18989
4505         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
4506
4507 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
4508
4509         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
4510         rounding mode to be specified by the caller.
4511         (real_to_mpfr) Likewise.
4512         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
4513         include new arguments.
4514         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
4515
4516 2007-04-24  Ian Lance Taylor  <iant@google.com>
4517
4518         PR tree-optimization/31605
4519         * tree-vrp.c (set_value_range): Check that min and max are not
4520         both overflow infinities.
4521         (set_value_range_to_value): New static function.
4522         (extract_range_from_binary_expr): Call set_value_range_to_value.
4523         (extract_range_from_cond_expr): Likewise.
4524         (extract_range_from_expr): Likewise.
4525         (extract_range_from_unary_expr): Likewise.  Don't create a range
4526         which overflows on both sides.
4527         (vrp_meet): Check for a useless range.
4528         (vrp_visit_phi_node): If we see a constant which looks like an
4529         overflow infinity, turn off the TREE_OVERFLOW flag.
4530
4531 2007-04-24  Ian Lance Taylor  <iant@google.com>
4532
4533         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
4534
4535 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
4536
4537         PR diagnostic/25923
4538         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
4539         diagnostic message is being built.
4540         * tree-pretty-print.c (dump_generic_node): Only write the
4541         formatted text into BUFFER's stream if we are not building a
4542         diagnostic message.
4543         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
4544         dump_generic_node.
4545         * Makefile.in (toplev.o): Depend on tree-pass.h.
4546
4547 2007-04-24  Ian Lance Taylor  <iant@google.com>
4548
4549         PR tree-optimization/31602
4550         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
4551         conditionals in the copied loop header.
4552         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
4553         warnings if TREE_NO_WARNING is set.
4554         * doc/invoke.texi (Warning Options): Clarify that
4555         -Wstrict-overflow does not warn about loops.
4556
4557 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
4558
4559         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
4560         expand on the comment about _Decimal128 arguments and check the
4561         integer result of the modulus operation; for 64-bit ELF ABI, ensure
4562         that _Decimal128 argument uses even/odd register pair.
4563         (function_arg): Ditto.
4564
4565 2007-04-24  Hui-May Chang <hm.chang@apple.com>
4566
4567         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
4568         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
4569
4570 2007-04-24  Richard Guenther  <rguenther@suse.de>
4571             Olga Golovanevsky  <olga@il.ibm.com>
4572
4573         * fold-const.c (multiple_of_p): Check for bottom
4574         to be zero.
4575
4576 2007-04-24  Richard Henderson  <rth@redhat.com>
4577
4578         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
4579         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
4580         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
4581         looking for non-zero bits shifted out.  Avoid a recursive call
4582         when constructing the scalar.
4583         (__floatundisf): Likewise.
4584
4585 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
4586
4587         * dwarf2out.c (field_byte_offset): Move the existing logic
4588         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
4589         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
4590
4591 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
4592
4593         PR target/31641
4594         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
4595         argument of 0 for memset.
4596         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
4597         unsigned shift instead of the signed variant.
4598
4599 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
4600
4601         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
4602         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
4603         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
4604         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
4605         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
4606         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
4607         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
4608         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
4609         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
4610         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
4611         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
4612         "mul<mode>3", "div<mode>3"): Insn definitions added.
4613         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
4614         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
4615         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
4616         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
4617         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
4618         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
4619         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
4620         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
4621         TARGET_FLOAT_FORMAT): Macro definitions removed.
4622         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
4623         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
4624         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
4625         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
4626         (s390_gen_rtx_const_DI): Function removed.
4627         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
4628
4629 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
4630
4631         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
4632         over an external ffs function.
4633
4634 2007-04-24  Chao-ying Fu  <fu@mips.com>
4635             Richard Sandiford  <richard@nildram.co.uk>
4636
4637         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
4638         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
4639         (smadd_widen_optab, umadd_widen_optab): Define.
4640         * optabs.c (init_optabs): Initialize smadd_widen_optab and
4641         umadd_widen_optab.
4642         * genopinit.c (optabs): Fill in smadd_widen_optab and
4643         umadd_widen_optab.
4644         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
4645         and umadd_widen_optab to implement multiply-add sequences.
4646         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
4647         (<u>maddsidi4): ...this.  Extend condition to include
4648         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
4649         of operand 0 to "ka" and use the three-operand form of madd<u>
4650         for TARGET_DSPR2.
4651         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
4652         to define_expands.
4653         * config/mips/constraints.md (ka): New register constraint.
4654
4655 2007-04-24  Jan Hubicka  <j@suse.cz>
4656
4657         Revert:
4658
4659         2007-04-23  Jan Hubicka  <jh@suse.cz>
4660         * function.c (init_function_start): Don't init line number info.
4661         (expand_function_end): Update.
4662         (reset_block_changes, record_block_change, finalize_block_changes,
4663         check_block_change, free_block_changes): Kill.
4664         * function.h (reset_block_changes, record_block_change,
4665         finalize_block_changes, check_block_change, free_block_changes): Remove
4666         prototypes.
4667         (struct function): Remove ib_boundaries_block.
4668         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
4669         Use curr_insn_locator to initialize locator.
4670         (emit_line_note): Remove.
4671         * cfgexpand.c (expand_gimple_cond_expr): Update.
4672         (construct_exit_block): Likewise.
4673         (tree_expand_cfg): Initialize/finalize locators.
4674         * expr.c (expand_expr_real): Update.
4675         * cfglayout.c (line_locators_locs, line_locators_lines,
4676         file_locators_locs, file_locators_files): Remove.
4677         (set_block_levels): Move to cfgexpand.c.
4678         (insn_locators_initialize): Remove.
4679         (pass_insn_locators_initialize): Remove.
4680         (locations_locators_locs, locations_locators_vals): New static vars.
4681         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
4682         Likewise.
4683         (insn_locators_alloc, insn_locators_finalize,
4684         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
4685         New functions.
4686         (locator_location): New.
4687         (locator_line, locator_file): Rewrite.
4688         * rtl.h (emit_line_note): Kill.
4689         (insn_locators_alloc, insn_locators_finalize,
4690         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
4691         Declare.
4692         * tree-inline.c (initialize_cfun): Do not initialize
4693         ib_boundaries_block.
4694         * passes.c (pass_insn_locators_initialize): Remove.
4695
4696 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
4697
4698         * doc/invoke.texi: Removed leading '-' from option index entries.
4699
4700 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
4701
4702         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
4703         Use phi_nodes_ptr.
4704         (create_phi_node): Use set_phi_nodes.
4705         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
4706         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
4707         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
4708         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
4709         (bsi_start, bsi_last): Use bb_stmt_list.
4710         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
4711         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
4712         Traverse the statements using tsi iterator.
4713         * basic-block.h (struct basic_block_def): Fields stmt_list
4714         and phi_nodes moved to ...
4715         (struct tree_bb_info): ... new structure.
4716         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
4717         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
4718         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
4719         (tree_verify_flow_info): Verify that il.tree is not set for
4720         entry and exit block.
4721         (tree_split_block): Use set_bb_stmt_list.
4722
4723 2007-04-23  Mike Stump  <mrs@apple.com>
4724
4725         * config/i386/i386.c (ix86_tune_features
4726         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
4727         nocona and core2.
4728
4729 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
4730
4731         * config/i386/i386.md (prefix_extra): New attribute.
4732         (length): Add prefix_extra.
4733
4734         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
4735         (sse2_movntv2di): Likewise.
4736         (sse2_cvtps2dq): Likewise.
4737         (sse2_cvtpd2pi): Likewise.
4738         (sse2_cvttpd2pi): Likewise.
4739         (*sse2_cvtpd2ps): Likewise.
4740         (*add<mode>3): Likewise.
4741         (sse2_ssadd<mode>3): Likewise.
4742         (sse2_usadd<mode>3): Likewise.
4743         (*sub<mode>3): Likewise.
4744         (sse2_sssub<mode>3): Likewise.
4745         (sse2_ussub<mode>3): Likewise.
4746         (*mulv8hi3): Likewise.
4747         (*smulv8hi3_highpart): Likewise.
4748         (*umulv8hi3_highpart): Likewise.
4749         (sse2_umulv2siv2di3): Likewise.
4750         (sse2_pmaddwd): Likewise.
4751         (ashr<mode>3): Likewise.
4752         (lshr<mode>3): Likewise.
4753         (ashl<mode>3): Likewise.
4754         (sse2_ashlti3): Likewise.
4755         (sse2_lshrti3): Likewise.
4756         (*umaxv16qi3): Likewise.
4757         (*smaxv8hi3): Likewise.
4758         (*uminv16qi3): Likewise.
4759         (*sminv8hi3): Likewise.
4760         (sse2_eq<mode>3): Likewise.
4761         (sse2_gt<mode>3): Likewise.
4762         (*and<mode>3): Likewise.
4763         (sse2_nand<mode>3): Likewise.
4764         (*ior<mode>3): Likewise.
4765         (*xor<mode>3): Likewise.
4766         (sse2_packsswb): Likewise.
4767         (sse2_packssdw): Likewise.
4768         (sse2_packuswb): Likewise.
4769         (sse2_punpckhbw): Likewise.
4770         (sse2_punpcklbw): Likewise.
4771         (sse2_punpckhwd): Likewise.
4772         (sse2_punpcklwd): Likewise.
4773         (sse2_punpckhdq): Likewise.
4774         (sse2_punpckldq): Likewise.
4775         (sse2_punpckhqdq): Likewise.
4776         (sse2_punpcklqdq): Likewise.
4777         (*sse2_pinsrw): Likewise.
4778         (*sse2_pextrw): Likewise.
4779         (sse2_pshufd_1): Likewise.
4780         (sse2_uavgv16qi3): Likewise.
4781         (sse2_uavgv8hi3): Likewise.
4782         (sse2_psadbw): Likewise.
4783         (sse2_pmovmskb): Likewise.
4784         (*sse2_maskmovdqu): Likewise.
4785         (*sse2_maskmovdqu_rex64): Likewise.
4786         (sse4a_extrqi): Likewise.
4787         (sse4a_extrq): Likewise.
4788         (sse3_lddqu): Set prefix_rep.
4789         (sse3_addsubv4sf3): Likewise.
4790         (sse3_haddv4sf3): Likewise.
4791         (sse3_hsubv4sf3): Likewise.
4792         (sse_cvtss2si): Likewise.
4793         (sse_cvtss2si_2): Likewise.
4794         (sse_cvtss2siq): Likewise.
4795         (sse_cvtss2siq_2): Likewise.
4796         (sse_cvttss2si): Likewise.
4797         (sse_cvttss2siq): Likewise.
4798         (sse2_cvttps2dq): Likewise.
4799         (sse3_movshdup): Likewise.
4800         (sse3_movsldup): Likewise.
4801         (sse2_cvtsd2si): Likewise.
4802         (sse2_cvtsd2si_2): Likewise.
4803         (sse2_cvtsd2siq): Likewise.
4804         (sse2_cvtsd2siq_2): Likewise.
4805         (sse2_cvttsd2si): Likewise.
4806         (sse2_cvttsd2siq): Likewise.
4807         (*sse2_cvtpd2dq): Likewise.
4808         (*sse2_cvttpd2dq): Likewise.
4809         (sse2_pshuflw_1): Likewise.
4810         (sse2_pshufhw_1): Likewise.
4811         (sse4a_insertqi): Likewise.
4812         (sse4a_insertq): Likewise.
4813         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
4814         (ssse3_phadddv4si3): Likewise.
4815         (ssse3_phaddswv8hi3): Likewise.
4816         (ssse3_phsubwv8hi3): Likewise.
4817         (ssse3_phsubdv4si3): Likewise.
4818         (ssse3_phsubswv8hi3): Likewise.
4819         (ssse3_pmaddubswv8hi3): Likewise.
4820         (ssse3_pmulhrswv8hi3): Likewise.
4821         (ssse3_pshufbv16qi3): Likewise.
4822         (ssse3_psign<mode>3): Likewise.
4823         (ssse3_palignrti): Likewise.
4824         (abs<mode>2): Likewise.
4825         (ssse3_phaddwv4hi3): Set prefix_extra.
4826         (ssse3_phadddv2si3): Likewise.
4827         (ssse3_phaddswv4hi3): Likewise.
4828         (ssse3_phsubwv4hi3): Likewise.
4829         (ssse3_phsubdv2si3): Likewise.
4830         (ssse3_phsubswv4hi3): Likewise.
4831         (ssse3_pmaddubswv4hi3): Likewise.
4832         (ssse3_pmulhrswv4hi3): Likewise.
4833         (ssse3_pshufbv8qi3): Likewise.
4834         (ssse3_psign<mode>3): Likewise.
4835         (ssse3_palignrdi): Likewise.
4836         (abs<mode>2): Likewise.
4837         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
4838         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
4839         (sse2_pmovmskb): Set mode to SI instead of V2DF.
4840
4841 2007-04-23  Nick Clifton  <nickc@redhat.com>
4842
4843         * params.def: Fix formatting of emacs local variables.
4844
4845 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
4846
4847         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
4848         move if inter-unit move isn't allowed.
4849         Don't split moving the first element of V2DI to DI to inter-unit
4850         move if inter-unit move isn't allowed.
4851
4852 2007-04-23  Richard Guenther  <rguenther@suse.de>
4853
4854         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
4855         and CDI_POST_DOMINATORS separately.
4856
4857 2007-04-23  Nick Clifton  <nickc@redhat.com>
4858
4859         * c.opt (Wformat-contains-nul): Add warning attribute.
4860
4861 2007-04-23  Jan Hubicka  <jh@suse.cz>
4862
4863         * function.c (init_function_start): Don't init line number info.
4864         (expand_function_end): Update.
4865         (reset_block_changes, record_block_change, finalize_block_changes,
4866         check_block_change, free_block_changes): Kill.
4867         * function.h (reset_block_changes, record_block_change,
4868         finalize_block_changes, check_block_change, free_block_changes): Remove
4869         prototypes.
4870         (struct function): Remove ib_boundaries_block.
4871         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
4872         Use curr_insn_locator to initialize locator.
4873         (emit_line_note): Remove.
4874         * cfgexpand.c (expand_gimple_cond_expr): Update.
4875         (construct_exit_block): Likewise.
4876         (tree_expand_cfg): Initialize/finalize locators.
4877         * expr.c (expand_expr_real): Update.
4878         * cfglayout.c (line_locators_locs, line_locators_lines,
4879         file_locators_locs, file_locators_files): Remove.
4880         (set_block_levels): Move to cfgexpand.c.
4881         (insn_locators_initialize): Remove.
4882         (pass_insn_locators_initialize): Remove.
4883         (locations_locators_locs, locations_locators_vals): New static vars.
4884         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
4885         Likewise.
4886         (insn_locators_alloc, insn_locators_finalize,
4887         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
4888         New functions.
4889         (locator_location): New.
4890         (locator_line, locator_file): Rewrite.
4891         * rtl.h (emit_line_note): Kill.
4892         (insn_locators_alloc, insn_locators_finalize,
4893         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
4894         Declare.
4895         * tree-inline.c (initialize_cfun): Do not initialize
4896         ib_boundaries_block.
4897         * passes.c (pass_insn_locators_initialize): Remove.
4898
4899 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4900
4901         PR middle-end/31448
4902         * expr.c (reduce_to_bit_field_precision): Handle
4903         CONST_INT rtx's.
4904
4905 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
4906
4907         PR tree-optimization/24659
4908         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
4909         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
4910         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
4911         * genopinit.c (optabs): Rename vec_pack_mod_optab
4912         to vec_pack_trunc_optab.
4913         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
4914         early for scalar floating point operands for NOP_EXPR.
4915         (vectorizable_type_promotion): Ditto.
4916         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
4917         vec_pack_trunc_optab.
4918         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
4919
4920         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
4921         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
4922         Rename from VEC_PACK_MOD_EXPR.
4923         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
4924         * expr.c (expand_expr_real_1): Ditto.
4925         * tree-inline.c (estimate_num_insns_1): Ditto.
4926         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4927
4928         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
4929         (vec_unpacks_lo_v4sf): Ditto.
4930         (vec_pack_trunc_v2df): Ditto.
4931         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
4932         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
4933         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
4934
4935         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
4936         vec_pack_mod_v8hi.
4937         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
4938
4939         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
4940         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
4941         packing of floating point operands.
4942         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
4943         represent unpacking of floating point operands.
4944         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
4945         [vec_unpacks_hi]: Ditto.
4946         [vec_unpacks_lo]: Ditto.
4947
4948 2007-04-22  Jan Hubicka  <jh@suse.cz>
4949
4950         * final.c (rest_of_handle_final): Call
4951         targetm.asm_out.constructor/targetm.asm_out.destructor
4952         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
4953         proper priority via decl_*_priority_insert.
4954         * c-common.c (c_expand_body): Likewise.
4955
4956 2007-04-22  Richard Guenther  <rguenther@suse.de>
4957
4958         PR tree-optimization/29789
4959         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
4960         (rewrite_reciprocal): New helper split out from
4961         determine_invariantness_stmt.
4962         (rewrite_bittest): Likewise.
4963         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
4964         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
4965         is not.
4966
4967 2007-04-22  Revital Eres  <eres@il.ibm.com>
4968
4969         * loop-unroll.c (var_to_expand): New field to support also
4970         insns of the form x = something + x.
4971         (analyze_insn_to_expand_var): Use it.
4972         (expand_var_during_unrolling): Likewise.
4973
4974 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
4975
4976         * predict.c: Include pointer-set.h.
4977         (bb_predictions): New variable.
4978         (tree_predicted_by_p, tree_predict_edge,
4979         remove_predictions_associated_with_edge): Use bb_predictions map
4980         instead of bb->predictions.
4981         (clear_bb_predictions, assert_is_empty): New functions.
4982         (combine_predictions_for_bb): Use bb_predictions map.  Call
4983         clear_bb_predictions.
4984         (tree_estimate_probability): Create and free bb_predictions map.
4985         * Makefile.in (predict.o): Add pointer-set.h dependency.
4986         * basic-block.h (struct basic_block_def): Remove predictions
4987         field.
4988         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
4989
4990 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
4991
4992         PR target/31480
4993         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
4994         is null.
4995
4996 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4997
4998         * timevar.c (timevar_print): Change reference of --disable-checking to
4999         --enable-checking=release.  Also warn if assert checking is disabled.
5000
5001 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5002
5003         PR C/30265
5004         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
5005         decl as addressable if the compound literal was marked as
5006         addressable.
5007         Mark the decl as a gimple register if it is a complex or
5008         vector decl and does not live in memory.
5009
5010 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5011
5012         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
5013         (GENERIC_NEXT): New function macro.
5014         (PHI_CHAIN): Use phi_node's new chain variable.
5015         (tree_phi_node): Change tree_common to tree_base
5016         and add the chain field.
5017         * tree-phinodes.c (make_phi_node): Don't set
5018         TREE_TYPE on the new node.
5019         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
5020         instead of checking GIMPLE_TUPLE_P in chain_next.
5021         * tree-vect-transform.c
5022         (get_initial_def_for_induction): Look at
5023         PHI_RESULT_TREE for the type of the phi node.
5024         (update_vuses_to_preheader): Use PHI_CHAIN
5025         instead of TREE_CHAIN on the phi node.
5026         * tree-ssa-structalias.c (compute_points_to_sets):
5027         Likewise.
5028         (ipa_pta_execute): Likewise.
5029
5030 2007-04-21  Richard Guenther  <rguenther@suse.de>
5031
5032         PR middle-end/31136
5033         * fold-const.c (fold_unary): Call fold_convert_const on the
5034         original tree.
5035
5036 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
5037
5038         * gcse.c (store_killed_in_insn): Handle PARALLELs.
5039         (store_killed_in_pat): New.
5040
5041 2007-04-20  Richard Henderson  <rth@redhat.com>
5042
5043         PR target/31628
5044         * config/i386/i386.c (type_has_variadic_args_p): Look for any
5045         TREE_LIST with a void_type_node value, not void_list_node exactly.
5046
5047 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
5048
5049         * doc/standards.texi: Re-arrange into language-specific
5050         subsections. Add a C++ section, documenting which standards we
5051         support.
5052
5053 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
5054
5055         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
5056         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
5057
5058 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
5059
5060         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
5061         ecrti.o and crtbegin.o.
5062         (LIB_DEFAULT_SPEC): Include -lc.
5063         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
5064
5065 2007-04-20  Richard Henderson  <rth@redhat.com>
5066
5067         PR target/28623
5068         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
5069         argument; update all callers.
5070         (get_unaligned_offset): New.
5071         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
5072         get_unaligned_address, just pass on the address directly.
5073         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
5074         the subreg in the helper patterns.
5075         (unaligned_extendqidi_le): Use get_unaligned_offset.
5076         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
5077         (unaligned_extendhidi_be): Likewise.
5078         (unaligned_extendhidi): Tidy.
5079         * config/alpha/alpha-protos.h: Update.
5080
5081 2007-04-20  Richard Henderson  <rth@redhat.com>
5082
5083         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
5084         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5085         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
5086         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
5087         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
5088         (CPP_SPEC): Don't include %(cpp_subtarget).
5089         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
5090         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
5091         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
5092
5093 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
5094
5095         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
5096         for __builtin_ia32_cmpordss.
5097
5098         PR tree-optimization/31632
5099         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
5100         and arg1 for optimizations of comparison against min/max values.
5101         Fold arg0 to arg1's type for optimizations of comparison against
5102         min+1 and max-1 values.
5103
5104 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
5105
5106         * reload.c (combine_reloads): When trying to use a dying register,
5107         check whether it's uninitialized and don't use if so.
5108
5109 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
5110
5111         * fold-const.c: Remove prototypes for native_encode_expr and
5112         native_interpret_expr.
5113         (native_encode_expr): Make non-static.
5114         (native_interpret_expr): Likewise.
5115         * tree.h: Add prototypes for the above.
5116
5117 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
5118
5119         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
5120         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
5121         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
5122         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
5123         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
5124         Add length attributes.
5125
5126 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
5127
5128         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
5129         not that it is 1.
5130
5131         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
5132         __STDC_WANT_DEC_FP__.
5133
5134 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
5137         for long double compatibility.
5138         * configure: Regenerate.
5139
5140 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
5141
5142         PR rtl-optimization/29841
5143         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
5144         trap instructions.
5145         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
5146         that may cause control flow transfer from being moved.
5147
5148 2007-04-18  Jan Hubicka  <jh@suse.cz>
5149
5150         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
5151         types.
5152
5153 2007-04-18  Eric Christopher  <echristo@apple.com>
5154
5155         * config/rs6000/darwin.md (load_macho_picbase): Use link register
5156         only. Update operands.
5157         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
5158         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
5159         link register to pic register.
5160
5161 2007-04-18  Dirk Mueller  <dmueller@suse.de>
5162
5163         PR diagnostic/31227
5164         * tree-vrp.c (search_for_addr_array): New.
5165         (check_array_bounds): Suppress warning about
5166         address taken of array refs if its not de-referenced.
5167
5168 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
5169
5170         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
5171         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
5172
5173         * tree-vectorizer.h (NITERS_KNOWN_P): New.
5174         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
5175         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
5176
5177         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
5178         dump print.
5179         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
5180         print message.
5181         (vect_analyze_scalar_cycles): Fix indentation.
5182         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
5183         (vect_mark_relevant): Include phis in relevance analysis.
5184
5185         * tree-vect-transform.c (vect_transform_loop): Add an assert.
5186
5187 2007-04-18  Anatoly Sokolov <aesok@post.ru>
5188
5189         * config/avr/avr.c (ptrreg_to_str): Replace error() with
5190         output_operand_lossage().
5191
5192 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
5193
5194         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
5195         the unused code for reduction without adjust-in-epilog to simplify the
5196         function.
5197
5198 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
5199
5200         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
5201         (S390_TDC_NEGATIVE_ZERO): New constant.
5202         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
5203         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
5204         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
5205         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
5206         (S390_TDC_POSITIVE_INFINITY): New constant.
5207         (S390_TDC_NEGATIVE_INFINITY): New constant.
5208         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
5209         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
5210         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
5211         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
5212         (S390_TDC_INFINITY): New constant.
5213         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
5214         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
5215         optimization for UNSPEC_CCZ_TO_INT.
5216         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
5217         ("*ccz_to_int"): New insn.
5218         ("isinf<mode>2"): New insn.
5219         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
5220         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
5221         (UNSPEC_CCZ_TO_INT): New constant.
5222
5223 2007-04-18  Richard Guenther  <rguenther@suse.de>
5224
5225         PR tree-optimization/19431
5226         PR tree-optimization/21463
5227         * tree-pass.h (pass_phiprop): Declare.
5228         * passes.c (init_optimization_passes): New phiprop pass.
5229         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
5230         (phivn_valid_p): New helper function.
5231         (phiprop_insert_phi): Likewise.
5232         (propagate_with_phi): Likewise.
5233         (tree_ssa_phiprop): New propagator propagating loads
5234         through phi nodes if profitable.
5235
5236 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
5237
5238         * tree-vect-analyze.c (process_use): New function.
5239         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
5240         Check phis in all bbs.
5241         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
5242         assert.
5243
5244 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
5245
5246         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
5247         we use REG_EQUAL.
5248
5249 2007-04-17  Anatoly Sokolov <aesok@post.ru>
5250
5251         PR target/30483
5252         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
5253         error().
5254
5255 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
5258         on "0".
5259         (sse_vmmulv4sf3): Likewise.
5260         (sse2_vmaddv2df3): Likewise.
5261         (sse2_vmmulv2df3): Likewise.
5262
5263 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
5264
5265         PR rtl-optimization/31360
5266         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
5267         (target_reg_cost): New.
5268         (init_set_costs): Initialize target_reg_cost.  Add comments
5269         regarding the rationale of the costs.
5270         (global_cost_for_size): Renamed to...
5271         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
5272         of register pressure.
5273         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
5274         estimate_reg_pressure_cost.  Add number of ivs.
5275         (determine_set_costs): Dump target_reg_cost.
5276         * loop-invariant.c (gain_for_invariant):  Use
5277         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
5278         (best_gain_for_invariant, find_invariants_to_move): Remove
5279         n_inv_uses.
5280         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
5281         (target_reg_cost): Declare.
5282         (global_cost_for_size): Declaration removed.
5283         (estimate_reg_pressure_cost): Declare.
5284
5285 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
5286
5287         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
5288         regnos into even/odd register pairs.
5289         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
5290         TDmode similar to the other floating point modes.
5291         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
5292         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
5293         define_expand's.
5294         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
5295         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
5296         (movdd_hardfloat64): Use TARGET_MFPGPR.
5297
5298 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
5299
5300         * reload1.c (delete_output_reload): Don't count output in n_inherited.
5301
5302         Revert
5303         2005-01-05  Richard Henderson  <rth@redhat.com>
5304         PR rtl-opt/10692
5305         * reload1.c (do_input_reload): Restrict the optimization deleteing
5306         a previous output reload to RELOAD_FOR_INPUT.
5307
5308 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
5309
5310         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
5311         induc_vec_info_type.
5312         (vectorizable_induction): New function declaration.
5313         * tree-vect-transform.c (get_initial_def_for_induction): No need to
5314         check if already vectorized.  Find first place in BB where new stmts
5315         can be inserted.  Takes only one argument.
5316         (vectorizable_induction): New function.
5317         (vect_transform_stmt): Add case for induc_vec_info_type to call
5318         vectorizable_induction.
5319         (vect_transform_loop): Consider phis for vectorization.
5320         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
5321         condition.
5322         (analyze_operations): Call vectorizable_induction when analyzing phis.
5323         Fix comment.
5324         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
5325         (vect_mark_relevant): Include phis in relevance analysis.
5326         (vect_mark_stmts_to_be_vectorize): Likewise.
5327         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
5328
5329 2007-04-16  Lawrence Crowl  <crowl@google.com>
5330
5331         * doc/invoke.texi (Debugging Options): Add documentation for the
5332         -femit-struct-debug options -femit-struct-debug-baseonly,
5333         -femit-struct-debug-reduced, and
5334         -femit-struct-debug-detailed[=...].
5335
5336         * c-opts.c (c_common_handle_option): Add
5337         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
5338         and OPT_femit_struct_debug_detailed_.
5339         * c.opt: Add specifications for
5340         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
5341         and -femit-struct-debug-detailed[=...].
5342         * opts.c (set_struct_debug_option): Parse the
5343         -femit-struct-debug-... options.
5344         * opts.c (matches_main_base, main_input_basename,
5345         main_input_baselength, base_of_path, matches_main_base): Add
5346         variables and functions to compare header base name to compilation
5347         unit base name.
5348         * opts.c (should_emit_struct_debug): Add to determine to emit a
5349         structure based on the option.
5350         (dump_struct_debug) Also disabled function to debug this
5351         function.
5352         * opts.c (handle_options): Save the base name of the
5353         compilation unit.
5354
5355         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
5356         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
5357         This hook indicates if a type is generic.  Set it by default
5358         to "never generic".
5359         * langhooks.h (struct lang_hooks_for_types): Add a new hook
5360         to determine if a struct type is generic or not.
5361         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
5362         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
5363         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
5364         with live C++ hook.
5365
5366         * flags.h (enum debug_info_usage): Add an enumeration to describe
5367         a program's use of a structure type.
5368         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
5369         to indicate the program's usage of the type.  Filter structs based
5370         on the -femit-struct-debug-... specification.
5371         (gen_type_die): Split into two routines, gen_type_die and
5372         gen_type_die_with_usage.  gen_type_die is now a wrapper
5373         that assumes direct usage.
5374         (gen_type_die_with_usage): Replace calls to gen_type_die
5375         with gen_type_die_with_usage adding the program usage of
5376         the referenced type.
5377         (dwarf2out_imported_module_or_decl): Suppress struct debug
5378         information using should_emit_struct_debug when appropriate.
5379
5380 2007-04-16  Ian Lance Taylor  <iant@google.com>
5381
5382         PR tree-optimization/31522
5383         * tree-vrp.c (vr_phi_edge_counts): New static variable.
5384         (vrp_initialize): Allocate vr_phi_edge_counts.
5385         (vrp_visit_phi_node): Don't push to infinity if we saw a new
5386         executable edge.  Drop test for all constants.
5387         (vrp_finalize): Free vrp_phi_edge_counts.
5388
5389         * doc/cpp.texi (Common Predefined Macros): Clarify description of
5390         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
5391
5392         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
5393         predecessors at head rather than tail.
5394
5395 2007-04-16  Matthias Klose  <doko@debian.org>
5396
5397         * config/alpha/linux.h (CPP_SPEC): Define.
5398         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
5399
5400 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
5401
5402         * function.h: Remove sequence_stack extern declaration.
5403
5404 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
5405
5406         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
5407         TARGET_FIDOA.
5408         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
5409         defined.
5410
5411 2007-04-16  Anatoly Sokolov <aesok@post.ru>
5412
5413         * config/avr/avr.c (avr_arch_types): Rearranging  array.
5414         (enum avr_arch): Add.
5415         (avr_mcu_types): Use avr_arch enumeration constants instead of
5416         numbers.
5417         * config/avr/avr.h (LINK_SPEC): Simplify.
5418
5419 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
5420
5421         * config/m68k/m68k.c (m68k_libcall_value,
5422         m68k_function_value): Use macros for register names more.
5423
5424         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
5425         instead.
5426         (M68K_REGNAME): Use A6_REG.
5427         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
5428
5429 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
5430
5431         PR middle-end/28071
5432         * sched-int.h (struct deps): Split field 'pending_lists_length' into
5433         'pending_read_list_length' and 'pending_write_list_length'.  Update
5434         comment.
5435         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
5436         to handle two length counters instead of one.  Update all uses.
5437         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
5438         two length counters instead of one.
5439         * sched-rgn.c (propagate_deps): Update to handle two length counters
5440         instead of one.
5441
5442 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
5443
5444         PR target/31582
5445         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
5446         copy of source, pass it to ix86_expand_vector_set and return
5447         it as target.
5448
5449 2007-04-16  David Ung  <davidu@mips.com>
5450             Joseph Myers  <joseph@codesourcery.com>
5451
5452         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
5453         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
5454         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
5455         Add 74K processor information.
5456         * config/mips/mips.md: Include 74k.md.
5457         (cpu): Add 74kc,74kf,74kx.
5458         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
5459         * config/mips/74k.md: New.
5460         * doc/invoke.texi (MIPS Options): Document 74K support.
5461
5462 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
5463
5464         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
5465         vectorizable_* functions.
5466         * tree-vect-transform.c (vectorizable_call): Add check for
5467         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
5468         (vectorizable_store): likewise.
5469         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
5470         Add comments.
5471         (vectorizable_operation, vectorizable_type_demotion): Likewise.
5472         (vectorizable_type_promotion, vectorizable_load): Likewise.
5473         (vectorizable_live_operation, vectorizable_condition): Likewise.
5474         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
5475         STMT_VINFO_LIVE_P.
5476         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
5477
5478 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
5479
5480         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
5481         register numbers more.
5482         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
5483         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
5484         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
5485         FUNCTION_VALUE_REGNO_P): Likewise.
5486         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
5487         STATIC_CHAIN_REGNUM): Likewise.
5488         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
5489         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
5490         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
5491         * config/m68k/m68k.md (FP_REG): New.
5492
5493 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
5494
5495         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
5496         alignment on fido.
5497
5498 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
5499
5500         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
5501         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
5502         comment typos.
5503
5504 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
5505
5506         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
5507         cold loops.
5508
5509 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5510
5511         PR c/31520
5512         * c-decl.c (finish_decl): Grab the type of the decl after the call
5513         to store_init_value.
5514
5515 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
5516
5517         * common.opt (fforward-propagate): Fix "Optimization" annotation.
5518
5519 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
5520
5521         PR c++/25874
5522         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
5523         post dominators and cleanup cfg before returning.
5524
5525 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
5526
5527         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
5528         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
5529
5530 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
5531
5532         * config.gcc: Recognize fido.
5533         * config/m68k/m68k-devices.def (fidoa): New.
5534         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
5535         __mfido__.
5536         (FL_FIDOA, TARGET_FIDOA): New.
5537         * config/m68k/m68k.opt (mfidoa): New.
5538
5539 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5540
5541         PR middle-end/31322
5542         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
5543         when a personality function is used.
5544
5545 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
5546
5547         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
5548
5549 2007-04-13  Mike Stump  <mrs@apple.com>
5550
5551         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
5552         we can...
5553         * config/darwin.opt (fapple-kext): Make C++ only.
5554         * config/darwin.c (darwin_override_options): Remove code to ensure
5555         -fapple-kext is given for C++ only.
5556
5557 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
5558
5559         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
5560         * config/mips/mips.c (override_options): Call
5561         SUBTARGET_OVERRIDE_OPTIONS, if defined.
5562
5563 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5564
5565         * config/i386/i386.opt (msvr3-shlib): Removed.
5566
5567         * doc/invoke.texi: Remove -msvr3-shlib.
5568
5569 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5570
5571         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
5572         with "popcnt" instruction.
5573
5574 2007-04-13  Richard Guenther  <rguenther@suse.de>
5575
5576         PR tree-optimization/21258
5577         * tree-vrp.c (compare_case_labels): New helper.
5578         (find_switch_asserts): New function.
5579         (find_assert_locations): Call it for SWITCH_EXPRs.
5580
5581 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
5582
5583         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
5584         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
5585         check is now implied in X87_FLOAT_MODE_P.
5586         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
5587         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
5588         (fix_trunc<mode>_i386_fisttp): Ditto.
5589         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
5590         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
5591         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
5592         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
5593         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
5594         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
5595         (unnamed_splitters): Ditto.
5596         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
5597         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
5598         FIRST_SSE_REG for local functions when SSE math is enabled or
5599         for functions with sseregparm attribute.
5600         (standard_80387_constant_p): Return -1 if mode is not
5601         X87_FLOAT_MODE_P.
5602         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
5603         (ix86_expand_compare): Ditto.
5604         (ix86_expand_carry_flag_compare): Ditto.
5605         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
5606         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
5607         DECIMAL_FLOAT_MODE_P.
5608         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
5609         of SCALAR_FLOAT_MODE_P.
5610         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
5611         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
5612         checks before FLOAT_MODE_P.
5613         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
5614         before FLOAT_MODE_P.
5615         [DIV]: Ditto.
5616         [NEG]: Ditto.
5617         [ABS]: Ditto.
5618         [SQRT]: Ditto.
5619         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
5620
5621 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
5622             Charles Wilson  <libtool@cwilson.fastmail.fm>
5623
5624         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
5625         (libgcc.mvars): Don't depend on them.
5626         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
5627         * exec-tool.in: New.
5628
5629 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
5630
5631         * doc/invoke.text (--help): Document --help=common.
5632
5633 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
5634
5635         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
5636
5637 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5638
5639         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
5640         * genemit.c (main): Emit #include "integrate.h".
5641         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
5642         (LOADGP_RTP): New mips_loadgp_style.
5643         * config/mips/mips.h: Include config/vxworks-dummy.h.
5644         (TARGET_RTP_PIC): New macro.
5645         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
5646         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
5647         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
5648         for TARGET_RTP_PIC.
5649         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
5650         -mvxworks-pic when using -mrtp and a PIC option.
5651         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
5652         for RTP PIC.
5653         (mips_symbolic_constant_p, mips_symbolic_address_p)
5654         (mips_symbol_insns): Handle SYMBOL_HALF.
5655         (override_options): Warn about -G and -mrtp being used together.
5656         Initialize mips_lo_relocs[SYMBOL_HALF].
5657         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
5658         (mips_emit_loadgp): Handle LOADGP_RTP.
5659         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
5660         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
5661         (tablejump): Handle function-relative case table entries if
5662         TARGET_RTP_PIC.
5663         * config/mips/predicates.md (symbol_ref_operand): New predicate.
5664
5665 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5666
5667         * config/mips/mips.md (load_call<mode>): Allow any general register.
5668         destination.
5669         (sibcall_value_internal, sibcall_value_multiple_internal)
5670         (call_value_internal, call_value_split, call_value_multiple_internal)
5671         (call_value_multiple_split): Remove constraints from operand 0.
5672
5673 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5674
5675         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
5676         rather than loadgp_noshared.
5677         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
5678         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
5679         gen_loadgp.
5680         * config/mips/mips.md (loadgp): Rename to...
5681         (loadgp_newabi): ...this.
5682         (loadgp_noshared): Rename to...
5683         (loadgp_absolute): ...this.
5684
5685 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5686
5687         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
5688         false for locally-binding symbols.
5689         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
5690
5691 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5692
5693         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
5694         (SYMBOL_GOT_PAGE_OFST): ...this.
5695         (SYMBOL_GOT_GLOBAL): Rename to...
5696         (SYMBOL_GOT_DISP): ...this.
5697         (SYMBOL_GOTOFF_GLOBAL): Rename to...
5698         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
5699         * config/mips/mips.c (mips_global_symbol_p): New function.
5700         (mips_symbol_binds_local_p): Likewise.
5701         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
5702         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
5703         and mips_symbol_binds_local_p.
5704         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
5705         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
5706         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
5707         SYMBOL_GOTOFF_DISP.
5708         (mips_ok_for_lazy_binding_p): New function.
5709         (mips_load_call_address, mips_expand_call): Use it.
5710         (mips_dangerous_for_la25_p): Likewise.
5711         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
5712         (*got_disp<mode>): Use got_disp_operand instead of
5713         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
5714         SYMBOL_GOTOFF_GLOBAL.
5715         (*got_page<mode>): Use got_page_ofst_operand instead of
5716         local_got_operand.
5717         * config/mips/predicates.md (const_call_insn_operand): Use
5718         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
5719         (global_got_operand): Rename to...
5720         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
5721         SYMBOL_GOT_GLOBAL.
5722         (local_got_operand): Rename to...
5723         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
5724         of SYMBOL_GOT_LOCAL.
5725
5726 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5727
5728         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
5729         TARGET_CALL_CLOBBERED_GP.
5730         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
5731         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
5732         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
5733         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
5734         of TARGET_ABICALLS && !TARGET_NEWABI.
5735         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
5736         * config/mips/mips.c (mips_load_call_address): Check
5737         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
5738         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
5739         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
5740         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
5741         TARGET_ABICALLS && TARGET_NEWABI.
5742         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
5743         TARGET_ABICALLS.
5744         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
5745         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
5746         TARGET_ABICALLS && TARGET_NEWABI.
5747         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
5748         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
5749         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
5750         whether indirect calls must use $25.
5751         (mips_extra_live_on_entry): Check TARGET_GOT instead of
5752         TARGET_ABICALLS.
5753         * config/mips/mips.md (jal_macro): Check flag_pic and
5754         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
5755         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
5756         instead of TARGET_ABICALLS.
5757         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
5758         TARGET_ABICALLS && TARGET_OLDABI.
5759         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
5760         (sibcall): In the comment above the define_insn, mention
5761         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
5762         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
5763         instead of TARGET_ABICALLS.
5764
5765 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
5766
5767         * doc/md.texi (Blackfin family constraints): Document PA and PB.
5768         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
5769         (MACFLAGS_MATCH_P): New macro.
5770         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
5771         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
5772         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
5773         the other MACFLAG constants.
5774         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
5775         (flag_machi): Tighten constraints.  Renumber some of the operands.
5776         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
5777         output template.
5778         (flag_machi_parts_acconly): New pattern.
5779         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
5780         used.
5781         (flag_macinit1hi): Tighten constraints.
5782         (flag_mul_macv2hi_parts_acconly): New pattern.
5783
5784         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
5785         Use a more efficient implementation.
5786         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
5787         inline sequences when not optimizing for size.
5788
5789         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
5790         movhi_high2low): Delete, merge functionality into...
5791         (packv2hi): ... this pattern.
5792
5793         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
5794         * config/bfin/bfin.opt (msim): New option.
5795         (mcpu=): New option.
5796         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
5797         (bfin_cpu_t): Typedef of enum bfin_cpu.
5798         (bfin_cpu_type): New declaration.
5799         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
5800         -msim and -mcpu= options.
5801         (LIB_SPEC): Likewise.
5802         * config/bfin/bfin.c (bfin_cpu_type): Define.
5803         (bfin_handle_option): Handle -mcpu= option.
5804         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
5805         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
5806         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
5807
5808 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5809
5810         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
5811         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
5812         (powerpc-wrs-vxworksae): Use ${tm_file}.
5813         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
5814         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
5815         * config/i386/vx-common.h: New file.
5816
5817 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
5818
5819         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
5820         of crt0.o%s.
5821
5822 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5823
5824         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
5825         ldxtr.
5826
5827 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
5828
5829         PR c++/31078
5830         PR c++/31103
5831         * c-common.c (c_build_qualified_type): Set canonical type
5832         appropriately.
5833
5834 2007-04-12  Richard Guenther  <rguenther@suse.de>
5835
5836         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
5837         lower bound and element size if lower bound is not zero
5838         or either of the ARRAY_REF operands is set.
5839
5840 2007-04-12  Richard Guenther  <rguenther@suse.de>
5841
5842         PR tree-optimization/24689
5843         PR tree-optimization/31307
5844         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
5845         indices by value.
5846         * gimplify.c (canonicalize_addr_expr): To be consistent with
5847         gimplify_compound_lval only set operands two and three of
5848         ARRAY_REFs if they are not gimple_min_invariant.  This makes
5849         it never at this place.
5850         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
5851
5852 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5853
5854         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
5855         null before emitting a .nsubspa directive.
5856
5857 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
5858
5859         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
5860         need_to_partition_p if there are no memory statements in the
5861         function.
5862
5863 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
5864
5865         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
5866         (gcd_of_steps_may_divide_p): New function.
5867         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
5868
5869 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5870
5871         * reload.c (find_reloads_toplev, find_reloads_address,
5872         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
5873         not a pointer equality test, to decide if we need to call
5874         push_reg_equiv_alt_mem.
5875
5876 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
5877
5878         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
5879         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
5880         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
5881
5882 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
5883
5884         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
5885         vector to be positive.
5886
5887 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
5888
5889         PR 30735
5890         PR 31090
5891         * doc/invoke.texi: Document --params max-aliased-vops and
5892         avg-aliased-vops.
5893         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
5894         debug_memory_partitions): Move to tree-flow.h
5895         * params.h (AVG_ALIASED_VOPS): Define.
5896         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
5897         users.
5898         (mp_info_t): Likewise.
5899         (get_mem_sym_stats_for): New.
5900         (set_memory_partition): Move from tree-flow-inline.h.
5901         (mark_non_addressable): Only clear the set of symbols for the
5902         partition if it exists.
5903         (dump_memory_partitions): Move from tree-ssa-operands.c
5904         (debug_memory_partitions): Likewise.
5905         (need_to_partition_p): New.
5906         (dump_mem_ref_stats): New.
5907         (debug_mem_ref_stats): New.
5908         (dump_mem_sym_stats): New.
5909         (debug_mem_sym_stats): New.
5910         (update_mem_sym_stats_from_stmt): New.
5911         (compare_mp_info_entries): New.
5912         (mp_info_cmp): Call it.
5913         (sort_mp_info): Change argument to a list of mem_sym_stats_t
5914         objects.
5915         (get_mpt_for): Move from tree-ssa-operands.c.
5916         (find_partition_for): New.
5917         (create_partition_for): Remove.
5918         (estimate_vop_reduction): New.
5919         (update_reference_counts): New.
5920         (build_mp_info): New.
5921         (compute_memory_partitions): Refactor.
5922         Document new heuristic.
5923         Call build_mp_info, update_reference_counts,
5924         find_partition_for and estimate_vop_reduction.
5925         (compute_may_aliases): Populate virtual operands before
5926         calling debugging dumps.
5927         (delete_mem_sym_stats): New.
5928         (delete_mem_ref_stats): New.
5929         (init_mem_ref_stats): New.
5930         (init_alias_info): Call it.
5931         (maybe_create_global_var): Remove alias_info argument.
5932         Get number of call sites and number of pure/const call sites
5933         from gimple_mem_ref_stats().
5934         (dump_alias_info): Call dump_memory_partitions first.
5935         (dump_points_to_info_for): Show how many times a pointer has
5936         been dereferenced.
5937         * opts.c (decode_options): For -O2 set --param
5938         max-aliased-vops to 500.
5939         For -O3 set --param max-aliased-vops to 1000 and --param
5940         avg-aliased-vops to 3.
5941         * fortran/options.c (gfc_init_options): Remove assignment to
5942         MAX_ALIASED_VOPS.
5943         * tree-flow-inline.h (gimple_mem_ref_stats): New.
5944         * tree-dfa.c (dump_variable): Dump memory reference
5945         statistics.
5946         Dump NO_ALIAS* settings.
5947         (referenced_var_lookup): Tidy.
5948         (mem_sym_stats): New.
5949         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
5950         and ORIG are different SSA names for a memory partition.
5951         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
5952         * tree-flow.h (struct mem_sym_stats_d): Define.
5953         (mem_sym_stats_t): Define.
5954         (struct mem_ref_stats_d): Define.
5955         (struct gimple_df): Add field mem_ref_stats.
5956         (enum noalias_state): Define.
5957         (struct var_ann_d): Add bitfield noalias_state.
5958         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
5959         debug_mem_ref_stats, debug_memory_partitions,
5960         debug_mem_sym_stats): Declare.
5961         * tree-ssa-structalias.c (update_alias_info): Update call
5962         sites, pure/const call sites and asm sites in structure
5963         returned by gimple_mem_ref_stats.
5964         Remove local variable IS_POTENTIAL_DEREF.
5965         Increase NUM_DEREFS if the memory expression is a potential
5966         dereference.
5967         Call update_mem_sym_stats_from_stmt.
5968         If the memory references memory, call
5969         update_mem_sym_stats_from_stmt for all the direct memory
5970         symbol references found.
5971         (intra_create_variable_infos): Set noalias_state field for
5972         pointer arguments according to the value of
5973         flag_argument_noalias.
5974         * tree-ssa-structalias.h (struct alias_info): Remove fields
5975         num_calls_found and num_pure_const_calls_found.
5976         (update_mem_sym_stats_from_stmt): Declare.
5977         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
5978         Set default value to 100.
5979         (PARAM_AVG_ALIASED_VOPS): Define.
5980
5981 2007-04-11  Richard Guenther  <rguenther@suse.de>
5982
5983         PR middle-end/31530
5984         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
5985         a * -b + c as c - a * b if we honor sign dependent rounding.
5986
5987 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5988
5989         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
5990         bfin_expand_strmov.
5991         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
5992         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
5993         variables.
5994         (initialize_trampoline): Don't use old-style function definition.
5995         (bfin_secondary_reload): Mark IN_P argument as unused.
5996
5997 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
5998
5999         PR tree-optimization/31343
6000         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
6001         (build_polynomial_chrec): Return a scalar when the evolution is zero.
6002         * testsuite/gcc.dg/vect/pr31343.c: New.
6003
6004 2007-04-10  Eric Christopher  <echristo@apple.com>
6005
6006         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
6007         * config/i386/i386.md (*cmpfp0): Use.
6008         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
6009         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
6010         (fix_trunc<mode>_i386_fisttp): Ditto.
6011         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
6012         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
6013         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
6014         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
6015         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
6016         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
6017         (unnamed_splitters): Ditto.
6018         * config/i386/i386.c (output_fix_trunc): Assert that
6019         we're not being passed a TFmode operand.
6020
6021 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
6022
6023         PR tree-optimization/31526
6024         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
6025         n_basic_blocks to find newly added blocks.
6026
6027 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
6028
6029         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
6030         alternative.
6031         (fix_trunc<mode>si_sse): Ditto.
6032         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
6033         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
6034         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
6035         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
6036         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
6037         expander using SSEMODEF mode macro.
6038         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
6039         expander using SSEMODEF mode macro.
6040         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
6041         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
6042         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
6043         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
6044         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
6045         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
6046         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
6047         Macroize insn using X87MODEF mode macro.
6048
6049 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
6050
6051         * config/i386/sse.md (sse2_pinsrw): Removed.
6052         (sse2_pextrw): Renamed to ...
6053         (*sse2_pextrw): This.
6054
6055 2007-04-09  Jan Hubicka  <jh@suse.cz>
6056
6057         PR target/27869
6058         * config/i386/sse.md
6059         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
6060         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
6061         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
6062         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
6063
6064 2007-04-09  Jan Hubicka  <jh@suse.cz>
6065
6066         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
6067         multiple fields of union.
6068
6069 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
6070
6071         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
6072         (create_preheaders): Check that loops are available.
6073         (fix_loop_structure): Clean up, improve comments.
6074         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
6075         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
6076         state flags.
6077         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
6078         * predict.c (tree_estimate_probability): Do not call
6079         calculate_dominance_info.  Call create_preheaders.
6080         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
6081         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
6082         flags.
6083         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
6084         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
6085         * tree-cfg.c (tree_split_edge): Make an assert more precise.
6086         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
6087         arguments.
6088
6089 2007-04-08  Jan Hubicka  <jh@suse.cz>
6090
6091         * tree.h (maybe_fold_offset_to_component_ref): Declare.
6092         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
6093         * fold-const.c (fold_unary): Use it.
6094
6095 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6096
6097         * varasm.c (assemble_variable): Remove call to
6098         lang_hooks.decls.prepare_assemble_variable.
6099         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
6100         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
6101         * langhooks.h (lang_hooks_for_decls): Remove
6102         prepare_assemble_variable.
6103
6104 2007-04-08  Mike Stump  <mrs@apple.com>
6105
6106         * config/i386/i386.c: Use inc/dec on Core2.
6107
6108 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
6109
6110         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
6111         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
6112         lhd_tree_inlining_end_inlining): Remove.
6113         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
6114         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
6115         end_inlining hooks.
6116         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
6117         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
6118         lhd_tree_inlining_end_inlining): Remove prototypes.
6119         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
6120         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
6121         LANG_HOOKS_TREE_INLINING_START_INLINING,
6122         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
6123
6124         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
6125         not set it.
6126
6127 2007-04-08  Anatoly Sokolov <aesok@post.ru>
6128
6129         PR target/29932
6130         * config/avr/predicates.md (io_address_operand): Delete predicate.
6131         (low_io_address_operand): Don't use 'mode' argument.
6132         (higth_io_address_operand): Rename ...
6133         (high_io_address_operand): ... to this. Don't use 'mode' argument.
6134         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
6135         for above change.
6136
6137 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
6138
6139         Revert change removing staticp.
6140
6141 2007-04-07  Anatoly Sokolov <aesok@post.ru>
6142
6143         PR target/30289
6144         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
6145         earlyclobber.
6146
6147 2007-04-07  Bruce Korb  <bkorb@gnu.org>
6148
6149         * c.opt: Add -Wformat-contains-nul.
6150         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
6151           -Wformat setting.
6152         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
6153         the NUL byte warning.
6154
6155 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
6158
6159 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
6160
6161         * tree.c (staticp): No longer use staticp langhook.
6162         * langhooks.c (lhd_staticp): Removed.
6163         * langhooks.h (struct lang_hooks): Remove staticp.
6164         * c-common.c (c_staticp): Remove.
6165         * c-common.h (c_staticp): Ditto.
6166         * langhooks-defs.h (lhd_staticp): Ditto.
6167         (LHD_HOOKS_STATICP): Ditto
6168         * tree.h (gcc_assert_lowered): New macro.
6169
6170 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
6171
6172         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
6173         argument "reliable".
6174         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
6175         Add argument "reliable".  Propagate it through calls.
6176         (infer_loop_bounds_from_undefined):  Derive number of iterations
6177         estimates from references in blocks that do not dominate loop latch.
6178         (gcov_type_to_double_int): New function.
6179         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
6180         and expected_loop_iterations_unbounded.
6181         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
6182         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
6183         * tree-data-ref.c (estimated_loop_iterations): Export.
6184         (get_references_in_stmt): Fix -- do not return addresses of local
6185         objects.
6186         * cfgloop.h (expected_loop_iterations_unbounded,
6187         estimated_loop_iterations): Declare.
6188
6189 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
6190
6191         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
6192
6193 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
6194
6195         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
6196         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
6197         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
6198         Use output_387_reg_move().
6199         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
6200         expander using X87MODEF12 mode macro.
6201         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
6202         choosing register preferences.  Use output_387_reg_move().
6203         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
6204         instead of "x".  Use output_387_reg_move().
6205         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
6206         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
6207         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
6208         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
6209         Use output_387_reg_move().
6210         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
6211         mode macro.
6212         (*truncxf?f_i387 splitter): Ditto.
6213
6214 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
6215
6216         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6217         LANG_HOOKS_SAFE_FROM_P.
6218         * expr.c (safe_from_p): Remove langhook call.
6219         * langhooks.h (lang_hooks): Remove safe_from_p.
6220         (lhd_safe_from_p): Remove prototype.
6221         * langhooks.c (lhd_safe_from_p): Remove.
6222
6223 2007-04-06  Jan Hubicka  <jh@suse.cz>
6224
6225         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
6226         functions.
6227
6228 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
6229
6230         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
6231         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
6232         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
6233         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
6234         alternative.
6235         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
6236         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
6237
6238 2007-04-05  Richard Henderson  <rth@redhat.com>
6239
6240         * config/alpha/alpha.c (print_operand) [+]: Remove.
6241         (alpha_end_function): Print nop if call at end of function.
6242         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
6243         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
6244         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
6245         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
6246         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
6247         the call pattern. Update peepholes to match.
6248
6249 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
6250
6251         * doc/extend.texi (Other Builtins): Add decimal float variants
6252         of signbit.
6253         * builtins.def: Ditto.
6254         * builtins.c (expand_builtin): Ditto.
6255
6256 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
6257             H.J. Lu  <hongjiu.lu@intel.com>
6258
6259         PR target/31478
6260         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
6261         of V8HImode when calling ix86_binary_operator_ok.
6262         (sse2_pmaddwd): Call ix86_binary_operator_ok.
6263         (sdot_prodv8hi): Operands 1 and 2 must be register.
6264
6265 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
6266
6267         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
6268         initialize align to silence bogus warning.
6269
6270 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
6271
6272         PR middle-end/22156
6273         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
6274         all_no_warning.
6275         (struct sra_walk_fns): Remove use_all parameter from use.
6276         (sra_hash_tree): Handle BIT_FIELD_REFs.
6277         (sra_elt_hash): Don't hash bitfld blocks.
6278         (sra_elt_eq): Skip them in parent compares as well.  Handle
6279         BIT_FIELD_REFs.
6280         (sra_walk_expr): Don't maintain or pass down use_all_p.
6281         (scan_use): Remove use_all parameter.
6282         (scalarize_use): Likewise.  Re-expand assignment to
6283         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
6284         output, and re-scalarize after output.  Don't mark anything
6285         for no warning.
6286         (scalarize_ldst): Adjust.
6287         (scalarize_walk_gimple_modify_statement): Likewise.
6288         (build_element_name_1): Handle BIT_FIELD_REFs.
6289         (instantiate_element): Don't warn for any element whose parent
6290         is used as a whole.
6291         (instantiate_missing_elements_1): Return the sra_elt.
6292         (canon_type_for_field): New.
6293         (try_instantiate_multiple_fields): New.
6294         (instantiate_missing_elemnts): Use them.
6295         (mark_no_warning): Removed.
6296         (generate_one_element_ref): Handle BIT_FIELD_REFs.
6297         (REPLDUP, sra_build_elt_assignment): New.
6298         (generate_copy_inout): Use them.
6299         (generate_element_copy): Likewise.  Handle bitfld differences.
6300         (generate_element_zero): Don't recurse for blocks.  Use
6301         sra_build_elt_assignment.
6302         (generate_one_element_int): Take elt instead of var.  Use
6303         sra_build_elt_assignment.
6304         (generate_element_init_1): Adjust.
6305         (scalarize_use, scalarize_copy): Use REPLDUP.
6306         (scalarize_ldst): Move assert before dereference.
6307         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
6308
6309 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6310
6311         * regmove.c: Fix unused variable warnings due to previous commit.
6312
6313 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6314
6315         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
6316         (regmove_bb_head): Remove.
6317         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
6318         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
6319         problems with fixup_match_1.
6320         Don't initialize/free regmove_bb_head.
6321
6322         (reg_is_remote_constant_p): If an insn is in the same basic block
6323         but not before INSN, consider it remote, too.
6324
6325 2007-04-05  Anatoly Sokolov <aesok@post.ru>
6326
6327         PR target/25448
6328         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
6329         DECL_ASSEMBLER_NAME, not the DECL_NAME.
6330
6331 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
6332
6333         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
6334         (CONDITIONAL_REGISTER_USAGE): Likewise.
6335
6336 2007-04-04  Richard Henderson  <rth@redhat.com>
6337
6338         * config/alpha/lib1funcs.asm: Remove unused file.
6339
6340 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
6341
6342         PR other/31356
6343         * opts.c (print_specific_help): Fix --help=<language>
6344         header line.
6345         (common_handle_option): Support --help=common.
6346
6347 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
6348
6349         PR other/31353
6350         * gcc.c (main): Do not run the linker if
6351         print_subprocess_help indicates that it shouldn't be
6352         run.
6353
6354 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
6355
6356         PR doc/31355
6357         * doc/invoke.texi (--help=): Document <languages> value, fix
6358         formatting in tables of values.
6359
6360 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
6361
6362         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
6363         dllimport attribute of virtual methods.
6364
6365 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
6366
6367         * config/score/crti.asm: Change _bss_start to __bss_start.
6368         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
6369         (OUTGOING_REG_PARM_STACK_SPACE) update.
6370         * config/score/score.opt: add options to make backend support
6371         score5, score5u, score7 and score7d.
6372         * config/score/score.md: Likewise.
6373         * config/score/misc.md: Likewise.
6374         * config/score/mac.md: Likewise.
6375         * doc/invoke.texi: Likewise.
6376         * doc/md.texi: update constraints define.
6377
6378 2007-04-03  Richard Henderson  <rth@redhat.com>
6379
6380         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
6381         an appropriate type, use the mode instead.
6382
6383 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
6384
6385         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
6386         Set the default --with-arch setting to mips2.
6387         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
6388         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
6389         (MULTILIB_OSDIRNAMES): Delete.
6390         (MULTILIB_DIRNAMES): Define.
6391         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
6392         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
6393         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
6394         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
6395         VXWORKS_OS_CPP_BUILTINS.
6396         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
6397         (MIPS_DEBUGGING_INFO): Undefine.
6398         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
6399
6400 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
6401
6402         PR middle-end/30704
6403         * fold-const.c (native_encode_real): Encode real.c provided longs
6404         as a series of 32-bit native integers.
6405         (native_interpret_real): Interpret buffer as a series of 32-bit
6406         native integers.
6407
6408 2007-04-03  Richard Guenther  <rguenther@suse.de>
6409
6410         * genpreds.c (write_insn_constraint_len): Write function
6411         optimized for CONSTRAINT_LEN implementation.
6412         (write_tm_preds_h): Output insn_constraint_len inline and
6413         use it for CONSTRAINT_LEN.
6414         (write_insn_preds_c): Don't output insn_constraint_len.
6415         * doc/md.texi (define_register_constraint): Document multi-letter
6416         constraints shall have the same length if they start with the same
6417         letter.
6418
6419 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
6420
6421         PR target/31175
6422         * config/i386/i386.md (isinf<mode>2): Expand only when
6423         TARGET_C99_FUNCTIONS is set.
6424
6425 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
6426
6427         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
6428         (x86_64-*-linux*): Ditto.
6429         * config/i386/i386.opt (mpc): New option.
6430         * config/i386/i386.c (overrride_options): Handle
6431         ix87_precision_string.
6432         * config/i386/crtprec.c: New file.
6433         * config/i386/t-crtpc: Ditto.
6434         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
6435         and -mpc80 options.
6436         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
6437         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
6438         crtprec32.o, crtprec64.o and crtprec80.o.
6439
6440         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
6441         and -mpc80 options.
6442         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
6443
6444 2007-04-02  Eric Christopher  <echristo@apple.com>
6445
6446         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
6447         limitations on darwin.
6448
6449 2007-04-02  Anatoly Sokolov <aesok@post.ru>
6450
6451         PR target/31137
6452         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
6453
6454 2007-04-02  Dave Korn  <dave.korn@artimi.com>
6455
6456         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
6457
6458 2007-04-02  Dave Korn  <dave.korn@artimi.com>
6459
6460         * libgcc2.h (exception_descriptor): Don't forward-declare.
6461         (__get_eh_table_language, __get_eh_table_version): Delete
6462         prototypes of long-dead functions.
6463
6464 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
6465
6466         * ebitmap.h: New file
6467         * ebitmap.c: New file
6468         * Makefile.in (ebitmap.o): New target.
6469
6470 2007-04-01  Jan Hubicka  <jh@suse.cz>
6471
6472         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
6473         before very first instruction.
6474
6475 2007-04-01  Jan Hubicka  <jh@suse.cz>
6476
6477         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
6478         waring on 64bit hosts.
6479         * bitmap.h: Fix typo in bitmap_head_def.
6480
6481 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
6482
6483         PR rtl-optimization/31391
6484         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
6485         into a DELETED_LABEL note, and the label is in an empty basic
6486         block, update BB_END as well as BB_HEAD.
6487
6488 2007-04-01  Richard Henderson  <rth@redhat.com>
6489
6490         PR tree-optimization/31169
6491         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
6492         to varying if the range is outside [0,  prec-1].
6493
6494 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
6495
6496         PR target/31388
6497         * config/mips/mips.md (load_const_gp): New insn.
6498         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
6499         the MIPS16 GP pseudo register if no_new_pseudos.
6500         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
6501
6502 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6503
6504         PR target/31364
6505         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
6506         secureplt.
6507         (call_value): Likewise.
6508
6509 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
6510             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6511
6512         PR 14737
6513         * doc/invoke.texi: (optimization options): Reword description
6514         of -ffast-math. Document its primary purpose.
6515
6516 2007-03-31  Richard Guenther  <rguenther@suse.de>
6517
6518         * omp-low.c (splay-tree.h): Include.
6519         (lookup_decl): Replace splay-tree usage by pointer-map.
6520         (maybe_lookup_decl): Likewise.
6521         (new_omp_context): Likewise.
6522         (delete_omp_context): Likewise.
6523         * gimplify.c (splay-tree.h): Include.
6524         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
6525         pointer-map.
6526         (remap_ssa_name): Likewise.
6527         (remap_decl): Likewise.
6528         (remap_type_1): Likewise.
6529         (remap_type): Likewise.
6530         (copy_body_r): Likewise.
6531         (expand_call_inline): Likewise.
6532         (clone_body): Likewise.
6533         (copy_tree_r): Likewise.
6534         (remap_save_expr): Likewise.
6535         (unsave_r): Likewise.
6536         (unsave_expr_now): Likewise.
6537         (tree_function_versioning): Likewise.
6538         (build_duplicate_type): Likewise.
6539         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
6540         (struct copy_body_data): Replace splay-tree by pointer-map.
6541         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
6542         not $(SPLAY_TREE_H).
6543         (gimplify.o): Depend on $(SPLAY_TREE_H).
6544         (omp-low.p): Likewise.
6545
6546 2007-03-31  Anatoly Sokolov <aesok@post.ru>
6547
6548         * config/avr/predicates.md (even_register_operand,
6549         odd_register_operand): New predicates.
6550         * config/avr/avr.md (movw peephole2): New.
6551         (movw_r peephole2): New.
6552
6553 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
6554
6555         * tree.h (get_signed_or_unsigned_type): New.
6556         * fold-const.c (operand_equal_for_comparison_p): Use
6557         get_signed_or_unsigned_type instead of
6558         lang_hooks.types.signed_or_unsigned_type.
6559         * expr.c (store_expr): Ditto.
6560         * langhooks.c (get_signed_or_unsigned_type): New.
6561         (lhd_signed_or_unsigned_type): New.
6562         * langhooks.h (lhd_signed_or_unsigned_type): New.
6563         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
6564
6565 2007-03-30  Richard Henderson  <rth@redhat.com>
6566
6567         * tree-ssa-loop-ivopts.c: Include target.h.
6568         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
6569         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
6570         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
6571         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
6572
6573 2007-03-30  Richard Henderson  <rth@redhat.com>
6574             Kai Tietz  <kai.tietz@onevision.com>
6575
6576         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
6577         default for 64-bit.
6578         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
6579         (TARGET_64BIT_MS_ABI): New.
6580         (DBX_REGISTER_NUMBER): Handle 64-bit.
6581         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
6582         (LONG_TYPE_SIZE): Force to 32.
6583         (REG_PARM_STACK_SPACE): New.
6584         (OUTGOING_REG_PARM_STACK_SPACE): New.
6585         (REGPARM_MAX, SSE_REGPARM_MAX): New.
6586         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
6587         (STACK_BOUNDARY): Use 128 for 64-bit.
6588         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
6589         Add 64-bit implementation.
6590         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
6591         argument unused.
6592         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
6593         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
6594         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
6595         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
6596         (ix86_handle_cconv_attribute): Don't warn when ignoring if
6597         TARGET_64BIT_MS_ABI.
6598         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
6599         (ix86_pass_by_reference): Likewise.
6600         (ix86_function_value_regno_p): Likewise.
6601         (ix86_build_builtin_va_list): Likewise.
6602         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
6603         (function_arg_advance_ms_64): New.
6604         (function_arg_advance): Call it.
6605         (function_arg_ms_64): New.
6606         (function_arg): Call it.
6607         (function_value_ms_64): New.
6608         (ix86_function_value_1): Call it.
6609         (return_in_memory_ms_64): New.
6610         (ix86_return_in_memory): Call it.
6611         (setup_incoming_varargs_ms_64): New.
6612         (ix86_setup_incoming_varargs): Call it.
6613         (ix86_expand_prologue): Handle 64-bit stack probing.
6614         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
6615         (output_pic_addr_const): Likewise.
6616         (x86_this_parameter): Likewise.
6617         (x86_output_mi_thunk): Likewise.
6618         (x86_function_profiler): Likewise.
6619         (TARGET_STRICT_ARGUMENT_NAMING): New.
6620         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
6621         (TARGET_64BIT_MS_ABI): New.
6622         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
6623         * config/i386/i386.md (allocate_stack_worker): Remove.
6624         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
6625         describe the clobber of eax without a match_scratch.
6626         (allocate_stack_worker_postreload): Remove.
6627         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
6628         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
6629         (allocate_stack_worker_rex64_postreload): Remove.
6630         (allocate_stack): Handle 64-bit.
6631         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
6632         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
6633         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
6634         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
6635         (STANDARD_STARTFILE_PREFIX_1): Likewise.
6636         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
6637         * config.build (x86_64-*-mingw*): New host.
6638         * config.host (x86_64-*-mingw*): New host.
6639         * config.gcc (x86_64-*-mingw*): New target.
6640         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
6641
6642 2007-03-30  Richard Henderson  <rth@redhat.com>
6643             Kai Tietz  <kai.tietz@onevision.com>
6644
6645         * c-pragma.c (struct def_pragma_macro_value): New.
6646         (struct def_pragma_macro): New.
6647         (pushed_macro_table): New.
6648         (dpm_hash, dpm_eq): New.
6649         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
6650         (init_pragma): Install them.
6651         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
6652
6653 2007-03-30  Anatoly Sokolov <aesok@post.ru>
6654
6655         * config/avr/avr.c (avr_override_options): Clear
6656         'flag_delete_null_pointer_checks'.
6657
6658 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
6659
6660         PR c++/26099
6661         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
6662         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
6663         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
6664         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
6665         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
6666         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
6667         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
6668         C++ extensions.
6669         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
6670
6671 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
6672
6673         * regmove.c: Move all of pass_stack_adjustments from here...
6674         * combine-stack-adj.c: ...to this new file.
6675         * Makefile.in: Add rules for combine-stack-adj.o.
6676
6677 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
6678
6679         PR tree-optimization/31383
6680         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
6681         to have the same length.
6682
6683 2007-03-30  Jan Hubicka  <jh@suse.cz>
6684
6685         PR middle-end/30700
6686         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
6687         availablility; add more sanity checking; ask varpool only about
6688         VAR_DECL.
6689
6690 2007-03-29  Richard Henderson  <rth@redhat.com>
6691
6692         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
6693         to decide, but __SIZEOF_LONG_LONG__.
6694
6695 2007-03-29  Richard Henderson  <rth@redhat.com>
6696
6697         * emutls.c (struct __emutls_array): New.
6698         (emutls_destroy): Use it instead of casting element 0 from void*.
6699         (__emutls_get_address): Likewise.
6700
6701 2007-03-29  Richard Henderson  <rth@redhat.com>
6702
6703         * varasm.c (initializer_constant_valid_p): Don't deny
6704         DECL_DLLIMPORT_P on functions.
6705
6706         * config/i386/cygming.h: Remove function declarations.
6707         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
6708         (ASM_OUTPUT_LABELREF): Remove.
6709         (COMMON_ASM_OP): Remove.
6710         (ASM_OUTPUT_COMMON): Remove.
6711         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
6712         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
6713         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6714         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
6715         Rename from TARGET_ENCODE_SECTION_INFO.
6716         * config/i386/netware.h: Likewise.
6717         * config/i386/i386-protos.h: Update.
6718         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
6719         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
6720         (legitimate_constant_p): Reject dllimports.
6721         (dllimport_map, get_dllimport_decl): New.
6722         (legitimize_dllimport_symbol): New.
6723         (legitimize_address, ix86_expand_move): Use it.
6724         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
6725         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
6726         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
6727         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
6728         * config/i386/predicates.md (constant_call_address_operand): Only
6729         accept symbols; reject dllimport_p symbols.
6730         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
6731         i386_pe_maybe_record_exported_symbol.
6732         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
6733         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
6734         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
6735         trust the setting of DECL_DLLIMPORT_P.
6736         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
6737         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
6738         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
6739         tidy the argument scanning loop.
6740         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
6741         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
6742         (i386_pe_strip_name_encoding): Remove.
6743         (i386_pe_binds_local_p): New.
6744         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
6745         (i386_pe_output_labelref): Remove.
6746         (i386_pe_asm_output_aligned_decl_common): New.
6747         (i386_pe_maybe_record_exported_symbol): Rename from
6748         i386_pe_record_exported_symbol; check for dllexported symbols.
6749
6750 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
6751
6752         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
6753         add comment explaining why vsnprintf cannot be used.
6754
6755 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
6756
6757         PR tree-optimization/30666
6758         * tree.c (build_complex_type): When creating type names for DWARF2
6759         debug info, create TYPE_DECLs for TYPE_NAME instead of
6760         IDENTIFIER_NODEs.
6761         (build_common_tree_nodes_2): Use build_complex_type when building
6762         predefined complex types, to preserve canonical types.
6763
6764 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
6765
6766         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
6767         (noce_get_alt_condition): Look at it to determine whether to
6768         reverse the condition or not.
6769         (noce_get_condition): Substitute the truth for lies.
6770         (noce_find_if_block): Set the then_else_reversed field.
6771
6772 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
6773
6774         * config/fr30/fr30.md (movdi): Do not accept immediates as the
6775         destination of this insn.
6776         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
6777         than calling gen_rtx_SET directly.  Use r0 to hold the value of
6778         'address + 4' rather than a stack based temporary which can be
6779         mis-optimized away.
6780
6781 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
6782
6783         * config/s390/s390.c (s390_secondary_input_reload_class,
6784         s390_secondary_output_reload_class): Functions removed.
6785         (s390_secondary_reload): New function.
6786         (TARGET_SECONDARY_RELOAD): Target macro defined.
6787         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
6788         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
6789         * config/s390/s390.md ("reload_outti", "reload_outdi",
6790         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
6791         "reload_out<mode>"): Expanders removed.
6792         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
6793         "reload<mode>_nonoffmem_out"): Expanders added.
6794
6795 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
6796
6797         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
6798         SRC->DEST replacement failed anyway.
6799
6800 2007-03-28  Mike Stump  <mrs@apple.com>
6801
6802         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
6803         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
6804         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
6805
6806 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6807
6808         * config.gcc: Accept barcelona as a variant of amdfam10.
6809         * config/i386/i386.c (override_options): Likewise.
6810         * doc/invoke.texi: Likewise.
6811
6812 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6813
6814         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
6815         offsets for BIT_FIELD_REF and COMPONENT_REF.
6816
6817 2007-03-28  Richard Guenther  <rguenther@suse.de>
6818
6819         * tree.c (is_global_var): Move ...
6820         * tree-flow-inline.h (is_global_var): ... here.
6821         * tree.h (is_global_var): Remove declaration.
6822
6823 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
6824
6825         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
6826         option.
6827         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
6828         * config/i386/i386.c (ix86_tune_features): Initialize new
6829         tuning option.
6830         * config/i386/predicates.md (promotable_binary_operator): Use
6831         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
6832
6833 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
6834
6835         PR target/31380
6836         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
6837
6838 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
6839
6840         * config/fr30/fr30.md (movsi_internal): Change destination
6841         constraint from m to V and add m to the end.
6842
6843 2007-03-28  Christian Bruel  <christian.bruel@st.com>
6844
6845         * config/sh/sh.md (movsi_i): Fix type attribute.
6846
6847 2007-03-28  Christian Bruel  <christian.bruel@st.com>
6848
6849         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
6850         (movsf_ie): Likewise.
6851
6852 2007-03-28  Christian Bruel  <christian.bruel@st.com>
6853
6854         * config.gcc: Add sh4-300 to multilib.
6855         * config/sh/t-mlib-sh4-300: New file.
6856
6857 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6858
6859         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
6860         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
6861         fix_trunc<mode>di2.
6862         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
6863         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
6864         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
6865         "fixuns_trunctddi2"): Whitespace fix.
6866
6867 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6868
6869         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
6870         the definition of struct sh_args.
6871         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
6872         CALL_COOKIE_INT_REG_GET): Likewise.
6873
6874 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6875
6876         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
6877         transformations are applied successfully.
6878
6879 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
6880
6881         * tree.c (tree_contains_struct): Permit 512 tree codes.
6882         * tree.h (tree_contains_struct): Ditto.
6883         (MAX_TREE_CODES): Ditto.
6884         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
6885         SPARE member to store remaining padding bits.
6886
6887 2007-03-27  Anatoly Sokolov <aesok@post.ru>
6888
6889         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
6890         architecture.
6891
6892 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
6893
6894         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
6895         * configure: Regenerate.
6896
6897         * configure: Regenerate using the correct version of autoconf.
6898
6899 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
6900
6901         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
6902         pointer regs.
6903         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
6904         regs to "__SP_L__" and "__SP_H__".
6905
6906 2007-03-27  Richard Guenther  <rguenther@suse.de>
6907
6908         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
6909         computations with it with a HOST_WIDE_INT variable.
6910
6911 2007-03-26  Mike Stump  <mrs@apple.com>
6912
6913         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
6914         objective-c-header, objective-c++-header and objc++-cpp-output
6915         support.
6916         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
6917
6918 2007-03-26  Richard Henderson  <rth@redhat.com>
6919
6920         PR target/31361
6921         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
6922         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
6923         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
6924         IX86_BUILTIN_PSRLQ128): New.
6925         (ix86_init_mmx_sse_builtins): Add them.
6926         (ix86_expand_builtin): Expand them.
6927         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
6928         operand 2 be TImode.
6929         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
6930         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6931         _mm_srli_epi64): Mark __B const.
6932         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
6933         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
6934         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
6935         new two-vector shift builtins.
6936
6937 2007-03-26  Ian Lance Taylor  <iant@google.com>
6938
6939         PR tree-optimization/31345
6940         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
6941         [+INF, +INF(OVF)] into VARYING.
6942
6943 2007-03-26  Zack Weinberg  <zackw@panix.com>
6944
6945         * gengtype-parse.c: New file.
6946         * gengtype-yacc.y: Delete.
6947         * gengtype-lex.l: Don't include gengtype-yacc.h.
6948         Define YY_DECL and yyterminate appropriately for recursive
6949         descent parser.  yylval is now a string out-parameter to yylex.
6950         (HWS, EOID): New shorthand.
6951         (IWORD): Add a couple more types.
6952         (yylex): Add a setup stanza.  Remove the complex rules for
6953         detecting GTY'ed types and typedefs; replace with simple
6954         keyword detectors.  Adjust everything for the changed
6955         definition of yylval.  Ignore all pp-directives, not just #define.
6956         (yyerror): Delete.
6957         (parse_file): Rename yybegin; do not call yyparse.
6958         (yyend): New.
6959         * gengtype.c (xasprintf): Export again.
6960         (this_file): New.  Use everywhere __FILE__ was being used.
6961         (get_lang_bitmap): Special case types defined in gengtype.c.
6962         (do_typedef, new_structure): Suppress definition of certain types.
6963         (new_structure): Improve diagnostics of duplicate definitions.
6964         Make sure location_s is associated with input.h.
6965         (nreverse_pairs, define_location_structures): New functions.
6966         (main): Improve tagging of kludge types.  Remove old kludges
6967         for input.h types; use define_location_structures.
6968         * gengtype.h: Update prototypes.  Define token codes here.
6969         * Makefile.in: Remove all references to gengtype-yacc.
6970         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
6971         and gengtype.
6972         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
6973         add GTY((skip)) to the field that's only conditionally there.
6974         * doc/install.texi: Document that Bison is no longer required
6975         unless building treelang.
6976
6977         * gengtype.c: Don't include gtyp-gen.h.
6978         (srcdir): Declare here.
6979         (base_files, lang_dir_names): Allocate dynamically.
6980         (gt_files, num_gt_files, num_lang_dirs): New globals.
6981         (measure_input_list, read_input_line, read_input_list)
6982         (set_lang_bitmap): New functions.
6983         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
6984         simplify, relying on read_input_list to set up the bitmaps.
6985         (main): Arguments are no longer unused.  Check for correct number
6986         of command line arguments, set srcdir and srcdir_len, then call
6987         read_input_list, before doing anything else.  No need to worry
6988         about duplicates in main loop.
6989         * configure.ac: Simplify the calculation of all_gtfiles.
6990         Put language tags in there.  Don't set or substitute
6991         all_gtfiles_files_langs or all_gtfiles_files_frags.
6992         * Makefile.in: Revamp the way gengtype is invoked, now that it
6993         takes a file on its command line with a much simpler format.
6994         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
6995         (GTFILES): Remove duplicates and C source files.
6996         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
6997         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
6998         * configure: Regenerate.
6999
7000         * gengtype.h: Remove all type definitions to gengtype.c; leave
7001         only definitions of options_p, type_p, and pair_p as opaque
7002         pointers.  Update prototypes.
7003         * gengtype.c: Many type definitions moved here from gengtype.h.
7004         Consolidate type definitions at the top of the file.
7005         (xvasprintf): Delete.
7006         (xasprintf): Make static.
7007         (create_nested_pointer_option): Add 'next' parameter.
7008         (create_field_all, create_field_at): New functions.
7009         (create_field): Now a thin wrapper around create_field_all.
7010         (create_optional_field): Rename create_optional_field_ and add
7011         line argument.  Original name is now a macro which supplies
7012         __LINE__.
7013         (oprintf): Use vsnprintf directly.
7014         (close_output_files): Use fatal rather than perror/exit.
7015         (note_def_vec, note_def_vec_alloc): Use create_field_at.
7016         (main): Set progname.  Don't use exit.
7017         * gengtype-yacc.y (struct_fields): Use create_field_at.
7018         (option, optionseqopt): Delete.
7019         (optionseq): Consolidate productions from option here so we
7020         can use the first argument to create_option.
7021
7022         * gengtype-lex.l: Distinguish unions from structures in the
7023         token type.  Don't call find_structure; return the tag as a string.
7024         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
7025         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
7026         Reorganize typedef_struct production accordingly.
7027         Use create_nested_ptr_option.
7028         * gengtype.c (create_nested_ptr_option): New function.
7029         * gengtype.h: Declare it.
7030
7031         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
7032         (string_type): Don't declare.
7033         (do_scalar_typedef): Declare.
7034         (create_scalar_type): Update prototype.
7035         * gengtype.c (string_type): Make static.
7036         (scalar_nonchar, scalar_char): New.
7037         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
7038         (resolve_typedef): Use scalar_nonchar for error recovery.
7039         (create_scalar_type): Remove name_len field.  Return scalar_char
7040         or scalar_nonchar as appropriate.
7041         (adjust_field_type): Look at scalar_is_char boolean to decide whether
7042         to use string_type.
7043         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
7044         whenever possible.
7045         (main): Initialize scalar_char and scalar_nonchar before calling
7046         gen_rtx_next.
7047         * gengtype-lex.l: Adjust for removal of second argument to
7048         create_scalar_type.  Use yylval.s instead of yylval.t when
7049         returning SCALAR.
7050         * gengtype-yacc.y: Type of SCALAR is string.  Call
7051         create_scalar_type from type:SCALAR rule.  Adjust for removal of
7052         second argument to create_scalar_type.
7053
7054         * vec.h: Remove all #if IN_GENGTYPE blocks.
7055         Add comment saying that changes may require adjustments to gengtype.
7056         * gengtype.c: Don't include coretypes.h or tm.h.
7057         Add comment to inclusion of errors.h.
7058         (note_def_vec, note_def_vec_alloc): New functions.
7059         * gengtype.h: Declare new functions.
7060         * gengtype-lex.l: Don't include coretypes.h.
7061         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
7062         Delete.
7063         (update_lineno): Remove unnecessary prototype.
7064         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
7065         (VEC rule): Just return VEC_TOKEN.
7066         * gengtype-yacc.y (VEC_TOKEN): New token type.
7067         (type): Add a production for VEC(a,b).
7068         * Makefile.in: Update dependencies.
7069
7070         * gengtype-lex.l: Remove rules for parsing pointer-to-function
7071         typedefs that use the old PARAMS macro.
7072
7073         * gengtype-lex.l: Remove all rules and states relating to yacc
7074         input files.
7075         * gengtype-yacc.y: Similarly.
7076         * gengtype.c (note_yacc_type): Delete function.
7077         * gengtype.h: Update prototypes.
7078
7079 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
7080
7081         * tree-pretty-print.c (dump_generic_node): Report precision of
7082         unnamed integer types.
7083
7084 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
7085
7086         * ifcvt.c (noce_try_store_flag_constants): Don't check
7087         no_new_pseudos here.
7088         (noce_try_store_flag_constants): Don't check no_new_pseudos.
7089         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
7090         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
7091         noce_try_sign_mask): Likewise.
7092         (if_convert): Check no_new_pseudos here.
7093
7094         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
7095         Remove prototypes.
7096         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
7097         (noce_get_condition): Handle new then_else_reversed argument.
7098         (noce_init_if_info): Remove, fold into noce_find_if_block.
7099         (noce_process_if_block): Take a struct noce_if_info as the
7100         argument.  Don't set up one based on ce_if_info.  Update pointer
7101         references accordingly.
7102         (cond_move_process_if_block): Likewise.
7103         (process_if_block): Removed.
7104         (find_if_block): Removed.  Move functionality two new functions,
7105         noce_find_if_block and cond_exec_find_if_block.
7106         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
7107         blocks and the symmetric IF-ELSE-JOIN case.
7108         (cond_exec_find_if_block): Also new function mostly based on old
7109         find_if_block and process_if_block.
7110         (find_if_header): Replace find_if_block call with separately
7111         guarded calls to noce_find_if_block and cond_exec_find_if_block.
7112         (find_cond_trap): Update noce_get_condition call.
7113         (dead_or_predicable): Likewise.
7114
7115 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7116
7117         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
7118         Remove.
7119         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
7120         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
7121         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
7122         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
7123         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
7124         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
7125         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
7126         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
7127         __builtin_ia32_psrad128 builtins.
7128
7129 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
7130
7131         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
7132         * config/i386/constraints.md
7133         (define_constraint "I"): Use IN_RANGE macro.
7134         (define_constraint "J"): Ditto.
7135         (define_constraint "K"): Ditto.
7136         (define_constraint "M"): Ditto.
7137         (define_constraint "N"): Ditto.
7138         (define_constraint "O"): Ditto.
7139         * config/i386/predicates.md
7140         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
7141         (define_predicate "const_0_to_3_operand"): Ditto.
7142         (define_predicate "const_0_to_7_operand"): Ditto.
7143         (define_predicate "const_0_to_15_operand"): Ditto.
7144         (define_predicate "const_0_to_63_operand"): Ditto.
7145         (define_predicate "const_0_to_255_operand"): Ditto.
7146         (define_predicate "const_1_to_31_operand"): Ditto.
7147         (define_predicate "const_2_to_3_operand"): Ditto.
7148         (define_predicate "const_4_to_7_operand"): Ditto.
7149
7150 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
7151
7152         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
7153         in SImode for save_world.
7154         * config/rs6000/altivec.md (save_world, restore_world): Convert to
7155         LR hard reg.
7156
7157 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
7158
7159         PR tree-optimization/30784
7160         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
7161         BIT_FIELD_REF.
7162
7163 2007-03-25  Revital Eres  <eres@il.ibm.com>
7164
7165         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
7166           Fold movement_possibility function into it.
7167
7168 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
7169
7170         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
7171         (load_macho_picbase_{si,di}): Convert to LR hard reg.
7172         (call_indirect_nonlocal_darwin64): Same.
7173         (call_nonlocal_darwin64): Same.
7174         (call_value_indirect_nonlocal_darwin64): Same.
7175         (call_value_nonlocal_darwin64): Same.
7176         (sibcall_nonlocal_darwin64): Same.
7177         (sibcall_value_nonlocal_darwin64): Same.
7178         (sibcall_symbolic_64): Same.
7179         (sibcall_value_symbolic_64): Same.
7180         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
7181         LR pseudo.
7182         (rs6000_emit_load_toc_table): Same.
7183         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
7184         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
7185         (mull_call): Same.
7186         (divss_call): Same.
7187         (divus_call): Same.
7188         (quoss_call): Same.
7189         (quous_call): Same.
7190         (load_toc_v4_pic_si): Same
7191         (load_toc_v4_PIC_1): Same.
7192         (load_toc_v4_PIC_1b): Same.
7193         (call_indirect_aix{32,64}): Same.
7194         (call_value_indirect_aix{32,64}): Same.
7195         (call): Same.
7196         (call_value): Same.
7197         (call_local{32,64}): Same.
7198         (call_value_local{32,64}): Same.
7199         (call_indirect_nonlocal_aix{32,64}): Same.
7200         (call_nonlocal_aix{32,64}): Same.
7201         (call_value_indirect_nonlocal_aix{32,64}): Same.
7202         (call_value_nonlocal_aix{32,64}): Same.
7203         (call_indirect_nonlocal_sysv<mode>): Same.
7204         (call_nonlocal_sysv<mode>): Same.
7205         (call_value_indirect_nonlocal_sysv<mode>): Same.
7206         (call_value_nonlocal_sysv<mode>): Same.
7207         (sibcall): Same.
7208         (sibcall_local{32,64}): Same.
7209         (sibcall_value_local{32,64}): Same.
7210         (sibcall_nonlocal_aix{32,64}): Same.
7211         (sibcall_value_nonlocal_aix{32,64}): Same.
7212         (sibcall_nonlocal_sysv<mode>): Same.
7213         (sibcall_value): Same.
7214         (sibcall_value_nonlocal_sysv<mode>): Same.
7215
7216 2007-03-24  Paul Brook  <paul@codesourcery.com>
7217
7218         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
7219         * config/arm/linux-eabi.h: Remove legacy syscall hack.
7220
7221 2007-03-24  Richard Henderson  <rth@redhat.com>
7222
7223         * config/ia64/constraints.md: New file.
7224         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
7225         satisfies_constraint_?.
7226         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
7227         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
7228         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
7229         ia64_output_mi_thunk): Likewise.
7230         (ia64_const_ok_for_letter_p): Remove.
7231         (ia64_const_double_ok_for_letter_p): Remove.
7232         (ia64_extra_constraint): Remove.
7233         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
7234         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
7235         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
7236         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
7237         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
7238         EXTRA_MEMORY_CONSTRAINT): Remove.
7239         * config/ia64/ia64.md: Include constriants.md.  Replace
7240         CONST_OK_FOR_? with satisfies_constraint_?.
7241
7242 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
7243             H.J. Lu  <hongjiu.lu@intel.com>
7244
7245         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
7246         DPD or BID name.
7247         (name macros): Use DPD_BID_NAME to convert names properly.
7248
7249         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
7250         decimal floating point format.
7251         (init_floating_libfuncs): Change decimal functions so that they
7252         have a "bid_" prefix if the decimal system uses the BID format,
7253         and "dpd_" prefix if the decimal system uses the DPD format.
7254         (init_interclass_conv_libfuncs): Ditto.
7255         (init_intraclass_conv_libfuncs): Ditto.
7256
7257         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
7258         using the BID format.
7259
7260         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
7261         whether we are using the BID decimal format.
7262         * configure: Regenerate.
7263
7264         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
7265         the compiler has decimal floating point enabled.  Define
7266         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
7267         instead of DPD.
7268
7269         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
7270         using the BID format.
7271
7272         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
7273         whether we are using the BID decimal format.
7274         * configure: Regenerate.
7275
7276         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
7277         the compiler has decimal floating point enabled.  Define
7278         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
7279         instead of DPD.
7280
7281         * doc/install.texi (--enable-decimal-float): Document BID and DPD
7282         options, and that it is enabled for i386/x86_64 systems.
7283
7284         * Makefile.in (enable_decimal_float): New.
7285         (DECNUMFMT): New.
7286         (DECNUMINC): Add  -I$(DECNUMFMT).
7287         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
7288         to $(DECNUMFMT) from $(DECNUM).
7289
7290         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
7291         Substitute enable_decimal_float.
7292         * configure: Regenerated.
7293
7294         PR other/30529
7295         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
7296         unsigned long.
7297
7298         * configure.ac: Enable decimal float for x86_64-*-linux*.
7299         * configure: Regenerated.
7300
7301         PR other/30530
7302         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
7303         decimal128ClearSign to flip and clear the sign bit in decimal128.
7304         (decimal_real_maxval): Set decimal128SetSign to set the sign
7305         bit in decimal128.
7306
7307 2007-03-23  Ian Lance Taylor  <iant@google.com>
7308
7309         * fold-const.c (fold_binary): Correct warning for X - c >= X.
7310
7311 2007-03-23  Ian Lance Taylor  <iant@google.com>
7312
7313         * tree-dump.c (dump_files): Correct comment.
7314
7315 2007-03-23  Ian Lance Taylor  <iant@google.com>
7316
7317         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
7318
7319 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
7320
7321         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
7322         in cfglayout mode.  Don't go into and out of cfglayout mode.
7323         Link the blocks in the order of the constructed traces.
7324         (rest_of_handle_tracer): Adjust call to tracer.
7325         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
7326         Don't go into cfglayout mode.
7327         (rtl_loop_done): Don't go out of cfglayout mode.
7328         * cfglayout.c (relink_block_chain): New function, split out from...
7329         (fixup_reorder_chain): ...here.  Remove redundant checking.
7330         (cfg_layout_finalize): Don't clear the header, footer, and aux
7331         fields here, move the code to do so to relink_block_chain.  Likewise
7332         for free_original_copy_tables.
7333         * rtl.h (tracer): Update prototype.
7334         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
7335         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
7336         mode.  Use relink_block_chain to serialize the CFG according to the
7337         new basic block order.  Move targetm.cannot_modify_jumps_p check from
7338         here...
7339         (gate_handle_reorder_blocks): ...to here.
7340         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
7341         from here...
7342         (gate_duplicate_computed_gotos): ...to here.
7343         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
7344         something always changes when going into and out of cfglayout mode.
7345         Perform an expensive cfg cleanup while going into cfglayout mode.
7346         Always update liveness information on HAVE_conditional_execution
7347         targets.  Reserialize the basic blocks and go out of cfglayout mode.
7348         * reg-stack.c: Include cfglayout.h.
7349         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
7350         the call to reorder_basic_blocks.
7351         * basic-block.h (reorder_basic_blocks): Update prototype.
7352         (relink_block_chain): New prototype.
7353         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
7354
7355 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
7356
7357         * config/mips/mips.md (type, hazard, *movdi_32bit,
7358         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
7359         *movhi_internal, *movqi_internal, *movsf_hardfloat,
7360         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
7361         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
7362         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
7363         applicable.
7364         (movcc): Change first xfer to multi.
7365         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
7366         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
7367         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
7368         config/mips/generic.md: Change reservations using "xfer" to use
7369         "mfc,mtc".
7370         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
7371         using match_operand.
7372         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
7373         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
7374         examining mode.
7375         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
7376
7377 2007-03-22  Richard Henderson  <rth@redhat.com>
7378
7379         * config/i386/i386.c: Remove unnecessary function declarations.
7380         Move targetm definition, and all related macros, to the end of
7381         the file.  Resort some functions to put definitions before uses.
7382         (ix86_attribute_table): Make static.  Move to end of file.
7383         (ix86_gimplify_va_arg): Make static.
7384
7385 2007-03-22  Richard Henderson  <rth@redhat.com>
7386
7387         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
7388         don't increase local_regparm with force_align_arg_pointer check.
7389         (ix86_function_sseregparm): Assert 32-bit.
7390         (type_has_variadic_args_p): New.
7391         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
7392         type_has_variadic_args_p.
7393         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
7394         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
7395         use memset instead.  Do maybe_vaarg check first; skip attribute
7396         tests if true; skip attribute tests for 64-bit.
7397         (construct_container): Remove TARGET_DEBUG_ARG.
7398         (function_arg_advance_32, function_arg_advance_64): Split out ...
7399         (function_arg_advance): ... from here.
7400         (function_arg_32, function_arg_64): Split out ...
7401         (function_arg): ... from here.
7402         (ix86_pass_by_reference): Tidy.
7403         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
7404         (function_value_32): New, from parts of ix86_function_value
7405         and ix86_value_regno.
7406         (function_value_64): New, from parts of ix86_function_value
7407         and ix86_libcall_value.
7408         (ix86_function_value_1): New.
7409         (ix86_function_value, ix86_libcall_value): Use it.
7410         (return_in_memory_32, return_in_memory_64): Split out ...
7411         (ix86_return_in_memory): ... from here.
7412         (ix86_struct_value_rtx): Skip for 64-bit.
7413         (ix86_libcall_value, ix86_value_regno): Remove.
7414         (setup_incoming_varargs_64): Split out ...
7415         (ix86_setup_incoming_varargs): ... from here.
7416         (ix86_va_start): Remove TARGET_DEBUG_ARG.
7417         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
7418         * config/i386/i386-protos.h (ix86_function_value): Remove.
7419         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
7420
7421 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7422
7423         PR other/23572
7424         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
7425         infinities not supported, otherwise emit warning if -Woverflow. On
7426         underflow, emit warning if -Woverflow.
7427         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
7428         and 0 otherwise.
7429         * real.h (real_from_string): Update declaration
7430
7431 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
7432             Richard Henderson  <rth@redhat.com>
7433
7434         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
7435         * calls.c (compute_argument_block_size, expand_call,
7436         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
7437         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7438         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
7439         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
7440         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
7441         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
7442         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
7443         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
7444         Set to 1.
7445
7446 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
7447
7448         * c-incpath.c (add_sysroot_to_chain): New.
7449         (merge_include_chains): Add sysroot argument.  Call
7450         add_sysroot_to_chain if sysrooted.
7451         (register_include_chains): Update call to merge_include_chains.
7452         * doc/cppopts.texi: Document use of '=' in include directory
7453         arguments.
7454
7455 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
7456
7457         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
7458         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
7459         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
7460         insn pattern using X87MODEF12 mode macro.
7461
7462 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
7463
7464         * regmove.c (regmove_optimize): Use reg_mentioned_p
7465         instead of reg_overlap_mentioned_p for DST.
7466
7467 2007-03-21  Mike Stump  <mrs@apple.com>
7468
7469         * c.opt: Fixup for Objective-C/C++.
7470
7471 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
7472
7473         * explow.c (convert_memory_address): Fold memory reference when
7474         POINTERS_EXTEND_UNSIGNED < 0
7475
7476 2007-03-21  Richard Henderson  <rth@redhat.com>
7477
7478         PR target/31245
7479         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
7480         * config/i386/mmintrin.h (__m64): Likewise.
7481         * config/i386/xmmintrin.h (__m128): Likewise.
7482
7483 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
7484
7485         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
7486         (VXWORKS_OS_CPP_BUILTINS): Define.
7487         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
7488         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
7489
7490 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
7491
7492         * rtl.h (constant_pool_reference_p): Delete.
7493         (find_constant_src): Declare.
7494         * rtlanal.c (find_constant_src): New function.
7495         * simplify-rtx.c (constant_pool_reference_p): Delete.
7496         * config/i386/i386.md: Use find_constant_src instead of
7497         constant_pool_reference_p/avoid_constant_pool_reference pairs.
7498
7499 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
7500
7501         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
7502         * c-cppbuiltin.c (c_cpp_builtins): Define them.
7503
7504 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
7505
7506         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
7507         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
7508         (arm_elf_asm_constructor): Use it.
7509         (arm_elf_asm_destructor): New function.
7510
7511 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
7512
7513         * jump.c (mark_jump_label): Treat SEQUENCE specially.
7514
7515 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
7516
7517         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
7518
7519 2007-03-19  Andrew Haley  <aph@redhat.com>
7520
7521         PR tree-optimization/31264
7522         * tree-vrp.c (register_edge_assert_for_1): Don't look though
7523         VIEW_CONVERT_EXPRs.
7524
7525 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
7526
7527         PR rtl-optimization/30907
7528         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
7529         (fwprop_init): Always call loop_optimizer_initialize.
7530         (fwprop_done): Always call loop_optimizer_finalize.
7531         (fwprop): We always have loop info now.
7532         (gate_fwprop_addr): Remove.
7533         (pass_fwprop_addr): Use gate_fwprop as gate.
7534
7535         PR rtl-optimization/30841
7536         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
7537         df_chain_alloc): Call df_reorganize_refs unconditionally.
7538         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
7539         refs_organized to refs_organized_size.
7540         (df_ref_create_structure): Use refs_organized_size instead of
7541         bitmap_size if refs had been organized, and keep refs_organized_size
7542         up-to-date.
7543         * df.h (struct df_ref_info): Change refs_organized to
7544         refs_organized_size.
7545         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
7546         bitmap_size.
7547
7548 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
7549
7550         * except.c (output_function_exception_table): Do not reference the
7551         EH personality routine for functions that do not require an
7552         exception table.
7553
7554 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7555
7556         PR c/30762
7557         * c-typeck.c (convert_for_assignment): Call comptypes for
7558         RECORD_TYPE or UNION_TYPE.
7559
7560         PR inline-asm/30505
7561         * reload1.c (reload): Do invalid ASM checking after
7562         cleanup_subreg_operands.
7563
7564 2007-03-19  Jeff Law  <law@redhat.com>
7565
7566         * tree-cfg.c (find_taken_edge): Tighten conditions for
7567         optimizing computed gotos.
7568
7569 2007-03-19  Michael Matz  <matz@suse.de>
7570
7571         * builtins.c (expand_builtin_sync_operation,
7572         expand_builtin_compare_and_swap,
7573         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
7574         correctly.
7575
7576         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
7577         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
7578         for operand 3.
7579
7580 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7581
7582         * doc/tm.texi: Add brackets around the return type of
7583         TARGET_SECONDARY_RELOAD.
7584
7585 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7586         Richard Guenther  <rguenther@suse.de>
7587
7588         PR tree-optimization/31254
7589         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
7590         Use handled_component_p () where appropriate.  Continue
7591         propagating into the rhs if we propagated into an INDIRECT_REF
7592         on the lhs.
7593
7594 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7595
7596         * config/s390/s390.md (op_type attribute): RRR instruction type added.
7597         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
7598         (xde, xdee): Mode attributes adjusted to support DFP modes.
7599         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
7600         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
7601         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
7602         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
7603         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
7604         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
7605         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
7606         numbers.
7607         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
7608         "movsf"): Insn definitions removed.
7609         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
7610         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
7611         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
7612         definitions added.
7613         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
7614         "reload_in<mode>", "reload_out<mode>"): Expander added.
7615         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
7616         Expander removed.
7617
7618 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7619
7620         * config/s390/s390.md: Only non-functional changes.  Renamed
7621         FPR mode macro to BFP all over the file.
7622
7623 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7624
7625         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
7626         (op_type attribute): RRF instruction type added.
7627         (fT0): New mode attribute.
7628         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
7629         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
7630         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
7631         no secondary memory is needed when moving DFmode values between GPRs
7632         and FPRs.
7633
7634 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7635
7636         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
7637         inverted and documentation adjusted.
7638         ("mhard-dfp", "msoft-dfp"): New options.
7639         * config/s390/s390.c (s390_handle_arch_option): New architecture
7640         switch: z9-ec.
7641         (override_options): Sanity checks for the new options added.
7642         * config.gcc: New architecture switch: z9-ec.
7643         * config/s390/s390.h (processor_flags): PF_DFP added.
7644         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
7645         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
7646         when the bit is NOT set so remove it from the defaults.
7647
7648 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7649
7650         * genemit.c (main): Print include statement for dfp.h.
7651         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
7652         is not available.
7653
7654 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
7655
7656         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
7657
7658 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
7659
7660         PR target/31022
7661         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
7662         instead of PATTERN.
7663
7664 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7665
7666         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
7667         attr_length_call, output_call, output_indirect_call): Cleanup
7668         formatting of targetm calls.
7669
7670 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
7671
7672         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
7673
7674 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7675
7676         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
7677         reservation, bypass and anti-bypass descriptions for these instructions.
7678         Update move patterns.
7679         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
7680         TYPE_FPSTORE.
7681
7682 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
7683
7684         * tree-vect-transform.c (get_initial_def_for_induction): Replace
7685         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
7686         (get_initial_def_for_reduction): Likewise.
7687
7688 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
7689
7690         Fix PR tree-optimization/29922
7691         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
7692         (get_representative): Removed.
7693         (value_dies_in_block_x): Update for rvuse removal.
7694         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
7695         (compute_antic_aux): Handle when PHI nodes appear in
7696         non-single-successors.
7697         (dump_bitmap_of_names): Removed.
7698         (compute_antic_safe): Renamed and removed rvuse calculation.
7699         Calculate only antic safe.
7700         (insert_into_preds_of_block): Remove assert.
7701         (execute_pre): Update for renamed functions.
7702         (defer_or_phi_translate_block): New function.
7703
7704 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
7705
7706         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
7707         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
7708         typos.
7709         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
7710         Follow spelling conventions.
7711
7712         * tree-data-ref.h: Remove the prototype for analyze_array.
7713
7714 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
7715
7716         PR tree-optimization/31041
7717         * tree-vect-transform.c (get_initial_def_for_induction): Call
7718         force_gimple_operand.
7719
7720 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
7721
7722         * ipa-type-escape.c (look_for_casts) : Revert code to use
7723         handled_component_p due to ada test a-numaux.adb.
7724
7725 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
7726
7727         * final.c (final_scan_insn): Alter the condition of a
7728         conditional trap if we have nonstandard CC.
7729
7730 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
7731
7732         * configure.ac: Remove excess quoting from asm line 0 test.
7733         * configure: Rebuilt.
7734
7735 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7736
7737         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
7738         * c-common.c (convert_and_check): Move warning logic to...
7739         (warnings_for_convert_and_check): ...here. Define.
7740         * c-common.h (warnings_for_convert_and_check): Declare.
7741
7742 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7743
7744         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
7745         (output_call): Likewise.
7746
7747 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
7748
7749         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
7750
7751 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
7752
7753         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
7754
7755 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
7756
7757         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
7758         opteron, athlon-64 and athlon-fx processor_alias_table entries.
7759
7760 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
7761
7762         PR tree-optimization/31183
7763         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
7764         Use double_int instead of unsigned int for representing access_strides.
7765         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
7766
7767 2007-03-16  Richard Guenther  <rguenther@suse.de>
7768
7769         PR tree-optimization/31146
7770         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
7771         to allow recursion of forward_propagate_addr_expr.
7772         (forward_propagate_addr_into_variable_array_index): Likewise.
7773         (forward_propagate_addr_expr): Likewise.
7774         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7775         (forward_propagate_addr_expr_1): Recurse on simple copies
7776         instead of propagating into them.  Do so for useless conversions
7777         as well.
7778         (forward_propagate_addr_expr): Clean up unused statements after
7779         recursion.
7780
7781 2007-03-16  Richard Guenther  <rguenther@suse.de>
7782
7783         * builtins.c (expand_builtin_cexpi): Use the right argument
7784         for the expansion via cexp.
7785
7786 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
7787
7788         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
7789         * configure: Rebuilt.
7790
7791 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
7792
7793         PR debug/29906
7794         * dwarf2out.c (force_type_die): Adjust comment.
7795         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
7796
7797 2007-03-15  DJ Delorie  <dj@redhat.com>
7798
7799         * config/frv/predicates.md (minmax_operator): Don't check operands
7800         here.
7801
7802 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
7803
7804         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
7805         Update constant estimates of number of iterations.
7806         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
7807         argument renamed to "realistic".
7808         (compute_estimated_nb_iterations): Removed.
7809         (record_niter_bound): New function.
7810         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
7811         call record_nonwrapping_iv with upper = false.
7812         (infer_loop_bounds_from_signedness): Pass upper argument to
7813         record_nonwrapping_iv.
7814         (estimate_numbers_of_iterations_loop): Do not call
7815         compute_estimated_nb_iterations.  Record estimate based on profile
7816         information.  Initialize the constant estimates of number of
7817         iterations.
7818         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
7819         estimates.
7820         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
7821         number of iterations is too small.
7822         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
7823         (EST_NOT_AVAILABLE): Removed.
7824         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
7825         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
7826         fields.
7827
7828 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
7829
7830         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
7831         Handle NE_EXPR guards.
7832
7833 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7834
7835         PR c++/24924
7836         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
7837         Set also -pedantic-errors by default for the  preprocessor unless
7838         -fpermissive is given.
7839
7840 2007-03-15  Richard Guenther  <rguenther@suse.de>
7841
7842         PR middle-end/29719
7843         PR middle-end/31161
7844         * builtins.c (expand_builtin_cexpi): As a fallback if we
7845         don't have builtins for sincos or cexp create a function
7846         declaration for cexp and expand to a call to that.
7847         (expand_builtin_int_roundingfn): Always fall
7848         back to floor/ceil and its variants even if they may be
7849         not available.
7850
7851 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
7852
7853         PR middle-end/31159
7854         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
7855         jump tables, move the call to delete_dead_jumptables from here...
7856         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
7857         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
7858         don't allow merging of blocks that try_redirect_by_replacing_jump
7859         also does not handle when not optimizing.
7860
7861 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
7862             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7863
7864         * config/i386/i386.md (x86_sahf_1): Correctly handle
7865         HAVE_AS_IX86_SAHF.
7866
7867 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
7868
7869         PR target/31167
7870         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
7871         x86_64_general_operand as operand[2] predicate.  Remove "iF"
7872         from operand constraints and use "e" constraint instead.
7873         (*subti3_1, *subti3_1 splitter): Ditto.
7874         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
7875         operand[1] predicate.
7876
7877 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
7878
7879         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
7880         arrays, multiply the access strides by the size of the sub-array.
7881         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
7882
7883 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
7884
7885         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
7886         the configured assembler supports the sahf mnemonic.
7887         * configure: Regenerate.
7888         * config.in: Regenerate.
7889
7890         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
7891         emit "sahf" or ".byte\t0x9e" as asm template.
7892
7893 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
7894
7895         PR 31018
7896         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
7897         option to replace hard coded TARGET_xxx in md file.
7898         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
7899         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
7900         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
7901         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
7902         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
7903         (X86_TUNE_NOT_VECTORMODE): Ditto.
7904         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
7905         (TUNE_AVOID_VECTOR_DECODE): Ditto.
7906         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
7907         (TUNE_SLOW_IMUL_IMM8): Ditto.
7908         (TUNE_MOVE_M1_VIA_OR): Ditto.
7909         (TUNE_NOT_UNPAIRABLE): Ditto.
7910         (TUNE_NOT_VECTORMODE): Ditto.
7911
7912         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
7913         options.
7914
7915         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
7916         tuning options instead of hard coded TARGET_xxx.
7917         (fix ssemode peephole2's): Ditto.
7918         (imul peephole2's): Ditto.
7919         (movsi_or): Ditto.
7920         (movdi_or_rex64): Ditto.
7921         (move peephole2): Ditto.
7922         (not peephole2's): Ditto.
7923
7924 2007-03-14  Dirk Mueller  <dmueller@suse.de>
7925
7926         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
7927         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
7928         * c-parser.c (c_parser_if_body): Always add an empty statement in case
7929         of empty body.
7930         * c-parser.c (c_parser_do_statement): Warn about empty body in
7931         do/while statement.
7932         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
7933         * doc/invoke.texi (-Wempty-body): Update documentation.
7934
7935 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7936
7937         PR c/21438
7938         * c-common.h (warn_for_div_by_zero): Declare.
7939         * c-common.c (warn_for_div_by_zero): Define.
7940         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
7941         warning.
7942
7943 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
7944
7945         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
7946         to PREFIX and STANDARD_PREFIX.
7947
7948 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
7949             Phil Edwards  <phil@codesourcery.com>
7950
7951         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
7952         (__gthread_once_t): Remove busy field for RTPs.
7953         (__GTHREAD_ONCE_INIT): Update accordingly.
7954
7955 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
7956
7957         * doc/invoke.texi: Document VxWorks options.
7958
7959 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
7960
7961         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
7962
7963 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
7964
7965         PR tree-optimization/30590
7966         * tree-nrv.c (tree_nrv): Check for the partial update of the
7967         return value.
7968
7969 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
7970
7971         * flags.h (flag_random_seed): Remove declaration, in favor of...
7972         * toplev.h (get_random_seed, set_random_seed): ... these.
7973         * tree.c (get_file_function_name): Use the former.
7974         * opts.c (common_handle_option): Use the latter.
7975         * toplev.c
7976
7977 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
7978
7979         PR middle-end/31127
7980         * cse.c (cse_find_path): Do not bail out if a basic block that
7981         we already visited now becomes part of a path that starts at a
7982         different basic block.  Just disallow this, to make sure we
7983         visit each basic block at most once.
7984
7985 2007-03-13  Jan Hubicka  <jh@suse.cz>
7986
7987         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
7988         when profile esitmate is present, calls with very low frequency are
7989         cold.
7990
7991 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
7992
7993         PR tree-optimization/30730
7994         PR tree-optimization/26900
7995         * tree-ssa-loop-niter.c: Include gmp.h.
7996         (bounds): New type.
7997         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
7998         split_to_var_and_offset, determine_value_range,
7999         bound_difference_of_offsetted_base, refine_bounds_using_guard,
8000         bound_difference, bounds_add, bounds_negate,
8001         number_of_iterations_ne_max, dump_affine_iv): New functions.
8002         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
8003         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
8004         difference of initial and final value of control iv to validate
8005         results.
8006         (number_of_iterations_cond): Add loop parameter.  Determine bounds
8007         on the difference of the extremes of the control iv.  Add dumps.
8008         (expand_simple_operations): Handle phi nodes.
8009         (simplify_using_initial_conditions): Do not record used conditions.
8010         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
8011         Do not set additional_info.
8012         (implies_nonnegative_p, implies_ge_p): Removed.
8013         (derive_constant_upper_bound): Do not use parameter `additional'.
8014         (record_estimate): Parameter `additional' removed.  Parameter
8015         `i_bound' added.  Do not call derive_constant_upper_bound.
8016         (record_nonwrapping_iv): Use derive_constant_upper_bound to
8017         bound the number of iterations estimate.
8018         (estimate_numbers_of_iterations_loop): Pass the estimate from
8019         the number of iterations analysis to record_estimate.
8020         * tree.h (multiple_of_p): Declare.
8021         * tree-scalar-evolution.c (expression_expensive_p): Removed.
8022         (scev_const_prop): Do not check expression_expensive_p.
8023         * fold-const.c (multiple_of_p): Exported.
8024         * double-int.c (double_int_mask): Exported.
8025         * double-int.h (double_int_mask): Declare.
8026         * tree-flow.h (struct tree_niter_desc): Removed additional_info
8027         field.  Added max field.
8028
8029 2007-03-13  David Taylor  <taylor@candd.org>
8030
8031         PR driver/12448:
8032         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
8033         default -MQ.
8034
8035 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8036
8037         PR target/31123
8038         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
8039         two unamed patterns.
8040
8041 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
8042
8043         * config/i386/i386.opt (mcx16, msahf): New options.
8044         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
8045         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
8046
8047         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
8048         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
8049         Output -mcx16 and -msahf options when corresponding bit is set.
8050
8051         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
8052         and -msahf options.
8053
8054 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
8055
8056         * configure.ac: Test for assembler tolerance to # 0 "".
8057         * configure, config.in: Rebuilt.
8058         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
8059
8060 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
8061
8062         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
8063
8064         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
8065         (handle_syscall): Handle direct system calls.
8066         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
8067
8068 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
8069
8070         * doc/invoke.texi: Fix cpp.info cross-reference.
8071         * doc/passes.texi: Fix gcc.info cross-reference.
8072
8073 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
8074
8075         PR tree-optimization/30835
8076         * lambda-code.c (can_convert_to_perfect_nest): Check whether
8077         bb_for_stmt is not NULL before accessing it.
8078
8079 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
8080
8081         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
8082         some multilibs.
8083
8084 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
8085
8086         PR 30635
8087         * doc/install.texi: Document --enable-stage1-languages
8088
8089 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
8090
8091         * tree-pass.h (pass_into_cfg_layout_mode,
8092         pass_outof_cfg_layout_mode): Declare.
8093         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
8094         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
8095         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
8096         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
8097
8098 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
8099
8100         * c-decl.c (warn_variable_length_array): New function.
8101         Refactored from grokdeclarator to handle warn_vla
8102         and handle unnamed array case.
8103         (grokdeclarator): Refactored VLA warning case.
8104         * c.opt (Wvla): New flag.
8105         * doc/invoke.texi (Wvla): New warning.
8106
8107 2007-03-12  Richard Henderson  <rth@redhat.com>
8108
8109         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
8110         (TARGET_SECTION_TYPE_FLAGS): New.
8111
8112 2007-03-12  Richard Henderson  <rth@redhat.com>
8113
8114         * config/darwin.c (machopic_reloc_rw_mask): New.
8115         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
8116         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
8117
8118 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
8119
8120         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
8121         * cppdefault.h (cpp_PREFIX): Document.
8122         (cpp_PREFIX_len): Likewise.
8123         (cpp_EXEC_PREFIX): New variable.
8124         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
8125         * c-incpath.c (add_standard_paths): Correct logic for relocating
8126         paths within prefix.
8127
8128 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
8129
8130         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
8131         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
8132         mode macro.
8133         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
8134         fix_truncdfdi_sse using SSEMODEF mode macro.
8135         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
8136         fix_truncdfsi_sse using SSEMODEF mode macro.
8137         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
8138         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
8139
8140 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
8141
8142         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
8143         elfos.h to tm_file.
8144
8145 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
8146
8147         * tree.h : Add multiple_of_p declaration.
8148         * fold-const.c (multiple_of_p): Make multiple_of_p public.
8149         * ipa-type-escape.c (results_of_malloc): Redundant.
8150         (visited_stmts): New. Visited stmt for walk_use_def_chains.
8151         (cast_type): Extended with new members.
8152         (check_cast): Returns cast_type.
8153         (cast): New structure for data of walk_use_def_chains.
8154         (is_malloc_result, is_cast_from_non_pointer_1,
8155         is_cast_from_non_pointer,
8156         is_array_access_through_pointer_and_index): New functions.
8157         (look_for_casts): Returns cast types.
8158         (check_call): Returns void.
8159         (okay_pointer_operation): Use support of pointer plus index,
8160         pointer plus constant and allow all multiplications.
8161
8162 2007-03-11  Richard Guenther  <rguenther@suse.de>
8163
8164         PR tree-optimization/31115
8165         * tree-vrp.c (extract_range_from_binary_expr): Make sure
8166         the shift count is positive and non-anti-range for RSHIFT_EXPR.
8167         A shift count of zero is not special as with *_DIV_EXPR.
8168         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
8169         direction.
8170
8171 2007-03-11  Ian Lance Taylor  <iant@google.com>
8172
8173         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
8174         the *_DIV_EXPR codes correctly with overflow infinities.
8175
8176 2007-03-11  Ira Rosen  <irar@il.ibm.com>
8177
8178         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
8179         indicate success/failure of the analysis. Add negation to subtrahend
8180         in case of subtraction. Fail if both operands contain constants.
8181         (create_data_ref): Fail if analyze_offset fails.
8182
8183 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
8184
8185         * config/i386/i386.md (frndintxf2): Rename to ...
8186         (rintxf2): ... this. Remove expander having same name.
8187         (rintsf2, rintdf2): Implement using SSEMODEF macro.
8188         (roundsf2, rounddf2): Ditto.
8189         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
8190         (lround<mode>di2, lround<mode>si2): Ditto.
8191
8192 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
8193
8194         * lower-subreg.c: Include except.h.
8195         (decompose_multiword_subregs): Verify that the only control flow
8196         insns we can split are loads to multi-words pseudos.
8197         Handle breaking such blocks after splitting, instead of calling
8198         find_many_sub_basic_blocks.
8199
8200         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
8201         on the new basic block.  Add a lengthy comment explaining why we
8202         thought this was necessary.
8203         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
8204
8205 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
8206
8207         PR c++/30924
8208         * tree.c (walk_type_fields): Recurse into the element type of
8209         ARRAY_TYPEs if there is a pointer set.
8210
8211 2007-03-10  Dirk Mueller  <dmueller@suse.de>
8212
8213         * c-common.c (warn_logical_operator): Fix condition.
8214
8215 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
8216
8217         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
8218         quotation mark.
8219         * config/darwin.c (machopic_select_section): Remove superfluous
8220         argument in call to categorize_decl_for_section.  Remove unused
8221         variable shlib.
8222
8223 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
8224
8225         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
8226         defined.
8227         * configure: Regenerate.
8228
8229 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
8230
8231         PR target/31101
8232         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
8233         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
8234         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
8235         Add LABEL_NUSES to emitted label.
8236         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
8237         branch probability value to emitted jump insn.
8238         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
8239         Do not check life information and do not re-arrange input operands
8240         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
8241
8242 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8243
8244         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
8245         the change of decode_asm_operands.
8246
8247 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8248
8249         * mode-switching.c (create_pre_exit): Skip blockage insn.
8250
8251 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
8252
8253         * tree-pass.h (TODO_update_smt_usage): Remove.
8254         Update all users.
8255         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
8256         argument SOME.
8257         Update all users.
8258
8259 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8260
8261         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
8262         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
8263         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
8264         SOM target.
8265
8266 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
8267
8268         * gcc.c: Document %{, in big comment at top.
8269         (input_suffix_matches): Remove special handling for .s and
8270         .S.
8271         (input_spec_matches): New.
8272         (handle_braces): Handle %{,.
8273         (validate_switches): ',' indicates a value which is not a switch.
8274         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
8275         to detect assembler input.
8276         * config/i386/sol2.h (CPP_SPEC): Likewise.
8277         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
8278         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8279         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
8280         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8281         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
8282         -m64 causes deployment target to default to 10.5.
8283         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
8284
8285 2007-03-09  Richard Henderson  <rth@redhat.com>
8286
8287         PR target/26090
8288         * target.h (targetm.asm.out.reloc_rw_mask): New.
8289         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
8290         (TARGET_ASM_OUT): Use it.
8291         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
8292         * varasm.c (categorize_decl_for_section): Remove shlib argument;
8293         use the new reloc_rw_mask target hook instead.
8294         (default_section_type_flags_1): Merge into...
8295         (default_section_type_flags): ... here.
8296         (decl_readonly_section_1): Merge into...
8297         (decl_readonly_section): ... here.
8298         (default_elf_select_section_1): Merge into...
8299         (default_elf_select_section): ... here.
8300         (default_unique_section_1): Merge into...
8301         (default_unique_section): ... here.
8302         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
8303         (default_select_rtx_section): Use it.
8304         (default_elf_select_rtx_section): Likewise.
8305         * output.h: Update to match.
8306         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
8307         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
8308         (TARGET_ASM_RELOC_RW_MASK): New.
8309         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
8310         to categorize_decl_for_section.
8311         (x86_64_elf_unique_section): Likewise.
8312         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
8313         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
8314         (TARGET_ASM_RELOC_RW_MASK): New.
8315         * config/ia64/ia64.c (ia64_rwreloc_select_section,
8316         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
8317         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
8318         (TARGET_RWRELOC): Remove.
8319         (ia64_section_type_flags): Adjust call to default_section_type_flags.
8320         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
8321         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
8322         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
8323         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
8324         (rs6000_xcoff_select_section): Use decl_readonly_section.
8325         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
8326         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
8327         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
8328         (TARGET_SECTION_TYPE_FLAGS): Remove.
8329         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
8330
8331 2007-03-09  Roger Sayle  <roger@eyesopen.com>
8332
8333         * fold-const.c (fold_comparison): Remove compile-time evaluation of
8334         complex constant equality/inequality comparisons for here.
8335         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
8336         known at compile-time or can be simplified to a scalar comparison.
8337         (fold_relational_const): Move compile-time evaluation of complex
8338         constant equality/inequality comparisons to here.
8339
8340 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
8341
8342         PR rtl-optimization/30643
8343         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
8344         dest_addr_elt.
8345         (fold_rtx): Recurse, like before 2006-11-03.
8346
8347 2007-03-09  DJ Delorie  <dj@redhat.com>
8348
8349         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
8350         m32c-pragma.o.
8351
8352 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
8353
8354         PR tree-optimization/30375
8355         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
8356         LHS of statements is not the same.
8357         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
8358
8359 2007-03-09  Chao-ying Fu  <fu@mips.com>
8360
8361         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
8362         REV 2.
8363         * doc/invoke.texi (-mdspr2): Document new option.
8364         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
8365         New unspec for DSP REV 2.
8366         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
8367         these instructions are extended in DSP REV 2.
8368         (mips-dspr2.md): Include.
8369         * config/mips/mips.opt (mdspr2): New option.
8370         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
8371         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
8372         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
8373         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
8374         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
8375         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
8376         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
8377         and 2 builtins.
8378         (bdesc_map): Add one field of unsupported_target_flags.
8379         (bdesc_arrays):  Update entries to have extra fields.  Add
8380         dsp_32only_bdesc.
8381         (mips_init_builtins): Initialize new function types.
8382         Check unsupported_target_fileds to filter out builtins.
8383         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
8384         TARGET_DSPR2.
8385         (ASM_SPEC): Pass mdspr2 to the assembler.
8386         * config/mips/mips-dspr2.md: New file.
8387
8388 2007-03-09  Sa Liu  <saliu@de.ibm.com>
8389
8390         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
8391
8392 2007-03-09  Ian Lance Taylor  <iant@google.com>
8393
8394         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
8395         argument) like -Wstrict-overflow=2.
8396         * doc/invoke.texi (Warning Options): Update documentation.
8397
8398 2007-03-09  Dirk Mueller  <dmueller@suse.de>
8399
8400         PR c++/17946
8401         * doc/invoke.texi (-Wlogical-op): Document.
8402         * common.opt (-Wlogical-op): New.
8403         * c-common.h (warn_logical_operator): Declare.
8404         * c-common.c (warn_logical_operator): Define.
8405         * c-typeck.c (parser_build_binary_op): Call
8406         warn_logical_operator.
8407
8408 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
8409
8410         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
8411         * final.c (final_scan_insn): Test for non-"" file name.
8412
8413 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
8414
8415         * doc/loop.texi: Document the Omega linear constraints solver.
8416         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
8417         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
8418         omega-hash-table-size, omega-max-keys, and
8419         omega-eliminate-redundant-constraints.
8420         * tree-pass.h (pass_check_data_deps): Declared.
8421         * omega.c: New.
8422         * omega.h: New.
8423         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
8424         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
8425         pass_check_data_deps): New.
8426         * tree-data-ref.c (init_data_ref): Remove declaration.
8427         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
8428         (analyze_array): Renamed init_array_ref, move up initializations.
8429         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
8430         Removed arguments that are set to NULL.
8431         (analyze_indirect_ref): Correct indentation, correct call to
8432         init_pointer_ref.
8433         (object_analysis): Call init_array_ref instead of analyze_array.
8434         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
8435         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
8436         of DR_ACCESS_FNS_ADDR.
8437         (init_omega_eq_with_af, omega_extract_distance_vectors,
8438         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
8439         ddr_consistent_p): New.
8440         (compute_affine_dependence): Check consistency of ddrs when
8441         flag_check_data_deps is passed.
8442         (analyze_all_data_dependences): Uncomment.
8443         (tree_check_data_deps): New.
8444         * tree-data-ref.h: Include omega.h.
8445         (DR_ACCESS_FNS_ADDR): Removed.
8446         (data_dependence_relation): Add inner_loop.
8447         (DDR_INNER_LOOP): New.
8448         * common.opt (fcheck-data-deps): New.
8449         * tree-flow.h (tree_check_data_deps): Declare.
8450         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
8451         (OBJS-common): Depend on omega.o.
8452         (omega.o): Define.
8453         * passes.c (pass_check_data_deps): Scheduled.
8454         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
8455         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
8456         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
8457         PARAM_VECT_MAX_VERSION_CHECKS,
8458         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
8459
8460 2007-03-09  Richard Guenther  <rguenther@suse.de>
8461
8462         PR tree-optimization/30904
8463         PR middle-end/31058
8464         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
8465         the same way as *_DIV_EXPR.
8466
8467 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
8468
8469         * recog.c (decode_asm_operands): No mixed declarations and code.
8470
8471 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
8472
8473         * rtl.def (ASM_INPUT): Add location.
8474         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
8475         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
8476         (decode_asm_operands): Add loc operand.
8477         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
8478         * stmt.c (expand_asm): Rename to...
8479         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
8480         gen_rtx_ASM_INPUT_loc.
8481         (expand_asm_expr): Adjust.
8482         * recog.c (decode_asm_operands): Add loc operand.
8483         (check_asm_operands, extract_insn): Adjust.
8484         * reload1.c (maybe_fix_stack_asms): Likewise.
8485         * final.c (asm_insn_count): Likewise.
8486         (final_scan_insn): Output # line before and after asm.
8487
8488 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
8489
8490         * tree-ssa-structalias.c (variable_info): Remove
8491         finished_solution.
8492         (new_var_info): Ditto.
8493         (shared_bitmap_info_t): New structure.
8494         (shared_bitmap_table): New variable.
8495         (shared_bitmap_hash): New function.
8496         (shared_bitmap_eq): Ditto
8497         (shared_bitmap_lookup): Ditto.
8498         (shared_bitmap_add): Ditto.
8499         (merge_smts_into): Change to take bitmap directly.
8500         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
8501         (init_alias_vars): Init shared bitmap hashtable.
8502         (delete_points_to_sets): Delete shared bitmap hashtable.
8503         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
8504         is_aliased removal as a change that was still necessary was
8505         deleted.
8506
8507 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
8508
8509         * config/i386/i386.h (override_options): Conditionally disable
8510         x86_sahf for 64bit targets only.
8511
8512 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8513
8514         PR C/31072
8515         * c-decl.c (merge_decls): Don't call make_var_volatile.
8516         * varasm.c (make_var_volatile): Remove.
8517         * output.h (make_var_volatile): Remove.
8518
8519 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
8520
8521         PR tree-optimization/31085
8522         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
8523
8524 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8525
8526         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
8527         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
8528         ATTR_CONST_NOTHROW_LIST.
8529
8530         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
8531         FIX_TRUNC_EXPR.
8532
8533 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
8534
8535         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
8536
8537 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
8538
8539         PR 31013
8540         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
8541         is declared.
8542         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
8543         passed, use shared libgcc.
8544
8545 2007-03-08  Roger Sayle  <roger@eyesopen.com>
8546
8547         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
8548         instead of calling build2 with a GIMPLE_MODIFY_STMT.
8549         (honor_protect_cleanup_actions, lower_try_finally_switch):
8550         Likewise.
8551         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
8552         ifc_temp_var): Likewise.
8553         * tree-inline.c (setup_one_parameter): Likewise.
8554         * tree-mudflap.c (mf_decl_cache_locals,
8555         mf_build_check_statement_for): Likewise.
8556         * tree-nested.c (init_tmp_var, save_tmp_var,
8557         finalize_nesting_tree_1): Likewise.
8558         * tree-outof-ssa.c (insert_copy_on_edge,
8559         insert_backedge_copies): Likewise.
8560         * tree-profile.c (tree_gen_edge_profiler,
8561         tree_gen_ic_profiler): Likewise.
8562         * tree-scalar-evolution.c (scev_const_prop): Likewise.
8563         * tree-sra.c (sra_build_assignment): Likewise.
8564         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
8565         * tree-ssa-math-opts.c (insert_reciprocals,
8566         execute_cse_sincos_1): Likewise.
8567         * tree-tailcall.c (adjust_accumulator_values,
8568         adjust_return_value): Likewise.
8569         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
8570         * tree-vect-transform.c (vect_create_data_ref_ptr,
8571         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
8572         vect_create_epilog_for_reduction, vectorizable_reduction,
8573         vectorizable_call, vectorizable_conversion,
8574         vectorizable_assignment, vectorizable_operation,
8575         vectorizable_type_demotion, vect_gen_widened_results_half,
8576         vect_permute_store_chain, vectorizable_store,
8577         vect_setup_realignment, vect_permute_load_chain,
8578         vectorizable_load, vectorizable_condition,
8579         vect_create_cond_for_align_checks): Likewise.
8580         * tree-vrp.c (build_assert_expr_for): Likewise.
8581
8582 2007-03-08  Ian Lance Taylor  <iant@google.com>
8583
8584         * tree-vrp.c: Include "intl.h".
8585         (usable_range_p): New static function.
8586         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
8587         overflowed values, juts set *strict_overflow_p.
8588         (compare_values): Only return -2 if one of the operands is not a
8589         constant.
8590         (compare_ranges): Call usable_range_p.
8591         (compare_range_with_value): Likewise.
8592         (vrp_evaluate_conditional_warnv): Rename from
8593         vrp_evaluate_conditional.  Make static.  Change all callers.
8594         (vrp_evaluate_conditional): New function.
8595         (simplify_div_or_mod_using_ranges): Issue warning about reliance
8596         on signed overflow.
8597         (simplify_abs_using_ranges): Likewise.
8598         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
8599         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
8600         within_stmt parameter.
8601         * tree-ssa-propagate.c (fold_predicate_in): Update call to
8602         vrp_evaluate_conditional.
8603         * tree-ssa-threadedge.c
8604         (record_temporary_equivalences_from_stmts_at_dest): Change
8605         simplify parameter to take a second tree parameter.
8606         (simplify_control_stmt_condition): Likewise.
8607         (thread_across_edge): Likewise.
8608         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
8609         (thread_across_edge): Likewise.
8610         * Makefile.in (tree-vrp.o): Depend upon intl.h.
8611
8612 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
8613
8614         * config/i386/i386.h (TARGET_SAHF): New define.
8615         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
8616         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
8617         (x86_sahf): New global variable.
8618         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
8619         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
8620         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
8621         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
8622         for 64-bit.
8623         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
8624         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
8625         when expanding fcomi/sahf based tests.
8626         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
8627         expanding sahf based alternative. Emit sahf based sequence when
8628         optimizing for code size.
8629         * config/i386/i386.md (x86_sahf_1): Do not disable for
8630         TARGET_64BIT, enable for TARGET_SAHF.
8631
8632 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
8633
8634         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
8635         spurious whitespace from error message.
8636
8637 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
8638
8639         PR c++/30852
8640         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
8641
8642 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
8643
8644         * c-decl.c (grokdeclarator): Disable warnings for anonymous
8645         bitfields.
8646         * tree-sra.c (instantiate_element): Propagate disabled warnings
8647         from the element itself to the created variable.
8648
8649 2007-03-07  Richard Henderson  <rth@redhat.com>
8650
8651         PR target/30848
8652         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
8653         silently fix up the stack in the case of a missing register.
8654
8655 2007-03-07  Paul Brook  <paul@codesourcery.com>
8656
8657         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
8658
8659 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
8662         New.
8663         (phase1_vrs): Use them.
8664         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
8665         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
8666         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
8667         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
8668         __gnu_Unwind_Restore_WMMXC if required.
8669         (_Unwind_VRS_Pop): Implement iWMMXt support.
8670         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
8671         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
8672         gnu_Unwind_Save_WMMXC): Define.
8673
8674 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
8675
8676         * config/vxworks.h (vxworks_override_options): Declare.
8677         (VXWORKS_OVERRIDE_OPTIONS): Use it.
8678         * config/vxworks.c: Include target.h and toplev.h.
8679         (vxworks_override_options): New function.
8680         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
8681
8682 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
8683
8684         * config/s390/s390.c (override_options): Don't emit an error when
8685         -mstack-size is used without providing -mstack-guard.
8686         (s390_emit_prologue): Choose stack_guard value automatically if not
8687         provided via command line.
8688         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
8689
8690 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
8691
8692         * config/i386/i386.c (output_set_got): Add a GOT initialization
8693         sequence for VxWorks PIC.
8694         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
8695         around labels as well as symbols.  Use gotoff_operand instead
8696         of local_symbolic_operand.
8697         (legitimize_pic_address): Use gotoff_operand instead of
8698         local_symbolic_operand.  Use @GOT accesses for labels as
8699         well as symbols.
8700         (ix86_output_addr_diff_elt): Use PC-relative rather than
8701         GP-relative offsets for VxWorks PIC.
8702         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
8703         no_new_pseudos.  Check whether the returned register is op0.
8704         * config/i386/i386.md (tablejump): Use PC-relative rather than
8705         GP-relative offsets for VxWorks PIC.
8706         * config/i386/predicates.md (gotoff_operand): New predicate.
8707
8708 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8709
8710         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
8711         before defining.
8712         * config/vxworks-dummy.h: New file.
8713         * config/i386/i386.h: Include it.
8714
8715 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
8716
8717         * dwarf2out.c (is_inlined_entry_point): New
8718         (add_high_low_attributes): Emit DW_AT_entry_pc along with
8719         DW_AT_ranges if the first subblock is the entry point.
8720
8721 2007-03-06  David Daney  <ddaney@avtrex.com>
8722
8723         * doc/install.texi (mips-*-*): Change recommended binutils
8724         version.
8725
8726 2007-03-06  Anatoly Sokolov <aesok@post.ru>
8727
8728         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
8729         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
8730         devices.
8731         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8732         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8733
8734 2007-03-06  Jan Hubicka  <jh@suse.cz>
8735
8736         * errors.h (warning, error, fatal, internal_error): Mark as cold.
8737         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
8738         are hot.
8739         (probably_cold_bb_p): Cold functions are cold.
8740         (probably_never_executed_bb_p): Cold functions are cold.
8741         (tree_bb_level_predictions): Predict calls to cold functions as not
8742         taken.
8743         (compute_function_frequency): Check hot/cold attributes.
8744         * function.h (function_frequency): Update comments.
8745         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
8746         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
8747         (c_common_att): Add cold and hot.
8748
8749         * doc/extend.texi (hot,cold attributes): Document.
8750
8751 2007-03-06  Andrew Haley  <aph@redhat.com>
8752
8753         * function.c (expand_function_end): Move blockage to just after we
8754         emit the label for the naked return from the function.
8755
8756 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8757
8758         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
8759         before redefining.
8760
8761 2007-03-06  Jan Hubicka  <jh@suse.cz>
8762
8763         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
8764         loaded for constant large models.  Non-large 64bit PIC can do.
8765         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
8766         * cmodel.h: Add LARGE PIC.
8767         * i386.md (UNSPEC_PLTOFF): New.
8768         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
8769         needed.
8770         (*call_1_rex64): Disable for large models.
8771         (*call_1_rex64_large): New.
8772         (*call_value_1_rex64): Disable for large models.
8773         (*call_value_1_rex64_large): New.
8774         (set_rip_rex4): New.
8775         (set_got_offset_rex64): New.
8776         * predicates.md (constant_call_address_operand): For large model
8777         constant calls are not possible.
8778         * i386-protos.h (construct_plt_address): Declare.
8779         * i386.c (override_options): Accept large models.
8780         (ix86_expand_prologue): Expand large PIC GOT pointer load.
8781         (legitimate_constant_p): Add new UNSPECs.
8782         (legitimate_pic_operand_p): Likewise.
8783         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
8784         (legitimize_pic_address): Do easy RIP relative way for TLS only for
8785         non-large model.
8786         (output_pic_addr_const): Add PLTOFF.
8787         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
8788         (ix86_expand_move): Legitimize pic address when in PIC mode.
8789         (construct_plt_address): New function.
8790         (ix86_expand_call): Offload the address to register and use GOT pointer
8791         for large model.
8792         * invoke.texi (mcmodel=large): Update documentation.
8793
8794 2007-03-06  Richard Henderson  <rth@redhat.com>
8795
8796         * config/i386/i386.c (x86_use_leave, x86_push_memory,
8797         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
8798         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
8799         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
8800         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
8801         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
8802         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
8803         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
8804         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
8805         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
8806         x86_partial_reg_dependency, x86_memory_mismatch_stall,
8807         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
8808         x86_sse_partial_reg_dependency, x86_sse_split_regs,
8809         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
8810         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
8811         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
8812         x86_schedule, x86_use_bt, x86_pad_returns,
8813         x86_use_xchgb): Merge into ...
8814         (ix86_tune_features): ... here.  New array.
8815         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
8816         x86_bswap): Merge into ...
8817         (ix86_arch_features): ... here.  New array.
8818         (x86_3dnow_a): Remove.
8819         (x86_accumulate_outgoing_args): Make static.
8820         (x86_arch_always_fancy_math_387): Make static.
8821         (ix86_tune_mask, ix86_arch_mask): Move ...
8822         (override_options): ... to local variables here.  Apply the
8823         appropriate mask to each element of ix86_arch_features and
8824         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
8825         as were done in the old macros.
8826         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
8827         * config/i386/i386.h (x86_use_leave, x86_push_memory,
8828         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
8829         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
8830         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
8831         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
8832         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
8833         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
8834         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
8835         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
8836         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
8837         x86_partial_reg_dependency, x86_memory_mismatch_stall,
8838         x86_accumulate_outgoing_args, x86_prologue_using_move,
8839         x86_epilogue_using_move, x86_decompose_lea,
8840         x86_arch_always_fancy_math_387, x86_shift1,
8841         x86_sse_partial_reg_dependency, x86_sse_split_regs,
8842         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
8843         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
8844         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
8845         x86_use_incdec, x86_pad_returns, x86_bswap,
8846         x86_partial_flag_reg_stall): Remove.
8847         (enum ix86_tune_indices): New.
8848         (ix86_tune_features): New.
8849         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
8850         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
8851         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
8852         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
8853         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
8854         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
8855         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
8856         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
8857         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
8858         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
8859         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
8860         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
8861         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
8862         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
8863         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
8864         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
8865         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
8866         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
8867         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
8868         TARGET_EXT_80387_CONSTANTS): Use it.
8869         (enum ix86_arch_indices): New.
8870         (ix86_arch_features): New.
8871         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
8872         TARGET_BSWAP): Use it.
8873         (ix86_tune_mask, ix86_arch_mask): Remove.
8874
8875 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
8876
8877         PR bootstrap/31020
8878         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
8879         Define using $${sysroot_headers_suffix}.
8880         * configure: Regenerate.
8881         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
8882         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
8883         defined.
8884         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
8885         * gcc.c (print_sysroot_headers_suffix): New.
8886         (option_map): Include --print-sysroot-headers-suffix.
8887         (display_help): Mention -print-sysroot-headers-suffix.
8888         (process_command): Handle -print-sysroot-headers-suffix.
8889         (do_spec_1): Append multilib directory to include-fixed path if
8890         sysroot suffixes in use.
8891         (main): Handle -print-sysroot-headers-suffix.
8892         * Makefile.in (start.encap): Don't depend on xlimits.h
8893         (xlimits.h): Remove.
8894         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
8895         limits.h for each multilib in fixinc_list.
8896         (fixinc_list, s-fixinc_list): New.
8897         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
8898         generate them for each multilib in fixinc_list.
8899         (stmp-fixproto): Use include-fixed.  Run fixproto for each
8900         multilib in fixinc_list.
8901         (mostlyclean): Don't remove xlimits.h.
8902         (clean): Remove include-fixed.
8903         (real-install-headers-tar, real-install-headers-cpio,
8904         real-install-headers-cp): Don't copy include, only include-fixed.
8905         (install-mkheaders): Depend on fixinc_list.  Don't depend on
8906         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
8907         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
8908         SYSTEM_HEADER_DIR setting in mkheaders.conf.
8909
8910 2007-03-06  Jan Hubicka  <jh@suse.cz>
8911
8912         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
8913         NANs easilly.
8914
8915 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8916
8917         * configure.ac: Allow tm_file to contain build-directory files.
8918         * configure: Regenerate.
8919         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
8920         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
8921         * config/m68k/print-sysroot-suffix.sh: New file.
8922
8923 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8924
8925         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
8926         of pic_offset_table_rtx if reload_completed.
8927         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
8928         PIC_OFFSET_TABLE_REGNUM.
8929         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
8930         return true.
8931         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
8932         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
8933
8934 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8935
8936         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
8937         functions that call eh_return.
8938
8939 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8940
8941         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
8942         functions that need a constant pool.
8943
8944 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8945
8946         PR target/28181
8947         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
8948         (m68k_preferred_reload_class): Likewise.
8949         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
8950         (SECONDARY_RELOAD_CLASS): Define.
8951         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
8952         (LIMIT_RELOAD_CLASS): Delete.
8953         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
8954         registers from storing bytes.
8955         (m68k_secondary_reload_class): New function.
8956         (m68k_preferred_reload_class): Likewise.
8957
8958 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8959
8960         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
8961         leaf functions.
8962         (m68k_expand_prologue): Likewise.
8963
8964 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8965
8966         * config/m68k/m68k-protos.h (output_sibcall): Declare.
8967         (mips_expand_epilogue): Add a bool parameter.
8968         (m68k_legitimize_sibcall_address): Declare.
8969         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
8970         (m68k_expand_epilogue): Add a parameter to select between sibling
8971         and normal epilogues.  Only generate a return for the latter.
8972         (m68k_ok_for_sibcall_p): New function.
8973         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
8974         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
8975         (sibcall_value, *sibcall_value): Likewise.
8976         (*call, *call_value): Require !SIBLING_CALL_P.
8977         (epilogue): Update call to m68k_expand_epilogue.
8978         (sibcall_epilogue): New pattern.
8979         * config/m68k/predicates.md (const_call_operand): Say that this
8980         predicate applies to sibling calls too.
8981         (sibcall_operand): New predicate.
8982
8983 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
8984
8985         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
8986         alternatives as movsi_cf.
8987         (movsf_cf_hard): Add commentary.
8988
8989 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
8990             Richard Sandiford  <richard@codesourcery.com>
8991
8992         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
8993         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
8994         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
8995         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
8996         as being live on exit from an interrupt function.
8997         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
8998         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
8999         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
9000         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
9001         (m68k_interrupt_function_p): Globalize.
9002         (m68k_compute_frame_layout): Remove reverse mask code.
9003         (m68k_emit_movem, m68k_set_frame_related): New functions.
9004         (m68k_output_function_prologue): Delete in favor of...
9005         (m68k_expand_prologue): ...this new function.
9006         (m68k_output_function_epilogue): Delete in favor of...
9007         (m68k_expand_epilogue): ...this new function.
9008         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
9009         functions.
9010         (print_operand): Handle %?.
9011         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
9012         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
9013         (prologue, epilogue): New patterns.
9014         (return): Turn into a define_expand.
9015         (*return): New pattern, derived from old "return" pattern.  Use rte
9016         rather than rts for interrupt functions.  Only use rtd if the pop
9017         count is nonzero.
9018         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
9019         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
9020         (link, *link, unlink, *unlink, load_got): Likewise.
9021
9022 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
9023
9024         PR target/23482
9025         PR target/17114
9026         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
9027         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
9028         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
9029         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
9030         and m68k_matches_u_p.
9031         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
9032         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
9033         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
9034         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
9035         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
9036         (REG_STRICT_P): New macro.
9037         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
9038         PCREL_GENERAL_OPERAND_OK.
9039         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
9040         m68k_legitimate_base_reg_p.
9041         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
9042         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
9043         (PIC_CASE_VECTOR_ADDRESS): Update comment.
9044         * config/m68k/m68k.c (m68k_address): New structure.
9045         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
9046         (m68k_decompose_index, m68k_legitimate_constant_address_p)
9047         (m68k_jump_table_ref_p, m68k_decompose_address)
9048         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
9049         (m68k_matches_u_p): New functions.
9050         (print_operand_address): Rewrite to use m68k_decompose_index.
9051
9052 2007-03-05  David Taylor  <dtaylor@emc.com>
9053
9054         * gcc.c: Correct copyright date in --version output.
9055
9056 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9057
9058         * pa.md: In unamed move patterns, disparge copies between general
9059         and floating point registers using '?' modifier.  Don't include 'f'
9060         constraint for register preferences in DImode, SImode, HImode and
9061         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
9062         Remove constraints for copies between general and floating registers
9063         in soft-float DFmode pattern.
9064         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
9065         floating register.
9066         (movsf): Likewise.
9067
9068 2007-03-05  Mike Stump  <mrs@apple.com>
9069
9070         * c-common.c (targetcm): Add.
9071         * c-opts.c (c_common_handle_option): Handle language specific
9072         target options.
9073         * opts.c (handle_option): Verify language for target options, if
9074         any are given.
9075         * opth-gen.awk: Add CL_LANG_ALL.
9076         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
9077         (TARGETCM_INITIALIZER): Add.
9078         * target.h (struct gcc_targetcm): Add.
9079         (targetcm): Add.
9080         * targhooks.c (default_handle_c_option): Add.
9081         * targhooks.h (default_handle_c_option): Add.
9082         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
9083
9084         * config/darwin.opt (iframework): Add.
9085         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
9086         * config/darwin-c.c (handle_c_option): Add.
9087         (TARGET_HANDLE_C_OPTION): Add.
9088         (targetcm): Add.
9089         * doc/invoke.texi (Darwin Options): Add -iframework.
9090
9091 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9092
9093         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
9094         conversion.
9095
9096 2007-03-05  Ian Lance Taylor  <iant@google.com>
9097
9098         * c.opt (fgnu89-inline): New option.
9099         * c-opts.c (c_common_post_options): Set default value for
9100         flag_gnu89_inline.
9101         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
9102         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
9103         inline functions.
9104         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
9105         (grokdeclarator, start_function): Likewise.
9106         * c-cppbuiltin.c (c_cpp_builtins): Define either
9107         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
9108         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
9109         (C Dialect Options): Document -fgnu89-inline.
9110         * doc/extend.texi (Function Attributes): Explain what the
9111         gnu_inline attribute does.
9112         * doc/cpp.texi (Common Predefined Macros): Document
9113         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
9114
9115 2007-03-05  Ian Lance Taylor  <iant@google.com>
9116
9117         PR tree-optimization/31034
9118         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
9119         half-range if the other side is an overflow infinity.
9120
9121 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
9122
9123         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
9124         (bfin*-linux-uclibc*): New configuration.
9125         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
9126         defining.
9127         * config/bfin/linux.h: New file.
9128         * config/bfin/libgcc-bfin.ver: New file.
9129         * config/bfin/t-bfin-uclinux: New file.
9130         * config/bfin/t-bfin-linux: New file.
9131         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
9132         (TARGET_OS_CPP_BUILTINS): New macro.
9133
9134 2007-03-05  Richard Guenther  <rguenther@suse.de>
9135
9136         * fold-const.c (fold_binary): Remove duplicate folding
9137         of comparison of non-null ADDR_EXPR against null.
9138
9139 2007-03-05  Richard Guenther  <rguenther@suse.de>
9140             Dorit Nuzman  <dorit@il.ibm.com>
9141
9142         PR tree-optimization/26420
9143         * tree-vectorizer.c (vectorize_loops): Bail out early if there
9144         are no loops in the function.  Only print the number of
9145         vectorized loops if it is greater than zero or we are supposed
9146         to print information about unvectorized loops.
9147
9148 2007-03-05  Revital Eres  <eres@il.ibm.com>
9149
9150         * gcc.dg/var-expand1.c: New test.
9151         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
9152         when an accumulator is expanded.
9153
9154 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9155
9156         PR other/30465
9157         * c-common.c (convert_and_check): Don't give warnings for
9158         conversion if 'expr' already overflowed.
9159
9160 2007-03-04  Roger Sayle  <roger@eyesopen.com>
9161
9162         PR middle-end/30744
9163         * fold-const.c (fold_comparison): Enforce type consistency when
9164         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
9165
9166 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
9167
9168         * tree-ssa-address.c (create_mem_ref): Do not put an expression
9169         containing a cast to the base of TARGET_MEM_REF.
9170
9171 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
9172
9173         * tree.c (tree_contains_struct_check_failed): Remove spurious
9174         whitespace from error message.
9175
9176 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
9177
9178         PR target/30406
9179         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
9180         instead of precision.
9181
9182 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
9183             Nathan Sidwell  <nathan@codesourcery.com>
9184
9185         * emit-rtl.c (find_auto_inc): New.
9186         (try_split): recreate REG_INC notes,
9187         Use regular for loops rather than whiles.
9188
9189 2007-03-03  Andreas Schwab  <schwab@suse.de>
9190
9191         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
9192         * configure: Regenerate.
9193
9194 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9195
9196         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
9197         flag_rounding_math, not flag_unsafe_math_optimizations.
9198
9199         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
9200         fold_build2.
9201         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
9202         alpha_fold_vector_minmax): Likewise.
9203         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9204         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
9205
9206 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
9207
9208         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
9209         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
9210         if the lhs has side-effects.
9211         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
9212
9213 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
9214
9215         * config/i386/i386.h (TUNEMASK): Remove define.
9216         (ARCHMASK): Remove define.
9217         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
9218          Use ix86_arch_mask variable instead of ARCHMASK.
9219         * config/i386/i386.c (override_options): Ditto.
9220         (standard_80387_constant_p): Ditto.
9221
9222 2007-03-02  Ian Lance Taylor  <iant@google.com>
9223
9224         Used signed infinities in VRP.
9225         * tree-vrp.c (uses_overflow_infinity): New static function.
9226         (supports_overflow_infinity): New static function.
9227         (make_overflow_infinity): New static function.
9228         (negative_overflow_infinity): New static function.
9229         (positive_overflow_infinity): New static function.
9230         (is_negative_overflow_infinity): New static function.
9231         (is_positive_overflow_infinity): New static function.
9232         (is_overflow_infinity): New static function.
9233         (overflow_infinity_range_p): New static function.
9234         (compare_values_warnv): New function split out of compare_values.
9235         (compare_value): Call it.
9236         (set_value_range_to_nonnegative): Add overflow_infinity
9237         parameter.  Change caller.
9238         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
9239         Change callers.
9240         (vrp_expr_computes_nonzero): Likewise.
9241         (compare_ranges, compare_range_with_value): Likewise.
9242         (compare_name_with_value, compare_names): Likewise.
9243         (vrp_evaluate_conditional): Likewise.
9244         (set_value_range): Handle infinity
9245         (vrp_operand_equal_p, operand_less_p): Likewise.
9246         (extract_range_from_assert): Likewise.
9247         (vrp_int_const_binop): Likewise.
9248         (extract_range_from_binary_expr): Likewise.
9249         (extract_range_from_unary_expr): Likewise.
9250         (extract_range_from_comparison): Likewise.
9251         (extract_range_from_expr): Likewise.
9252         (dump_value_range): Likewise.
9253         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
9254         (test_for_singularity): Likewise.
9255         (vrp_int_const_binop): Remove inline qualifier.
9256         (adjust_range_with_scev): Add comment.
9257         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
9258
9259 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
9260
9261         * tree-ssa-structalias.c (could_have_pointers): Tidy.
9262         (get_constraint_for): Likewise.
9263         (do_structure_copy): Likewise.
9264         (find_func_aliases): Fix references to MODIFY_EXPR.
9265         (intra_create_variable_infos): Tidy.
9266         * tree-ssa-operands.c (add_virtual_operand): Add argument
9267         IS_CALL_SITE.
9268         When adding members of alias sets, if IS_CALL_SITE is true and
9269         the symbol is not call-clobbered, skip it.
9270         Adjust all callers.
9271
9272 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
9273
9274         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
9275         entry by means of emit_insn_at_entry.
9276
9277 2007-03-02  Richard Henderson  <rth@redhat.com>
9278
9279         * expr.h (promoted_input_arg): Remove decl.
9280         * function.c (promoted_input_arg): Merge into ...
9281         * combine.c (setup_incoming_promotions): ... only caller.
9282         Rearrange to avoid double loop.
9283
9284 2007-03-02  Ben Elliston  <bje@au.ibm.com>
9285             Peter Bergner  <bergner@vnet.ibm.com>
9286             Janis Johnson  <janis187@us.ibm.com>
9287
9288         * config/rs6000/dfp.md: New file.
9289         * config/rs6000/rs6000.md: Include dfp.md.
9290         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
9291         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
9292         and TDmode decimal float modes in FP registers.
9293         (num_insns_constant): Likewise.
9294         (rs6000_legitimate_offset_address_p): Likewise.
9295         (rs6000_legitimize_address): Likewise.
9296         (rs6000_legitimize_reload_address): Likewise.
9297         (rs6000_legitimate_address): Likewise.
9298         (rs6000_emit_move): Likewise.
9299         (function_arg_boundary): Likewise.
9300         (function_arg_advance): Likewise.
9301         (rs6000_darwin64_record_arg_recurse): Likewise.
9302         (function_arg): Likewise.
9303         (rs6000_gimplify_va_arg): Likewise.
9304         (rs6000_split_multireg_move): Likewise.
9305         (rs6000_output_function_epilogue): Likewise.
9306         (rs6000_output_function_epilogue): Likewise.
9307         (rs6000_register_move_cost): Likewise.
9308         (rs6000_function_value): Likewise.
9309         (rs6000_libcall_value): Likewise.
9310
9311 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
9312
9313         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
9314
9315 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
9316
9317         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
9318         Use $MULTIDIR to choose between the kernel and RTP headers,
9319         and use $WIND_BASE and $WIND_USR to locate them.
9320
9321 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
9322
9323         * config/i386/i386.c (override_options): Put initialization of
9324         ix86_tune_mask and ix86_arch_mask to the correct place.
9325
9326 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
9327             Michael Meissner  <michael.meissner@amd.com>
9328
9329         PR target/31019
9330         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
9331         (ARCHMASK): Define.
9332         (TARGET_CMOVE): Use ARCHMASK.
9333         (TARGET_CMPXCHG): Ditto.
9334         (TARGET_CMPXCHG8B): Ditto.
9335         (TARGET_XADD): Ditto.
9336         (TARGET_BSWAP): Ditto.
9337         * config/i386/i386.c (ix86_tune_mask): New global variable.
9338         (ix86_arch_mask): Ditto.
9339         (override_options): Initialize ix86_tune_mask and
9340         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
9341         target_flags.
9342
9343 2007-03-02  Ben Elliston  <bje@au.ibm.com>
9344
9345         PR 30992
9346         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
9347
9348 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
9349
9350         * target.h (init_dwarf_reg_sizes_extra): New target hook.
9351         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
9352         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
9353         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
9354         hook.
9355         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
9356         rs6000_init_dwarf_reg_sizes_extra): New.
9357         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
9358         SPE register high parts.
9359
9360 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
9361
9362         * Makefile.in: Add install-pdf target as
9363         copied from automake v1.10 rules.
9364         * configure.ac: Add install-pdf to target list.
9365         * configure: Regenerate.
9366
9367 2007-03-01  Paul Brook  <paul@codesourcery.com>
9368
9369         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
9370         modes to LDRD for DImode.
9371         (output_move_double): Fixup out of range ldrd/strd.
9372         (vfp_secondary_reload_class): Rename...
9373         (coproc_secondary_reload_class): ... to this.  Add wb argument.
9374         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
9375         coproc_secondary_reload_class for CLASS_IWMMXT.
9376         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
9377         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
9378
9379 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
9380
9381         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
9382         factor by the estimated number of iterations.
9383         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
9384         prefetch latency.
9385
9386         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
9387         decode_caches_intel, detect_caches_intel): New functions.
9388         (host_detect_local_cpu): Use detect_caches_amd and
9389         detect_caches_intel.
9390
9391 2007-03-01  Richard Henderson  <rth@redhat.com>
9392
9393         * expr.c (emit_move_complex_push): Export.
9394         (emit_move_complex_parts): Split out from ...
9395         (emit_move_complex): ... here.
9396         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
9397         * config/i386/i386.md (movcdi): New.
9398
9399 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
9400
9401         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
9402         size of mode1 to check for tieable modes in MMX case.
9403
9404 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
9405
9406         * Makefile.in (rtlanal.o): Depend on tree.h.
9407         * rtl.h (offset_within_section_p, split_const): Declare.
9408         * rtlanal.c: Include tree.h.
9409         (offset_within_block_p): New function, taken from
9410         mips_offset_within_object_p.
9411         (split_const): New function, taken from mips_split_const.
9412         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
9413         Declare.
9414         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
9415         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
9416         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
9417         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9418         (m68k_illegitimate_symbolic_constant_p): New function.
9419         * config/m68k/m68k.md (movsi): Remove misleading predicates.
9420         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
9421         symbolic constant that might be outside the symbol's section,
9422         move the symbol first and then add the offset.
9423         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
9424         Override.
9425         * config/mips/mips.c (mips_split_const): Delete.
9426         (mips_offset_within_object_p): Delete.
9427         (mips_symbolic_constant_p): Use offset_within_section_p and
9428         split_const instead of mips_offset_within_object_p and
9429         mips_split_const.
9430         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
9431         (mips_legitimize_const_move, print_operand_reloc)
9432         (mips_dangerous_for_la25_p): Use split_const instead of
9433         mips_split_const.
9434
9435 2007-02-28  Eric Christopher  <echristo@apple.com>
9436
9437         * Makefile.in (install-include-dir): Don't rm -rf include.
9438
9439 2007-02-28  Richard Guenther  <rguenther@suse.de>
9440
9441         PR middle-end/30364
9442         * fold-const.c (fold_binary): Do not associate expressions
9443         with more than one variable for integer types that do not wrap.
9444
9445 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
9446
9447         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
9448         Delete, and replace with...
9449         (fold_builtin_call_array): This.  Update callers to use it.
9450         * fold-const.c (fold_build_call_list): Delete, and replace with...
9451         (fold_build_call_array): This.
9452         (fold_build_call_list_initializer): Delete, and replace with...
9453         (fold_build_call_array_initializer): This.
9454         * tree.h: Update declarations to reflect above changes.
9455
9456         * c-typeck.c (build_function_call): Store converted arguments
9457         in a stack-allocated array instead of building a list.
9458         (convert_arguments): Store arguments in the array passed in as an
9459         argument, and return the actual number of arguments.
9460         * c-format.c: (check_function_format): Pass arguments in an
9461         array instead of a list.
9462         * c-common.c (check_function_nonnull): Likewise.
9463         (check_function_sentinel): Likewise.
9464         (check_function_arguments): Likewise.
9465         * c-common.h: Update declarations to reflect above changes.
9466
9467 2007-02-28  Jan Hubicka  <jh@suse.cz>
9468
9469         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
9470         PRED_NEGATIVE_RETURN): Update outcomes.
9471
9472 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
9473
9474         * calls.c (emit_library_call_value_1): Handle partial registers
9475         correctly when building up CALL_INSN_FUNCTION_USAGE.
9476
9477 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9478
9479         * pa/predicates.md (move_src_operand): Allow zero for mode.
9480         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
9481         move pattern.
9482
9483 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
9484
9485         PR target/30970
9486         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
9487         *movv2df_internal): Enable pattern only for valid operand
9488         combinations.
9489         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
9490         tie only 128bit modes. For MMX registers, tie only 64bit modes.
9491
9492 2007-02-27  Mike Stump  <mrs@apple.com>
9493
9494         * config/darwin-crt3.c: Avoid compilation when compiling for a
9495         kext multilib.
9496
9497 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
9498
9499         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
9500         FIXED_INCLUDE_DIR.
9501         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
9502         for fixed headers and limits.h.
9503         (install-include-dir, install-headers-tar, install-headers-cpio,
9504         install-headers-cp, real-install-headers-tar,
9505         real-install-headers-cpio, real-install-headers-cp): Handle
9506         include-fixed as well as include.
9507         (install-mkheaders): Don't install files that go only in include
9508         not include-fixed.
9509         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
9510         from GCC_INCLUDE_DIR.
9511         * gcc.c (process_command): Remove special -BstageN/ handling.
9512         (do_spec_1): Add include-fixed directories.
9513
9514 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
9515
9516         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
9517         _smulsi3_highpart.
9518         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
9519         New functions.
9520         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
9521         patterns.
9522
9523 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
9524
9525         * c-common.c (get_priority): Add check for
9526         SUPPORTS_INIT_PRIORITY.
9527
9528 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
9529
9530         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
9531
9532         * config/bfin/bfin.c: Include "cfglayout.h".
9533         (MAX_LSETUP_DISTANCE): New macro.
9534         (struct loop_info): New members incoming, incoming_src and
9535         incoming_dest.  Delete member predecessor.
9536         (length_for_loop): New function.
9537         (bfin_optimize_loop): Handle more different loop structures.
9538         (bfin_discover_loop): Rework detection of predecessor blocks by
9539         examining incoming edges.
9540         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
9541         bfin_reorg_loops.
9542         (bfin_reorder_loops): New function.
9543         (bfin_reorg_loops): Use these three new functions.
9544
9545         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
9546         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
9547         (CONSTRAINT_LEN): Add entry for 'q'.
9548         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
9549         Add 'q' constraints.
9550         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
9551         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
9552
9553         * config/bfin/bfin.md (add_with_carry): New pattern.
9554         (s_or_u, su_optab, su_modifier): New code macros/attrs.
9555         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
9556         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
9557         support unsigned multiplies too.  Removed incorrect commutativity from
9558         operand 1 constraint where appropriate.
9559         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
9560         patterns.
9561         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
9562         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
9563         New patterns.
9564         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
9565         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
9566         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
9567         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
9568         usmulhisi_hh_huh): New patterns.
9569
9570         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
9571         lshifthi3): Fix output template to use half reg for operand 2.
9572
9573         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
9574         instead of R2.
9575
9576         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
9577
9578 2007-02-27  Andreas Schwab  <schwab@suse.de>
9579
9580         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
9581
9582 2007-02-27  Jan Hubicka  <jh@suse.cz>
9583
9584         * predict.c (last_basic_block_p): Remove.
9585         (tree_estimate_probability): Update return heuristic for commonized
9586         return blocks.
9587
9588 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
9589
9590         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
9591
9592 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
9593
9594         * doc/include/gcc-common.texi (versionsubtitle): New macro.
9595         * doc/cpp.texi: Standardize title page.
9596         * doc/cppinternals.texi: Likewise.
9597         * doc/gcc.texi: Standardize title page, remove version number
9598         from copyright page.
9599         * doc/gccint.texi: Likewise.
9600         * doc/install.texi: Standardize title page, add table of
9601         contents.
9602
9603 2007-02-26  Jan Hubicka  <jh@suse.cz>
9604
9605         * predict.def: Set outcomes according to more recent results.
9606         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
9607         Remove dead predictors.
9608         * predict.c (return_prediction): Fix pasto.
9609
9610 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
9611
9612         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
9613         change; avoid a memory leak when returning early.
9614
9615 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
9616
9617         * c-decl.c (static_ctors): Move to c-common.c.
9618         (static_dtors): Likewise.
9619         (finish_function): Use c_record_cdtor_fn.
9620         (build_cdtor): Move to c-common.c.
9621         (c_write_global_declarations): Use c_build_cdtor_fns.
9622         * c-common.h (static_ctors): Declare.
9623         (static_dtors): Likewise.
9624         (c_record_cdtor_fn): Likewise.
9625         (c_build_cdtor_fns): Likewise.
9626         * c-common.c (static_ctors): New variable.
9627         (static_dtors): Likewise.
9628         (c_record_cdtor_fn): New function.
9629         (build_cdtor): Move from c-decl.c
9630         (c_build_cdtor_fns): New function.
9631
9632         * output.h (assemble_addr_to_section): Declare.
9633         (get_cdtor_priority_section): Likewise.
9634         * varasm.c (assemble_addr_to_section): New function.
9635         (get_cdtor_priority_section): Likewise.
9636         (default_named_section_asm_out_destructor): Use them.
9637         (destor_dtor_section_asm_out_destructor): Likewise.
9638         (default_named_section_asm_out_constructor): Likewise.
9639         (default_ctor_section_asm_out_constructor): Likewise.
9640         * config.gcc (*-*-vxworks*): Include vxworks.o.
9641         * config/t-vxworks (vxworks.o): New target.
9642         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
9643         (TARGET_ASM_CONSTRUCTOR): Define.
9644         (TARGET_ASM_DESTRUCTOR): Likewise.
9645         (vxworks_asm_out_constructor): Declare.
9646         (vxworks_asm_out_destructor): Likewise.
9647
9648         * c-common.c (get_priority): Check that we have not just an
9649         INTEGER_CST, but an integer constant with integeral type.
9650
9651 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
9652
9653         PR tree-optimization/30938
9654         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
9655         use &dt[nargs-1] instead of &dt[nargs] in the call to
9656         vect_is_simple_use().
9657
9658 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
9659
9660         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
9661         from register elimination as PRE_MODIFY / POST_MODIFY increments.
9662         Do not attempt to handle MEM inside auto-inc expressions.
9663         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
9664         of a register modified by an auto-inc expression.  However, do handle
9665         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
9666         (elimination_effects): Prohibit elimination of a register modified
9667         by an auto-inc expression.  Disable register elimination rules whose
9668         target register is modified by an auto-inc expression with variable
9669         increment.
9670
9671 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
9672
9673         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
9674         off-by-one error.
9675         (array_at_struct_end_p): New function.
9676         (idx_infer_loop_bounds): Use it.
9677         (estimate_numbers_of_iterations_loop): Export.
9678         * predict.c (predict_loops): Use estimated_loop_iterations_int.
9679         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
9680         (tree_estimate_probability): Call record_loop_exits.
9681         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
9682         (estimated_loop_iterations, estimated_loop_iterations_int,
9683         estimated_loop_iterations_tree): New functions.
9684         (analyze_siv_subscript_cst_affine,
9685         compute_overlap_steps_for_affine_1_2,
9686         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
9687         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
9688         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
9689         (PRED_LOOP_ITERATIONS_GUESSED): New.
9690         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
9691         * cfgloop.h (estimate_numbers_of_iterations_loop,
9692         estimated_loop_iterations_int): Declare.
9693
9694 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
9695
9696         * doc/extend.texi: Document optional priority argument to
9697         constructors and destructors.
9698         * tree.c (init_priority_for_decl): Adjust GTY markers.
9699         (init_ttree): Use priority-info hash functions for
9700         init_priority_for_decl.
9701         (tree_map_eq): Rename to ...
9702         (tree_map_base_eq): ... this.
9703         (tree_map_marked_p): Rename to ...
9704         (tree_map_base_marked_p): ... this.
9705         (tree_map_base_hash): New function.
9706         (decl_init_priority_lookup): Rework.
9707         (decl_fini_priority_lookup): New function.
9708         (decl_priority_info): New function.
9709         (decl_init_priority_insert): Use it.
9710         (decl_fini_priority_insert): Likewise.
9711         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
9712         hierarchy.
9713         (decl_restrict_base_insert): Likewise.
9714         (decl_debug_expr_insert): Likewise.
9715         (decl_value_expr_lookup): Likewise.
9716         (decl_value_expr_insert): Likewise.
9717         * tree.h (priority_type): New type.
9718         (decl_init_priority_lookup): Use priority_type.
9719         (decl_fini_priority_lookup): New function.
9720         (decl_init_priority_insert): Use priority_type.
9721         (decl_fini_priority_insert): New function.
9722         (DECL_HAS_INIT_PRIORITY): Tweak comments.
9723         (DECL_INIT_PRIORITY): Likewise.
9724         (SET_DECL_INIT_PRIORITY): Add comment.
9725         (DECL_FINI_PRIORITY): New macro.
9726         (SET_DECL_FINI_PRIORITY): Likewise.
9727         (DEFAULT_INIT_PRIORITY): Document.
9728         (MAX_INIT_PRIORITY): Likewise.
9729         (MAX_RESERVED_INIT_PRIORITY): Likewise.
9730         (tree_map_base): New type.
9731         (tree_map_base_eq): New function.
9732         (tree_map_base_hash): Likewise.
9733         (tree_map_base_marked_p): Likewise.
9734         (tree_map): Inherit from tree_map_base.
9735         (tree_map_eq): Make it a macro.
9736         (tree_map_marked_p): Likewise.
9737         (tree_int_map): Inherit from tree_map_base.
9738         (tree_int_map_eq): Make it a macro.
9739         (tree_int_map_hash): Likewise.
9740         (tree_int_map_marked_p): Likewise.
9741         (tree_priority_map): New type.
9742         (tree_priority_map_eq): New macro.
9743         (tree_priority_map_hash): Likewise.
9744         (tree_priority_map_marked_p): Likewise.
9745         * varasm.c (emults_decl): Adjust for refactoring of tree_map
9746         hierarchy.
9747         (emutls_common_1): Likewise.
9748         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
9749         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
9750         of tree_map hierarchy.
9751         * tree-cfg.c (move_stmt_r): Likewise.
9752         (new_label_mapper): Likewise.
9753         * c-tree.h (c_expand_body): Move to ...
9754         * c-common.h (c_expand_body): ... here.
9755         * c-decl.c (c_expand_body): Move to ...
9756         * c-common.c (c_expand_body): ... here.
9757         (c_common_attribute_table): Allow 1 argument for the constructor
9758         and destructor attributes.
9759         (get_priority): New function.
9760         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
9761         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
9762
9763 2007-02-24  Jan Hubicka  <jh@suse.cz>
9764
9765         PR middle-end/30509
9766         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
9767
9768 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
9769             Jan Hubicka  <jh@suse.cz>
9770
9771         PR target/30778
9772         * i386.c (counter_mode): New function.
9773         (expand_set_or_movmem_via_loop): Use it.
9774         (expand_movmem_epilogue): Likewise; fix pasto.
9775         (ix86_expand_movmem): Do emit guard even for constant counts.
9776         (ix86_expand_setmem): Likewise.
9777
9778 2007-02-25  Nick Clifton  <nickc@redhat.com>
9779
9780         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
9781         (JUMP_TABLES_IN_TEXT_SECTION): Define.
9782
9783 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
9784
9785         PR target/30770
9786         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
9787         count argument with 0x10, not with 0x16.
9788         (expand_setmem_epilogue): Ditto.
9789
9790 2007-02-24  Mike Stump  <mrs@apple.com>
9791
9792         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
9793         symbols.
9794
9795 2007-02-24  Richard Guenther  <rguenther@suse.de>
9796
9797         PR middle-end/30951
9798         * fold-const.c (fold_binary): Fold x +- CST op x for
9799         EQ_EXPR and NE_EXPR.
9800
9801 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9802
9803         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
9804
9805 2007-02-24  Jan Hubicka  <jh@suse.cz>
9806
9807         * cgraphunit.c (decide_is_function_needed): Honor
9808         -fkeep-inline-functions.
9809
9810 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9811
9812         * builtins.c (fold_builtin_modf): New.
9813         (fold_builtin_2): Use it.
9814
9815 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
9816
9817         * loop-iv.c (implies_p): Detect additional cases where A implies B.
9818         (determine_max_iter): Take additional LOOP arg; all callers changed.
9819         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
9820         one using simplifications.
9821         (simplify_using_initial_values): Return if the expression becomes
9822         invalid due to altered regs.
9823
9824 2007-02-23  DJ Delorie  <dj@redhat.com>
9825
9826         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
9827
9828 2007-02-23  Mike Stump  <mrs@apple.com>
9829
9830         * tlink.c (scan_linker_output): Parse linker messages from
9831         darwin9's linker better.
9832
9833 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
9834
9835         PR debug/29614
9836         * varpool.c (varpool_assemble_pending_decls):  Set
9837         varpool_last_needed_node to null.
9838
9839 2007-02-23  DJ Delorie  <dj@redhat.com>
9840
9841         * config/i386/i386.c (ix86_data_alignment): Don't specify an
9842         alignment bigger than the object file can handle.
9843
9844 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
9845
9846         PR target/30825
9847         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
9848         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
9849         (*movsf_1): Penalize MMX moves.
9850
9851 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
9852
9853         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
9854         2^32-1 or more times unless flag_unsafe_loop_optimizations.
9855
9856         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
9857
9858 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9859
9860         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
9861         (fold_builtin_1): Use them.
9862         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
9863         BUILT_IN_SIGNIFICAND.
9864
9865 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
9866
9867         * config/i386/i386.c (bdesc_1arg): Initialize
9868         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
9869         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
9870         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
9871         and IX86_BUILTIN_MOVSLDUP.
9872
9873 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
9874
9875         PR rtl-optimization/30841
9876         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
9877
9878 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9879
9880         * builtins.c (fold_builtin_frexp): New.
9881         (fold_builtin_2): Use it.
9882
9883 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
9884
9885         * doc/invoke.texi (Spec Files): Document getenv spec function.
9886
9887         * gcc.c (getenv_spec_function): New function.
9888         (static_spec_functions): Add it.
9889         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
9890         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
9891         header files.
9892
9893 2007-02-22  Michael Matz  <matz@suse.de
9894
9895         PR c++/29433
9896         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
9897         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
9898
9899 2007-02-22  Ian Lance Taylor  <iant@google.com>
9900
9901         PR debug/30898
9902         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
9903         (mem_loc_descriptor): Call it.
9904
9905 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
9906             Ira Rosen  <irar@il.ibm.com>
9907
9908         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
9909
9910 2007-02-22  Ira Rosen  <irar@il.ibm.com>
9911
9912         PR tree-optimization/30843
9913         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
9914         stores only after all the group is vectorized.
9915
9916 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
9917
9918         PR tree-optimization/30858
9919         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
9920         in the reduction cycle have a single use in the loop.
9921         * tree-vectorizer.h (relevant): Add documentation.
9922
9923 2007-02-20  Mike Stump  <mrs@apple.com>
9924
9925         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
9926         * configure: Regenerate.
9927
9928 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
9929
9930         Change the defaults of some parameters and options.
9931         * config/spu/spu-protos.h (spu_optimization_options): Declare.
9932         * config/spu/spu.c (spu_optimization_options): Add.
9933         (spu_override_options): Change params in spu_optimization_options.
9934         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
9935
9936         Register 127 is only 16 byte aligned when used as a frame pointer.
9937         * config/spu/spu-protos.h (spu_init_expanders): Declare.
9938         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
9939         HARD_FRAME_POINTER_REGNUM.
9940         (spu_legitimate_address):  Use regno_aligned_for_reload.
9941         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
9942         aligned when frame_pointer_needed is true.
9943         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
9944         to 8 bits.
9945         * config/spu/spu.h (INIT_EXPANDERS): Define.
9946
9947         Make sure shift and rotate instructions have valid immediate operands.
9948         * config/spu/predicates.md (spu_shift_operand): Remove.
9949         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
9950         * config/spu/constraints.md (W, O): Extend range.
9951         * config/spu/spu.md (umask, nmask): Define.
9952         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
9953         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
9954         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
9955         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
9956         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
9957         (lshr<mode>3_reg):  Fix rtl description.
9958
9959         Make sure mulhisi immediate operands are valid.
9960         * config/spu/predicates.md (imm_K_operand): Add.
9961         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
9962
9963         Generate constants using fsmbi and andi.
9964         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
9965         (print_operand, spu_split_immediate, classify_immediate,
9966         fsmbi_const_p): Handle IC_FSMBI2.
9967
9968         Correctly handle a CONST_VECTOR containing symbols.
9969         * config/spu/spu.c (print_operand): Handle HIGH correctly.
9970         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
9971         (immediate_load_p): Allow symbols that use 2 instructions to create.
9972         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
9973         with symbols when flag_pic is set.
9974         (const_vector_immediate_p): New.
9975         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
9976         accept a CONST_VECTOR with symbols.
9977         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
9978         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
9979         correctly.
9980         * config/spu/spu.md (high, low): Delete.
9981         (low_<mode>): Define.
9982
9983         Remove INTRmode and INTR_REGNUM, which didn't work.
9984         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
9985         of INTR_REGNUM.
9986         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
9987         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
9988         peephole2 pattern): Don't use INTR or 131.
9989         (movintrcc): Delete.
9990         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
9991         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
9992         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
9993         (UNSPEC_SET_INTR): Add.
9994         * config/spu/spu-modes.def (INTR): Remove.
9995
9996         More accurate warnings about run-time relocations.
9997         * config/spu/spu.c (reloc_diagnostic): Test in_section.
9998
9999         Correctly warn about immediate arguments to specific intrinsics.
10000         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
10001         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
10002         the instruction predicate.
10003
10004         Fix tree check errors with latest update.
10005         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
10006         CALL_EXPR_ARG.
10007         (spu_expand_builtin): Use CALL_EXPR_FN.
10008
10009         Add missing specific intrinsics.
10010         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
10011         si_bislede.
10012         * config/spu/spu_internals.h: Ditto.
10013
10014         Fix incorrect operand modifiers.
10015         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
10016         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
10017
10018         Optimize one case of zero_extend of a vec_select.
10019         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
10020
10021         Accept any immediate for hbr.
10022         * config/spu/spu.md (hbr):  Change s constraints to i.
10023
10024 2007-02-21  Paul Brook  <paul@codesourcery.com>
10025
10026         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
10027         condexec_count when skipping USE and CLOBBER.
10028
10029 2007-02-21  Nick Clifton  <nickc@redhat.com>
10030
10031         * common.opt (Warray-bounds): Add Warning attribute.
10032         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
10033         Likewise.
10034         (fsized-zeroes): Add Optimization attribute.
10035         (fsplit-wide-types, ftree-scev-cprop): Likewise.
10036         * c.opt (Wc++0x-compat): Add Warning attribute.
10037
10038 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10039
10040         PR middle-end/30761
10041         * reload1.c (eliminate_regs_in_insn): In the single_set special
10042         case, attempt to re-recognize the insn before falling back to
10043         having reload fix it up.
10044
10045 2007-02-20  Eric Christopher  <echristo@gmail.com>
10046
10047         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
10048         Rewrite accordingly.
10049         (frv_read_iacc_argument): Ditto.
10050         (frv_expand_set_builtin): Take a call instead of arglist, update for
10051         above changes.
10052         (frv_expand_unop_builtin): Ditto.
10053         (frv_expand_binop_builtin): Ditto.
10054         (frv_expand_cut_builtin): Ditto.
10055         (frv_expand_binopimm_builtin): Ditto.
10056         (frv_expand_voidbinop_builtin): Ditto.
10057         (frv_expand_int_void2arg): Ditto.
10058         (frv_expand_prefetches): Ditto.
10059         (frv_expand_voidtriop_builtin): Ditto.
10060         (frv_expand_voidaccop_builtin): Ditto.
10061         (frv_expand_load_builtin): Ditto.
10062         (frv_expand_store_builtin): Ditto.
10063         (frv_expand_mdpackh_builtin): Ditto.
10064         (frv_expand_mclracc_builtin): Ditto.
10065         (frv_expand_mrdacc_builtin): Ditto.
10066         (frv_expand_mwtacc_builtin): Ditto.
10067         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
10068         calls for above.
10069
10070 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
10071
10072         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
10073         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
10074         cmpb instruction.
10075         (HAVE_GAS_DFP): Check for assembler support of decimal floating
10076         point instructions.
10077         * configure: Regenerate.
10078         * config.in: Regenerate.
10079         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
10080         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
10081         masks to power6 and power6x and to POWERPC_MASKS.
10082         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10083         _ARCH_PWR6.
10084         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
10085         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
10086         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10087         Access PROTOTYPE as variable, not mask.
10088
10089 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
10090
10091         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
10092         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
10093         * combine.c (adjust_for_new_dest): Use it.
10094         * postreload.c (reload_combine): Likewise.
10095
10096 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
10097
10098         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
10099         notes on an insn with multiple sets, even if single_set returns
10100         non-NULL for that insn.
10101
10102 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10103
10104         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
10105         scalbn and scalbln.
10106
10107 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
10108
10109         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
10110         if user didn't pass it.
10111         * config/i386/darwin.h (CC1_SPEC): Likewise.
10112         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
10113         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
10114         -mmacosx-version-min.
10115
10116 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10117             Uros Bizjak  <ubizjak@gmail.com>
10118
10119         * optabs.h (enum optab_index): Add new OTI_scalb.
10120         (scalb_optab): Define corresponding macro.
10121         * optabs.c (init_optabs): Initialize scalb_optab.
10122         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
10123         patterns.
10124         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
10125         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
10126         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
10127         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
10128         flag_unsafe_math_optimizations is set.
10129
10130         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
10131         to implement scalbf, scalb and scalbl built-ins as inline x87
10132         intrinsics.
10133
10134 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10135             DJ Delorie <dj@redhat.com>
10136
10137         PR other/30824
10138         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
10139         (diagnostic_report_diagnostic): ... here, and turn them into real
10140         errors. If warnings are inhibited, no need to do anything.
10141
10142 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
10143
10144         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
10145         better code generation.
10146
10147 2007-02-20  Ben Elliston  <bje@au.ibm.com>
10148
10149         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
10150
10151 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
10152
10153         * config/alpha/alpha.c, config/alpha/alpha.md,
10154         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
10155         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
10156         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
10157         config/arm/lib1funcs.asm: Follow spelling conventions.
10158
10159         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
10160         config/fr30/fr30.md, config/i386/i386.h,
10161         config/iq2000/iq2000.h, config/iq2000/predicates.md,
10162         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
10163         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
10164         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
10165         config/rs6000/altivec.md, config/rs6000/rs6000.c,
10166         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
10167         config/sparc/sparc.c, config/sparc/sparc.h,
10168         config/sparc/sparc.md, config/spu/constraints.md,
10169         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
10170         conventions.
10171
10172 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
10173
10174         PR target/29943
10175         * varasm.c (use_blocks_for_decl_p): Return false for decls with
10176         alias attribute.
10177
10178 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
10179
10180         * doc/invoke.texi (-ftree-lrs): Remove.
10181
10182 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
10183
10184         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
10185         NULL.
10186
10187 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
10188
10189         * config/ia64/ia64.c (ia64_expand_builtin): Use the
10190         new CALL_EXPR_FN macro for retrieving the function
10191         declaration of the input expression.
10192
10193 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10194
10195         * c.opt (Waddress): New.
10196         * common.opt (Walways-true): Delete.
10197         (Wstring-literal-comparison): Delete.
10198         * doc/invoke.texi (Warning Options): Delete -Walways-true and
10199         -Wstring-literal-comparison. Add -Waddress.
10200         (Waddress): New.
10201         (Walways-true): Delete.
10202         (Wstring-literal-comparison): Delete.
10203         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
10204         consistently instead of -Walways-true in example.
10205         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
10206         * c-typeck.c (parser_build_binary_op): Replace
10207         -Wstring-literal-comparison and -Walways-true with -Waddress.
10208         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
10209         with -Waddress.
10210
10211 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
10212
10213         * tree-cfg.c (dump_function_to_file): Be prepared for functions
10214         without DECL_STRUCT_FUNCTION initialized.
10215
10216 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
10217
10218         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
10219         due to calls to functions taking pointers as parameters.
10220
10221 2007-02-19  Richard Henderson  <rth@redhat.com>
10222
10223         PR debug/29558
10224         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
10225         in memory.
10226
10227 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
10228
10229         * config/s390/s390.c (s390_call_saved_register_used,
10230         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
10231         accessed to the new scheme.
10232
10233 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10234
10235         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
10236         (cris_print_index, cris_print_operand, cris_print_operand_address)
10237         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
10238         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
10239         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
10240         GET_CODE () == xxx.
10241         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
10242         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
10243         GO_IF_LEGITIMATE_ADDRESS): Ditto.
10244         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
10245         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
10246         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
10247         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
10248         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
10249         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
10250         (uminsi3, call, call_value): Ditto.
10251         (define_split: indir_to_reg_split, unnamed): Ditto.
10252
10253 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
10254
10255         PR tree-optimization/30975
10256         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
10257         wrong assert.
10258
10259 2007-02-18  Eric Christopher  <echristo@gmail.com>
10260
10261         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
10262         Remove use of arglist.
10263         (mips_expand_builtin): Remove use of arglist, pass in expr.
10264         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
10265         (mips_expand_builtin_movtf): Ditto.
10266         (mips_expand_builtin_compare): Ditto.
10267
10268 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
10269
10270         * tree-sra.c (sra_build_assignment): Replace assertion
10271         checking with a comment explaining why it can't be done.
10272
10273 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
10274
10275         PR middle-end/30833
10276         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
10277         during CALL_EXPR representation conversion.
10278         * tree-ssa-propagate.c (set_rhs): Likewise.
10279
10280 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
10281
10282         * tree-sra.c (sra_build_assignment): Disable assertion checking
10283         for now.
10284
10285 2007-02-18  Roger Sayle  <roger@eyesopen.com>
10286
10287         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
10288         instead of calling build2 with a GIMPLE_MODIFY_STMT.
10289         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
10290         Likewise.
10291         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
10292         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
10293         gimplify_init_ctor_eval_range, gimple_push_cleanup,
10294         gimplify_omp_for, gimplify_omp_atomic_pipeline,
10295         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
10296         force_gimple_operand): Likewise.
10297         * ipa-cp.c (constant_val_insert): Likewise.
10298         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
10299         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
10300         perfect_nestify): Likewise.
10301         * langhooks.c (lhd_omp_assignment): Likewise.
10302         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
10303         lower_copyprivate_clauses, lower_send_clauses,
10304         lower_send_shared_vars, expand_parallel_call,
10305         expand_omp_for_generic, expand_omp_for_static_nochunk,
10306         expand_omp_for_static_chunk, expand_omp_sections,
10307         lower_omp_single_copy, lower_omp_for_lastprivate,
10308         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
10309         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
10310         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
10311         Likewise.
10312
10313 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
10314
10315         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
10316         config/sh/sh.md: Follow spelling conventions.
10317
10318         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
10319         config/frv/predicates.md: Follow spelling conventions.
10320
10321         * config/m68k/linux-unwind.h: Fix a comment typo.
10322         * target.h: Follow spelling conventions.
10323
10324 2007-02-18  Roger Sayle  <roger@eyesopen.com>
10325
10326         PR rtl-optimization/28173
10327         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
10328         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
10329         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
10330         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
10331         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
10332
10333 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10334
10335         * builtins.c (fold_builtin_load_exponent): New.
10336         (fold_builtin_2): Use it.
10337
10338 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
10339
10340         PR rtl-optimization/30773
10341         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
10342         if we fail to attach a REG_EQUIV note.
10343
10344 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
10345             Roger Sayle  <roger@eyesopen.com>
10346
10347         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
10348
10349 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
10350
10351         * calls.c (initialize_argument_information): Pass original EXP
10352         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
10353         code to split complex arguments here, as part of initializing the
10354         ARGS array.
10355         (expand_call): Remove code that builds a list of arguments and
10356         inserts implicit arguments into it.  Instead, just count how many
10357         implicit arguments there will be so we can determine the size of
10358         the ARGS array, and let initialize_argument_information do the work.
10359         (split_complex_values): Delete unused function.
10360
10361 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
10362
10363         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
10364
10365 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
10366
10367         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
10368         for arg pointer based indexed addressing.
10369
10370 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
10371
10372         * config/ia64/ia64.h, config/ia64/ia64.md,
10373         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
10374         spelling conventions.
10375
10376 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
10377
10378         * config/m68k/m68k.c (split_di): New.
10379         * config/m68k/m68k-protos.h: Declare split_di.
10380         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
10381           Improve predicate handling and split constant shifts.
10382
10383 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
10384
10385         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
10386         parameter for register bitfield operations, general predicates
10387         cleanup
10388
10389 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
10390
10391         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
10392         * config/m68k/linux-unwind.h: New file.
10393
10394 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
10395
10396         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
10397         config/i386/athlon.md, config/ia64/ia64.md,
10398         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
10399         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
10400         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
10401         tree-ssa-loop-niter.c, tree-vect-analyze.c,
10402         tree-vect-transform.c: Fix comment typos.
10403
10404 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
10405
10406         * sched-deps.c (find_insn_list): Remove.
10407         * sched-int.h: Remove the prototype for find_insn_list.
10408
10409 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
10410
10411         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
10412         to linker.
10413         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
10414         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
10415         darwin_rs6000_override_options.
10416         (C_COMMON_OVERRIDE_OPTIONS): Expect
10417         darwin_macosx_version_min to be non-NULL always.
10418         (TARGET_C99_FUNCTIONS): Likewise.
10419         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
10420         (DARWIN_MINVERSION_SPEC): New.
10421         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
10422         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
10423         to cc1*.
10424         (DARWIN_MINVERSION_SPEC): New.
10425         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
10426         value.
10427         * config/darwin-c.c (darwin_cpp_builtins): Expect
10428         darwin_macosx_version_min to be non-NULL always.
10429
10430         * config/rs6000/rs6000.c: Clean up trailing whitespace.
10431
10432 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
10433
10434         * config/i386/i386.h (x86_use_xchgb): New.
10435         (TARGET_USE_XCHGB): New macro.
10436         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
10437         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
10438         Split after reload into bswaphi for shifts of 8.
10439         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
10440         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
10441         or when optimizing for size.
10442
10443 2007-02-16  Richard Guenther  <rguenther@suse.de>
10444             Christian Bruel  <christian.bruel@st.com>
10445
10446         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
10447         DECLs but prefer SSA_NAMEs over DECLs.
10448
10449 2007-02-16  Richard Guenther  <rguenther@suse.de>
10450
10451         * tree-flow-inline.h (single_imm_use_p): Remove.
10452         (zero_imm_uses_p): Likewise.
10453         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
10454         instead of single_imm_use_p.
10455         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
10456         zero_imm_uses_p.
10457
10458 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10459
10460         PR other/27843
10461         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
10462         nested double- and backquotes.
10463
10464 2007-02-15  Roger Sayle  <roger@eyesopen.com>
10465
10466         PR middle-end/30391
10467         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
10468         should be unreachable.
10469         (build2_stat): Allow construction of MODIFY_EXPR at any time.
10470         For the time being redirect GIMPLE_MODIFY_STMT to the new
10471         (renamed) build_gimple_modify_stmt_stat.
10472         (build2_gimple_stat): Rename to...
10473         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
10474         Always build a GIMPLE_MODIFY_STMT node.
10475         * tree.h (build2_gimple, build2_gimple_stat): Delete.
10476         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
10477         declarations.
10478
10479         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
10480         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
10481         * tree-complex.c (set_component_ssa_name, expand_complex_move,
10482         expand_complex_div_wide): Likewise.
10483         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10484         * tree-ssa-loop-im.c (schedule_sm): Likewise.
10485         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
10486         * tree-ssa-loop-manip.c (create_iv): Likewise.
10487         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
10488         abs_replacement): Likewise.
10489         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
10490         realify_fake_stores): Likewise.
10491
10492         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
10493         node rather than a GIMPLE_MODIFY_STMT node.
10494         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
10495         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
10496         Likewise.
10497         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
10498         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
10499         GIMPLE_MODIFY_STMT.
10500
10501 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10502
10503         PR middle-end/30433
10504         * fold-const.c (fold_comparison): Add back the
10505         folding of constant complex comparisions.
10506
10507 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10508
10509         PR middle-end/30729
10510         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
10511         effects unknown to this function, return early.
10512
10513 2007-02-15  Ian Lance Taylor  <iant@google.com>
10514
10515         * lower-subreg.c (move_eh_region_note): New static function.
10516         (resolve_simple_move): Call it.
10517         (decompose_multiword_subregs): Track blocks for which we resolve a
10518         simple move which is also a control flow insn.  Pass them to
10519         find_many_sub_basic_blocks.
10520         (pass_lower_subreg): Add TODO_verify_flow.
10521         (pass_lower_subreg2): Likewise.
10522
10523 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
10524             Brooks Moses  <brooks.moses@codesourcery.com>
10525             Lee Millward  <lee.millward@codesourcery.com>
10526
10527         * tree.h (enum tree_code_class): Add tcc_vl_exp.
10528         (VL_EXP_CLASS_P): New.
10529         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
10530         TREE_CODE_LENGTH.
10531         (TREE_OPERAND_CHECK_CODE): Likewise.
10532         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
10533         (TREE_RTL_OPERAND_CHECK): Likewise.
10534         (tree_operand_check_failed): Make second parameter the whole tree
10535         instead of its code.  Fixed callers.
10536         (VL_EXP_CHECK): New.
10537         (TREE_OPERAND_LENGTH): New.
10538         (VL_EXP_OPERAND_LENGTH): New.
10539         (CALL_EXPR_FN): New.
10540         (CALL_EXPR_STATIC_CHAIN): New.
10541         (CALL_EXPR_ARGS): New.
10542         (CALL_EXPR_ARG): New.
10543         (call_expr_nargs): New.
10544         (CALL_EXPR_ARGP): New.
10545         (build_nt_call_list): Declare.
10546         (build_vl_exp_stat): Declare.
10547         (build_vl_exp): New.
10548         (build_call_list): Declare.
10549         (build_call_nary): Declare.
10550         (build_call_valist): Declare.
10551         (build_call_array): Declare.
10552         (call_expr_arg): Declare.
10553         (call_expr_argp): Declare.
10554         (call_expr_arglist): Declare.
10555         (fold_build_call_list): Declare.
10556         (fold_build_call_list_initializer): Declare.
10557         (fold_call_expr): Declare to replace fold_builtin.
10558         (fold_builtin_fputs): Update to agree with modified definition.
10559         (fold_builtin_strcpy): Likewise.
10560         (fold_builtin_strncpy): Likewise.
10561         (fold_builtin_memory_chk): Likewise.
10562         (fold_builtin_stxcpy_chk): Likewise.
10563         (fold_builtin_strncpy_chk): Likewise.
10564         (fold_builtin_next_arg): Likewise.
10565         (fold_build_call_expr): Declare.
10566         (fold_builtin_call_list): Declare.
10567         (fold_builtin_call_valist): Declare.
10568         (build_call_expr): Declare.
10569         (validate_arglist): Update to agree with modified definition.
10570         (tree_operand_length): New.
10571         (call_expr_arg_iterator): New.
10572         (init_call_expr_arg_iterator): New.
10573         (next_call_expr_arg): New.
10574         (first_call_expr_arg): New.
10575         (more_call_expr_args_p): New.
10576         (FOR_EACH_CALL_EXPR_ARG): New.
10577
10578         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
10579         and tcc_gimple_stmt.
10580         (tree_code_size): Update documentation.  Use sizeof (tree) rather
10581         than sizeof (char *).
10582         (tree_size): Likewise.  Add case for tcc_vl_exp.
10583         (tree_node_structure): Add case for tcc_vl_exp.
10584         (contains_placeholder_p): Likewise.
10585         (substitute_in_expr): Likewise.
10586         (substitute_placeholder_in_expr): Likewise.
10587         (stabilize_reference_1): Likewise.
10588         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
10589         to diagnose breakage of this interface for constructing CALL_EXPRs.
10590         (build_nt): Add similar assertion here.
10591         (build_nt_call_list): New.
10592         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
10593         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
10594         TREE_CODE_LENGTH.
10595         (get_callee_fndecl): Use new CALL_EXPR accessors.
10596         (tree_operand_check_failed): Change parameters to pass entire node
10597         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
10598         (process_call_operands): New.
10599         (build_vl_exp_stat): New.
10600         (build_call_list): New.
10601         (build_call_nary): New.
10602         (build_call_valist): New.
10603         (build_call_array): New.
10604         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
10605         (call_expr_arglist): New.
10606
10607         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
10608         tcc_vl_exp instead of a fixed-size tcc_expression.
10609
10610         * doc/c-tree.texi (CALL_EXPR): Document new representation and
10611         accessors for CALL_EXPRs.
10612         (AGGR_INIT_EXPR): Likewise.
10613
10614 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
10615             Brooks Moses  <brooks.moses@codesourcery.com>
10616             Lee Millward  <lee.millward@codesourcery.com>
10617
10618         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
10619         (expand_builtin_nonlocal_goto): Change parameter to be entire
10620         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
10621         (expand_builtin_prefetch): Likewise.
10622         (expand_builtin_classify_type): Likewise.
10623         (mathfn_built_in): Return NULL_TREE instead of 0.
10624         (expand_errno_check): Use new CALL_EXPR accessors.
10625         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
10626         Return NULL_RTX instead of 0.
10627         (expand_builtin_mathfn_2): Likewise.
10628         (expand_builtin_mathfn_3): Likewise.
10629         (expand_builtin_interclass_mathfn): Likewise.
10630         (expand_builtin_sincos): Likewise.
10631         (expand_builtin_cexpi): Likewise.
10632         (expand_builtin_int_roundingfn): Likewise.
10633         (expand_builtin_int_roundingfn_2): Likewise.
10634         (expand_builtin_pow): Likewise.
10635         (expand_builtin_powi): Likewise.
10636         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
10637         of arglist, fixing callers appropriately.  Use new CALL_EXPR
10638         accessors and constructors.  Return NULL_RTX instead of 0.
10639         (expand_builtin_strstr): Likewise.
10640         (expand_builtin_strchr): Likewise.
10641         (expand_builtin_strrchr): Likewise.
10642         (expand_builtin_strpbrk): Likewise.
10643         (expand_builtin_memcpy): Likewise.
10644         (expand_builtin_mempcpy): Likewise.
10645         (expand_builtin_mempcpy_args): New.
10646         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
10647         (expand_builtin_memmove_args): New.
10648         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
10649         (expand_movstr): Likewise.
10650         (expand_builtin_strcpy): Likewise.
10651         (expand_builtin_strcpy_args): New.
10652         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
10653         (expand_builtin_strncpy): Likewise.
10654         (expand_builtin_memset): Likewise.
10655         (expand_builtin_memset_args): New.
10656         (expand_builtin_bzero): Similarly to expand_builtin_memset.
10657         (expand_builtin_memcmp): Likewise.
10658         (expand_builtin_strcmp): Likewise.
10659         (expand_builtin_strncmp): Likewise.
10660         (expand_builtin_strcat): Likewise.
10661         (expand_builtin_strncat): Likewise.
10662         (expand_builtin_strspn): Likewise.
10663         (expand_builtin_strcspn): Likewise.
10664         (expand_builtin_args_info): Likewise.
10665         (expand_builtin_va_start): Likewise.
10666         (gimplify_va_arg_expr): Likewise.
10667         (expand_builtin_va_end): Likewise.
10668         (expand_builtin_va_copy): Likewise.
10669         (expand_builtin_frame_address): Likewise.
10670         (expand_builtin_alloca): Likewise.
10671         (expand_builtin_bswap): Likewise.
10672         (expand_builtin_unop): Likewise.
10673         (expand_builtin_fputs): Likewise.
10674         (expand_builtin_expect): Likewise.
10675         (expand_builtin_fabs): Likewise.
10676         (expand_builtin_copysign): Likewise.
10677         (expand_builtin_printf): Likewise.
10678         (expand_builtin_fprintf): Likewise.
10679         (expand_builtin_sprintf): Likewise.
10680         (expand_builtin_init_trampoline): Likewise.
10681         (expand_builtin_signbit): Likewise.
10682         (expand_builtin_fork_or_exec): Likewise.
10683         (expand_builtin_sync_operation): Likewise.
10684         (expand_builtin_compare_and_swap): Likewise.
10685         (expand_builtin_lock_test_and_set): Likewise.
10686         (expand_builtin_lock_release): Likewise.
10687         (expand_builtin): Likewise.
10688         (builtin_mathfn_code): Likewise.
10689
10690         (fold_builtin_constant_p): Pass call arguments individually instead
10691         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
10692         accessors and constructors.  Return NULL_TREE instead of 0.
10693         (fold_builtin_expect): Likewise.
10694         (fold_builtin_classify_type): Likewise.
10695         (fold_builtin_strlen): Likewise.
10696         (fold_builtin_nan): Likewise.
10697         (integer_valued_real_p): Likewise.
10698         (fold_trunc_transparent_mathfn): Likewise.
10699         (fold_fixed_mathfn): Likewise.
10700         (fold_builtin_cabs): Likewise.
10701         (fold_builtin_sqrt): Likewise.
10702         (fold_builtin_cbrt): Likewise.
10703         (fold_builtin_cos): Likewise.
10704         (fold_builtin_cosh): Likewise.
10705         (fold_builtin_tan): Likewise.
10706         (fold_builtin_sincos): Likewise.
10707         (fold_builtin_cexp): Likewise.
10708         (fold_builtin_trunc): Likewise.
10709         (fold_builtin_floor): Likewise.
10710         (fold_builtin_ceil): Likewise.
10711         (fold_builtin_round): Likewise.
10712         (fold_builtin_int_roundingfn): Likewise.
10713         (fold_builtin_bitop): Likewise.
10714         (fold_builtin_bswap): Likewise.
10715         (fold_builtin_logarithm): Likewise.
10716         (fold_builtin_hypot): Likewise.
10717         (fold_builtin_pow): Likewise.
10718         (fold_builtin_powi): Likewise.
10719         (fold_builtin_exponent): Likewise.
10720         (fold_builtin_memset): Likewise.
10721         (fold_builtin_bzero): Likewise.
10722         (fold_builtin_memory_op): Likewise.
10723         (fold_builtin_bcopy): Deleted; call site changed to invoke
10724         fold_builtin_memory_op directly.
10725         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
10726         (fold_builtin_strncpy): Likewise.
10727         (fold_builtin_memcmp): Likewise.
10728         (fold_builtin_strcmp): Likewise.
10729         (fold_builtin_strncmp): Likewise.
10730         (fold_builtin_signbit): Likewise.
10731         (fold_builtin_copysign): Likewise.
10732         (fold_builtin_isascii): Likewise.
10733         (fold_builtin_toascii): Likewise.
10734         (fold_builtin_isdigit): Likewise.
10735         (fold_builtin_fabs): Likewise.
10736         (fold_builtin_abs): Likewise.
10737         (fold_builtin_fmin_fmax): Likewise.
10738         (fold_builtin_carg): Likewise.
10739         (fold_builtin_classify): Likewise.
10740         (fold_builtin_unordered_cmp): Likewise.
10741
10742         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
10743         New functions split out from fold_builtin_1.
10744         (fold_builtin_n): New.
10745         (fold_builtin_varargs): New.
10746         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
10747         instead.
10748         (fold_call_expr): New.
10749         (build_function_call_expr): Rewrite to use new helper function.
10750         (fold_builtin_call_list): New.
10751         (build_call_expr): New.
10752         (fold_builtin_call_valist): New.
10753         (rewrite_call_expr): New.
10754         (validate_arg): New.
10755         (validate_arglist): Change parameter to be entire CALL_EXPR instead
10756         of an arglist.  Change return type to bool.  Use new CALL_EXPR
10757         accessors.
10758
10759         (fold_builtin_strstr):  Pass call arguments individually instead
10760         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
10761         accessors and constructors.  Return NULL_TREE instead of 0.
10762         (fold_builtin_strchr): Likewise.
10763         (fold_builtin_strrchr): Likewise.
10764         (fold_builtin_strpbrk): Likewise.
10765         (fold_builtin_strcat): Likewise.
10766         (fold_builtin_strncat): Likewise.
10767         (fold_builtin_strspn): Likewise.
10768         (fold_builtin_strcspn): Likewise.
10769         (fold_builtin_fputs): Likewise.
10770         (fold_builtin_next_arg): Likewise.
10771         (fold_builtin_sprintf): Likewise.
10772
10773         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
10774         NULL_RTX instead of 0.
10775         (expand_builtin_memory_chk): Likewise.
10776         (maybe_emit_chk_warning): Likewise.
10777         (maybe_emit_sprintf_chk_warning): Likewise.
10778
10779         (fold_builtin_object_size): Pass call arguments individually instead
10780         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
10781         accessors and constructors.  Return NULL_TREE instead of 0.
10782         (fold_builtin_memory_chk): Likewise.
10783         (fold_builtin_stxcpy_chk): Likewise.
10784         (fold_builtin_strncpy_chk): Likewise.
10785         (fold_builtin_strcat_chk): Likewise.
10786         (fold_builtin_strcat_chk): Likewise.
10787         (fold_builtin_strncat_chk): Likewise.
10788         (fold_builtin_sprintf_chk): Likewise.
10789         (fold_builtin_snprintf_chk): Likewise.
10790         (fold_builtin_printf): Likewise.
10791         (fold_builtin_vprintf): Likewise.
10792
10793         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
10794         constructors.
10795         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
10796         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
10797         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
10798         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
10799         (fold_unary): Likewise.
10800         (fold_binary): Likewise.
10801         (fold_ternary): Remove CALL_EXPR case, since they are no longer
10802         ternary expressions.
10803         (fold): Add logic for tcc_vl_exp.
10804         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
10805         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
10806         (fold_build3_stat): Add assertion to flag broken interface for
10807         constructing CALL_EXPRs.
10808         (fold_build_call_list): New.
10809         (fold_build_call_list_initializer): New.
10810         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
10811         constructors.
10812         (fold_strip_sign_ops): Likewise.
10813
10814 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
10815             Brooks Moses  <brooks.moses@codesourcery.com>
10816             Lee Millward  <lee.millward@codesourcery.com>
10817
10818         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
10819         accessors and dump arguments explicitly.
10820
10821         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
10822         TREE_CODE_LENGTH.
10823         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
10824         explicitly.
10825         (print_call_name): Use new CALL_EXPR accessors.
10826
10827         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
10828         CALL_EXPR arguments explicitly instead of as a list.  Use
10829         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
10830
10831         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
10832         (vrp_visit_stmt): Likewise.
10833
10834         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
10835         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
10836         TREE_CODE_LENGTH.
10837         (force_move_till_expr): Likewise.
10838
10839         * targhooks.c (default_external_stack_protect_fail): Use
10840         build_call_expr instead of build_function_call_expr.
10841         (default_hidden_stack_protect_fail): Likewise.
10842
10843         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
10844         build the call.
10845
10846         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
10847         and walk arguments explicitly.
10848
10849         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
10850         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
10851         (expand_simple_operations): Likewise.
10852         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
10853
10854         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
10855         of TREE_CODE_LENGTH.
10856         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
10857
10858         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
10859         instead of TREE_CODE_LENGTH.
10860
10861         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
10862         (tree_ic_transform): Likewise.
10863         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
10864         parameter instead of arglist.  Fix callers.
10865         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
10866         (tree_stringops_transform): Likewise.
10867         (tree_indirect_call_to_profile): Likewise.
10868         (tree_stringops_values_to_profile): Likewise.
10869
10870         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
10871         (eliminate_tail_call): Likewise.
10872
10873         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
10874
10875         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10876         Use TREE_OPERAND_LENGTH and generalize to handle any number of
10877         operands.
10878         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
10879
10880         * omp-low.c (build_omp_barrier): Use build_call_expr.
10881         (lower_rec_input_clauses): Likewise.
10882         (lower_reduction_clauses): Likewise.
10883         (expand_parallel_call): Likewise.
10884         (maybe_catch_exception): Likewise.
10885         (expand_omp_for_generic): Likewise.
10886         (expand_omp_for_static_nochunk): Likewise.
10887         (expand_omp_sections): Likewise.
10888         (lower_omp_single_simple): Likewise.
10889         (lower_omp_single_copy): Likewise.
10890         (lower_omp_master): Likewise.
10891         (lower_omp_ordered): Likewise.
10892         (lower_omp_critical): Likewise.
10893
10894         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
10895         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
10896
10897         * tree-gimple.c (is_gimple_call_addr): Fix doc.
10898         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
10899         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
10900
10901         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
10902         and generalize to handle any number of operands.
10903         (chrec_contains_undetermined): Likewise.
10904         (tree_contains_chrecs): Likewise.
10905         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
10906
10907         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
10908
10909         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
10910         fold_call_expr instead of fold_builtin.
10911         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
10912         match declarations there.
10913         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
10914         updates.
10915
10916         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
10917         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
10918
10919         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
10920         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
10921
10922         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
10923         accessors.
10924
10925         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
10926         (execute_cse_sincos): Use new CALL_EXPR accessors.
10927
10928         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
10929
10930         * gimple-low.c (lower_function_body): Use build_call_expr.
10931         (lower_builtin_setjmp): Likewise.
10932
10933         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
10934         (set_storage_via_libcall): Likewise.
10935         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
10936         instead of TREE_CODE_LENGTH.
10937         (expand_expr_real_1): Use new CALL_EXPR accessors.
10938
10939         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
10940         generalize to handle any number of operands.
10941         (TB_parent_eq): Likewise.
10942
10943         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
10944         (strip_builtin_expect): Likewise.
10945
10946         * function.c (gimplify_parameters): Use build_call_expr.
10947
10948         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
10949         instead of TREE_CODE_LENGTH.
10950
10951         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
10952         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
10953
10954         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
10955         iterators.
10956
10957         * gimplify.c (build_stack_save_restore): Use build_call_expr.
10958         (gimplify_decl_expr): Likewise.
10959         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
10960         Use new CALL_EXPR iterators.
10961         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
10962         (gimplify_modify_expr_to_memset): Likewise.
10963         (gimplify_variable_sized_compare): Likewise.
10964         (gimplify_omp_atomic_fetch_op): Likewise.
10965         (gimplify_omp_atomic_pipeline): Likewise.
10966         (gimplify_omp_atomic_mutex): Likewise.
10967         (gimplify_function_tree): Likewise.
10968
10969         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
10970         (call_expr_flags): Likewise.
10971         (expand_call): Likewise.
10972
10973         * except.c (expand_builtin_eh_return_data_regno): Pass entire
10974         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
10975         accessors.
10976
10977         * coverage.c (create_coverage): Use build_call_expr.
10978
10979         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
10980         (temp_call_expr_obstack): New.
10981         (pool_copy_list): Delete.
10982         (temp_copy_call_expr): New.
10983         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
10984         CALL_EXPR accessors.  Get rid of special goo for copying argument
10985         lists and use temp_copy_call_expr instead.
10986         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
10987         CALL_EXPR accessors.
10988         (create_expression_by_pieces): Likewise.  Use build_call_array
10989         to construct the result instead of fold_build3.
10990         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
10991         dealing with argument lists.
10992         (init_pre): Remove references to expression_node_pool and
10993         list_node_pool.  Init temp_call_expr_obstack instead.
10994         (fini_pre): Remove references to expression_node_pool and
10995         list_node_pool.
10996
10997         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
10998         and walk arguments explicitly instead of as a list.
10999
11000         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
11001         (mx_register_decls): Likewise.
11002         (mudflap_register_call): Likewise.
11003         (mudflap_finish_file): Likewise.
11004
11005         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
11006         (ipa_callsite_compute_param): Likewise.
11007
11008         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
11009         accessors and constructor.
11010
11011         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
11012         accessors and constructor.
11013         (convert_tramp_reference): Likewise.
11014         (convert_call_expr): Likewise.
11015         (finalize_nesting_tree_1): Likewise.
11016
11017         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
11018         accessors.
11019
11020         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
11021
11022         * tree-inline.c (initialize_inlined_parameters): Pass entire
11023         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
11024         accessors.
11025         (estimate_num_insns_1): Use new CALL_EXPR accessors.
11026         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
11027
11028         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
11029         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
11030         (vectorizable_reduction): Likewise.
11031         (vectorizable_call): Use new CALL_EXPR iterators.
11032         (vectorizable_conversion): Use build_call_expr.
11033         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
11034         (vect_gen_widened_results_half): Use build_call_expr.
11035         (vect_setup_realignment): Likewise.
11036         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
11037
11038         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
11039         (pass_through_call): Likewise.
11040         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
11041         fold_builtin.
11042
11043         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
11044         (tree_gen_pow2_profiler): Likewise.
11045         (tree_gen_one_value_profiler): Likewise.
11046         (tree_gen_ic_func_profiler): Likewise.
11047         (tree_gen_average_profiler): Likewise.
11048         (tree_gen_ior_profiler): Likewise.
11049
11050         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
11051         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
11052         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
11053
11054         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
11055         of TREE_CODE_LENGTH.
11056
11057         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
11058         of TREE_CODE_LENGTH.
11059
11060         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
11061         constructor.
11062         (convert_to_integer): Likewise.
11063
11064         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
11065         accessors.
11066
11067 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
11068             Brooks Moses  <brooks.moses@codesourcery.com>
11069             Lee Millward  <lee.millward@codesourcery.com>
11070
11071         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
11072         accessors.
11073         * config/frv/frv.c (frv_expand_builtin): Likewise.
11074         * config/s390/s390.c (s390_expand_builtin): Likewise.
11075
11076         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
11077         (sparc_expand_builtin): Use new CALL_EXPR accessors.
11078
11079         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
11080         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
11081         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
11082         (ix86_expand_store_builtin): Likewise.
11083         (ix86_expand_unop_builtin): Likewise.
11084         (ix86_expand_unop1_builtin): Likewise.
11085         (ix86_expand_sse_compare): Likewise.
11086         (ix86_expand_sse_comi): Likewise.
11087         (ix86_expand_vec_init_builtin): Likewise.
11088         (ix86_expand_vec_ext_builtin): Likewise.
11089         (ix86_expand_vec_set_builtin): Likewise.
11090         (ix86_expand_builtin): Use new CALL_EXPR accessors.
11091
11092         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
11093         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11094
11095         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
11096         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
11097         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
11098
11099         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
11100         build_call_expr.
11101         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11102         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
11103         arglist.  Use new CALL_EXPR accessors.  Fix callers.
11104         (altivec_expand_abs_builtin): Likewise.
11105         (rs6000_expand_binop_builtin): Likewise.
11106         (altivec_expand_predicate_builtin): Likewise.
11107         (altivec_expand_lv_builtin): Likewise.
11108         (spe_expand_stv_builtin): Likewise.
11109         (altivec_expand_stv_builtin): Likewise.
11110         (rs6000_expand_ternop_builtin): Likewise.
11111         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
11112         (altivec_expand_st_builtin): Likewise.
11113         (altivec_expand_dst_builtin): Likewise.
11114         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
11115         arglist.  Use new CALL_EXPR accessors.  Fix callers.
11116         (altivec_expand_vec_set_builtin): Likewise.
11117         (altivec_expand_vec_ext_builtin): Likewise.
11118         (altivec_expand_builtin): Use new CALL_EXPR accessors.
11119         (spe_expand_builtin): Likewise.
11120         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
11121         arglist.  Use new CALL_EXPR accessors.  Fix callers.
11122         (spe_expand_evsel_builtin): Likewise.
11123         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
11124         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
11125
11126         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
11127         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
11128         (arm_expand_unop_builtin): Likewise.
11129         (arm_expand_builtin): Use new CALL_EXPR accessors.
11130
11131         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
11132         accessors.
11133
11134         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
11135         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
11136         (bfin_expand_unop_builtin): Likewise.
11137         (bfin_expand_builtin): Use new CALL_EXPR accessors.
11138
11139 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
11140             Brooks Moses  <brooks.moses@codesourcery.com>
11141             Lee Millward  <lee.millward@codesourcery.com>
11142
11143         * c-semantics.c (build_stmt): Add internal diagnostic check.
11144
11145         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
11146         accessors.  Print arguments explicitly instead of as a list.
11147
11148         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
11149
11150         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
11151         (c_finish_omp_flish): Likewise.
11152
11153         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
11154         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
11155         instead of TREE_CODE_LENGTH.
11156         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
11157         (c_warn_unused_result): Likewise.
11158
11159 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11160
11161         PR c/26494
11162         * doc/invoke.texi (Warning Options): Remove
11163         -Werror-implicit-function-declaration.
11164         (Wimplicit-function-declaration): Update description.
11165         * opts.c (common_handle_option): Move handling of -Werror=* to...
11166         (enable_warning_as_error): ...here.
11167         * opts.h (enable_warning_as_error): Declare.
11168         * c-decl.c (implicit_decl_warning): Unless
11169         -Wno-implicit-function-declaration is given, emit a pedwarn if
11170         -std=c99 or emit a warning if -Wimplicit-function-declaration.
11171         * c.opt (Wimplicit-function-declaration): Replace
11172         mesg_implicit_function_declaration with
11173         warn_implicit_function_declaration.
11174         * c-opts.c (c_common_handle_option):
11175         -Werror-implicit-function-declaration is exactly equal as
11176         -Werror=implicit-function-declaration.
11177         (set_Wimplicit): Replace mesg_implicit_function_declaration with
11178         warn_implicit_function_declaration.
11179         (c_common_post_options): -Wimplict-function-declaration is enabled
11180         by default by -std=c99, otherwise is disabled by default.
11181         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
11182
11183 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
11184
11185         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
11186         DECL on the rhs to a DECL on the lhs for debug info purposes if the
11187         former is ignored but not the latter.
11188
11189 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
11190
11191         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
11192         is made and the reference doesn't use the alias set of its type,
11193         do not create the temporary using that type.
11194
11195 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
11196
11197         * jump.c: Remove prototypes for delete_computation and
11198         delete_prior_computation.
11199
11200 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
11201
11202         * jump.c (get_label_after): Delete.
11203         (get_label_before, delete_computation, delete_jump,
11204         delete_prior_computation, follow_jumps): Move...
11205         * reorg.c (delete_computation, delete_prior_computation): ... here...
11206         (get_label_before, delete_jump): ... making these static ...
11207         (follow_jumps): ... and simplifying this since it only runs after
11208         reload.
11209         * rtl.h (get_label_after, get_label_before, delete_jump,
11210         follow_jumps): Delete prototypes.
11211
11212 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
11213
11214         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
11215
11216 2007-02-15  Nick Clifton  <nickc@redhat.com>
11217
11218         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
11219         order to prevent it from being munged by the target.
11220
11221 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
11222
11223         * config/i386/i386.md: Remove misleading comment.
11224
11225 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
11226
11227         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
11228         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
11229         invalid patterns.
11230
11231 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
11232
11233         * tree-sra.c (instantiate_missing_elements): Canonicalize
11234         bit-field types.
11235         (sra_build_assignment): New.
11236         (generate_copy_inout, generate_element_copy,
11237         generate_element_zero, generate_one_element_init): Use it.
11238
11239 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
11240
11241         * tree-sra.c (instantiate_missing_elements): Canonicalize
11242         bit-field types.
11243         (sra_build_assignment): New.
11244         (generate_copy_inout, generate_element_copy,
11245         generate_element_zero, generate_one_element_init): Use it.
11246
11247 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
11248
11249         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
11250         limbo die nodes.
11251
11252 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
11253
11254         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
11255         types as aggregates not scalars.
11256         * function.c (assign_stack_temp_for_type): Likewise.
11257
11258 2007-02-14  Roger Sayle  <roger@eyesopen.com>
11259             Zdenek Dvorak  <dvorakz@suse.cz>
11260
11261         * tree-dump.c (dump_switch_p_1): Require exact match of the option
11262         name.
11263
11264 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
11265
11266         * passes.c (next_pass_1): Clear the next field of the copied
11267         pass structure.
11268
11269 2007-02-14  Richard Henderson  <rth@redhat.com>
11270
11271         * tree-sra.c (early_sra): New.
11272         (decl_can_be_decomposed_p): Deny va_list if early_sra.
11273         (tree_sra_early, pass_sra_early): New.
11274         * tree-pass.h (pass_sra_early): Declare.
11275         * passes.c (init_optimization_passes): Use it.
11276
11277 2007-02-14  Richard Guenther  <rguenther@suse.de>
11278
11279         * flags.h (issue_strict_overflow_warning): Convert to a macro.
11280
11281 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
11282
11283          PR tree-optimization/30771
11284         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
11285         also phi nodes.
11286         (vect_analyze_operations): Induction phis can now be marked as
11287         used_in_loop.
11288         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
11289         Update documentation accordingly.
11290
11291 2007-02-14  Nick Clifton  <nickc@redhat.com>
11292
11293         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
11294         most 3 arguments are supported.
11295         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
11296
11297 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
11298
11299         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
11300         Ensure dst->current is valid.
11301
11302 2007-02-13  Paul Brook  <paul@codesourcery.com>
11303
11304         * config.gcc: Add arm*-*-uclinux-*eabi.
11305         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11306         (SUBTARGET_EXTRA_LINK_SPEC): Define.
11307         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
11308         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
11309         (LINK_SPEC): Define.
11310         (LIB_SPEC): Define.
11311         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
11312         register.
11313         * config/arm/uclinux-eabi.h: New file.
11314         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
11315         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
11316         based targets.
11317
11318 2007-02-13  Ian Lance Taylor  <iant@google.com>
11319
11320         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
11321         * flags.h (warn_strict_overflow): Declare.
11322         (enum warn_strict_overflow_code): Define.
11323         (issue_strict_overflow_warning): New static inline function.
11324         * opts.c (warn_strict_overflow): New variable.
11325         (common_handle_option): Handle OPT_Wstrict_overflow and
11326         OPT_Wstrict_overflow_.
11327         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
11328         OPT_Wall.
11329         * fold-const.c: Include intl.h.
11330         (fold_deferring_overflow_warnings): New static variable.
11331         (fold_deferred_overflow_warning): New static variable.
11332         (fold_deferred_overflow_code): New static variable.
11333         (fold_defer_overflow_warnings): New function.
11334         (fold_undefer_overflow_warnings): New function.
11335         (fold_undefer_and_ignore_overflow_warnings): New function.
11336         (fold_deferring_overflow_warnings_p): New function.
11337         (fold_overflow_warning): New static function.
11338         (make_range): Add strict_overflow_p parameter.  Change all
11339         callers.
11340         (extract_muldiv, extract_muldiv_1): Likewise.
11341         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
11342         tree_expr_nonnegative_p.
11343         (fold_negate_expr): Call fold_overflow_warning.
11344         (fold_range_test): Likewise.
11345         (fold_comparison): Likewise.
11346         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
11347         instead of tree_expr_nonnegative_p.
11348         (tree_expr_nonnegative_warnv_p): Rename from
11349         tree_expr_nonnegative_p, add strict_overflow_p parameter.
11350         (tree_expr_nonnegative_p): New function.
11351         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
11352         strict_overflow_p parameter.
11353         (tree_expr_nonzero_p): New function.
11354         * passes.c (verify_interpass_invariants): New static function.
11355         (execute_one_pass): Call it.
11356         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
11357         warnings.
11358         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
11359         (estimate_numbers_of_iterations): Likewise.
11360         (scev_probably_wraps_p): Likewise.
11361         * tree-ssa-ccp.c: Include "toplev.h".
11362         (evaluate_stmt): Defer fold overflow warnings until we know we are
11363         going to optimize.
11364         (struct fold_stmt_r_data): Add stmt field.
11365         (fold_stmt_r): Defer fold overflow warnings until we know we
11366         optimized.
11367         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
11368         (fold_stmt_inplace): Likewise.
11369         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
11370         (cleanup_control_expr_graph): Defer fold overflow warnings until
11371         we know we are going to optimize.
11372         * tree-cfg.c (fold_cond_expr_cond): Likewise.
11373         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
11374         Likewise.
11375         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11376         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
11377         * tree-ssa-loop-manip.c (create_iv): Likewise.
11378         * c-typeck.c (build_conditional_expr): Likewise.
11379         (build_binary_op): Likewise.
11380         * tree-vrp.c (vrp_expr_computes_nonzero): Call
11381         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
11382         (extract_range_from_unary_expr): Likewise.
11383         * simplify-rtx.c (simplify_const_relational_operation): Warn when
11384         assuming that signed overflow does not occur.
11385         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
11386         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
11387         (fold_defer_overflow_warnings): Declare.
11388         (fold_undefer_overflow_warnings): Declare.
11389         (fold_undefer_and_ignore_overflow_warnings): Declare.
11390         (fold_deferring_overflow_warnings_p): Declare.
11391         (tree_expr_nonzero_warnv_p): Declare.
11392         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
11393         of warning options.
11394         (Warning Options): Document -Wstrict-overflow.
11395         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
11396         (tree-ssa-ccp.o): Likewise.
11397         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
11398         (fold-const.o): Depend on intl.h.
11399
11400 2007-02-13  Ian Lance Taylor  <iant@google.com>
11401
11402         PR middle-end/30751
11403         * lower-subreg.c (resolve_simple_move): Decompose subregs in
11404         addresses.
11405
11406 2007-02-13  Stuart Hastings  <stuart@apple.com>
11407
11408         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
11409
11410 2007-02-13  Richard Henderson  <rth@redhat.com>
11411
11412         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
11413         handled_component_p before looking for the indirect_ref.
11414
11415 2007-02-13  Richard Henderson  <rth@redhat.com>
11416
11417         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
11418         remove flags clobber.
11419         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
11420         (bswaphi_lowpart): New.
11421         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
11422         remove TARGET_BSWAP test.  Delete expander of the same name.
11423
11424         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
11425         (expand_unop): Use them.
11426
11427 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
11428
11429         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
11430         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
11431         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
11432         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
11433         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
11434         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
11435         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
11436         assembler dialect choice from asm templates.
11437
11438 2007-02-12  Richard Henderson  <rth@redhat.com>
11439
11440         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
11441         (fixuns_trunc<SSEMODEF>si2): Use it.
11442         * config/i386/sse.md (vec_setv4sf_0): Export.
11443         * config/i386/i386.c (ix86_build_const_vector): Export.
11444         (ix86_split_convert_uns_si_sse): Rename from
11445         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
11446         * config/i386/i386-protos.h: Update.
11447
11448 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11449
11450         PR c/29521
11451         * c-typeck.c (c_finish_return): Improve warning message.
11452
11453 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11454
11455         * alias.c (find_symbolic_term): Delete unused function.
11456
11457 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
11458
11459         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
11460         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
11461         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
11462
11463 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
11464
11465         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
11466         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
11467         the function, temporarily point the debug interface to the null one.
11468
11469 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
11470
11471         * dwarf2out.c (round_up_to_align): New static function.
11472         (field_byte_offset): Use it to round the offset.
11473
11474 2007-02-12  Richard Henderson  <rth@redhat.com>
11475
11476         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
11477         (inswl_const): Export.
11478
11479 2007-02-12  Richard Henderson  <rth@redhat.com>
11480
11481         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
11482         result mode of the libcall, convert back to outmode.
11483
11484 2007-02-12  Roger Sayle  <roger@eyesopen.com>
11485
11486         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
11487         (bswapdi2): New define_expand to implement 32-bit implementation.
11488
11489 2007-02-12  Nick Clifton  <nickc@redhat.com>
11490
11491         * doc/invoke.texi (Overall Options): Document --help=.
11492         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
11493         (cc1_options): Pass --help= on to cc1.
11494         (display_help): Add description of --help=.
11495         (process_command): Add code to handle --help=.  Allow translated
11496         --help and --target-help switches to be passed on to compiler
11497         sub-process.
11498         (main): Remove unused if statement.
11499         * opts.c (columns): Remove.
11500         (LEFT_COLUMN): Define.
11501         (wrap_help): Add columns argument.
11502         (print_filtered_help): Change parameters to be an include bitmask,
11503         an exclude bitmask, an any bitmask and the column width.  Move the
11504         code to display the params list here.  Add code to display the
11505         status of options rather than their descriptions if the quiet flag
11506         is not active.
11507         (print_specific_help): Change parameters to be an include bitmask,
11508         an exclude bitmask and an any bitmask.  Move code to look up the
11509         column width here.  Decide upon the title for an options listing.
11510         (common_handle_options): Add code to handle --help=.  Adapt code
11511         for --help and --target-help to use the revised form of the
11512         print_specific_help function.
11513         (print_help): Delete.
11514         (print_param_help): Delete.
11515         (print_switch): Delete.
11516         * opts.h (cl_lang_count): Add prototype.
11517         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
11518         CL_MAX_OPTION_CLASS): New defines.
11519         * optc-gen.awk: Add construction of cl_lang_count.
11520         * c.opt: Add Warning attribute to warning options and Optimization
11521         attribute to optimization options.
11522         * common.opt: Likewise.
11523         Add --help=.
11524         Add -fhelp and -ftarget-help as aliases for the transformed --help
11525         and --target-help options.
11526         * opt-functions.awk: Add code to handle Warning and Optimization
11527         attributes.
11528
11529 2007-02-12  Richard Henderson  <rth@redhat.com>
11530
11531         * config/alpha/constraints.md: New file.
11532         * config/alpha/alpha.c: Include tm-constrs.h.
11533         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
11534         alpha_extra_constraint): Remove.
11535         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
11536         * config/alpha/alpha-protos.h: Update.
11537         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
11538         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
11539         (EXTRA_CONSTRAINT): Remove.
11540         * config/alpha/alpha.md: Include constraints.md.
11541         (adddi splitter): Use satisfies_constraint_*.
11542         * config/alpha/predicates.md (add_operand): Likewise.
11543         (sext_add_operand, addition_operation): Likewise.
11544
11545 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
11546
11547         PR tree-optimization/29145
11548         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
11549         in our handling of restrict qualified pointers.
11550
11551 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11552
11553         PR middle-end/7651
11554         * doc/invoke.texi (Wunused-value): Update description.
11555         (Wextra): Delete item.
11556         * opts.c (set_Wextra): Don't use the value of Wextra to set the
11557         value of Wunused-value.
11558         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
11559         (c_finish_stmt_expr): Don't check extra_warnings.
11560         (emit_side_effect_warnings): The caller is responsible to check
11561         warn_unused_value.
11562
11563 2007-02-11  Roger Sayle  <roger@eyesopen.com>
11564             Matt Thomas  <matt@3am-software.com>
11565
11566         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
11567
11568 2007-02-11  Roger Sayle  <roger@eyesopen.com>
11569
11570         * simplify-rtx.c (simplify_relational_operation_1): Optimize
11571         comparisons of POPCOUNT against zero.
11572         (simplify_const_relational_operation): Likewise.
11573
11574 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11575
11576         * doc/invoke.texi (Wextra): Delete outdated paragraph.
11577
11578 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11579
11580         * dwarf2out.c (root_type): Delete unused function.
11581
11582 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11583
11584         * genattrtab.c (contained_in_p): Delete unused function.
11585         (write_expr_attr_cache): Likewise.
11586
11587 2007-02-11  Jan Hubicka  <jh@suse.cz>
11588
11589         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
11590         previous patch.
11591
11592 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
11593
11594         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
11595         to add the REG_EQ* note.
11596         * see.c (see_merge_one_use_extension): Likewise.
11597         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
11598         turn REG_EQUAL notes into REG_EQUIV notes if the target
11599         register may have more than one set.
11600         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
11601         * gcse.c (try_replace_reg): Likewise.
11602         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
11603         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
11604         more than one REG_EQUIV note.
11605         * reload1.c (gen_reload): Use set_unique_reg_note.
11606
11607 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
11608
11609         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
11610         (ix86_builtin_conversion): New function.
11611
11612 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
11613
11614         PR target/29487
11615         * tree.h (DECL_REPLACEABLE_P): New macro.
11616         * except.c (set_nothrow_function_flags): Likewise.
11617
11618 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
11619             Ira Rosen  <irar@il.ibm.com>
11620             Dorit Nuzman  <dorit@il.ibm.com>
11621
11622         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
11623         * targhooks.c (default_builtin_vectorized_conversion): New.
11624         * targhooks.h (default_builtin_vectorized_function): New declaration.
11625         * target.h (struct vectorize): Add builtin_conversion field.
11626         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
11627         stmt_vec_info_type value.
11628         (vectorizable_conversion): New declaration.
11629         * tree-vect-analyze.c (vect_analyze_operations): Add
11630         vectorizable_conversion call.
11631         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
11632         * tree-vect-transform.c (vectorizable_conversion): New function.
11633         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
11634         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
11635         mode.
11636         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
11637         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
11638         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
11639         or ALTIVEC_BUILTIN_VCFSX.
11640
11641 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11642
11643         PR target/30634
11644         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
11645         CONST_DOUBLE and operand 0 is a hard register.
11646         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
11647         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
11648         is a hard floating-point register.
11649
11650 2007-02-10  Richard Henderson  <rth@redhat.com>
11651             Jakub Jelinek  <jakub@redhat.com>
11652             Alexandre Oliva  <aoliva@redhat.com>
11653
11654         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
11655         * builtin-types.def (BT_WORD): Make unsigned.
11656         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
11657         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
11658         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
11659         * c-decl.c (grokdeclarator): Don't error if !have_tls.
11660         * c-parser.c (c_parser_omp_threadprivate): Likewise.
11661         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
11662         emulated tls.
11663         * expr.c (emutls_var_address): New.
11664         (expand_expr_real_1): Expand emulated tls.
11665         (expand_expr_addr_expr_1): Likewise.
11666         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
11667         * output.h (emutls_finish): Declare.
11668         * toplev.c (compile_file): Call it.
11669         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
11670         address before wrapping in CONST.
11671         * varasm.c (emutls_htab, emutls_object_type): New.
11672         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
11673         (get_emutls_object_name, get_emutls_object_type): New.
11674         (get_emutls_init_templ_addr, emutls_decl): New.
11675         (emutls_common_1, emutls_finish): New.
11676         (assemble_variable): When emulating tls, swap decls; generate
11677         constructor for the emutls objects.
11678         (do_assemble_alias): When emulating tls, swap decl and target name.
11679         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
11680         for emulated tls.
11681         * varpool.c (decide_is_variable_needed): Look at force_output.
11682         Recurse for emulated tls.
11683         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
11684         with decide_is_variable_needed.
11685         * emutls.c: New file.
11686         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
11687         tls_object for real tls.
11688
11689 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
11690
11691         PR rtl-optimization/29599
11692         * reload1.c (eliminate_regs_in_insn): Take the destination
11693         mode into account when computing the offset.
11694
11695 2007-02-09  Stuart Hastings  <stuart@apple.com>
11696             Richard Henderson  <rth@redhat.com>
11697
11698         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
11699         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
11700         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
11701         fixuns_truncdfhi2): New.
11702         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
11703         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
11704         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
11705         (floatunssidf2): Allow nonimmediate source.
11706         * config/i386/sse.md (movdi_to_sse): New.
11707         (vec_concatv2di): Drop '*'.
11708         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
11709         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
11710         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
11711         New.
11712         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
11713         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
11714         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
11715         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
11716         (ix86_build_signbit_mask): Fix decl of v, refactor to call
11717         ix86_build_const_vector.
11718         (x86_emit_floatuns): Rewrite.
11719
11720 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11721
11722         * genautomata.c (longest_path_length): Delete unused function.
11723         (struct state): Delete unused longest_path_length.
11724         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
11725         (get_free_state): Delete unused.
11726
11727 2007-02-09  Jan Hubicka  <jh@suse.cz>
11728
11729         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
11730         * doc/invoke.texi (inline-unit-growth): Update default value.
11731
11732         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
11733         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
11734         (rebuild_cgraph_edges): Likewise.
11735         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
11736         (dump_cgraph_node): Dump frequencies.
11737         (cgraph_clone_edge): Add frequency scales.
11738         (cgraph_clone_node): Add freuqnecy.
11739         * cgraph.h (cgraph_edge): Add freuqnecy argument.
11740         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
11741         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
11742         * tree-pass.h (TODO_rebuild_frequencies): New constant.
11743         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
11744         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
11745         (save_inline_function_body): Likewise.
11746         * ipa-inline.c: inluce rtl.h
11747         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
11748         (cgraph_edge_badness): Use frequencies.
11749         (cgraph_decide_recursive_inlining): Update clonning.
11750         (cgraph_decide_inlining_of_small_function): Dump frequency.
11751         * predict.c (estimate_bb_frequencies): Export.
11752         * predict.h (estimate_bb_frequencies): Declare.
11753         * tree-inline.c (copy_bb): Watch overflows.
11754         (expand_call_inline): Update call of cgraph_create_edge.
11755         (optimize_inline_calls): Use TODO flags to update frequnecies.
11756         * passes.h: Include predict.h
11757         (init_optimization_passes): Move profile ahead.
11758         (execute_function_todo): Handle TODO_rebuild_frequencies.
11759
11760 2007-02-09  Roger Sayle  <roger@eyesopen.com>
11761
11762         * config/alpha/alpha.c (emit_insxl): Force the first operand of
11763         the insbl or inswl pattern into a register.
11764
11765 2007-02-09  Roger Sayle  <roger@eyesopen.com>
11766
11767         * config/ia64/ia64.md (bswapdi2): New define_insn.
11768
11769 2007-02-09  Richard Henderson  <rth@redhat.com>
11770
11771         * config/i386/constraints.md (Ym): New constraint.
11772         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
11773         (movdi_1_rex64): Split sse and xmm general register moves from
11774         memory move alternatives.  Use conditional register constraints.
11775         (movsf_1, movdf_integer): Likewise.
11776         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
11777         (movdf_integer_rex64): New.
11778         (pushsf_rex64): Fix output constraints.
11779         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
11780         (sse2_stored): Likewise.
11781         (sse2_storeq_rex64): New.
11782         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
11783         amd and not generic.
11784         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
11785         for optimize_size.  Remove SF/DFmode hack.
11786
11787 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11788
11789         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
11790         (bit_SSE4a): New.
11791
11792 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11793             Richard Sandiford  <richard@codesourcery.com>
11794
11795         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
11796         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
11797         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
11798         m68k/t-mlib to tmake_file.
11799         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
11800         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
11801         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
11802         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
11803         variable is not empty, add t-$m68k_arch_family to tmake_file.
11804         Add t-mlibs to tmake_file.
11805         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
11806         * config/m68k/t-cf: New file.
11807         * config/m68k/t-m68k: Likewise.
11808         * config/m68k/t-mlibs: Likewise.
11809         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11810         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
11811         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
11812         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11813         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
11814         Delete.
11815         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
11816         (INSTALL_LIBGCC): Delete.
11817         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
11818         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11819         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
11820         (M68K_MLIB_CPU): Define.
11821         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
11822         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
11823         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
11824
11825 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
11826             Richard Guenther  <rguenther@suse.de>
11827
11828         PR middle-end/23361
11829         * fold-const.c (fold_comparison): Handle obfuscated comparisons
11830         against INT_MIN/INT_MAX.
11831         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
11832         file if a loop is removed.
11833
11834 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
11835
11836         * calls.c (store_one_arg): Pass correct alignment to
11837         emit_push_insn for non-BLKmode values.
11838         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
11839         unaligned stack slot via a suitably aligned slot.
11840
11841 2007-02-08  DJ Delorie  <dj@redhat.com>
11842
11843         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
11844         warnings.
11845         (legal_subregs): Use unsigned char, make const.
11846         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
11847
11848 2007-02-08  Paul Brook  <paul@codesourcery.com>
11849
11850         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
11851         special interworking needed.
11852
11853 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
11854
11855         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
11856         conditional to __SSE2__.
11857         (Entries below should have been added to first ChangeLog
11858         entry for amdfam10 dated 2007-02-05)
11859         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
11860         defined.
11861         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
11862         defined.
11863         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
11864         defined.
11865
11866 2007-02-08  DJ Delorie  <dj@redhat.com>
11867
11868         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
11869         * config/m32c/m32c.c (legal_subregs): New.
11870         (m32c_illegal_subreg_p): New.
11871         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
11872         unsupported subregs of hard regs.
11873
11874 2007-02-08  Jan Hubicka  <jh@suse.cz>
11875
11876         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
11877         the same one; always update histograms.
11878
11879 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
11880
11881         * passes.c (init_optimization_passes): Tidy comment.
11882
11883 2007-02-08  Roger Sayle  <roger@eyesopen.com>
11884
11885         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
11886         strip zero_extend, bswap and rotates from POCOUNT's argument.
11887         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
11888         zero_extend and rotates from PARITY's argument.
11889         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
11890         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
11891         of an integer constant at compile-time.
11892
11893 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
11894
11895         PR 30562
11896         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
11897         Update all users.
11898         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
11899         users.
11900         (init_alias_info):
11901         * tree-ssa-live.c (remove_unused_locals): Do not remove
11902         TREE_ADDRESSABLE variables.
11903         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
11904         * tree-ssa-operands.c (add_virtual_operand): Remove argument
11905         FOR_CLOBBER.  Update all users.
11906         If VAR has an associated alias set, add a virtual operand for
11907         it if no alias is found to conflict with the memory reference.
11908
11909 2007-02-07  Jan Hubicka  <jh@suse.cz>
11910             Robert Kidd <rkidd@crhc.uiuc.edu>
11911
11912         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
11913
11914 2007-02-07  Ian Lance Taylor  <iant@google.com>
11915
11916         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
11917
11918 2007-02-07  Roger Sayle  <roger@eyesopen.com>
11919
11920         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
11921         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
11922         tablejumpdi, movsi_to_cr_one): Remove constraints from
11923         define_expand's match_operands.
11924
11925 2007-02-07  Roger Sayle  <roger@eyesopen.com>
11926
11927         * global.c (compute_regsets): Move declatation of "i" inside of
11928         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
11929
11930 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
11931
11932         PR c++/30703
11933         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
11934         of INDIRECT_REF <RESULT_DECL>.
11935
11936         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
11937
11938 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
11939             Kaz Kojima  <kkojima@gcc.gnu.org>
11940
11941         PR target/29746
11942         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
11943         properly.
11944         (sh_initialize_trampoline): Add parentheses to avoid a warning.
11945
11946 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
11947
11948         * doc/loop.texi: Document possibility not to perform disambiguation
11949         of loops with multiple latches.
11950         * cfgloopmanip.c (alp_enum_p): Removed.
11951         (add_loop): Handle subloops.  Use get_loop_body_with_size.
11952         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
11953         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
11954         the new forwarder block.
11955         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
11956         Handle the case latch is NULL.
11957         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
11958         when marking loop exits.
11959         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
11960         be modified.
11961         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
11962         disambiguate_loops_with_multiple_latches.
11963         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
11964         before fix_loop_structure.
11965         * cfgloop.c: Include pointer-set.h and output.h.
11966         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
11967         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
11968         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
11969         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
11970         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
11971         disambiguate_multiple_latches, get_loop_body_with_size,
11972         disambiguate_loops_with_multiple_latches): New functions.
11973         (flow_loop_dump): Dump multiple latch edges.
11974         (flow_loop_nodes_find): Handle loops with multiple latches.
11975         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
11976         (glb_enum_p): Modified.
11977         (get_loop_body): Use get_loop_body_with_size.
11978         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
11979         (AVOID_CFG_MODIFICATIONS): New constant.
11980         (disambiguate_loops_with_multiple_latches, add_loop,
11981         get_loop_body_with_size): Declare.
11982         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
11983
11984 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
11985
11986         PR inline-asm/28686
11987         * global.c (compute_regsets): New function.
11988         (global_alloc): Refactored ELIMINABLE_REGSET
11989         and NO_GLOBAL_ALLOC_REGS computation out.
11990         (rest_of_handle_global_alloc): Call compute_regsets()
11991         for non-optimizing case.
11992
11993 2007-02-06  Richard Henderson  <rth@redhat.com>
11994
11995         * config/i386/constraints.md (Y2): Rename from Y.
11996         (Yi): New constraint.
11997         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
11998         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
11999         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
12000         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
12001         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
12002         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
12003         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
12004         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
12005         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
12006         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
12007         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
12008         vec_extractv2si_1): Change Y constraints to Y2.
12009         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
12010         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
12011         Change Y constraints to Y2.
12012         (sse2_loadld): Change Y constraints to x.
12013
12014 2007-02-06  Roger Sayle  <roger@eyesopen.com>
12015
12016         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
12017         (parity<mode>2): New define_expand using rs6000_emit_parity.
12018         * config/rs6000/rs6000.c (rs6000_emit_popcount,
12019         rs6000_emit_parity): New functions.
12020         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
12021         rs6000_emit_parity): Prototype here.
12022
12023 2007-02-06  Ian Lance Taylor  <iant@google.com>
12024
12025         * lower-subreg.c (simple_move_operand): Reject CONST.
12026         (resolve_clobber): Call validate_change rather than directly
12027         assigning to XEXP (pat, 0).
12028
12029 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
12030
12031         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
12032         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
12033         (tree-cfg.o): Remove hashtab.h dependency.
12034
12035         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
12036         (struct ivopts_data): Change niters to pointer_map_t.
12037         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
12038         (niter_for_exit): Create pointer_map on demand.  Change for
12039         pointer_map API.
12040         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
12041         (free_loop_data): Destroy data->niters if created and reset field.
12042         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
12043         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
12044
12045         * tree-ssa-reassoc.c: Include pointer-set.h.
12046         (bb_rank): Change to long *.
12047         (operand_rank): Change to pointer_map_t.
12048         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
12049         (insert_operand_rank): Accept long.
12050         (operand_entry_hash, operand_entry_eq): Remove.
12051         (get_rank): Return long.  Adjust for changes above.
12052         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
12053         and operand_rank.
12054         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
12055
12056         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
12057         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
12058         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
12059         is not NULL.
12060         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
12061         directly since it cannot be NULL.
12062         (get_vi_for_tree): Rewrite for pointer_map API.
12063         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
12064         (init_alias_vars): Create vi_for_tree as pointer_map.
12065         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
12066
12067         * tree-cfg.c: Don't include hashtab.h.
12068         (edge_to_cases): Declare as pointer_map.
12069         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
12070         Delete.
12071         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
12072         (start_recording_case_labels): Create edge_to_cases as pointer_map.
12073         (end_recoding_case_labels): Cleanup edge_to_cases manually before
12074         destroying it.
12075         (record_switch_edge): Delete.
12076         (get_cases_for_edge): Adjust for pointer_map API, inline
12077         record_switch_edge (rewritten for new API), remove goto.
12078
12079 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
12080
12081         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
12082         * tree-nested.c: Include pointer-set.h.
12083         (var_map_elt, var_map_eq, var_map_hash): Delete.
12084         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
12085         to pointer_map_t's.
12086         (nesting_info_bitmap_obstack): New.
12087         (lookup_field_for_decl): Adjust for pointer_map API.
12088         (lookup_tramp_for_decl): Adjust for pointer_map API.
12089         (get_nonlocal_debug_decl): Adjust for pointer_map API.
12090         (get_local_debug_decl): Adjust for pointer_map API.
12091         (convert_nl_goto_reference): Adjust for pointer_map API.
12092         (convert_nl_goto_receiver): Adjust for pointer_map API.
12093         (create_nesting_tree): Create outside GGC space.  Create bitmap on
12094         the new obstack.  Create field_map and var_map as pointer_maps.
12095         (free_nesting_tree): Adjust for changes to create_nesting_tree.
12096         (root): Delete.
12097         (lower_nested_functions): Move root here, no need to NULL it.
12098         Initialize and release the obstack.
12099
12100 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
12101
12102         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
12103         Remove prototypes and make them non-static.
12104         (struct tree_int_map): Remove.
12105         * tree.h (struct tree_int_map): Move here, turning TO into an
12106         unsigned int.
12107         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
12108
12109         * tree.h (TREE_COMPLEXITY): Remove.
12110         (struct tree_exp): Remove complexity field.
12111         * tree.c (build1_stat): Don't set it.
12112
12113 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
12114             Victor Kaplansky  <victork@il.ibm.com>
12115
12116         * tree-vectorizer.c (vect_is_simple_use): Support induction.
12117         (vect_is_simple_reduction): Support reduction with induction as
12118         one of the operands.
12119         (vect_is_simple_iv_evolution): Fix formatting.
12120         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
12121         formatting.  Don't mark induction phis for vectorization.
12122         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
12123         * tree-vect-transform.c (get_initial_def_for_induction): New function.
12124         (vect_get_vec_def_for_operand): Support induction.
12125         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
12126         induction case.
12127         (vectorizable_reduction): Support reduction with induction as one of
12128         the operands.
12129         (vectorizable_type_demotion): Use def-type of stmt argument rather
12130         than dummy def-type.
12131
12132         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
12133         flag_tree_scev_cprop.
12134         * common.opt (tree-scev-cprop): New flag.
12135
12136         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
12137         call to vect_get_new_vect_var.
12138
12139 2007-02-06  Ira Rosen  <irar@il.ibm.com>
12140
12141         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
12142         vectype is not NULL.
12143         (vect_pattern_recog_1): Likewise.
12144
12145 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12146
12147         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
12148         (fold_negate_expr): Likewise.
12149
12150 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
12151
12152         PR debug/30189
12153         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
12154         even if cv-qualification is the same.
12155
12156 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
12157
12158         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
12159         __enable_execute_stack on completion.
12160
12161 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12162
12163         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
12164         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
12165         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
12166         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
12167         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
12168         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
12169         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
12170         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
12171
12172 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12173
12174         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
12175         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
12176         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
12177         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
12178         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
12179         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
12180         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
12181         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
12182         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
12183         umuldi3_highpart_rex64, umulsi3_highpart_insn,
12184         umulsi3_highpart_zext, smuldi3_highpart_rex64,
12185         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
12186         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
12187         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
12188         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
12189         sqrtextenddfxf2_i387): Added amdfam10_decode.
12190
12191         * config/i386/athlon.md (athlon_idirect_amdfam10,
12192         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
12193         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
12194         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
12195         athlon_ivector_store_amdfam10): New define_insn_reservation.
12196         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
12197         amdfam10.
12198
12199 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12200
12201         * config/i386/athlon.md (athlon_call_amdfam10,
12202         athlon_pop_amdfam10, athlon_lea_amdfam10): New
12203         define_insn_reservation.
12204         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
12205         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
12206         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
12207
12208 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12209
12210         * config/i386/athlon.md (athlon_sseld_amdfam10,
12211         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
12212         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
12213
12214 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12215
12216         * config/i386/athlon.md (athlon_sseins_amdfam10): New
12217         define_insn_reservation.
12218         * config/i386/i386.md (sseins): Added sseins to define_attr type
12219         and define_attr unit.
12220         * config/i386/sse.md: Set type attribute to sseins for insertq
12221         and insertqi.
12222
12223 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12224
12225         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
12226         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
12227         ssecomi_load_amdfam10, ssecomi_amdfam10,
12228         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
12229         define_insn_reservation.
12230         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
12231
12232 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12233
12234         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
12235         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
12236         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
12237         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
12238         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
12239         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
12240         define_insn_reservation.
12241
12242         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
12243         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
12244         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
12245         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
12246         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
12247
12248 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12249
12250         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
12251         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
12252         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
12253         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
12254         athlon_ssemul_load_k8): Added amdfam10.
12255
12256 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12257
12258         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
12259         (x86_sse_unaligned_move_optimal): New variable.
12260
12261         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
12262         m_AMDFAM10.
12263         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
12264         for unaligned vector SSE double/single precision loads for AMDFAM10.
12265
12266 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12267
12268         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
12269         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
12270         Define TARGET_CPU_DEFAULT_amdfam10.
12271         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
12272         (processor_type): Add PROCESSOR_AMDFAM10.
12273
12274         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
12275         processor_type in config/i386/i386.h.
12276         Enable imul peepholes for TARGET_AMDFAM10.
12277
12278         * config.gcc: Add support for --with-cpu option for amdfam10.
12279
12280         * config/i386/i386.c (amdfam10_cost): New variable.
12281         (m_AMDFAM10): New macro.
12282         (m_ATHLON_K8_AMDFAM10): New macro.
12283         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
12284         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
12285         x86_promote_QImode, x86_integer_DFmode_moves,
12286         x86_partial_reg_dependency, x86_memory_mismatch_stall,
12287         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12288         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
12289         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
12290         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
12291         Enable/disable for amdfam10.
12292         (override_options): Add amdfam10_cost to processor_target_table.
12293         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
12294         processor_alias_table.
12295         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
12296         (ix86_adjust_cost): Add code for amdfam10.
12297
12298 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
12299
12300         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
12301         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
12302         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
12303         * config/i386/i386.h: Add builtin definition for SSE4A.
12304         * config/i386/i386.md: Add support for ABM instructions
12305         (popcnt and lzcnt).
12306         * config/i386/sse.md: Add support for SSE4A instructions
12307         (movntss, movntsd, extrq, insertq).
12308         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
12309         Add -march=amdfam10 flag.
12310         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
12311         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
12312         and amdfam10.
12313         * doc/extend.texi: Add documentation for SSE4A builtins.
12314
12315 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
12316
12317         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
12318
12319 2007-02-05  Richard Guenther  <rguenther@suse.de>
12320
12321         * tree-vectorizer.h (vectorizable_function): Add argument type
12322         argument, change return type.
12323         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
12324         * tree-vect-transform.c (vectorizable_function): Handle extra
12325         argument, return vectorized function decl.
12326         (build_vectorized_function_call): Remove.
12327         (vectorizable_call): Handle calls with result and argument types
12328         differing.  Handle loop vectorization factor correctly.
12329         * targhooks.c (default_builtin_vectorized_function): Adjust for
12330         extra argument.
12331         * targhooks.h (default_builtin_vectorized_function): Likewise.
12332         * target.h (builtin_vectorized_function): Add argument type
12333         argument.
12334         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
12335         extra argument, allow vectorizing of lrintf.
12336         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
12337         documentation of target hook.
12338
12339 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
12340
12341         PR target/30665
12342         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
12343         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
12344         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
12345
12346 2007-02-05  Roger Sayle  <roger@eyesopen.com>
12347
12348         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
12349         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
12350         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
12351         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
12352         before canonicalizing sincos to cexpi.
12353         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
12354
12355 2007-02-05  Roger Sayle  <roger@eyesopen.com>
12356
12357         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
12358         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
12359         (alpha_init_builtins): Use alpha_add_builtins to process tables.
12360
12361 2007-02-05  Roger Sayle  <roger@eyesopen.com>
12362
12363         * mips-tfile.c (initialize_init_file): Correct endianness test.
12364
12365 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
12366
12367         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
12368         the 'y' constraint.
12369
12370 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
12371
12372         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
12373         saves in a PARALLEL before the register assignments.
12374
12375 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
12376
12377         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
12378         DWARF_FRAME_RETURN_COLUMN to be a general register.
12379         * dwarf2out.c (init_return_column_size): New function, split from...
12380         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
12381         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
12382         to be nongeneral registers.
12383         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
12384         integer registers.
12385         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
12386         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
12387
12388 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
12389
12390         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
12391
12392 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
12393
12394         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
12395         (remove_path): Use can_remove_branch_p and remove_branch instead
12396         of loop_delete_branch_edge.
12397         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
12398         (tree_transform_and_unroll_loop): Remove dead branches immediately.
12399         Update profile using scale_dominated_blocks_in_loop.
12400         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
12401         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
12402         (can_remove_branch_p, remove_branch): Declare.
12403         * tree-cfg.c (tree_can_remove_branch_p): New function.
12404         (tree_cfg_hooks): Add tree_can_remove_branch_p.
12405         * cfgrtl.c (rtl_can_remove_branch_p): New function.
12406         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
12407
12408 2007-02-05  Jan Hubicka  <jh@suse.cz>
12409
12410         PR middle-end/30696
12411         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
12412         nodes in cgraph, don't remove offline copy of the function.
12413
12414 2007-02-04  Jan Hubicka  <jh@suse.cz>
12415
12416         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
12417         vectors might cause maybe_lookup_element_for_expr to be called
12418         on non-sra-candidate.
12419
12420 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
12421
12422         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
12423         config/bfin/bfin.md, config/bfin/predicates.md: Follow
12424         spelling conventions.
12425
12426 2007-02-04  Richard Guenther  <rguenther@suse.de>
12427
12428         PR middle-end/30636
12429         * fold-const.c (try_move_mult_to_index): Make sure to not
12430         overflow one dimension of a multi-dimensional array access.
12431
12432 2007-02-04  Jan Hubicka  <jh@suse.cz>
12433
12434         * passes.c (init_optimization_passes): Reindent.
12435
12436 2007-02-04  Jan Hubicka  <jh@suse.cz>
12437             Eric Botcazou  <ebotcazou@adacore.com>
12438
12439         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
12440         (execute_fixup_cfg): Break out the abnormal goto code.
12441         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
12442         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
12443         (optimize_inline_calls): Call make_nonlocal_label_edges.
12444
12445 2007-02-04  Jan Hubicka  <jh@suse.cz>
12446
12447         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
12448         true when something was changed.
12449         (rename_ssa_copies): When something was changed, do
12450         TODO_remove_unused_locals.
12451         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
12452         add TODO_remove_unused_locals when instruction was removed.
12453
12454 2007-02-04  Jan Hubicka  <jh@suse.cz>
12455
12456         * ipa-inline.c (try_inline): Improve debug output; work on already
12457         inline edges too.
12458         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
12459         call try_inline for already inlined edges too when flattening;
12460         inline also functions that make callee growth but overall unit size
12461         reduce.
12462
12463 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
12464
12465         * config/m32c/bitops.md, config/m32c/jump.md,
12466         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
12467         config/m32r/m32r.h, config/m32r/m32r.md,
12468         config/m32r/predicates.md, config/m68hc11/larith.asm,
12469         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
12470         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
12471         config/mips/mips-protos.h, config/mips/mips.c,
12472         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
12473         config/mn10300/mn10300.h, config/mn10300/predicates.md,
12474         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
12475         spelling conventions.
12476
12477         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
12478         Follow spelling conventions.
12479
12480 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
12481
12482         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
12483         warn about C++0x compatibility.
12484
12485 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
12486
12487         * config/h8300/h8300.c, config/h8300/h8300.h,
12488         config/h8300/h8300.md: Follow spelling conventions.
12489
12490 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
12491
12492         PR middle-end/30667
12493         * combine.c (try_combine): Do not substitute source operand
12494         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
12495
12496 2007-02-03  Jan Hubicka  <jh@suse.cz>
12497
12498         PR gcov-profile/30650
12499         * value-prof.c (stringop_block_profile): Fix handling of size counter;
12500         do not divide by zero for never executed counters.
12501         (tree_find_values_to_profile): Fix counters.
12502         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
12503
12504 2007-02-03  Ian Lance Taylor  <iant@google.com>
12505
12506         * lower-subreg.c (simple_move_operand): New static function,
12507         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
12508         operands.
12509         (simple_move): Call simple_move_operand.
12510         (find_decomposable_subregs): Add special handling of MEMs.
12511         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
12512         meaning of return value.  If we see a hard register, test whether
12513         it can store a word_mode value.  Change all callers.
12514
12515 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12516
12517         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
12518         ftrapv insns and expanders.
12519         (subdi3): Change define_expand operand 1 to arith11_operand, and
12520         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
12521         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
12522         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
12523         respectively.
12524
12525         PR middle-end/30174
12526         * varasm.c (notice_global_symbol): Treat global objects as weak when
12527         flag_shlib is true.
12528
12529 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12530
12531         * emit-rtl.c (dconstpi): Delete.
12532         (dconstsqrt2): New.
12533         (init_emit_once): Delete dconstpi and init dconstsqrt2.
12534         * real.h (dconstpi): Delete.
12535         (dconstsqrt2): New.
12536         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
12537         (fold_builtin_hypot): Likewise.
12538
12539 2007-02-03  Tom Tromey  <tromey@redhat.com>
12540
12541         PR driver/30246
12542         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
12543         -gcoff3, -gxcoff3, -gvms3 implies -dD.
12544
12545 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
12546
12547         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
12548         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
12549         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
12550         config/rs6000/cell.md, config/rs6000/darwin.h,
12551         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
12552         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
12553         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
12554         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
12555         typos.  Follow spelling conventions.
12556         * doc/invoke.texi: Follow spelling conventions.
12557
12558 2007-02-03  Roger Sayle  <roger@eyesopen.com>
12559
12560         * simplify-rtx.c (simplify_relational_operation_1): Implement some
12561         canonicalization transformations that attempt to simplify integer
12562         constant comparisons to become comparisons against zero.
12563
12564 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12565
12566         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
12567         fabs(x)*sqrt(2).
12568         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
12569         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
12570
12571 2007-02-02  Mike Stump  <mrs@apple.com>
12572
12573         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
12574         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
12575         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
12576         generate a branch island.
12577
12578 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
12579
12580         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
12581         (xtensa_legitimate_address_p): New.
12582         (xtensa_legitimize_address): New.
12583         (xtensa_output_addr_const_extra): New.
12584         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
12585         (BASE_REG_P): New.
12586         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
12587         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
12588         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
12589         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
12590         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
12591         (xtensa_legitimize_address): New.
12592         (xtensa_output_addr_const_extra): New.
12593
12594 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
12595
12596         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
12597
12598 2007-02-02  Ian Lance Taylor  <iant@google.com>
12599
12600         * expmed.c (expand_divmod): Add comment.
12601
12602 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
12603
12604         * emit-rtl.c (renumber_insns): Remove.
12605         * flags.h: Remove the extern for flag_renumber_insns.
12606         * rtl.h: Remove the prototype for renumber_insns.
12607         * toplev.c (flag_renumber_insns): Remove.
12608
12609 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
12610
12611         Revert for x86 darwin:
12612         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
12613
12614         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
12615         code before the following patch under TARGET_MACHO.
12616         (ix86_function_value_regno_p): Likewise.
12617
12618 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12619
12620         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
12621         COMPLEX_EXPR.
12622
12623 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
12624
12625         PR target/29682
12626         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
12627         general or fp registers.  Add comments.
12628         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
12629
12630 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
12631
12632         * pointer-set.c (insert_aux): Only return insertion slot.
12633         (pointer_set_insert): Adjust.
12634         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
12635         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
12636         pointer_map_traverse): New.
12637         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
12638         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
12639         pointer_map_contains, pointer_map_traverse): Declare.
12640
12641 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12642
12643         PR middle-end/30473
12644         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
12645         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
12646
12647 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
12648
12649         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
12650
12651         (struct _dep): New type.
12652         (dep_t): New typedef.
12653         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
12654         (DEP_STATUS): New access macro.  The macro with the same name was
12655         renamed to DEP_LINK_STATUS.
12656         (dep_init): Declare function
12657
12658         (struct _dep_link): New type.
12659         (dep_link_t): New typedef.
12660         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
12661         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
12662         (DEP_LINK_STATUS): New macro.
12663         (debug_dep_links): New debug function.
12664
12665         (struct _deps_list): New type.
12666         (deps_list_t): New typedef.
12667         (DEPS_LIST_FIRST): New access macro.
12668         (FOR_EACH_DEP_LINK): New cycle macro.
12669         (create_deps_list, free_deps_list, delete_deps_list): Declare
12670         functions.
12671         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
12672         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
12673         (copy_deps_list_change_con): Ditto.
12674
12675         (move_dep_link): Declare function.
12676
12677         (struct _dep_node): New type.
12678         (dep_node_t): New typedef.
12679         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
12680
12681         (struct haifa_insn_data.back_deps): New field to hold backward
12682         dependencies of the insn.
12683         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
12684         to deps_list_t.
12685         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
12686         Change its type to deps_list_t.
12687         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
12688         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
12689         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
12690
12691         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
12692
12693         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
12694
12695         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
12696         all callers.
12697         (dep_cost): Declare.
12698
12699         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
12700         (ds_to_dk, dk_to_ds): New functions.
12701
12702         (init_dep_1): New static function.
12703         (init_dep): New function.
12704         (copy_dep): New static function.
12705
12706         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
12707         functions.
12708         (detach_dep_link): New static function.
12709         (move_dep_link): New function.
12710
12711         (dep_links_consistent_p, dump_dep_links): New static functions.
12712         (debug_dep_links): New debugging function.
12713
12714         (deps_obstack, dl_obstack, dn_obstack): New static variables.
12715
12716         (alloc_deps_list, init_deps_list): New static functions.
12717         (create_deps_list): New function.
12718         (clear_deps_list): New static function.
12719         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
12720         (deps_list_consistent_p, dump_deps_list): New static functions.
12721         (debug_deps_list): New function.
12722         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
12723         functions.
12724         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
12725
12726         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
12727         use new scheduler dependencies lists.
12728         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
12729         (sched_analyze): Ditto.  Initialize dependencies lists.
12730         (add_forw_dep, compute_forward_dependences): Update to use new
12731         scheduler dependencies lists.
12732
12733         (init_dependency_caches): Init deps_obstack.
12734         (free_dependency_caches): Free deps_obstack.
12735
12736         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
12737         new scheduler dependencies lists.
12738         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
12739         (add_back_forw_dep, delete_back_forw_dep): Ditto.
12740
12741         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
12742         Update to use new scheduler dependencies lists.
12743         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
12744         (debug_dependencies): Ditto.
12745         (schedule_region): Update comments.
12746
12747         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
12748         scheduler dependencies lists.
12749         (schedule_ebb): Update comments.
12750
12751         * rtl.def (DEPS_LIST): Remove.
12752
12753         * lists.c (unused_deps_list): Remove.
12754         (free_list): Update assertions.
12755
12756         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
12757         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
12758
12759         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
12760         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
12761
12762         * haifa-sched.c (comments): Update.
12763         (insn_cost1): Remove.  Inline the code into insn_cost ().
12764         (insn_cost): Update to use new scheduler dependencies lists.  Move
12765         processing of the dependency cost to dep_cost ().
12766         (dep_cost): New function.  Use it instead of insn_cost () when
12767         evaluating cost of the dependency.  Use compatible interface to
12768         interact with the target.
12769         (priority): Update to use new scheduler dependencies lists.
12770         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
12771         with greater number of insns that depend on the insn.
12772         (schedule_insn): Update to use new scheduler dependencies lists.  Add
12773         code to free backward dependencies lists.  Inline and optimize code
12774         from resolve_dep () - see PR28071.
12775         (ok_for_early_queue_removal): Update to use new scheduler dependencies
12776         lists.  Update call to targetm.sched.is_costly_dependence hook.
12777
12778         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
12779         scheduler dependencies lists.
12780
12781         (resolve_dep): Remove.  Move the logic to schedule_insn ().
12782         (init_h_i_d): Initialize dependencies lists.
12783
12784         (process_insn_depend_be_in_spec): Rename to
12785         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
12786         dependencies lists.
12787         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
12788         Update to use new scheduler dependencies lists.
12789         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
12790
12791         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
12792         new scheduler dependencies lists.
12793         (build_intra_loop_deps): Ditto.
12794
12795         * target.h (struct _dep): Declare to use in
12796         gcc_target.sched.is_costly_dependence.
12797         (struct gcc_target.sched.adjust_cost): Fix typo.
12798         (struct gcc_target.sched.is_costly_dependence): Change signature to use
12799         single dep_t parameter instead of an equivalent triad.
12800         (struct gcc_target.sched.adjust_cost_2): Remove.
12801
12802         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
12803
12804         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
12805
12806         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
12807         documentation.
12808         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
12809
12810         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
12811         (REG_DEP_TRUE): Document.
12812
12813         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
12814         Change signature to correspond to the targetm.sched.adjust_cost hook.
12815         Update use in TARGET_SCHED_ADJUST_COST_2.
12816         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
12817         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
12818         new scheduler dependencies lists.
12819         (ia64_gen_check): Ditto.
12820
12821         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
12822         dependencies lists.
12823
12824         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
12825         signature to correspond to the targetm.sched.is_costly_dependence hook.
12826         (is_costly_group): Update to use new scheduler dependencies lists.
12827
12828         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
12829         instead of INSN_COST () macro.
12830
12831 2007-02-01  Ian Lance Taylor  <iant@google.com>
12832
12833         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
12834
12835 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
12836
12837         * pa.md (tp_load): Correct mfctl instruction syntax.
12838
12839 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
12840
12841         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
12842         altivec_padding_size calculation on AIX.  Improve comment, add
12843         assert to verify that it's right.
12844
12845         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
12846         64-bit.
12847
12848 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
12849
12850         PR inline-asm/28686
12851         * global.c (global_alloc): Add mising initialization of
12852         ELIMINABLE_REGSET.
12853
12854 2007-02-01  Roger Sayle  <roger@eyesopen.com>
12855
12856         * alias.c (init_alias_analysis): Correct whitespace.
12857         * bb-reorder.c (fix_edges_for_rarely_executed_code,
12858         partition_hot_cold_basic_blocks): Likewise.
12859         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
12860         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
12861         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
12862         fold_builtin_snprintf_chk, fold_builtin_printf,
12863         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
12864         do_mpfr_arg3, do_mpfr_sincos): Likewise.
12865         * cfgcleanup.c (cleanup_cfg): Likewise.
12866         * cfgexpand.c (tree_expand_cfg): Likewise.
12867         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
12868         * function.c (get_next_funcdef_no): Likewise.
12869         * gengtype.c (main): Likewise.
12870         * genmodes.c (main): Likewise.
12871         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
12872         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
12873         * ifcvt.c (noce_emit_move_insn): Likewise.
12874         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
12875         Likewise.
12876         * stor-layout.c (get_best_mode): Likewise.
12877         * tree-ssa-loop-niter.c (get_val_for): Likewise.
12878         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
12879         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
12880         perform_var_substitution, solve_graph): Likewise.
12881         * tree-vrp.c (vrp_finalize): Likewise.
12882
12883 2007-02-01  Ian Lance Taylor  <iant@google.com>
12884
12885         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
12886         high part of a paradoxical subreg, return a constant zero.
12887
12888 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
12889
12890         * toplev.c (lang_dependent_init): Call init_set_costs.
12891         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
12892
12893 2007-02-01  Richard Guenther  <rguenther@suse.de>
12894
12895         PR middle-end/30656
12896         * fold-const.c (fold_negate_expr): Allow negating a
12897         constant if overflow does not change.
12898
12899 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12900
12901         * doc/c-tree.texi (Expression trees): Improve markup.
12902         * doc/tm.texi (Register Classes, Addressing Modes)
12903         (Floating Point): Fix spacing after abbreviations.  Fix some
12904         typos.
12905
12906 2007-02-01  Ben Elliston  <bje@au.ibm.com>
12907
12908         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
12909         * doc/contrib.texi: Likewise.
12910         * doc/install.texi: Likewise.
12911
12912 2007-01-31  Richard Henderson  <rth@redhat.com>
12913             Ian Lance Taylor  <iant@google.com>
12914
12915         * lower-subreg.c: New file.
12916         * rtl.def (CONCATN): Define.
12917         * passes.c (init_optimization_passes): Add pass_lower_subreg and
12918         pass_lower_subreg2.
12919         * emit-rtl.c (update_reg_offset): New static function, broken out
12920         of gen_rtx_REG_offset.
12921         (gen_rtx_REG_offset): Call update_reg_offset.
12922         (gen_reg_rtx_offset): New function.
12923         * regclass.c: Revert patch of 2006-03-05, restoring
12924         reg_scan_update.
12925         (clear_reg_info_regno): New function.
12926         * dwarf2out.c (concatn_loc_descriptor): New static function.
12927         (loc_descriptor): Handle CONCATN.
12928         * common.opt (fsplit_wide_types): New option.
12929         * opts.c (decode_options): Set flag_split_wide_types when
12930         optimizing.
12931         * timevar.def (TV_LOWER_SUBREG): Define.
12932         * rtl.h (gen_reg_rtx_offset): Declare.
12933         (reg_scan_update): Declare.
12934         * regs.h (clear_reg_info_regno): Declare.
12935         * tree-pass.h (pass_lower_subreg): Declare.
12936         (pass_lower_subreg2): Declare.
12937         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
12938         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
12939         -fsplit-wide-types.
12940         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
12941         * Makefile.in (OBJS-common): Add lower-subreg.o.
12942         (lower-subreg.o): New target.
12943
12944 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
12945
12946         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
12947
12948 2007-01-31  Anatoly Sokolov <aesok@post.ru>
12949
12950         PR target/19087
12951         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
12952
12953 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12954
12955         PR middle-end/29335
12956         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
12957
12958 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
12959
12960         * cfgloop.h: Include vec-prim.h.
12961         (enum li_flags): Remove LI_ONLY_OLD.
12962         (loop_iterator): Changed.
12963         (fel_next, fel_init): Iterate over loop tree.
12964         (FOR_EACH_LOOP_BREAK): New macro.
12965         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
12966         FOR_EACH_LOOP.
12967         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
12968         * modulo-sched.c (sms_schedule): Ditto.
12969         * tree-vectorizer.c (vectorize_loops): Ditto.
12970         * doc/loop.texi: Update information on loop numbering and behavior of
12971         FOR_EACH_LOOP wrto new loops.
12972         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
12973         add_to_evolution_1): Test nestedness of loops instead of comparing
12974         their numbers.
12975         * tree-chrec.c (chrec_fold_plus_poly_poly,
12976         chrec_fold_multiply_poly_poly, chrec_evaluate,
12977         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
12978         reset_evolution_in_loop): Ditto.
12979         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
12980
12981 2007-01-31  Dirk Mueller  <dmueller@suse.de>
12982
12983         * c-common.c (warn_about_parentheses): Separate warning about
12984         un-parenthized sequence of comparison operators from the one
12985         which is supposed to warn about x <= y <= z.
12986
12987 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
12988
12989         * optabs.h (enum optab_index): Add new OTI_isinf.
12990         (isinf_optab): Define corresponding macro.
12991         * optabs.c (init_optabs): Initialize isinf_optab.
12992         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
12993         patterns.
12994         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
12995         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
12996         using isinf_optab.
12997         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
12998         expand_builtin_interclass_mathfn.
12999         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
13000         * config/i386/i386.md (UNSPEC_FXAM): New constant.
13001         (fxam<mode>2_i387): New insn pattern.
13002         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
13003         built-in functions as x87 inline asm.
13004
13005 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
13006
13007         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
13008
13009 2007-01-30  Eric Christopher  <echristo@apple.com>
13010
13011         * config.gcc: Add geode.
13012
13013 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
13014
13015         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
13016         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
13017         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
13018         value-prof.c: Fix comment typos.
13019
13020 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13021
13022         PR c++/24745
13023         * doc/invoke.texi (Wpointer-arith): Document warning.
13024
13025 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
13026
13027         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
13028         the list of discrepancies from the draft TR.
13029
13030 2007-01-30  Dirk Mueller  <dmueller@suse.de>
13031
13032         PR c++/30601
13033         * doc/invoke.texi (-Wreturn-type): Update description to
13034         match new behavior.
13035
13036 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
13037
13038         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
13039
13040 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
13041
13042         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
13043         to handle optabs that operate on floating point input argument and
13044         output to integer output.
13045         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
13046         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
13047         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
13048         expand_builtin_interclass_mathfn ().
13049         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
13050         (ilogbsi2): Remove.
13051         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
13052         ilogbl built-in functions as x87 intrinsics.
13053
13054 2007-01-30  Richard Guenther  <rguenther@suse.de>
13055
13056         PR middle-end/27657
13057         * dwarf2out.c (reference_to_unused): Query varpool if the
13058         variable was output.
13059
13060 2007-01-30  Richard Guenther  <rguenther@suse.de>
13061
13062         PR middle-end/30313
13063         * passes.c (execute_one_pass): Reset in_gimple_form to not
13064         confuse non-unit-at-a-time mode.
13065
13066 2007-01-29  Roger Sayle  <roger@eyesopen.com>
13067             Richard Guenther  <rguenther@suse.de>
13068
13069         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
13070         avoid undefined behaviour on overflow.  Use force_fit_type_double
13071         to construct the constant with the specified TREE_OVERFLOW.
13072
13073 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
13074
13075         * config/dfp-bit.c: Add parameterized support for fp exceptions.
13076         * config/dfp-bit.h: Ditto.
13077
13078 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13079
13080         * c-decl.c (pop_scope): Replace warnings with call to
13081         warn_for_unused_label.
13082         * c-common.h (warn_for_unused_label): Declare.
13083         * c-common.c (warn_for_unused_label): Define.
13084
13085 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13086
13087         * tree-optimize.c (update_inlined_to_pointers): Delete unused
13088         function.
13089
13090 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
13091
13092         * Makefile.in (USER_H): Remove decfloat.h.
13093         * ginclude/decfloat.h: Delete, moving contents to ...
13094         * ginclude/float.h: Add support for decimal floating point,
13095         guarded by __STDC_WANT_DEC_FP__.
13096
13097 2007-01-29  Mike Stump  <mrs@apple.com>
13098
13099         * doc/gccint.texi (Top): Rename Loop Representation to Loop
13100         Analysis and Representation to resolve case insensitive conflict.
13101         * doc/loop.texi (Loop Analysis and Representation): Likewise.
13102
13103 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
13104
13105         * tree.h (struct tree_memory_tag): Add aliases member.
13106         (MTAG_ALIASES): New macro.
13107         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
13108         (add_may_alias): Remove pointer-set. Update for may_aliases being
13109         a bitmap.
13110         (mark_aliases_call_clobbered): Update for may_aliases being a
13111         bitmap.
13112         (compute_tag_properties): Ditto.
13113         (create_partition_for): Ditto.
13114         (compute_memory_partitions): Ditto.
13115         (dump_may_aliases_for): Ditto.
13116         (is_aliased_with): Ditto.
13117         (add_may_alias_for_new_tag): Ditto.
13118         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
13119         (compute_is_aliased): New function.
13120         (compute_may_aliases): Call compute_is_aliased).
13121         (init_alias_info): Initialize alias_bitmap_obstack.
13122         (union_alias_set_into): New function.
13123         (compute_flow_sensitive_aliasing): Use union_aliases_into.
13124         (have_common_aliases_p): Rewrite to take two bitmaps and use
13125         intersection.
13126         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
13127         Update for bitmaps.
13128         (finalize_ref_all_pointers): Update for add_may_alias changes.
13129         (new_type_alias): Ditto.
13130         * tree-flow-inline.h (may_aliases): Return a bitmap.
13131         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
13132         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
13133         may_aliases being a bitmap.
13134         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
13135         may_aliases now returns a bitmap.
13136         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
13137         being a bitmap.
13138         * tree-ssa-operands.c (add_virtual_operand): Update for
13139         may_aliases being a bitmap.
13140
13141 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
13142
13143         PR tree-optimization/30630
13144         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
13145         variable as changed.
13146
13147 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
13148
13149         PR c++/28266
13150         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
13151         expanded only once even if an error occurs.
13152
13153 2007-01-29  Ben Elliston  <bje@au.ibm.com>
13154
13155         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
13156         (__gcov_average_profiler): Likewise.
13157         (__gcov_ior_profiler): Likewise.
13158         (__gcov_merge_ior): Likewise.
13159
13160 2007-01-28  Jan Hubicka  <jh@suse.cz>
13161
13162         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
13163         * value-prof.c (stringop_block_profile): Likewise.
13164
13165 2007-01-28  Jan Hubicka  <jh@suse.cz>
13166
13167         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
13168         variant handling histograms; add wrapper.
13169         (clear_storage_via_libcall): Export.
13170         (emit_block_move_hints): Break out from ...; add histograms.
13171         (emit_block_move): ... this one.
13172         (clear_storage_hints): Break out from ...; add histograms.
13173         (clear_storage): ... this one.
13174         (set_storage_via_memset): Handle histogram.
13175         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
13176         (clear_storage_hints, clear_storage_via_libcall): Declare.
13177         (set_storage_via_setmem): Update prototype.
13178         * doc/md.texi (movmem, setmem): Document new arguments.
13179
13180         * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
13181         new histograms.
13182         (stringop_block_profile): New global function.
13183         (tree_stringops_values_to_profile): Profile block size and alignment.
13184         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
13185         HIST_TYPE_IOR.
13186         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
13187         (stringop_block_profile): Declare.
13188         * builtins.c: Include value-prof.h.
13189         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
13190         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
13191         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
13192         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
13193         * profile.c (instrument_values): Add new counters.
13194         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
13195         calls.
13196         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
13197         (tree_init_edge_profiler): Build new profilers.
13198         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
13199         (pass_tree_profile): Add dump.
13200         (tree_profile_hooks): Update.
13201         * Makefile.in (LIBGCOV): Add new constants.
13202         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
13203         __gcov_ior_profiler): New.
13204         * i386.md (movmem/setmem expanders): Add new optional arguments.
13205
13206 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
13207
13208         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
13209
13210 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
13211
13212         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
13213         (tree_unswitch_single_loop): Pass eni_size_weights to
13214         tree_num_loop_insns.
13215         * tree-ssa-loop-manip.c: Include tree-inline.h.
13216         (can_unroll_loop_p): Pass eni_size_weights to
13217         tree_num_loop_insns.
13218         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
13219         Pass eni_size_weights to estimate_num_insns.
13220         * tree.h (init_inline_once): Export.
13221         * toplev.c (backend_init): Call init_inline_once.
13222         * cgraphunit.c (cgraph_process_new_functions,
13223         cgraph_analyze_function): Pass eni_inlining_weights to
13224         estimate_num_insns.
13225         * ipa-inline.c (compute_inline_parameters): Ditto.
13226         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
13227         to estimate_num_insns.
13228         (try_unroll_loop_completely): Pass eni_size_weights to
13229         tree_num_loop_insns.
13230         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
13231         ot estimate_num_insns.
13232         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
13233         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
13234         * tree-inline.c (eni_inlining_weights, eni_size_weights,
13235         eni_time_weights): New variables.
13236         (init_inline_once): Initialize them.
13237         (struct eni_data): Mew.
13238         (estimate_num_insns_1, estimate_num_insns): Use weights.
13239         * tree-inline.h (struct eni_weights_d): New.
13240         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
13241         (estimate_num_insns): Declaration changed.
13242         * cfgloop.h (tree_num_loop_insns): Declaration changed.
13243         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
13244         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
13245
13246 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
13247
13248         * tree-data-ref.c (conflict_fn): Assert that the number of affine
13249         relations in the conflict function is valid.
13250
13251 2007-01-27  Ian Lance Taylor  <iant@google.com>
13252
13253         * common.opt: Add fstrict-overflow.
13254         * opts.c (decode_options): Set flag_strict_overflow if -O2.
13255         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
13256         (TYPE_OVERFLOW_UNDEFINED): Define.
13257         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
13258         Replace all uses.
13259         * tree.h (TYPE_TRAP_SIGNED): Don't define.
13260         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
13261         (fold_negate_expr): Likewise.
13262         (make_range): Likewise.
13263         (extract_muldiv_1): Likewise.
13264         (maybe_canonicalize_comparison): Likewise.
13265         (fold_comparison): Likewise.
13266         (fold_binary): Likewise.
13267         (tree_expr_nonnegative_p): Likewise.
13268         (tree_expr_nonzero_p): Likewise.
13269         * tree-vrp.c (compare_values): Likewise.
13270         (extract_range_from_binary_expr): Likewise.
13271         (extract_range_from_unary_expr): Likewise.
13272         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
13273         Likewise.
13274         (nowrap_type_p): Likewise.
13275         * tree-scalar-evolution.c (simple_iv): Likewise.
13276         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
13277         (build_range_check): Likewise.
13278         (extract_muldiv_1): Likewise.
13279         (fold_comparison): Likewise.
13280         * tree-vrp.c (vrp_int_const_binop): Likewise.
13281         (extract_range_from_unary_expr): Likewise.
13282         * convert.c (convert_to_integer): Likewise.
13283         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
13284         (fold_comparison): Likewise.
13285         (fold_binary): Likewise.
13286         * optabs.c (optab_for_tree_code): Likewise.
13287         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
13288         * simplify-rtx.c (simplify_const_relational_operation): Check
13289         flag_strict_overflow and flag_trapv.
13290         (simplify_const_relational_operation): Likewise.
13291         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
13292         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
13293         -fstrict-overflow.
13294
13295 2007-01-27  Roger Sayle  <roger@eyesopen.com>
13296
13297         * tree.c (tree_fold_gcd): Delete.
13298         * tree.h (tree_fold_gcd): Remove prototype.
13299         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
13300         test whether one constant integer is a multiple of another.  Instead
13301         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
13302         * fold-const.c (multiple_of_p):  We've determined both TOP and
13303         BOTTOM are integer constants so we can call int_const_binop directly
13304         instead of the more generic const_binop.
13305
13306 2007-01-27  Roger Sayle  <roger@eyesopen.com>
13307
13308         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
13309         1*X check that the constant hasn't overflowed, to preserve the
13310         TREE_OVERFLOW bit.
13311         (round_up): Provide an efficient implementation when rouding-up an
13312         INTEGER_CST to a power-of-two.
13313
13314 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13315
13316         * doc/sourcebuild.texi: Add comma for clarity.
13317         * doc/extend.texi: Fix some typos.
13318         * doc/passes.texi: Likewise.
13319         * doc/cppinternals.texi: Likewise.
13320         * doc/c-tree.texi: Likewise.
13321         * doc/tree-ssa.texi: Likewise.
13322         * doc/install.texi: Likewise.
13323
13324 2007-01-27  Jan Hubicka  <jh@suse.cz>
13325
13326         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
13327         (pass_sra): Do not require alias information.
13328         * passes.c (init_optimization_passes): Add SRA
13329
13330 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
13331
13332         * tracer.c (rest_of_handle_tracer): We already cleaned
13333         up the CFG in tracer() so don't do it here again.
13334         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
13335         cleanup_cfg here, either.  And don't call renumber_insns.
13336
13337         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
13338         and BB_HEAD are in the insn stream here.  Instead make sure
13339         that BB_INSN is valid on all insns.  Also, do check here that
13340         there are no pending branch predictions...
13341         (rtl_verify_flow_info): ...instead of doing it here.  Checks
13342         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
13343         here.
13344
13345 2007-01-26  Roger Sayle  <roger@eyesopen.com>
13346
13347         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
13348         function to simplify/factorize operand order canonicalization.
13349         (ix86_fixup_binary_operands): Reorganize using the above function.
13350         (ix86_binary_operator_ok): Likewise.
13351
13352 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
13353
13354         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
13355         file scope from optimize_attrs.
13356         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
13357         up search.
13358         (optimize_attrs): Clear insn_code_values after freeing it.
13359
13360 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
13361
13362         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
13363         a parts.base assignment.
13364
13365 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
13366
13367         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
13368         (compute_subscript_distance, initialize_data_dependence_relation,
13369         finalize_ddr_dependent, analyze_ziv_subscript,
13370         analyze_siv_subscript_cst_affine,
13371         compute_overlap_steps_for_affine_univar,
13372         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
13373         analyze_siv_subscript, analyze_miv_subscript,
13374         analyze_overlapping_iterations, subscript_dependence_tester_1,
13375         compute_self_dependence, free_dependence_relation): Work
13376         with affine_fn instead of chrecs.
13377         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
13378         common_affine_function, affine_function_base,
13379         affine_function_constant_p, affine_fn_op, affine_fn_plus,
13380         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
13381         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
13382         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
13383         (all_chrecs_equal_p): Removed.
13384         * tree-data-ref.h (affine_fn, conflict_function): New types.
13385         (struct subscript): Change type of conflicting_iterations_in_a
13386         and conflicting_iterations_in_b.
13387
13388 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
13389
13390         PR other/30182
13391         * config/pa/pa.h (TARGET_HPUX_11): New.
13392         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
13393         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
13394
13395 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
13396         Richard Guenther  <rguenther@suse.de>
13397
13398         * tree-ssa-structalias.c (solve_graph): Handle case
13399         we merged the variable to another.
13400
13401 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13402
13403         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
13404         functions.
13405
13406         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
13407         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
13408
13409 2007-01-25  DJ Delorie  <dj@redhat.com>
13410
13411         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
13412         allow changes to modes which don't fit in those registers.
13413
13414         * reload1.c (choose_reload_regs): Check for invalid subregs before
13415         computing their locations, not after.
13416
13417 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
13418
13419         PR 25127
13420         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
13421         save Altivec registers in an eh_return function.
13422         (compute_vrsave_mask): Likewise.
13423         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
13424         for saving Altivec registers.
13425         (rs6000_emit_prologue): Don't allocate stack twice in
13426         eh_return function.  Correct expected value of altivec_save_offset
13427         when using save_world.  Describe save of R0 to stack when using
13428         save_world.  Describe stack pointer adjustment when using
13429         save_world.  Remove duplicated eh_return parameter register saving.
13430         Update sp_offset variable after save_world.
13431         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
13432         darwin-world.asm.
13433         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
13434         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
13435         implies Altivec.
13436
13437 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
13438
13439         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
13440
13441 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
13442
13443         PR other/30182
13444         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
13445         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
13446
13447 2007-01-25  Richard Guenther  <rguenther@suse.de>
13448
13449         * doc/invoke.texi (-Wcoverage-mismatch): Document.
13450         * common.opt (-Wcoverage-mismatch): New warning option.
13451         * coverage.c (get_coverage_counts): Ignore coverage mismatch
13452         if -Wcoverage-mismatch is given.
13453
13454 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
13455
13456         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
13457         (ipcp_driver): Change to static definition.
13458         Add dumping of the ifunctions.
13459         (constant_val_insert): Remove unused parameter. Support for SSA.
13460         (ipcp_propagate_const): Support for SSA.
13461         (ipcp_profile_bb_print): Print only analyzed nodes.
13462         (ipcp_replace_map_create): Remove support for Fortran constant
13463         for now.
13464         * ipa-prop.c (ipa_method_modify_stmt,
13465         ipa_callsite_compute_param): Support for SSA.
13466         * ipa-prop.h (ipcp_driver): Remove declaration.
13467         (IS_VALID_TREE_MAP_INDEX): Add define.
13468
13469 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
13470
13471         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
13472
13473 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13474
13475         PR middle-end/30447
13476         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
13477         constant argument to cabs and do it without checking for
13478         -funsafe-math-optimizations.
13479
13480 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
13481
13482         * c-common.h (RID_FIRST_CXX0X): New.
13483         (RID_LAST_CXX0X): New.
13484         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
13485         by -Wall.
13486         * c.opt (Wc++0x-compat): New.
13487         * doc/invoke.texi (-Wc++0x-compat): Document.
13488
13489 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13490
13491         * builtins.c (fold_builtin_carg): New.
13492         (fold_builtin_1): Use it.
13493
13494 2007-01-24  Jan Hubicka  <jh@suse.cz>
13495
13496         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
13497
13498         * ipa-inline.c (initial_insns, max_insns): Delete.
13499         (compute_max_insns): New function.
13500         (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
13501         of insns as base for code growth.
13502         (cgraph_decide_inlining): Make initial_insns local; do not compute
13503         max_insns.
13504         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
13505         * doc/invoke.texi (inline-unit-growth): Update docs.
13506
13507 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
13508
13509         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
13510         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
13511         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
13512         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
13513         for CPUs that have PTA_CX16 set.
13514
13515         PR middle-end/27416
13516         * gimplify.c (omp_check_private): New function.
13517         (gimplify_scan_omp_clauses): Use it for
13518         firstprivate/lastprivate/reduction.
13519
13520         PR middle-end/30494
13521         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
13522         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
13523
13524         PR middle-end/30421
13525         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
13526         If lower_lastprivate_clauses emits some statements, append them
13527         to dlist rather than body_p and to body_p append an initializer.
13528         (lower_omp_for): Adjust caller.
13529
13530 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
13531
13532         * target.h (globalize_decl_name): New.
13533         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
13534         * output.h (default_globalize_decl_name): New.
13535         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
13536         globalize_label.
13537         (globalize_decl): Ditto.
13538         (default_globalize_decl_name): New.
13539         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
13540         (ia64_handle_version_id_attribute): New.
13541         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
13542         (ia64_asm_output_external): Use globalize_decl_name instead
13543         of globalize_label.
13544         * doc/extend.texi (version_id): New pragma.
13545         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
13546
13547 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13548
13549         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
13550         _uleb128_t and _Unwind_SWord with _sleb128_t.
13551         * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
13552         uw_frame_state_for, uw_update_context_1): Likewise.
13553         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
13554         * unwind-pe.h (read_uleb128, read_sleb128,
13555         read_encoded_value_with_base): Likewise.
13556         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
13557
13558 2007-01-24  Richard Guenther  <rguenther@suse.de>
13559
13560         * builtins.c (expand_builtin_cexpi): Get the fndecl
13561         for cexp in the correct way.
13562
13563 2007-01-24  Jan Hubicka  <jh@suse.cz>
13564
13565         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
13566
13567 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13568
13569         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
13570         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
13571         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
13572         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
13573         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
13574         __SIZEOF_PTRDIFF_T__.
13575         * doc/cpp.texi: Documentation for the new builtin macros added.
13576
13577 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
13578
13579         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
13580         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
13581         instead of operands[2] to avoid access past the end of array.
13582
13583 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
13584
13585         * reload1.c (emit_reload_insns): Pass the reload register
13586         for a non-spill output reload through forget_old_reloads_1.
13587
13588 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
13589
13590         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13591         _SOFT_DOUBLE if doubles use software floating-point.
13592         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
13593         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
13594         * config/rs6000/darwin-ldouble.c: Also compile functions for
13595         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
13596         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
13597         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
13598         commented-out long double override.
13599         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
13600         * config/rs6000/eabispe.h: Likewise.
13601         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
13602         long double for non-SPE.
13603         (rs6000_handle_option): Likewise.
13604         (invalid_e500_subreg): Disallow more subregs involding DImode,
13605         DFmode, TImode or TFmode.
13606         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
13607         E500 double.
13608         (legitimate_lo_sum_address_p): Also check for TFmode for E500
13609         double.
13610         (rs6000_legitimize_address): Also handle TFmode for E500 double.
13611         (rs6000_legitimize_reload_address): Also handle TFmode for E500
13612         double.
13613         (rs6000_legitimate_address): Also check for TFmode for E500
13614         double.
13615         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
13616         (spe_build_register_parallel): Handle TFmode and TCmode.
13617         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
13618         double.
13619         (function_arg): Handle TFmode and TCmode for E500 double.
13620         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
13621         in general.
13622         (print_operand): Handle TFmode and TImode for %y.
13623         (rs6000_generate_compare): Handle TFmode comparisons for E500
13624         double.
13625         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
13626         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
13627         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
13628         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
13629         TFmode for E500 double.
13630         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
13631         (floatsidf2): Enable for E500 double.
13632         (movtf_softfloat): Use rs6000_nonimmediate_operand.
13633         (extenddftf2): Change to extenddftf2_fprs.
13634         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
13635         depending on TARGET_E500_DOUBLE.
13636         (extendsftf2): Enable for E500 double.
13637         (trunctfdf2): Enable for E500 double.
13638         (trunctfsf2): Change to trunctfsf2_fprs.
13639         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
13640         depending on TARGET_E500_DOUBLE.
13641         (floatsitf2): Enable for E500 double.
13642         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
13643         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
13644         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
13645         (negtf2): Change to negtf2_internal.
13646         (negtf2): New expander.
13647         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
13648         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
13649         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
13650         (movdi_internal32): Use rs6000_nonimmediate_operand.
13651         (unnamed splitter): Likewise.
13652         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
13653         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
13654         (SPE64TF, DITI): New mode macros.
13655         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
13656         modes.
13657         (frob_tf_ti): New.
13658         (frob_<mode>_di_2): New.
13659         (frob_tf_di_8_2): New.
13660         (frob_di_df): Change to frob_di_<mode>; allow more modes.
13661         (frob_ti_tf): New.
13662         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
13663         more modes.
13664         (frob_ti_<mode>_8_2): New.
13665         (frob_ti_tf_2): New.
13666         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
13667         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
13668         TFmode.
13669         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
13670         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
13671         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
13672         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
13673         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
13674         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
13675         tsttflt_gp): New.
13676
13677 2007-01-23  Ian Lance Taylor  <iant@google.com>
13678
13679         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
13680         insn-*.o first.
13681         (OBJS-archive): Reformat, alphabetize.
13682         (OBJS): Change out_object_file to OBJS-md.
13683
13684 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
13685
13686         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
13687         JUMP_P and CALL_P predicates where applicable.
13688         * config/i386/i386.c: Ditto.
13689         * config/i386/i386.md: Ditto.
13690         * config/i386/mmx.md: Ditto.
13691         * config/i386/predicates.md: Ditto.
13692
13693 2007-01-22  Andreas Schwab  <schwab@suse.de>
13694
13695         * config/m68k/m68k.h: Fix comment.
13696
13697 2007-01-22  Jan Hubicka  <jh@suse.cz>
13698
13699         * passes.c (init_optimization_passes): Do not rerun
13700         pass_early_warn_uninitialized.
13701
13702 2007-01-22  Richard Guenther  <rguenther@suse.de>
13703
13704         PR tree-optimization/30038
13705         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
13706         function.
13707         (execute_cse_sincos_1): Likewise.
13708         (execute_cse_sincos): Likewise.
13709         (gate_cse_sincos): Likewise.
13710         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
13711         the cexpi() canonicalization of sincos().
13712         * tree-pass.h (pass_cse_sincos): Declare.
13713         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
13714
13715 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
13716
13717         PR rtl-optimization/29329
13718         * combine.c (replaced_rhs_insn): Rename to i2mod.
13719         (replaced_rhs_value): Rename to i2mod_new_rhs.
13720         (i2mod_old_rhs): New global variable.
13721         (combine_instructions): Adjust for above change.  Save a copy of
13722         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
13723         note are substituted in the second instruction.
13724         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
13725         ditch the note if it pertains to the second eliminated register
13726         and this register is mentioned in i2mod_old_rhs.
13727
13728         Revert:
13729         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
13730
13731         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
13732         the insn to which the note was originally attached.
13733
13734 2007-01-21  Jan Hubicka  <jh@suse.cz>
13735
13736         * ipa-inline.c (inlining_mode): Comment, move up.
13737         (cgraph_decide_inlining_incrementally): Do not perform inlining
13738         itself; fix handling of flattening of self recursive functions.
13739         (cgraph_find_cycles): Remove.
13740         (cgraph_flatten_node): Remove.
13741         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
13742         (try_inline): New function.
13743         (cgraph_early_inlining): Update call of
13744         cgraph_decide_inlining_incrementally.  Apply inlining here.
13745         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
13746
13747 2007-01-21  Dirk Mueller  <dmueller@suse.de>
13748
13749         PR bootstrap/30511
13750         * tree-vrp.c (check_array_bounds): do not warn
13751         about ADDR_EXPR's of ARRAY_REF's which are immediately
13752         used in binary expressions.
13753
13754 2007-01-21  Ira Rosen  <irar@il.ibm.com>
13755
13756         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
13757         read_write_dep and macros for its access.
13758         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
13759         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
13760         argument, call vect_check_interleaving for every independent pair of
13761         data-refs. Mark loads that access the same memory location as a store
13762         in the loop.
13763         (vect_check_dependences): Remove.
13764         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
13765         call, fix the call to vect_analyze_data_ref_dependence.
13766         (vect_analyze_data_ref_access): For statements that access the same
13767         data-ref, check that they are not stores; for loads, check that there
13768         is no store that access the same location.
13769
13770 2007-01-20  Roger Sayle  <roger@eyesopen.com>
13771             Joseph Myers  <joseph@codesourcery.com>
13772
13773         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
13774         (-fdump-rtl-stack): Likewise.
13775         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
13776         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
13777         (-mpt-fixed): Use @minus{} for minus sign.
13778         (Using Precompiled Headers): Fix under/overfull hbox.
13779
13780 2007-01-20  Jan Hubicka  <jh@suse.cz>
13781
13782         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
13783         place within annotation.
13784
13785 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13786
13787         * pa.c (output_move_double): Change array size of xoperands to 4.
13788
13789 2007-01-20  Jan Hubicka  <jh@suse.cz>
13790
13791         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
13792         as temporary.
13793
13794 2007-01-19  Ian Lance Taylor  <iant@google.com>
13795
13796         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
13797         constant to unsigned HOST_WIDE_INT before negating.
13798
13799 2007-01-19  Ian Lance Taylor  <iant@google.com>
13800
13801         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
13802         to unsigned.
13803         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
13804         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
13805         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
13806         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
13807         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
13808         (realloc_vdef, realloc_vuse): Change second parameter to
13809         unsigned.
13810         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
13811         fields to unsigned.
13812         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
13813         unsigned. Change x and lim locals to unsigned.
13814         (realloc_vdef, realloc_vuse): Change num_elem parameter to
13815         unsigned.
13816         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
13817         (copy_virtual_operands): Change i and n locals to unsigned.
13818
13819 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13820
13821         PR middle-end/29335
13822         * builtins.c (fold_builtin_1): Handle builtin fdim.
13823
13824 2007-01-20  Jan Hubicka  <jh@suse.cz>
13825
13826         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
13827         * tree-ssa-structalias.c (compute_points_to_sets): Do call
13828         init_alias_heapvars.
13829         (init_alias_heapvars): Initialize only when not already initialized.
13830         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
13831
13832 2007-01-19  Roger Sayle  <roger@eyesopen.com>
13833
13834         * common.opt (fsigned-zeros): New command line option.
13835         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
13836         of flag_unsafe_math_optimizations.
13837         * opts.c (set_fast_math_flags): The -ffast-math command line option
13838         implies -fno-signed-zeros.
13839         (fast_math_flags_set_p): Likewise.
13840
13841         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
13842         the documentation of -ffast-math appropriately.  Wrap long lines.
13843
13844 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
13845
13846         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
13847         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
13848
13849 2007-01-19  Tomas Bily  <tbily@suse.cz>
13850
13851         * cgraphunit.c (cgraph_finalize_function): Updating of pid
13852         * tree-profile.c:
13853         (tree_init_ic_make_global_vars): New function
13854         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
13855         (tree_gen_ic_profiler): New function
13856         (tree_gen_ic_func_profiler): New function
13857         (tree_profiling): Added calling of tree_gen_ic_func_profiler
13858         (tree_profile_hooks): Added hook for indirec/virtual calls
13859         * value-prof.c (tree_find_values_to_profile): New case for
13860         indirect calls
13861         (tree_values_to_profile): Call for determining indirect/virtual
13862         counters
13863         (tree_indirect_call_to_profile): New function
13864         (tree_ic_transform): New function
13865         (tree_ic): New function
13866         (find_func_by_pid): New function
13867         (init_pid_map): New function
13868         (tree_value_profile_transformations): Added check for
13869         indirect/virtual call transformation
13870         * value-prof.h (enum hist_type): New counter type for
13871         indirect/virtual calls
13872         (profile_hooks): Added new hook for profiling indirect/virtual
13873         calls
13874         * profile.c (instrument_values): New case for indirect/virtual
13875         call added
13876         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
13877         (GCOV_COUNTER_V_INDIR): New counter type
13878         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
13879         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
13880         call added
13881         * cgraph.c: Definition of cgraph_max_pid
13882         (cgraph_create_node): Default init of pid attribute
13883         * cgraph.h: Declaration of cgraph_max_pid
13884         (struct cgraph_node): Added pid attribute
13885         * libgcov.c (__gcov_indirect_call_profiler): New function
13886         (__gcov_one_value_profiler_body): New function
13887         (__gcov_one_value_profiler): Body was moved to
13888         __gcov_one_value_profiler_body and calls it
13889
13890 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
13891
13892         * doc/gty.texi (Options): Document the mark_hook option to GTY.
13893         * gengtype.c (write_types_data, write_func_for_structure,
13894         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
13895         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
13896         (walk_type, write_func_for_structure): Generate the mark_hook if
13897         needed.
13898
13899 2007-01-19  Jan Hubicka  <jh@suse.cz>
13900
13901         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
13902         'early' argument take inlining mode argument specifying whether to
13903         inline for size/speeed or all functions; add support for flattening;
13904         improve dumpting.
13905         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
13906
13907 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13908
13909         PR c++/17947
13910         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
13911         the name of the declared identifier.
13912
13913 2007-01-19  Dirk Mueller  <dmueller@suse.de>
13914
13915         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
13916         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
13917         duplicate evaluation.
13918
13919 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
13920
13921         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
13922         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
13923         to XFMode, use acosxf2 and truncate result to requested mode.
13924         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
13925         (asin<mode>2): Similarly, with asin expanders.
13926         (*fscalexf4_i387): Rename from *fscalexf4.
13927         (expNcorexf3): New expander.
13928         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
13929         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
13930         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
13931         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
13932         patterns for SSE math.
13933         (exp10<mode>2): Similarly, with exp10 expanders.
13934         (exp2<mode>2): Similarly, with exp2 expanders.
13935         (expm1<mode>2): Similarly, with expm1 expanders.
13936         (ldexp<mode>3): Similarly, with ldexp expanders.
13937         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
13938         Use gen_truncxf<mode>2_i387_noop to truncate result.
13939
13940 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13941
13942         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
13943         for ColdFire targets.
13944
13945 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
13946             Richard Sandiford  <richard@codesourcery.com>
13947
13948         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
13949         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
13950         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
13951         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
13952         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
13953         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
13954
13955 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13956
13957         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
13958         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
13959         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
13960         (*adddi_dilshr32_cf): New pattern.
13961         (adddi3, subdi3): Remove first alternatives.
13962
13963 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13964
13965         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
13966         implemented using move.l, do not use its cc result for floating-point
13967         comparisons.
13968
13969 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13970
13971         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
13972         from accepting 's' constraints if flag_pic.
13973
13974 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13975
13976         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
13977         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
13978         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
13979         condition from TARGET_68881 to TARGET_HARD_FLOAT.
13980
13981 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
13982
13983         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
13984         ColdFire alternatives.
13985         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
13986         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
13987         architectures that support ff1 instruction.
13988
13989 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13990             Julian Brown  <julian@codesourcery.com>
13991
13992         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
13993         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
13994         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
13995         Add commentary.
13996
13997 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
13998
13999         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
14000         and return a bool.
14001         (output_move_const_into_data_reg, output_move_simode_const): Delete.
14002         * config/m68k/m68k.c (const_method, const_int_cost): Take a
14003         HOST_WIDE_INT instead of an rtx.
14004         (m68k_rtx_costs): Update call accordingly.
14005         (output_move_const_into_data_reg): Likewise.  Fix formatting.
14006         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
14007         Return a bool.
14008         (output_move_simode_const): Update calls after above changes.
14009         Rework to use automatic variables and predicates like MEM_P.
14010         * config/m68k/m68k.md (pushexthisi_const): Update call to
14011         valid_mov3q_const.
14012
14013 2007-01-19  Dirk Mueller  <dmueller@suse.de>
14014
14015         * tree-ssa-alias.c (perform_var_substitution): Fix typo
14016         in dump_flags test.
14017
14018 2007-01-19  Richard Guenther  <rguenther@suse.de>
14019
14020         * builtins.c (expand_builtin_cexpi): Fall back to expanding
14021         via cexp in case sincos is not available.
14022
14023 2007-01-19  Richard Guenther  <rguenther@suse.de>
14024
14025         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
14026         * defaults.h (TARGET_HAS_SINCOS): Default to off.
14027         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
14028         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
14029         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
14030         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
14031         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
14032         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
14033
14034 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
14035
14036         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
14037         New insn patterns.
14038         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
14039         (atan2xf3): Directly generate RTL pattern.
14040         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
14041         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
14042         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
14043         disable patterns for SSE math.
14044         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
14045         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
14046         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
14047         disable patterns for SSE math.
14048
14049 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
14050
14051         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
14052
14053 2007-01-18  Roger Sayle  <roger@eyesopen.com>
14054
14055         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
14056         VIEW_CONVERT_EXPR to the same type as it's operand.
14057
14058 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
14059
14060         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
14061         configured for long double 128.
14062
14063 2007-01-18  Mike Stump  <mrs@apple.com>
14064
14065         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
14066         error.
14067
14068 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
14069
14070         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
14071         type correct.
14072
14073 2007-01-18  Jan Hubicka  <jh@suse.cz>
14074
14075         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
14076         greater than NUM_VOP_FREE_BUCKETS.
14077
14078 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
14079
14080         * tree-ssa-structalias.c: Update comments.
14081         (ptabitmap_obstack): Removed.
14082         (pta_obstack): New.
14083         (oldpta_obstack): Ditto.
14084         (stats): Add a few members.
14085         (struct variable_info): Remove node, complex, address_taken, and
14086         indirect_target members. Add oldsolution member.
14087         (new_var_info): Do not initialize removed members.
14088         (constraint_expr_type): Remove INCLUDES.
14089         (constraint_graph): Add size, implicit_preds, rep,
14090         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
14091         (FIRST_REF_NODE): New macro.
14092         (LAST_REF_NODE): Ditto.
14093         (FIRST_ADDR_NODE): Ditto.
14094         (find): New function.
14095         (unite): Ditto.
14096         (dump_constraint): Do not handle INCLUDES.
14097         (insert_into_complex): Do not insert duplicate constraints.
14098         (condense_varmap_nodes): Renamed and rewritten into ...
14099         (merge_node_constraints): This. Also fix bug in handling of
14100         offseted copy constraints.
14101         (clear_edges_for_node): No longer need to deal with preds at all,
14102         or removing associated preds/succs.
14103         (merge_graph_nodes): Deal with indirect_cycles.
14104         Don't deal with predecessors.
14105         (add_implicit_graph_edge): New function.
14106         (add_pred_graph_edge): Ditto.
14107         (add_graph_edge): Don't deal with predecessors.
14108         (build_constraint_graph): Removed.
14109         (build_pred_graph): New function.
14110         (build_succ_graph): Ditto.
14111         (struct scc_info): Removed in_component. Added roots, dfs, and
14112         node_mapping. Remove visited_index, unification_queue.
14113         (scc_visit): Deal with union-find we do now.
14114         Deal with cycles with REF nodes.
14115         (collapse_nodes): Renamed and rewritten to ...
14116         (unify_nodes): This.
14117         (process_unification_queue): Removed.
14118         (topo_visit): Cleanup
14119         (do_da_constraint): Use find.
14120         (do_sd_constraint): Ditto.
14121         (do_ds_constraint): Ditto.
14122         (do_complex_constraint): Ditto.
14123         (init_scc_info): Update for removed and added members.
14124         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
14125         (find_indirect_cycles): This.
14126         (equivalence_class): New variable.
14127         (label_visit): New function.
14128         (perform_variable_substitution): Rewritten.
14129         (free_var_substitution_info): New function.
14130         (find_equivalent_node): Ditto.
14131         (move_complex_constraints): Ditto.
14132         (eliminate_indirect_cycles): Ditto.
14133         (solve_graph): Only propagate changed bits.
14134         Use indirect cycle elimination.
14135         Use find.
14136         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
14137         (tree_id_eq): Renamed to ...
14138         (tree_vi_eq): This. Update for member change
14139         (insert_id_for_tree): Renamed and rewritten to ...
14140         (insert_vi_for_tree): This.
14141         (lookup_id_for_tree): Renamed and rewritten to ...
14142         (lookup_vi_for_tree): This.
14143         (get_id_for_tree): Renamed and rewritten to ...
14144         (get_vi_for_tree): Ditto.
14145         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
14146         (process_constraint): Don't handle INCLUDES.
14147         Remove special ADDRESSOF case.
14148         (find_func_aliases): Rewrite to use vi functions instead of id
14149         ones.
14150         (create_function_info_for): Ditto.
14151         (create_variable_info_for): Ditto.
14152         (intra_create_variable_infos): Ditto.
14153         (merge_smts_into): Ditto.
14154         (find_what_p_points_to): Ditto.
14155         (init_base_vars): Ditto.
14156         (init_alias_vars): Ditto.
14157         (remove_preds_and_fake_succs): New function.
14158         (dump_sa_points_to_info): Dump new stats.
14159         (dump_solution_for_var): Use find.
14160         (set_used_smts): Fix formatting.
14161         (compute_points_to_sets): Updated for new functions.
14162         (ipa_pta_execute): Ditto.
14163
14164 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
14165             Richard Sandiford  <richard@codesourcery.com>
14166
14167         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
14168         parallels.
14169         * calls.c (expand_call): If the return value is a PARALLEL,
14170         extract its first member.
14171         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
14172         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
14173         use FUNCTION_EXTRA_EPILOGUE.
14174         (m68k_function_value): Return a PARALLEL if the return value
14175         is of a pointer type.
14176         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
14177         (FUNCTION_EXTRA_EPILOGUE): Remove.
14178         * config/m68k/m68k.md (D0_REG): New constant.
14179
14180 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
14181
14182         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
14183         output a NOP for empty epilogues.
14184
14185 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14186
14187         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
14188         before function.  Extend register save check to include all
14189         registers, not just integer ones.
14190
14191 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
14192
14193         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
14194         (m68k_use_return_insn): ...this.
14195         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
14196         * config/m68k/m68k.c (use_return_insn): Rename to...
14197         (m68k_use_return_insn): ...this.
14198         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
14199         of USE_RETURN_INSN.
14200
14201 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
14202
14203         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
14204         nearest even, fix denormal rounding overflow.
14205
14206 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14207
14208         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
14209         f%$smove and f%$move.
14210         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
14211         (extendsfdf2_cf): Use fdmove instead of f%&move.
14212         (truncdfsf2_cf): Use fsmove instead of f%$smove.
14213         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
14214
14215 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14216
14217         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
14218         GPR<-GPR moves.
14219
14220 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14221
14222         * real.h (real_format): Add a canonical_nan_lsbs_set field.
14223         (coldfire_single_format): Declare.
14224         (coldfire_double_format): Likewise.
14225         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
14226         of qnan_msb_set to determine the lower bits of a canonical
14227         NaN significand.
14228         (encode_ieee_double): Likewise.
14229         (encode_ieee_quad): Likewise.
14230         (ieee_single_format): Initialize canonical_nan_lsbs_set.
14231         (mips_single_format): Likewise.
14232         (ieee_double_format): Likewise.
14233         (mips_double_format): Likewise.
14234         (ieee_extended_motorola_format): Likewise.
14235         (ieee_extended_intel_96_format): Likewise.
14236         (ieee_extended_intel_128_format): Likewise.
14237         (ieee_extended_intel_96_round_53_format): Likewise.
14238         (ibm_extended_format): Likewise.
14239         (mips_extended_format): Likewise.
14240         (ieee_quad_format): Likewise.
14241         (mips_quad_format): Likewise.
14242         (vax_f_format): Likewise.
14243         (vax_d_format): Likewise.
14244         (vax_g_format): Likewise.
14245         (i370_single_format): Likewise.
14246         (i370_double_format): Likewise.
14247         (decimal_single_format): Likewise.
14248         (decimal_double_format): Likewise.
14249         (decimal_quad_format): Likewise.
14250         (c4x_single_format): Likewise.
14251         (c4x_extended_format): Likewise.
14252         (real_internal_format): Likewise.
14253         (coldfire_single_format): New real_format.
14254         (coldfire_double_format): Likewise.
14255         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
14256         canonical_nan_lsbs_set.
14257         (pdp11_d_format): Likewise.
14258         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
14259         if TARGET_COLDFIRE_CPU.
14260
14261 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14262
14263         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
14264         (output_call, m68k_legitimize_call_address): Declare.
14265         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
14266         parenthesees.  Add support for a 'W' constraint.
14267         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
14268         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
14269         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
14270         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
14271         variables.
14272         (override_options): Initialize them.  Do not set flag_no_function_cse
14273         for TARGET_ID_SHARED_LIBRARY.
14274         (m68k_output_pic_call): Delete.
14275         (m68k_legitimize_call_address): New function.
14276         (print_operand): Remove the %o prefix.  Handle the %p prefix.
14277         (output_call): New function.
14278         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
14279         target address from the GOT if symbolic jumps are not allowed.
14280         * config/m68k/m68k.md (call, general_operand): Do not set
14281         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
14282         Merge separate flag_pic and !flag_pic define_insns into...
14283         (*call, *call_value): ...these new patterns.  Match the address
14284         rather than the containing MEM and require it to be a call_operand.
14285         Use output_call to generate the asm template.
14286         * config/m68k/predicates.md (const_call_operand): New predicate.
14287         (call_operand): Likewise.
14288
14289 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
14290
14291         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
14292         (STACK_GROWS_DOWNWARD): Define to 1.
14293         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
14294         comments, emphasizing that these values are only defaults.
14295         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
14296         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
14297
14298 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14299
14300         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
14301
14302 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
14303             Richard Sandiford  <richard@codesourcery.com>
14304
14305         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
14306         (FP_REGNO_P): New macros.
14307         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
14308         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
14309         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
14310         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
14311
14312 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
14313
14314         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
14315         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
14316         to $tmake_file.
14317         * config/m68k/t-floatlib: New file, extracting common code from...
14318         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
14319         * config/m68k/t-uclinux: Here.
14320         * config/m68k/fpgnulib.c: Do not compile extendeed precision
14321         routines on ColdFire targets.
14322
14323 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
14324
14325         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
14326         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
14327         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
14328         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
14329         explicitly set MOTOROLA to 1.
14330         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
14331
14332 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14333             Nathan Sidwell  <nathan@codesourcery.com>
14334
14335         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
14336         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
14337         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
14338         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
14339         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
14340         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
14341         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
14342         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
14343         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
14344         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
14345         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
14346         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
14347         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
14348         (DBX_REGISTER_NUMBER): Delete.
14349         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
14350         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
14351         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
14352
14353 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14354
14355         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
14356         * config/flat.h: New file.
14357         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
14358         OBJECT_FORMAT_FLAT.
14359         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
14360         indirect references for -msep-data or -mid-shared-library.
14361         Do not use PC-relative code addresses either.
14362         * config/m68k/m68k.c (override_options): Restrict -fPIC error
14363         to -mpcrel.
14364         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
14365         for shared libraries and crt1.o for executables.  Use crti.o and
14366         crtbegin.o.
14367         (ENDFILE_SPEC): Use crtend.o and crtn.o.
14368         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
14369         Do not add -elf2flt or -shared-lib-id options here.
14370         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
14371         Pass -shared-lib-id if -mid-shared-library, taking the library
14372         identifier from -mshared-library-id if given, otherwise
14373         defaulting to 0.
14374         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
14375         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
14376         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
14377         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
14378         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
14379         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
14380         and crtend.o.
14381         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
14382         jump sequence for ISA A and ISA A+.
14383         (PICJUMP): Likewise.
14384
14385 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14386
14387         * config.gcc (m68k-*-uclinux*): Base the port on the common
14388         and m68k GNU/Linux files rather than on the generic ELF ones.
14389         * config/m68k/uclinux.h (TARGET_VERSION): Override.
14390         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
14391
14392 2007-01-18  Julian Brown  <julian@codesourcery.com>
14393             Richard Sandiford  <richard@codesourcery.com>
14394
14395         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
14396         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
14397         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
14398         before redefining.
14399         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
14400         80 unconditionally.
14401         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
14402
14403 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
14404
14405         * doc/install.texi: Document m68k-uclinuxoldabi.
14406         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
14407         * config/m68k/uclinux-oldabi.h: New file, copied from
14408         config/m68k/uclinux.h.
14409
14410 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14411
14412         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
14413         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
14414         (m32r_compute_frame_size): Use unsigned for regno.
14415         (m32r_reload_lr): Use gen_frame_mem.
14416         (pop): New.
14417         (m32r_output_function_epilogue): Don't output the function epilogue
14418         textually here.
14419         (m32r_expand_epilogue): New.
14420         (direct_return): Return false if the function has the interrupt
14421         attribute.
14422         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
14423         * config/m32r/m32r.md (epilogue): New expander.
14424         (return_lr, return_rte): New insns.
14425         (return): Make it expander.
14426         (return_normal): New expander.
14427
14428 2007-01-18  Josh Conner  <jconner@apple.com>
14429
14430         PR target/30485
14431         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
14432         support for UNLE, UNLT, UNGE, and UNGT.
14433
14434 2007-01-18  Jan Hubicka  <jh@suse.cz>
14435
14436         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
14437         * tree-tailcall (add_virtual_phis): Likewise.
14438         (optimize_tail_call): Return TODOs.
14439         (execute_tail_calls): Return TODOs.
14440         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
14441         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
14442         changed.
14443         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
14444         Cleanup cfg using TODO.
14445         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
14446         * passes.c (execute_function_todo): When cleanup did something, remove
14447         unused locals.
14448         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
14449         (make_edges): Don't cleanup_cfg.
14450
14451 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
14452
14453         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
14454         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
14455         operate on the top of stack.
14456         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
14457         register handling of instructions that output to the second
14458         stack slot.
14459         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
14460         (move_for_stack_reg): Special-case check for dead destination
14461         stack slot for constant load of 1.0 inside UNSPEC_TAN.
14462
14463         * config/i386/i386.md (UNSPEC_TAN): New constant.
14464         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
14465         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
14466         to correctly model move of constant 1.0 to top stack slot.
14467         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
14468         (unnamed peephole2 pattern): Remove corresponding peephole2
14469         pattern that optimizes tan insn and loading of constant 1.0.
14470         (tanxf2): Use fptanxf4_i387.
14471         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
14472         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
14473         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
14474         disable patterns for SSE math.
14475         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
14476         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
14477
14478 2007-01-18  Dirk Mueller  <dmueller@suse.de>
14479             Richard Guenther <rguenther@suse.de>
14480
14481         PR diagnostic/8268
14482         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
14483         * common.opt (Warray-bounds): Add new warning option.
14484         * c-opts.c (c_common_handle_option): Define -Warray-bounds
14485         if -Wall is given.
14486         * Makefile.in: make tree-vrp.o depend on toplev.h
14487         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
14488         is enabled.
14489         (check_array_refs, check_array_bounds, check_array_ref): New.
14490
14491 2007-01-18  Jan Hubicka  <jh@suse.cz>
14492
14493         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
14494         (execute_ssa_ccp): Return flags conditionally.
14495         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
14496         changed.
14497         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
14498
14499 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
14500
14501         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
14502         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
14503
14504         * Makefile.c (GTFILES): Add cfglayout.h.
14505         * gengtype.c (open_base_files): Likewise.
14506         * cfglayout.c (cfg_layout_function_footer,
14507         cfg_layout_function_header) Reindent to make gengtype happy.
14508         * cfglayout.h (cfg_layout_function_footer,
14509         cfg_layout_function_header): Add GTY(()) marker.
14510
14511         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
14512
14513 2007-01-18  Ben Elliston  <bje@au.ibm.com>
14514
14515         * genautomata.c (write_automata): Include xstrerror output in the
14516         error message if writing the DFA description file fails.
14517
14518 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14519
14520         * config/mips/mips-protos.h (mips_output_external): Make it
14521         return void.
14522         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
14523         * config/mips/mips.c (irix_output_external_libcall): Likewise.
14524         (extern_list): Likewise.
14525         (extern_head): Likewise.
14526         (TARGET_ASM_FILE_END): Likewise.
14527         (mips_file_end): Likewise.
14528         (mips_output_external): Rewritten.
14529
14530 2007-01-18  Ben Elliston  <bje@au.ibm.com>
14531
14532         * genpreds.c (write_insn_preds_c): Only write out the function
14533         body for regclass_for_constraint if we have register constraints.
14534
14535 2007-01-17  Tom Tromey  <tromey@redhat.com>
14536
14537         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
14538         * doc/install.texi (Testing): Use sourceware.org.
14539         (Binaries): Likewise.
14540         (Specific): Likewise.
14541         * doc/contrib.texi (Contributors): Use sourceware.org.
14542
14543 2007-01-17  Anatoly Sokolov <aesok@post.ru>
14544
14545         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
14546         (AVR_ENHANCED): Rename to ...
14547         (AVR_HAVE_MUL): ... new.
14548         (avr_enhanced_p): Rename to ...
14549         (avr_have_mul_p): ... new.
14550         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
14551         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
14552         * config/avr/avr.c (avr_enhanced_p): Rename to ...
14553         (avr_have_mul_p): ... new.
14554         (base_arch_s): Rename 'enhanced' to 'have_mul'.
14555         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
14556         'avr_enhanced_p' and 'enhanced'.
14557         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
14558         AVR_HAVE_MUL instead of AVR_ENHANCED.
14559         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
14560         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
14561         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
14562         instead of AVR_ENHANCED.
14563         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
14564         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
14565         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
14566
14567 2007-01-17  Ian Lance Taylor  <iant@google.com>
14568
14569         * vec.h (VEC_reserve_exact): Define.
14570         (vec_gc_p_reserve_exact): Declare.
14571         (vec_gc_o_reserve_exact): Declare.
14572         (vec_heap_p_reserve_exact): Declare.
14573         (vec_heap_o_reserve_exact): Declare.
14574         (VEC_OP (T,A,reserve_exact)): New static inline function, three
14575         versions.
14576         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
14577         negative parameter.
14578         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
14579         (VEC_OP (T,A,copy)) [all versions]: Likewise.
14580         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
14581         * vec.c (calculate_allocation): Add exact parameter.  Change all
14582         callers.
14583         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
14584         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
14585         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
14586         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
14587         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
14588         (vec_heap_p_reserve_exact): New function.
14589         (vec_heap_o_reserve_exact): New function.
14590
14591 2007-01-17  Jan Hubicka  <jh@suse.cz>
14592
14593         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
14594
14595 2007-01-17  Eric Christopher  <echristo@apple.com>
14596
14597         * config.gcc: Support core2 processor.
14598
14599 2007-01-16  Jan Hubicka  <jh@suse.cz>
14600
14601         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
14602         the names, just unlink the chain so we don't crash on dangling pointers
14603         to dead SSA names.
14604
14605 2007-01-16  Jan Hubicka  <jh@suse.cz>
14606
14607         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
14608         * tree-pass.h: Reorder to make IPA passes appear toegher.
14609         (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
14610         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
14611         parameters, do not call early inliner.
14612         * ipa-inline.c: Update comments.  Include tree-flow.h
14613         (cgraph_decide_inlining): Do not compute inlining parameters.
14614         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
14615         be called with function context set up.
14616         (pass_ipa_inline): Remove unreachable functions before pass.
14617         (cgraph_early_inlining): Simplify assuming to be called from the
14618         PM as local pass.
14619         (pass_early_inline): New pass.
14620         (cgraph_gate_ipa_early_inlining): New gate.
14621         (pass_ipa_early_inline): Turn into simple wrapper.
14622         (compute_inline_parameters): New function.
14623         (gate_inline_passes): New gate.
14624         (pass_inline_parameters): New pass.
14625         (apply_inline): Move here from tree-optimize.c
14626         (pass_apply_inline): New pass.
14627         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
14628         transforming.
14629         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
14630         doing them by hand.
14631         (tree_function_versioning): Do not allocate dummy struct function.
14632         * tree-inline.h (optimize_inline_calls): Update prototype.
14633         * tree-optimize.c (execute_fixup_cfg): Export.
14634         (pass_fixup_cfg): Remove
14635         (tree_rest_of_compilation): Do not apply inlines.
14636         * tree-flow.h (execute_fixup_cfg): Declare.
14637         * Makefile.in (gt-passes.c): New.
14638         * passes.c: Include gt-passes.h
14639         (init_optimization_passes): New passes.
14640         (nnodes, order): New static vars.
14641         (do_per_function_toporder): New function.
14642         (execute_one_pass): Dump current pass here.
14643         (execute_ipa_pass_list): Don't dump current pass here.
14644
14645 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
14646
14647         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
14648         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
14649
14650 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
14651
14652         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
14653         (strong_alias): Define.
14654         (__gcc_qmul): Provide non-FMA for soft-float.
14655         (__gcc_qdiv): Same.
14656         (__gcc_qneg): New.
14657         (__gcc_qeq): New.
14658         (__gcc_qle): New.
14659         (__gcc_qge): New.
14660         (__gcc_qunord): New.
14661         (__gcc_stoq): New.
14662         (__gcc_dtoq): New.
14663         (__gcc_qtos): New.
14664         (__gcc_qtod): New.
14665         (__gcc_qtoi): New.
14666         (__gcc_qtou): New.
14667         (__gcc_itoq): New.
14668         (__gcc_utoq): New.
14669         (fmsub): New.
14670         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
14671         soft-float functions.
14672         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
14673         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
14674         about long double soft float.
14675
14676 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
14677             Tehila Meyzels  <tehila@il.ibm.com>
14678
14679         * tree-vectorizer.h (is_pattern_stmt_p): New.
14680         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
14681         formatting (tabs instead of spaces). Cleanup and clarify setting
14682         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
14683         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
14684         (vectorizable_type_demotion): Check that types are integral.
14685         (vectorizable_type_promotion): Likewise.
14686         (vectorizable_store): Fix typo.  Eliminate new-line at end of
14687         comments.
14688
14689 2007-01-16  Jan Hubicka  <jh@suse.cz>
14690
14691         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
14692         cgraph edges too.
14693
14694 2007-01-15  Eric Christopher  <echristo@apple.com>
14695
14696         * ifcvt.c: Include vec.h, vecprim.h.
14697         (check_cond_move_block): New argument regs.
14698         Reorganize. Add registers used to regs.
14699         (cond_move_process_if_block): Use regs set above as
14700         loop bounds.
14701
14702 2007-01-15  Eric Christopher  <echristo@apple.com>
14703
14704         * config/darwin.h: Update copyright.
14705         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
14706         (LINK_COMMAND_SPEC): Add -u.
14707         (LINK_SPEC): Fix umbrella for above.
14708
14709 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
14710
14711         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
14712         glibc CVS.
14713
14714 2007-01-15  Tom Tromey  <tromey@redhat.com>
14715
14716         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
14717         * doc/install.texi (Testing): Don't mention jacks.
14718         (Configuration): Document --enable-java-maintainer-mode.  Move
14719         --with-java-home to libgcj-specific section.  Document
14720         --with-ecj-jar.
14721         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
14722
14723 2007-01-15  Jan Hubicka  <jh@suse.cz>
14724
14725         * tree-ssa-dce.c (DCE_TODOs): New.
14726         (propagate_necessity): Return if something changed.
14727         (eliminate_unnecessary_stmts): Likewise.
14728         (perform_tree_ssa_dce): Return TODO flags when needed.
14729         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
14730
14731 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
14732
14733         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
14734         (fyl2x_extend<mode>xf3_i387): New insn pattern.
14735         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
14736         patterns using X87MODEF12 mode macro.  Extend operand 1
14737         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
14738         (log10<mode>2): Ditto.
14739         (log2<mode>2): Ditto.
14740         (log1p<mode>2): Ditto.
14741         (logb<mode>2): Ditto.
14742         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
14743         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
14744         (*fxtractxf3_i387): Rename from *fxtractxf3.
14745         (fxtract_extend<mode>xf3_i387): New insn pattern.
14746         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
14747         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
14748         and gen_fyl2xxf3_i387().
14749
14750 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
14751
14752         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
14753         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
14754         get_loop_exit_edges.  Changed return type to bool.
14755         * cfgloop.h (fix_loop_placement): Declaration removed.
14756
14757 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
14758
14759         * param.h (MIN_VECT_LOOP_BOUND): New.
14760         * params.def (MIN_VECT_LOOP_BOUND): New.
14761         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
14762         argument - minimum threshold for number of iterations.
14763         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
14764         argument to declaration.
14765         * tree-vect-analyze.c (vect_analyze_operations): Check value of
14766         MIN_VECT_LOOP_BOUND.
14767         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
14768         slpeel_tree_peel_loop_to_edge with additional argument.
14769         (vect_do_peeling_for_alignment): Likewise.
14770         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
14771
14772 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
14773
14774         PR target/30413
14775         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
14776         operands of size 1.
14777
14778 2007-01-14  Jan Hubicka  <jh@suse.cz>
14779
14780         * tree-dfa.c (remove_referenced_var): New function.
14781         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
14782         prune referenced vars list too.
14783         * tree-flow.h (remove_referenced_var): Declare.
14784
14785 2007-01-14  Jan Hubicka  <jh@suse.cz>
14786
14787         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
14788         separately.
14789         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
14790         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
14791         * except.h (verify_eh_throw_table_statements): Kill prototype.
14792         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
14793         into call exrepssions.
14794         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
14795         eh trhow verifier.
14796         * tree-cfg.c: Include pointer-set.h.
14797         (verify_node_sharing): Work on pointer set.
14798         (verify_eh_throw_stmt_node): New.
14799         (verify_stmts): Use pointers sets, verify throw_stmt.
14800
14801 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
14802
14803         * ipa-reference.c (analyze_function): Consider also addresses taken
14804         in phi nodes.
14805
14806 2007-01-12  Roger Sayle  <roger@eyesopen.com>
14807
14808         * c-typeck.c (null_pointer_constant_p): Replace use of
14809         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
14810         (build_c_cast): Likewise.
14811
14812 2007-01-12  Roger Sayle  <roger@eyesopen.com>
14813
14814         * tree.h (force_fit_type_double): Remove unused final argument.
14815         * c-common.c (constant_expression_warning): Replace use of
14816         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
14817         (convert_and_check): Likewise.
14818         (shorten_compare): Update call to force_fit_type_double.
14819         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
14820         * convert.c (convert_to_pointer): Update call to
14821         force_fit_type_double.
14822         * fold-const.c (force_fit_type_double): Remove overflowed_const
14823         argument.
14824         (int_const_binop, fold_convert_const_int_from_int,
14825         fold_convert_const_int_from_real, fold_div_compare,
14826         fold_sign_changed_comparison, fold_unary, fold_negate_const,
14827         fold_abs_const, fold_not_const): Remove the final argument from
14828         calls to force_fit_type_double.
14829
14830 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14831
14832         * configure.ac: Set insn to "nop" for spu-*-* also.
14833         * configure: Regenerate.
14834
14835 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
14836
14837         * builtins.def : Add BUILT_IN_FREE.
14838
14839 2007-01-12  Jan Hubicka  <jh@suse.cz>
14840
14841         PR tree-optimization/30443
14842         * tree-inline.c (tree_function_versioning): Do not optimize when
14843         cloning for inlining.
14844
14845 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
14846
14847         * doc/loop.texi: Document recording of loop exits.
14848         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
14849         (update_single_exits_after_duplication,
14850         update_single_exit_for_duplicated_loop,
14851         update_single_exit_for_duplicated_loops): Removed.
14852         (duplicate_loop_to_header_edge): Do not call
14853         update_single_exits_after_duplication and
14854         update_single_exit_for_duplicated_loops.
14855         (loop_version): Do not update single_exit information.
14856         (fix_loop_structure): Use record_loop_exits instead of
14857         mark_single_exit_loops.
14858         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
14859         the lists of loop exits.
14860         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
14861         split_edge, merge_blocks): Update the lists of loop exits.
14862         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
14863         loop_optimizer_init.
14864         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
14865         of mark_single_exit_loops.
14866         (loop_optimizer_finalize): Call release_recorded_exits.
14867         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
14868         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
14869         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
14870         update single exit information.
14871         * lambda-code.c (perfect_nestify): Ditto.
14872         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
14873         (mark_single_exit_loops): Removed.
14874         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
14875         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
14876         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
14877         functions.
14878         (get_loop_exit_edges, single_exit): Use recorded exit lists.
14879         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
14880         (verify_loop_structure): Verify consistency of the exit lists.
14881         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
14882         (set_single_exit): Removed.
14883         * cfgloop.h (struct loop_exit): New function.
14884         (struct loop): single_exit_ field replaced by exits field.
14885         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
14886         (struct loops): Added exits hash.
14887         (mark_single_exit_loops, set_single_exit): Declaration removed.
14888         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
14889
14890 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
14891
14892         * doc/invoke.texi: Avoid use of @headitem.
14893
14894 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
14895
14896         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
14897
14898 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
14899
14900         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
14901         list of targets.
14902
14903 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
14904             Richard Sandiford  <richard@codesourcery.com>
14905
14906         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
14907         * config/m68k/m68k.opt: Resort options.
14908         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
14909
14910 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
14911             Richard Sandiford  <richard@codesourcery.com>
14912
14913         * doc/invoke.texi: Document the macros that are defined by
14914         m68k's -mtune and -mhard-float options.
14915         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
14916         (m68k_cpp_cpu_family): Likewise.
14917         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
14918         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
14919         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
14920         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
14921         (m68k_cpp_cpu_family): Likewise.
14922
14923 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
14924
14925         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
14926         macros besides mc68000 as tuning macros.  Use a switch statement
14927         to set them and mcpu32.
14928
14929 2007-01-12  Julian Brown  <julian@codesourcery.com>
14930
14931         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
14932         (TARGET_68040_ONLY): Rename to...
14933         (TARGET_68040): ...this.
14934         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
14935         * config/m68k/m68k.md: Likewise.
14936
14937 2007-01-12  Julian Brown  <julian@codesourcery.com>
14938             Nathan Sidwell  <nathan@codesourcery.com>
14939             Richard Sandiford  <richard@codesourcery.com>
14940
14941         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
14942         the -mcpu= argument associated with the --with-cpu setting.
14943         Define M68K_DEFAULT_TUNE to the default -mtune= option,
14944         if different from the one implied by the -mcpu setting.
14945         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
14946         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
14947         * doc/invoke.texi: Mention ColdFire in the introduction to the
14948         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
14949         -mno-div and -mhard-float options.  Make -m68881 a synonym for
14950         -mhard-float.  Document the previously-undocumented -m5206e,
14951         -m528x, -m5307 and -m5407 options.  Tweak the existing option
14952         documentation for consistency.
14953         * doc/install.texi: Mention new --with-cpu arguments.
14954         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
14955         default CPU if neither -mcpu nor -march are specified.
14956         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
14957         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
14958         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
14959         using m68k_tune to decide between families that implement the
14960         same ISA.  Use m68k_tune to set __mcfv4e__.
14961         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
14962         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
14963         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
14964         (FL_ISA_C, FL_ISA_MMU): New macros.
14965         (MASK_COLDFIRE): Delete.
14966         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
14967         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
14968         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
14969         (TARGET_HARD_FLOAT): Do not define here.
14970         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
14971         (TUNE_68000): New macro.
14972         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
14973         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
14974         (TUNE_CFV2): Redefine in terms of m68k_tune.
14975         (uarch_type, target_device, fpu_type): New enums.
14976         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
14977         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
14978         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
14979         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
14980         (FL_FOR_isa_c): New macros.
14981         (m68k_isa): New enum.
14982         (m68k_target_selection): New structure.
14983         (all_devices, all_isas, all_microarchs): New tables.
14984         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
14985         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
14986         (MASK_ALL_CPU_BITS): Delete.
14987         (m68k_find_selection): New function.
14988         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
14989         Map the legacy target options to a combination of the new ones.
14990         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
14991         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
14992         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
14993         settings.
14994         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
14995         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
14996         properties.
14997         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
14998         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
14999         * config/m68k/m68k-devices.def: New file.
15000
15001 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
15002             Nathan Sidwell  <nathan@codesourcery.com>
15003
15004         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
15005         (SUBTARGET_EXTRA_SPECS): New macros.
15006         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
15007         use %(asm_cpu_spec) instead.
15008         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
15009         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15010         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15011         (EXTRA_SPECS): Rename to...
15012         (SUBTARGET_EXTRA_SPECS): ...this.
15013
15014 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
15015             Richard Sandiford  <richard@codesourcery.com>
15016             Julian Brown  <julian@codesourcery.com>
15017
15018         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
15019         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
15020         to the configuration's default CPU.
15021         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
15022         Remove default masks.
15023         (m680[012]0-*-*): Set the default with_cpu to the first part of
15024         the target name.
15025         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
15026         (m68k*-*-linux): Extend the --with-cpu handling to...
15027         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
15028         and m68010.  Don't set target_cpu_default2.
15029         * doc/install.texi: Document --with-cpu for m68k.
15030         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
15031         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
15032         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
15033         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
15034         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
15035         (ASM_SPEC): Remove use of %(asm_cpu_default).
15036         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
15037         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
15038         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
15039         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
15040         __HAVE_FPU__ if TARGET_HARD_FLOAT.
15041         (TARGET_DEFAULT): Delete.
15042         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
15043         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
15044         (CPP_CPU_SPEC): Delete.
15045         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
15046         the appropriate string.
15047         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
15048         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
15049         (ASM_SPEC): Don't use %(asm_default_spec).
15050         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
15051         TARGET_DEFAULT and add MASK_68881.
15052         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
15053
15054 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
15055
15056         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
15057         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
15058         MASK_68010 alongside MASK_68020.
15059         * doc/invoke.texi: Document -m68010.
15060         * config/m68k/m68k.opt (m68010): New.
15061         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
15062         if TUNE_68010.
15063         (TUNE_68010): New macro.
15064         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
15065         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
15066         (M68K_CPU_m68332): Add MASK_68010.
15067         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
15068         fallback definition.
15069         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
15070         defines.
15071         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
15072         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
15073         to all entries that use MASK_68020.
15074         (output_move_simode_const, output_move_himode, output_move_qimode)
15075         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
15076         instead of TARGET_68020 to select clr behavior.  Remove comment
15077         about there being no TARGET_68010.
15078         * config/m68k/m68k.md: Likewise throughout.
15079
15080 2007-01-12  Julian Brown  <julian@codesourcery.com>
15081
15082         * config/m68k/m68k.h (TARGET_ISAB): New macro.
15083         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
15084         * config/m68k/m68k.md: Likewise.
15085
15086 2007-01-12  Julian Brown  <julian@codesourcery.com>
15087
15088         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
15089         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
15090
15091 2007-01-12  Julian Brown  <julian@codesourcery.com>
15092
15093         * config/m68k/m68k.h (TUNE_68040_60): New macro.
15094         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
15095         * config/m68k/m68k.md: Likewise.
15096
15097 2007-01-12  Julian Brown  <julian@codesourcery.com>
15098             Richard Sandiford  <richard@codesourcery.com>
15099
15100         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
15101         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
15102         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
15103         TARGET_CPU32.
15104         (TARGET_CPU32): Rename to...
15105         (TUNE_CPU32): ...this.
15106         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
15107         (TUNE_CFV2): New macros.
15108         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
15109         remove conditions that are implied by TARGET_68020.
15110         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
15111         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
15112         (m68k_output_function_epilogue): Likewise.
15113         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
15114         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
15115         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
15116         non-68000 timings.  Refactor multiplication and division costs.
15117         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
15118         TUNE_CPU32 instead of TARGET_CPU32.
15119         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
15120         and TUNE_68060 instead of TARGET_68060.
15121         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
15122         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
15123         TARGET_CPU32.
15124         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
15125         && !TARGET_COLDFIRE" to choose between moveq and clr.
15126         Likewise in the unnamed movsf pattern.
15127         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
15128         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
15129         ashiftrt pattern.
15130
15131 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
15132
15133         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
15134         of tabbing before backslashes.
15135
15136 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15137
15138         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
15139         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
15140         (ASM_OUTPUT_INTERNAL_LABEL): Define.
15141
15142 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
15143
15144         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
15145         find_interesting_uses_cond.
15146         (find_interesting_uses_cond): Use extract_cond_operands.
15147         (rewrite_use_compare): Use extract_cond_operands and
15148         force_gimple_operand_bsi.  Do not call update_stmt.
15149         (determine_use_iv_cost_condition): Use extract_cond_operands.
15150         Return cheaper of using original bound and changing the exit bound.
15151
15152 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
15153
15154         PR tree-optimization/29516
15155         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
15156         most_expensive_mult_to_index, addr_to_parts,
15157         create_mem_ref, maybe_fold_tmr): Make the type of
15158         fields of TARGET_MEM_REF sizetype.
15159         (move_fixed_address_to_symbol, move_pointer_to_base):
15160         New functions.
15161         * tree.def (TARGET_MEM_REF): Add comment on types of
15162         the operands.
15163
15164 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
15165
15166         * c-common.c (vector_types_convertible_p): Treat opaque types as
15167         always convertible if they have the same size, but not otherwise.
15168
15169 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
15170
15171         * ifcvt.c (struct noce_if_info): Add comments to the fields.
15172         Remove the b_unconditional field.
15173         (noce_try_sign_mask): Do not look at b_unconditional.
15174         (noce_process_if_block): Do not use merge_if_blocks.  Update
15175         the CFG here.  Do not set b_unconditional.
15176         (cond_move_process_if_block): Likewise.
15177         (find_cond_trap): Likewise.
15178         (check_cond_move_block): Require simple jump insns at the end
15179         of the basic block.
15180
15181 2007-01-11  Jan Hubicka  <jh@suse.cz>
15182
15183         PR tree-optimization/1046
15184         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
15185         when alias info is not ready.
15186         (pass_tail_recursion): Do not require aliasing.
15187         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
15188         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
15189         * tree-ssa-copy.c (pass_copy_prop): Likewise.
15190         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
15191         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
15192         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
15193         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
15194         before inlining.
15195         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
15196         When aliasing is not build, mark statement as volatile.
15197
15198 2007-01-11  Tom Tromey  <tromey@redhat.com>
15199
15200         PR preprocessor/15185, PR preprocessor/20989:
15201         * doc/cppopts.texi <-MT>: Update description of algorithm for
15202         computing default target.
15203         <-M, -MD>: Reword "basename" text.
15204
15205 2007-01-11  Roger Sayle  <roger@eyesopen.com>
15206
15207         * builtins.c (expand_builtin_pow, expand_builtin_powi,
15208         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
15209         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
15210         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
15211         fold_builtin_bswap, real_constp, fold_builtin_pow,
15212         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
15213         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
15214         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
15215         * convert.c (convert_to_pointer): Likewise.
15216         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15217         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
15218         const_binop, fold_convert_const_int_from_int,
15219         fold_convert_const_int_from_real,
15220         fold_convert_const_real_from_real, sign_bit_p,
15221         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
15222         fold_sign_changed_comparison, fold_unary, fold_comparison,
15223         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
15224         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
15225         * print-tree.c (print_node_brief, print_node): Likewise.
15226         * stor-layout.c (place_field, layout_type): Likewise.
15227         * tree-chrec.c (keep_cast): Likewise.
15228         * tree.c (build_vector, build_real, build_real_from_int_cst,
15229         build_complex): Likewise.
15230
15231 2007-01-11  Roger Sayle  <roger@eyesopen.com>
15232
15233         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
15234         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
15235
15236 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
15237
15238         * configure.ac (strict1_warn): Rename to strict_warn.
15239         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
15240         cc_set_by_configure, quoted_cc_set_by_configure,
15241         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
15242         all_boot_languages, all_stagestuff): Remove.
15243         (target_list): Remove bootstrap targets.
15244         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
15245         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
15246         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
15247         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
15248         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
15249         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
15250         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
15251         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
15252         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
15253         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
15254         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
15255         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
15256         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
15257         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
15258         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
15259         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
15260         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
15261         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
15262         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
15263         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
15264         (mostlyclean): Adjust.
15265         (clean, distclean): Don't mention bootstrap stuff.
15266         * configure: Regenerate.
15267         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
15268         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
15269         treelang/config-lang.in (stagestuff): Remove.
15270         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
15271         stageprofile, stagefeedback, stagestuff): Remove mention.
15272
15273 2007-01-11  Nick Clifton  <nickc@redhat.com>
15274
15275         * config/mcore/predicates.md (mcore_general_movesrc_operand):
15276         Accept CONSTs.
15277         (mcore_general_movdst_operand): Do not accept CONST_INTs.
15278         (mcore_arith_K_S_operand): Run the test for the S constraint not
15279         the test for the M constraint.
15280         (mcore_addsub_operand): Do not accept integer values that are
15281         larger than 32 bits.
15282         * config/mcore/mcore.md: Remove unused constraints from split.
15283         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
15284         (addsi3): Likewise.
15285         (allocate_stack): Likewise.
15286         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
15287         operands to 32 bits.
15288         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
15289         INTVAL.
15290         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
15291         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
15292         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
15293         mcore_output_bclri, mcore_output_andn, output_inline_const,
15294         mcore_output_move, mcore_output_movedouble): Likewise.
15295         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
15296         (output_inline_const): Likewise.
15297         (output_inline_const): Fix format strings used in sprintf
15298         statements.
15299         * config/mcore/mcore-protos.h: Update prototypes for changed
15300         functions in mcore.c.
15301         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
15302         HOST_WIDE_INT and not int.
15303         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
15304         CONST_OK_FOR_N): Likewise.
15305         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
15306         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
15307         an INTVAL.
15308
15309 2007-01-10  Jan Hubicka  <jh@suse.cz>
15310
15311         * tree-vrp.c (remove_range_assertions): Release defs.
15312         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
15313         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
15314
15315 2007-01-10  Paul Brook  <paul@codesourcery.com>
15316
15317         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
15318         * config/arm/arm.md (mulsi3subsi): New insn.
15319
15320 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
15321
15322         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
15323         (tree_transform_and_unroll_loop): New.
15324         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
15325         Declare.
15326
15327 2007-01-10  Robert Kennedy <jimbob@google.com>
15328
15329         * fold-const.c (fold_comparison): Fold comparisons like (x *
15330         1000 < 0) to (x < 0).
15331
15332 2007-01-10  Ian Lance Taylor  <iant@google.com>
15333
15334         * tree-pretty-print.c (dump_generic_node): Print parentheses when
15335         operands have the same priority.
15336
15337 2007-01-10  Tom Tromey  <tromey@redhat.com>
15338
15339         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
15340         (fold_binary): Likewise.
15341         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
15342         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
15343         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
15344         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
15345         * langhooks.h (struct lang_hooks): Removed field
15346         'can_use_bit_fields_p'.
15347
15348 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
15349
15350         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
15351
15352 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
15353
15354         * function.c (get_last_funcdef_no): New function.
15355         * function.h (get_last_funcdef_no): Declare.
15356         * tree-inline.c (initialize_cfun): Add initialization.
15357         (tree_function_versioning): Cleanup.
15358
15359 2007-01-10  Jan Hubicka  <jh@suse.cz>
15360
15361         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
15362         PHIs.
15363
15364 2007-01-10  Sa Liu  <saliu@de.ibm.com>
15365             Ben Elliston  <bje@au.ibm.com>
15366
15367         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
15368         for SAVE_NONLOCAL and Pmode for any other save level.
15369         * spu-protos.h (spu_restore_stack_block): Declare.
15370         * spu.md (save_stack_block): Remove.
15371         (restore_stack_block): Call spu_restore_stack_block.
15372         * spu.c (spu_restore_stack_block): New function.
15373         (spu_expand_epilogue): Remove old comment.
15374
15375 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
15376
15377         PR tree-optimization/30322
15378         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
15379         (cand_value_at): Return the value as aff_tree.
15380         (may_eliminate_iv): Convert the bound from aff_tree to tree.
15381         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
15382         aff_combination_mult): New functions.
15383         (aff_combination_add): Use aff_combination_add_cst.
15384         (aff_combination_convert): Allow conversions to a wider type.
15385         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
15386         * tree-affine.h (aff_combination_mult): Declare.
15387
15388 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
15389
15390         * doc/tm.texi: Update documentation to reflect reality of exec
15391         and start file search behaviours. Update copyright year.
15392         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
15393         header file directories.
15394
15395 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
15396
15397         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
15398         (*cosxf2): Rename to cosxf2_i387.
15399         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
15400         using X87MODEF12 mode macro. Rename patterns to
15401         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
15402         for SSE math.
15403         (*cosdf2, *cossf2): Ditto.
15404         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
15405         to match extended input operands.
15406         (sincos<mode>3): New expander.
15407         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
15408         insn patterns and corresponding splitters.
15409
15410 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15411
15412         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
15413         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
15414
15415 2007-01-09  Nicolas Pitre  <nico@cam.org>
15416
15417         PR target/30173
15418         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
15419
15420 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
15421
15422         * target.h (struct gcc_target): New field library_rtti_comdat.
15423         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
15424         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
15425         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
15426         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
15427
15428 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
15429
15430         * doc/invoke.texi (Optimize Options): Correct description of -O0.
15431
15432 2007-01-08  Richard Guenther  <rguenther@suse.de>
15433
15434         * tree.h (force_fit_type_double): Export.
15435         (force_fit_type): Remove.
15436         * fold-const.c (force_fit_type_double): New function.
15437         (force_fit_type): Remove.
15438         (int_const_binop): Use it.
15439         (fold_convert_const_int_from_int): Likewise.
15440         (fold_convert_const_int_from_real): Likewise.
15441         (fold_div_compare): Likewise.
15442         (fold_sign_changed_comparison): Likewise.
15443         (fold_unary): Likewise.
15444         (fold_negate_const): Likewise.
15445         (fold_abs_const): Likewise.
15446         (fold_not_const): Likewise.
15447         * c-common.c (shorten_compare): Use force_fit_type_double.
15448         * convert.c (convert_to_pointer): Likewise.
15449
15450 2007-01-08  Richard Guenther  <rguenther@suse.de>
15451
15452         * tree.h (build_int_cst_wide_type): Export.
15453         * tree.c (build_int_cst_wide_type): New function.
15454         (build_int_cst_wide): Fix comment.
15455         * builtins.c (fold_builtin_object_size): Use build_int_cst
15456         to build -1 or 0 of the correct type.  Use fit_double_type
15457         to check for overflow.
15458         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
15459         to build the mask.
15460         (decode_field_reference): Likewise.
15461         (all_ones_mask_p): Likewise.
15462         (native_interpret_int): Use build_int_cst_wide_type.
15463         (fold_binary): Use build_int_cst_type to build an all-ones
15464         value.
15465         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
15466
15467 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
15468
15469         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
15470
15471 2007-01-09  Ben Elliston  <bje@au.ibm.com>
15472
15473         * genautomata.c (STATS_OPTION): New option.
15474         (stats_flag): New flag.
15475         (gen_automata_option): Handle it.
15476         (initiate_automaton_gen): Ditto.
15477         (write_automata): Output statistics only if stats_flag is
15478         set. Likewise, output time statistics only if time_flag is set.
15479         * doc/md.texi (Processor pipeline description): Document new flag.
15480
15481 2007-01-08  Richard Guenther  <rguenther@suse.de>
15482
15483         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
15484         * tree.c (build_int_cst_type): Likewise.
15485         (size_in_bytes): Don't call force_fit_type on the result.
15486         (int_fits_type_p): Use fit_double_type.
15487         * fold-const.c (fit_double_type): New function.
15488         (force_fit_type): Use it.
15489         * tree.h (fit_double_type): Export.
15490
15491 2007-01-08  Jan Hubicka  <jh@suse.cz>
15492
15493         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
15494         * ipa.c (function_and_variable_visibility): Fix return type.
15495
15496 2007-01-08  Richard Guenther  <rguenther@suse.de>
15497
15498         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
15499         of offset to build the index.
15500         * tree-pretty-print.c (dump_generic_node): Don't build negated
15501         const just for printing.
15502         * c-pretty-print.c (pp_c_integer_constant): Likewise.
15503         * builtins.c (fold_builtin_int_roundingfn): Check if result
15504         fits the type by using force_fit_type and comparing the result.
15505         * predict.c (predict_loops): Use compare_tree_int for comparison.
15506         * tree.c (build_int_cst): Fall back to integer_type_node for
15507         NULL_TREE type.
15508         (build_int_cst_wide): Assert type is non-null.
15509
15510 2007-01-08  Roberto Costa  <roberto.costa@st.com>
15511
15512         * tree-vrp.c (extract_range_from_cond_expr): New.
15513         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
15514         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
15515         as expressions.
15516         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
15517         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
15518         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
15519         used as expressions.
15520         * tree-object-size.c (cond_expr_object_size): New.
15521         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
15522
15523 2007-01-08  Jan Hubicka  <jh@suse.cz>
15524
15525         * tree-ssa-forwprop.c (forward_propagate_into_cond,
15526         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
15527         statement.
15528
15529 2007-01-08  Richard Guenther  <rguenther@suse.de>
15530
15531         PR tree-optimization/23603
15532         * tree-vrp.c (set_value_range_to_truthvalue): New function.
15533         (extract_range_from_binary): Fall back to truthvalue instead of
15534         varying for TRUTH_*_EXPR.
15535         (extract_range_from_comparison): Fall back to truthvalue instead of
15536         varying.
15537         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
15538         if all visited PHI values were constant.
15539
15540 2007-01-08  Jan Hubicka  <jh@suse.cz>
15541
15542         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
15543         (cgraph_analyze_function): break out from ...
15544         (cgraph_finalize_compilation_unit): ... here.
15545         (cgraph_expand_function): Remove forgoten commented out line.
15546         (cgraph_optimize): Analyze functions.
15547
15548 2007-01-08  Jan Hubicka  <jh@suse.cz>
15549
15550         * tree-pas.h (TODO_remove_function): New flag.
15551         (TODO_update*): Renumber.
15552         (pass_ipa_increase_alignment,
15553         pass_ipa_function_and_variable_visibility): New passes.
15554         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
15555         (cgraph_function_and_variable_visibility): Move to ipa.c
15556         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
15557         cgraph_increase_alignment.
15558         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
15559         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
15560         calling tree-inline.
15561         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
15562         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
15563         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
15564         (gate_increase_alignment): New function.
15565         (pass_ipa_increase_alignment): New pass.
15566         * ipa.c: Inline tree-pass.h and timevar.h
15567         (function_and_variable_visibility): Move here from cgraphunit.c
15568         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
15569         * passes.c (init_optimization_passes): Add the two new passes.
15570         (execute_todo): Handle cgraph_remove_functions.
15571
15572 2007-01-08  Nick Clifton  <nickc@redhat.com>
15573
15574         * config/frv/predicates.md (reg_or_0_operand): Accept
15575         CONST_DOUBLEs.
15576
15577 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
15578
15579         * config/bfin/rtems.h, config/bfin/t-rtems: New.
15580         * config.gcc: Add bfin*-rtems*.
15581
15582 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
15583
15584         * c.opt: Add -flax-vector-conversions.
15585         * c-typeck.c (convert_for_assignment): Pass flag to
15586         vector_types_convertible_p to allow emission of note.
15587         (digest_init): Likewise.
15588         * c-opts.c: Handle -flax-vector-conversions.
15589         * c-common.c (flag_lax_vector_conversions): New.
15590         (vector_types_convertible_p): Unless -flax-vector conversions
15591         has been passed, disallow conversions between vectors with
15592         differing numbers of subparts and/or element types.  If such
15593         a conversion is disallowed, possibly emit a note on the first
15594         occasion only to inform the user of -flax-vector-conversions.
15595         The new last argument specifies this.
15596         * c-common.h (flag_lax_vector_conversions): New.
15597         (vector_types_convertible_p): Add extra argument.
15598         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
15599         char_type_node for V*QI type vectors.
15600         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
15601         Update to satisfy new typechecking rules.
15602         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
15603         C and C++ variants.
15604         * doc/invoke.texi (C Dialect Options): Document
15605         -flax-vector-conversions.
15606
15607 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
15608
15609         PR tree-optimization/29877
15610         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
15611         a register variable on the RHS to not be replaceable.
15612
15613 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
15614         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
15615         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
15616         const_simm15, const_pow2, const_npow2): Added.
15617         * config/score/misc.md (insv, extv, extzv, movmemsi,
15618         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
15619         * config/score/score.c (score_address_cost, score_select_cc_mode):
15620         Added.
15621         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
15622         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
15623         Update score_print_operand.
15624         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
15625         Adjust register allocate order and update some macro define.
15626         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
15627         mdx_block_move_straight, mdx_block_move_loop_head,
15628         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
15629         mdx_block_move): Added.
15630         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
15631         mdp_limm): Updated and fix some bug and typo.
15632         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
15633         (movsf, movdf, doloop_end): Added.
15634
15635 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
15636
15637         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
15638         config/arm/thumb2.md: Fix comment typos.
15639         * doc/extend.texi: Fix a typo.
15640
15641 2007-01-07  Eric Christopher  <echristo@apple.com>
15642
15643         * configure.ac: Check for __stack_chk_fail for darwin.
15644         * configure: Regenerate.
15645
15646 2007-01-07  Richard Guenther  <rguenther@suse.de>
15647
15648         * tree-vrp.c (extract_range_from_assert): CSE calls to
15649         compare_values where possible.
15650         (extract_range_from_unary_expr): Likewise.
15651
15652 2007-01-07  Anatoly Sokolov <aesok@post.ru>
15653
15654         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
15655         * config/avr/avr.c (call_insn_operand): Delete function.
15656         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
15657         instead of register number. Use predicates.
15658         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
15659         call_insn_operand): Add.
15660
15661 2007-01-06  Jan Hubicka  <jh@suse.cz>
15662
15663         * tree-pass.h (pass_build_cgraph_edges): Declare.
15664         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
15665         (visited_nodes): Remove.
15666         (cgraph_create_edges): Move to cgraphbuild.c; rename to
15667         build_cgrpah_edges; make visited_nodes local.
15668         (cgraph_process_new_functions): DO not call initialize_inline_failed.
15669         (record_references_in_initializer): Move to cgraphbuild.c
15670         (initialize_inline_failed, rebuild_cgraph_edges,
15671         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
15672         (verify_cgraph_node): Make visited_nodes local.
15673         (cgraph_analyze_function): Do not call cgraph_create_edges and
15674         initialize_inline_failed.
15675         (cgraph_expand_function): Do not call cgraph_lower_function;
15676         assert that function is already lowered.
15677         * Makefile.in (cgraphbuild.o): New.
15678         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
15679         at the end of lowering passes.
15680
15681 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
15682
15683         * ifcvt.c (cond_move_convert_if_block): New function, code
15684         factored out from...
15685         (cond_move_process_if_block): ...here.  Call the new function
15686         on the THEN and ELSE blocks.
15687         (merge_if_block): Do not copy global_live_at_end, merge_blocks
15688         already takes care of this.
15689
15690 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15691
15692         PR c/19978
15693         * tree.h (TREE_OVERFLOW_P): New.
15694         * c-typeck.c (parser_build_unary_op): Warn only if result
15695         overflowed and operands did not.
15696         (parser_build_binary_op): Likewise.
15697         (convert_for_assignment): Remove redundant overflow_warning.
15698         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
15699
15700 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15701
15702         * c-typeck.c (store_init_value): Split over two lines to follow
15703         the GNU coding style.
15704
15705 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
15706
15707         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
15708         __GXX_EXPERIMENTAL_CXX0X__.
15709         * doc/cpp.texi: Same.
15710
15711 2007-01-05  Richard Guenther  <rguenther@suse.de>
15712
15713         PR middle-end/27826
15714         * tree.c (get_narrower): Do not construct COMPONENT_REFs
15715         with mismatched types.  Instead explicitly build a
15716         conversion NOP_EXPR.
15717
15718 2007-01-05  Ian Lance Taylor  <iant@google.com>
15719
15720         * c-common.c (decl_with_nonnull_addr_p): New function.
15721         (c_common_truthvalue_conversion): Call it.
15722         * c-typeck.c (build_binary_op): Likewise.
15723         * c-common.h (decl_with_nonnull_addr_p): Declare.
15724
15725 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
15726
15727         PR c/30360
15728         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
15729         denom against 0.0.
15730
15731 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
15732
15733         * doc/install.texi (Final install): Document the fact that
15734         the GNAT runtime should not be stripped.
15735
15736 2007-01-04  Jan Hubicka  <jh@suse.cz>
15737
15738         * tree-inline.c (fold_marked_statements): Update operand caches
15739         and EH after folding
15740
15741 2007-01-04  Ian Lance Taylor  <iant@google.com>
15742
15743         * c-common.c (check_function_nonnull): Whitespace fix.
15744
15745 2007-01-04  Jan Hubicka  <jh@suse.cz>
15746
15747         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
15748         comitted older version of patch.
15749         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
15750         function, celanup cfg and collect garbage.
15751
15752 2007-01-04  Mike Stump  <mrs@apple.com>
15753
15754         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
15755         (clean): Likewise.
15756
15757 2007-01-04  Eric Christopher  <echristo@apple.com>
15758
15759         * libgcc2.c (__bswapsi2): Use SItype.
15760         (__bswapdi2): Use DItype.
15761         * libgcc2.h: Update for above.
15762
15763 2007-01-04  Paul Brook  <paul@codesourcery.com>
15764
15765         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
15766         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
15767         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
15768         umulsidi3, umulsidi3adddi, smulsi3_highpart,
15769         umulsi3_highpart): Make conditional on !arm_arch6.
15770         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
15771         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
15772         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
15773         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
15774         umulsi3_highpart_v6): New insns.
15775
15776 2007-01-04  Roger Sayle  <roger@eyesopen.com>
15777
15778         * fold-const.c (fold_convert): When casting an expression to void,
15779         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
15780         have a type.  Instead of attempting to build a NOP_EXPR, return
15781         these "special" trees directly.
15782
15783 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
15784
15785         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
15786         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
15787         rs6000_cost->fp not 0 as adjustment for outer NEG.
15788
15789 2007-01-04  Jan Hubicka  <jh@suse.cz>
15790
15791         * cgraph.c (cgraph_release_function_body): New function.
15792         (cgraph_remove_node): Use it.
15793         * cgraph.h (cgraph_release_function_body): Declare.
15794         * cgraphunit.c (cgraph_expand_function): Use it.
15795         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
15796         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
15797         is initialized and while compilation of other function is running.
15798         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
15799         statement CFG annotations from here to ...
15800         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
15801
15802 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
15803
15804         * cfgloop.h (enum li_flags): Make the constants powers of two.
15805
15806 2007-01-04  Jan Hubicka  <jh@suse.cz>
15807
15808         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
15809         set.
15810         (fold_marked_statements): New function.
15811         (optimize_inline_calls, tree_function_versioning): Fold new statements.
15812         * tree-inline.h (copy_body_data): Add statements_to_fold.
15813
15814 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
15815
15816         * config.gcc: Mention libgcc/config.host.
15817         * Makefile.in: Update comments mentioning libgcc.
15818         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
15819         (all.cross, start.encap, rest.encap, rest.cross): Update
15820         dependencies for libgcc move.
15821         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
15822         (clean-target, clean-target-libgcc): Delete.
15823         (srcdirify, GCC_EXTRA_PARTS): New macros.
15824         (libgcc-support, libgcc.mvars): New rules.
15825         (distclean): Remove mention of mklibgcc.
15826         (install): Don't reference INSTALL_LIBGCC.
15827         (install-common): Don't reference EXTRA_PARTS.
15828         (install-libgcc, install-multilib): Delete rules.
15829         * mklibgcc.in: Delete file.
15830         * doc/configfiles.texi: Don't mention mklibgcc.
15831
15832         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
15833         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
15834         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
15835         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
15836         (mklibgcc, ldblspecs): Likewise.
15837
15838         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
15839         (posixpre.def): Use $(T).
15840         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
15841         (SHLIB_SRC, SHLIB_INSTALL): Delete.
15842         (SHLIB_LINK): Make dummy.
15843         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
15844
15845         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
15846
15847         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
15848         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
15849         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
15850         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
15851
15852         * configure.ac (all_outputs): Remove mklibgcc.
15853         * configure: Regenerated.
15854
15855 2007-01-03  Josh Conner  <jconner@apple.com>
15856
15857         PR middle-end/29683
15858         * calls.c (compute_argument_addresses): Set stack and stack_slot
15859         for partial args, too.
15860         (store_one_arg): Use locate.size.constant for the size when
15861         generating a save_area.
15862
15863 2007-01-03  Robert Kennedy <jimbob@google.com>
15864
15865         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
15866         whose definitions are deleted due to basic block merging.
15867
15868 2007-01-03  Paul Brook  <paul@codesourcery.com>
15869
15870         PR target/16634
15871         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
15872         functions.
15873         (use_return_insn): Return 0 for Thumb interrupt functions.
15874         (print_multi_reg): Add rfe argument for IRQ returns.
15875         (arm_output_epilogue): Pop interrupt return address directly into PC.
15876         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
15877
15878 2007-01-03  Paul Brook  <paul@codesourcery.com>
15879
15880         Merge from sourcerygxx-4_1.
15881         * config/arm/thumb2.md: New file.
15882         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
15883         Thumb-2.
15884         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
15885         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
15886         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
15887         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
15888         tables.
15889         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
15890         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
15891         comptibility.
15892         * config/arm/ieee754-sf.S: Ditto.
15893         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
15894         (thumb1_base_register_rtx_p): ... to this.
15895         (thumb_index_register_rtx_p): Rename...
15896         (thumb1_index_register_rtx_p): ... to this.
15897         (thumb_output_function_prologue): Rename...
15898         (thumb1_output_function_prologue): ... to this.
15899         (thumb_legitimate_address_p): Rename...
15900         (thumb1_legitimate_address_p): ... to this.
15901         (thumb_rtx_costs): Rename...
15902         (thumb1_rtx_costs): ... to this.
15903         (thumb_compute_save_reg_mask): Rename...
15904         (thumb1_compute_save_reg_mask): ... to this.
15905         (thumb_final_prescan_insn): Rename...
15906         (thumb1_final_prescan_insn): ... to this.
15907         (thumb_expand_epilogue): Rename...
15908         (thumb1_expand_epilogue): ... to this.
15909         (arm_unwind_emit_stm): Rename...
15910         (arm_unwind_emit_sequence): ... to this.
15911         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
15912         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
15913         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
15914         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
15915         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
15916         thumb2_output_casesi): New functions.
15917         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
15918         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
15919         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
15920         THUMB2_WORK_REGS): Define.
15921         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
15922         arm_condexec_mask, arm_condexec_masklen)): New variables.
15923         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
15924         (arm_override_options): Check new CPU capabilities.
15925         Set new architecture flag variables.
15926         (arm_isr_value): Handle v7m interrupt functions.
15927         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
15928         Thumb-2.
15929         (const_ok_for_arm): Handle Thumb-2 constants.
15930         (arm_gen_constant): Ditto.  Use movw when available.
15931         (arm_function_ok_for_sibcall): Return false for v7m interrupt
15932         functions.
15933         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
15934         (thumb_find_work_register, arm_load_pic_register,
15935         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
15936         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
15937         print_multi_reg, output_mov_long_double_fpa_from_arm,
15938         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
15939         output_mov_double_fpa_from_arm, output_move_double,
15940         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
15941         output_return_instruction, arm_output_function_prologue,
15942         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
15943         arm_output_mi_thunk, thumb_set_return_address): Ditto.
15944         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
15945         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
15946         (arithmetic_instr, shift_op): Use arm_shift_nmem.
15947         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
15948         '!' and 'L'.
15949         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
15950         (thumb_expand_prologue): Use thumb_set_frame_pointer.
15951         (arm_file_start): Output directive for unified syntax.
15952         (arm_unwind_emit_set): Handle stack alignment instruction.
15953         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
15954         Add v6t2, v7, v7a, v7r and v7m.
15955         (RETLDM): Add Thumb-2 code.
15956         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
15957         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
15958         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
15959         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
15960         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
15961         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
15962         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
15963         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
15964         ADJUST_INSN_LENGTH): Define.
15965         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
15966         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
15967         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
15968         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
15969         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
15970         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
15971         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
15972         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
15973         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
15974         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
15975         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
15976         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
15977         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
15978         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
15979         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
15980         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
15981         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
15982         cortex-m3.
15983         * config/arm/arm-tune.md: Regenerate.
15984         * config/arm/arm-protos.h: Update prototypes.
15985         * config/arm/vfp.md: Enable patterns for Thumb-2.
15986         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
15987         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
15988         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
15989         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
15990         * config/arm/libunwind.S: Add Thumb-2 code.
15991         * config/arm/constraints.md: Update include Thumb-2.
15992         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
15993         * config/arm/ieee754-df.S: Ditto.
15994         * config/arm/bpabi.S: Ditto.
15995         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
15996         * config/arm/predicates.md (low_register_operand,
15997         low_reg_or_int_operand, thumb_16bit_operator): New.
15998         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
15999         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
16000         * config/arm/t-arm-elf: Add armv7 multilib.
16001         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
16002         Include thumb2.md.
16003         (UNSPEC_STACK_ALIGN, ce_count): New.
16004         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
16005         arm_zero_extendsidi2, arm_zero_extendqidi2): New
16006         insns/expanders.
16007         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
16008         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
16009         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
16010         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
16011         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
16012         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
16013         insns.
16014         * doc/extend.texi: Document ARMv7-M interrupt functions.
16015         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
16016
16017 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
16018
16019         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
16020         (struct _Unwind_Context): Rename args_size to flags, remove
16021         signal_frame field, add a new args_size field and version field.
16022         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
16023         _Unwind_IsExtendedContext): New inline functions.
16024         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
16025         Assume by_value array is only present if _Unwind_IsExtendedContext.
16026         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
16027         _Unwind_IsSignalFrame.
16028         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
16029         (uw_update_context_1): Use _Unwind_SetSignalFrame.
16030         (uw_init_context_1): Initialize context->flags to
16031         EXTENDED_CONTEXT_BIT.
16032         * config/rs6000/linux-unwind.h (frob_update_context): Use
16033         _Unwind_SetSignalFrame.
16034
16035 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16036
16037         PR middle-end/30353
16038         * gimplify.c (gimplify_modify_expr_complex_part): Move below
16039         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
16040         the value.
16041
16042 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
16043
16044         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
16045         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
16046         RET, AT_SP): Remove.
16047         * config/i386/i386.md (*sse_prologue_save_insn): Use return
16048         instead of RET.
16049
16050         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
16051         * cfgbuild.c (find_basic_blocks): Likewise.
16052         * cfgrtl.c (rtl_create_basic_block): Likewise.
16053         * function.c (temp_slots_at_level): Likewise.
16054         * reg-stack.c (stack_regs_mentioned): Likewise.
16055         * regclass.c (allocate_reg_info): Likewise.
16056         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
16057         set_bb_for_stmt, move_block_to_fn): Likewise.
16058         * tree-complex.c (tree_lower_complex): Likewise.
16059         * vec.h (VEC_safe_grow_cleared): New.
16060
16061         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
16062
16063 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
16064
16065         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
16066         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
16067         to loop_version.
16068         * cfgloopmanip.c (scale_loop_frequencies): Export.
16069         (loopify): Scale the frequencies by prescribed coefficients.
16070         (set_zero_probability): New function.
16071         (duplicate_loop_to_header_edge): Improve updating of frequencies.
16072         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
16073         and frequencies according to arguments.
16074         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
16075         correctly.
16076         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
16077         * modulo-sched.c (sms_schedule): Set probabilities for entering
16078         versioned loop correctly.
16079         * tree-vect-transform.c (vect_transform_loop): Ditto.
16080         * cfgloop.h (loopify, loop_version): Declaration changed.
16081         (scale_loop_frequencies): Declared.
16082
16083 2007-01-02  Jan Hubicka  <jh@suse.cz>
16084
16085         * cgraph.c: Include tree-flow.h
16086         (cgraph_add_new-function): Handle IPA_SSA mode; execute
16087         early_local_passes.
16088         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
16089         * tree-pass.h (pass_all_early_optimizations): Declare.
16090         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
16091         early_local_passes.
16092         (cgraph_analyze_function): Do early_local_passes.
16093         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
16094         Do not add referenced vars.
16095         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
16096         SSA form.
16097         (gate_all_early_local_passes): New gate.
16098         (pass_early_local_passes): Use new gate.
16099         (execute_early_local_optimizations): New functions.
16100         (gate_all_early_optimizations): New gate.
16101         (pass_all_early_optimizations): New pass.
16102         (execute_free_datastructures): Free SSA only when initialized.
16103         (gate_init_datastructures): Init only when optimizing.
16104         (tree_lowering_passes): Do early local passes when called late.
16105         * tree-profile.c (do_tree_profiling): Don't profile functions added
16106         late.
16107         (do_early_tree_profiling, pass_early_tree_profile): Kill.
16108         * tree-cfg.c (update_modified_stmts): Do not update when operands are
16109         not active.
16110         * passes.c (init_optimizations_passes): Reorder so we go into SSA
16111         during early_local_passes.
16112         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
16113
16114
16115 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
16116
16117         * Makefile.in: Update copyright year.
16118
16119 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
16120
16121         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
16122         in $(lang_checks) and check-consistency targets.
16123
16124 2007-01-02  Jan Hubicka  <jh@suse.cz>
16125
16126         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
16127         Do not add referenced vars.
16128         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
16129         are not active.
16130         * passes.c (init_optimization_passes): Put mudflap_2 after
16131         free_datastructures.
16132
16133 2007-01-02  Jan Hubicka  <jh@suse.cz>
16134
16135         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
16136         Set NOTHROW flag on call statements proved to be nothrow.
16137         Update statement of local calls so new pure/const functions are
16138         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
16139         goto receivers.
16140         (tree_rest_of_compilation): Register hooks and initialize bitmap
16141         early. Do not set after_inlining flag.
16142
16143 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
16144
16145         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
16146         HOST_BITS_PER_LONGLONG
16147
16148 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16149
16150         PR c/19977
16151         * c-typeck.c (store_init_value): Don't emit pedantic overflow
16152         warning for non-static initializers.
16153
16154 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
16155
16156         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
16157         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
16158         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
16159         Always use set_unique_reg_note to add REG_EQUAL notes.
16160
16161 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
16162
16163         Revert:
16164         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
16165
16166         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
16167         * cfgbuild.c (find_basic_blocks): Likewise.
16168         * cfgrtl.c (rtl_create_basic_block): Likewise.
16169         * function.c (temp_slots_at_level): Likewise.
16170         * reg-stack.c (stack_regs_mentioned): Likewise.
16171         * regclass.c (allocate_reg_info): Likewise.
16172         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
16173         set_bb_for_stmt, move_block_to_fn): Likewise.
16174         * tree-complex.c (tree_lower_complex): Likewise.
16175         * vec.h (VEC_safe_grow_cleared): New.
16176
16177 2007-01-02  Ian Lance Taylor  <iant@google.com>
16178
16179         * c-common.c (c_common_truthvalue_conversion): When warning about
16180         using an assignment as a truth value, set TREE_NO_WARNING.
16181
16182 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16183
16184         PR middle-end/7651
16185         * c.opt (Wold-style-declaration): New.
16186         * doc/invoke.texi (C-only Warning Options): New.
16187         (Wold-style-declaration): Document it.
16188         (Wextra): Enabled by -Wextra.
16189         * c-opts.c (c_common_post_options): Enabled by -Wextra.
16190         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
16191         -Wold-style-declaration.
16192
16193 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
16194
16195         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
16196         * cfgbuild.c (find_basic_blocks): Likewise.
16197         * cfgrtl.c (rtl_create_basic_block): Likewise.
16198         * function.c (temp_slots_at_level): Likewise.
16199         * reg-stack.c (stack_regs_mentioned): Likewise.
16200         * regclass.c (allocate_reg_info): Likewise.
16201         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
16202         set_bb_for_stmt, move_block_to_fn): Likewise.
16203         * tree-complex.c (tree_lower_complex): Likewise.
16204         * vec.h (VEC_safe_grow_cleared): New.
16205
16206 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
16207
16208         * c-common.c (c_common_nodes_and_builtins): Since variants of
16209         void_type_node get built before it is given a name, we need to
16210         give those variants the name, too.
16211         (complete_array_type): We need to work with the canonical main
16212         type of the array, from which we will build the qualified version.
16213         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
16214         * print-tree.c (print_node): Display canonical type information
16215         for each type.
16216         * stor-layout.c (layout_type): When we don't know the
16217         alignment of a type for which we're building an array, we end up
16218         guessing wrong, so make the type require structural equality.
16219         * tree.c (make_node_stat): When we build a new type, it is its
16220         own canonical type.
16221         (build_type_attribute_qual_variant): When building an attribute
16222         variant, its canonical type is the non-attribute variant. However,
16223         if the attributes are target-dependent and they differ, we need to
16224         use structural equality checks for this type.
16225         (build_qualified_type): A qualified type is not equivalent to its
16226         unqualified variant; set the canonical type appropriately.
16227         (build_distinct_type_copy): When building a distinct type from
16228         another type, the new type is its own canonical type.
16229         (build_variant_type_copy): When building a new type variant, we
16230         assume that it is equivalent to the original type.
16231         (build_pointer_type_for_mode): When building a pointer type, also
16232         build a canonical type pointer.
16233         (build_reference_type_for_mode): When building a reference type,
16234         also build a canonical type reference.
16235         (build_index_type): When we can't hash an index type (e.g.,
16236         because its maximum value is negative), the index type requires
16237         structural equality tests.
16238         (build_array_type): Build the canonical form of an array type.
16239         (build_function_type): Function types require structural equality,
16240         because they contain default arguments, attributes, etc.
16241         (build_method_type_directly): Ditto for method types.
16242         (build_offset_type): Build the canonical offset type.
16243         (build_complex_type): Build the canonical vector type.
16244         (make_vector_type): Build the canonical vector type.
16245         * tree.h (TYPE_CANONICAL): New.
16246         (TYPE_STRUCTURAL_EQUALITY_P): New.
16247         (SET_TYPE_STRUCTURAL_EQUALITY): New.
16248         (struct tree_type): Added "canonical" field.
16249         * params.h (VERIFY_CANONICAL_TYPES): New.
16250         * doc/c-tree.texi (TYPE_CANONICAL): Document.
16251         (TYPE_STRUCTURAL_EQUALITY_P): Document.
16252         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
16253         * doc/invoke.texi (verify-canonical-types): Document --param
16254         parameter for verifying canonical types.
16255
16256 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
16257
16258         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
16259         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
16260         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
16261         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
16262         tm_file.
16263         * config/rs6000/e500.h: New.
16264         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
16265         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
16266         Remove.
16267         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
16268         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
16269         TARGET_E500_DOUBLE): Remove.
16270         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
16271         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
16272         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
16273         * config/rs6000/rs6000.c (rs6000_override_options): Use
16274         CHECK_E500_OPTIONS.
16275
16276 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
16277
16278         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
16279         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
16280         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
16281         rs6000_emit_cmove): Don't check TARGET_E500.
16282         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
16283         sordered): Don't check TARGET_E500.
16284
16285 2007-01-01  Eric Christopher  <echristo@apple.com>
16286
16287         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
16288         HARD_REGISTER_NUM_P.
16289
16290 2007-01-01  Roger Sayle  <roger@eyesopen.com>
16291
16292         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
16293         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
16294         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
16295         eq/ne Y".
16296
16297 2007-01-01  Mike Stump  <mrs@apple.com>
16298
16299         * configure.ac: Remove support for building with Apple's gcc-3.1.
16300
16301 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
16302
16303         PR middle-end/30311
16304         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
16305         REG is a hard register.  Do not modify REG before calling
16306         subreg_nregs.
16307         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
16308         multiple of the size of YMODE for certain lowpart cases.
16309
16310 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
16311
16312         PR middle-end/30253
16313         * gimplify (voidify_wrapper_expr): Update for
16314         GIMPLE_MODIFY_STMT.
16315
16316 2007-01-01  Andreas Schwab  <schwab@suse.de>
16317
16318         PR target/29166
16319         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
16320         save of BR0 in extra_spill_size instead of spill_size.
16321         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
16322         area.
16323         (ia64_expand_epilogue): Restore BR0 from its new location.
16324
16325 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
16326
16327         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
16328         Use a temporary variable if the left hand side is not a gimple
16329         register.
16330
16331 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
16332
16333         * gimplify.c (gimplify_return_expr): Make the temporary variable
16334         for the return expression, a gimple register variable.
16335
16336 2007-01-01  Jan Hubicka  <jh@suse.cz>
16337
16338         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
16339         INSN_LIST.
16340
16341 2007-01-01  Mike Stump  <mrs@apple.com>
16342
16343         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
16344         .literal16.
16345         * config/darwin.c (machopic_select_rtx_section): Use
16346         HAVE_GAS_LITERAL16.
16347         (darwin_mergeable_constant_section): Likewise.
16348         * configure: Regenerate.
16349         * config.in: Regenerate.
16350
16351 2007-01-01  Jan Hubicka  <jh@suse.cz>
16352             Andrew Pinski  <pinskia@gmail.com>
16353
16354         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
16355         before starting IPA passes.