OSDN Git Service

* doc/invoke.texi (Optimize Options): Typo fix.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-12-20  Ben Elliston  <bje@au.ibm.com>
2
3         * doc/invoke.texi (Optimize Options): Typo fix.
4
5 2006-12-19  Eric Christopher  <echristo@apple.com>
6
7         * config/darwin.c (machopic_select_section): Rewrite.
8         (darwin_text_section): New.
9         (darwin_rodata_section): Ditto.
10         (darwin_mergeable_string_section): Ditto.
11         (darwin_mergeable_constant_section): Ditto.
12         * config/darwin-sections.def: Add SECTION_STRINGS for cstring_section.
13
14 2006-12-19  Steve Ellcey  <sje@cup.hp.com>
15
16         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL):  Add undef.
17
18 2006-12-19  Paolo Bonzini  <bonzini@gnu.org>
19
20         PR bootstrap/29544
21         * gcc/Makefile.in (STAGE1_CHECKING): Rename to...
22         (STAGE1_CHECKING_CFLAGS): ... this.
23
24 2006-12-18  Andrew Pinski  <pinskia@gmail.com>
25
26         PR target/29779
27         * config/rs6000/rs6000.c (altivec_init_builtins): Change to set
28         READONLY on __builtin_altivec_mask_for_load instead of adding
29         the attribute.
30
31 2006-12-18  Roger Sayle  <roger@eyesopen.com>
32             Eric Christopher  <echristo@apple.com>
33
34         PR target/29302
35         * real.c (real_maxval): Correctly handle IBM extended double format.
36
37 2006-12-19  Jan Hubicka  <jh@suse.cz>
38
39         * expmed.c (expand_mult_const): Force operand to constant.
40         * rs6000.c (rs6000_emit_set_const, rs6000_emit_set_long_const): Add
41         copy_rtx to arguments.
42
43 2006-12-19  Ben Elliston  <bje@au.ibm.com>
44
45         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
46
47 2006-12-19  Ben Elliston  <bje@au.ibm.com>
48
49         * cse.c (cse_insn): Fix formatting.
50
51 2006-12-18  Geoffrey Keating  <geoffk@apple.com>
52
53         * doc/invoke.texi (Debugging Options): Document -g0.
54         * config/darwin.h (LINK_COMMAND_SPEC): Replace -gnone with -g0.
55         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
56
57 2006-12-18  Ian Lance Taylor  <iant@google.com>
58
59         * c.opt (Wmissing-declarations): Add C++ and ObjC++.
60         * doc/invoke.texi (Warning Options): -Wmissing-declarations now
61         works for C++.
62
63 2006-12-18  Andrew MacLeod  <amacleod@redhat.com>
64
65         * tree-ssa-operands.h (struct vdef_optype_d): Rename to voptype_d.
66         (struct vuse_optype_d): Delete.
67         (SSA_OPERAND_MEMORY_SIZE): Delete.
68         (struct ssa_operand_memory_d): Change mem array to size one.
69         (NUM_VOP_FREE_BUCKETS): Define.
70         (free_vuses, free_vdefs): Replace with vop_free_buckets array.
71         (vdef_ops, vuse_ops, struct ssa_operand_iterator_d): Use voptype_d type.
72         * tree-pretty-print.c (dump_vops): Use voptype_d type.
73         * tree-ssa-operands.c (vop_free_bucket_size): New.  Number of operands
74         which fit into a chunk of memory from a specific bucket.
75         (vop_free_bucket_index): New.  Find correct size memory bucket.
76         (init_vop_buckets): New.  Initialize VOP free memory buckets.
77         (add_vop_to_freelist): New.  Add a VOP to the correct free list.
78         (ssa_operand_mem_size): New.  Current size of an operand memory chunk.
79         (init_ssa_operands): Initialize operand memory and free lists.
80         (fini_ssa_operands): Remove references to free_vuses and free_vdefs.
81         (ssa_operand_alloc): Use graduated size memory allocation.
82         (APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
83         INITIALIZE_USE): Remove.
84         (alloc_vop): New.  Allocate a virtual operand.
85         (alloc_vdef, alloc_vuse): Delete.
86         (add_def_op, add_use_op): Directly setup pointers.
87         (add_vop): New.  Add a virtual operand.
88         (add_vuse_op, add_vdef_op): Call add_vop.
89         (realloc_vop): New.  Reallocate a virtual operand.
90         (realloc_vdef, realloc_vuse): Call realloc_vop.
91         (finalize_ssa_def_ops): Delete.  Move content to finalize_ssa_defs.
92         (finalize_ssa_defs): Optimize for common case, remove code based on
93         sorted pointers which was a waste of time.
94         (finalize_ssa_use_ops): Delete.  Move content to finalize_ssa_uses.
95         (finalize_ssa_uses): Update last pointer.
96         (finalize_ssa_vdef_ops): Delete.  Move content to finalize_ssa_vdefs.
97         (finalize_ssa_vdefs, finalize_ssa_vuse_ops): Use voptype_d and
98         directly manipulate pointers.
99         (copy_virtual_operands): Use voptype_d, and no need to update pointers.
100
101 2006-12-18  Nathan Sidwell  <nathan@codesourcery.com>
102
103         * config/rs6000/rs6000.md (*movdf_hardfloat32): Use %X format to
104         determine if memory operand is an indexed address or not.
105
106 2006-12-17  Steven Bosscher  <steven@gcc.gnu.org>
107
108         * cselib.c (struct cselib_val_struct): Make val_rtx its
109         own field, remove the union that contained it.
110         * cselib.c: Update accordingly where necessary.
111
112 2006-12-17  Steven Bosscher  <steven@gcc.gnu.org>
113
114         * cse.c (have_eh_succ_edges): New function.
115         (cse_insn): Don't remove dead EH edges here
116         (cse_extended_basic_block): Do it here.
117         (rest_of_handle_cse, rest_of_handle_cse2): Don't assert
118         that we have removed all dead edges.
119
120 2006-12-17  Matthias Klose  <doko@debian.org>
121
122         PR libstdc++/11953
123         * gcc/config/mips/linux.h (SUBTARGET_CPP_SPEC): Extend.
124
125 2006-12-17  Steven Bosscher  <steven@gcc.gnu.org>
126
127         * cse.c (cse_find_path): Don't wrap a gcc_assert in ENABLE_CHECKING.
128         (cse_extended_basic_block): When truncating a path while processing
129         it, make sure to clear the visited bit on the basic blocks in the
130         truncated part of the path.
131         (cse_main): Use reverse completion order, not DFS order, to walk
132         the CFG.
133         (gate_handle_cse): Revert erroneous commit of a counter.
134
135 2006-12-17  Steven Bosscher  <steven@gcc.gnu.org>
136
137         * cse.c (this_insn_cc0, this_insn_cc0_mode): New global
138         variables, moved out from cse_insn.
139         (prev_insn): Remove this global variable).
140         (new_basic_block): Don't set it.
141         (cse_insn): Idem. Also, move code to delete unused CC0-setter
142         insns and code to set prev_insn_cc0 and prev_insn_cc0_mode
143         from here...
144         (cse_extended_basic_block): ...to here.  Do not clear
145         prev_insn_cc0 until after recording equivalences from jumps.
146
147 2006-12-16  Jan Hubicka  <jh@suse.cz>
148
149         * cgraphunit.c (ipa_passes): Clear current_function_decl.
150
151 2006-12-16  Andreas Tobler  <a.tobler@schweiz.org>
152
153         * passes.c (verify_curr_properties): Define only for ENABLE_CHECKING.
154
155 2006-12-16  Jan Hubicka  <jh@suse.cz>
156
157         * omp-low.c (expand_omp_parallel): Set function properties.
158         * function.h (struct function): Add curr_properties and last_verified.
159         * passes.c (register_dump_files): Do not set TODO_set_props for the
160         first pass
161         (init_optimization_passes): Set it here; reorder initialization so the
162         dump files appear in more logical order.
163         (last_verified, curr_properties): Kill.
164         (do_per_function): New function.
165         (execute_function_todo): Break out from ...
166         (execute_todo): ... here; handle per-function flags.
167         (clear_last_verified, verify_curr_properties,
168         update_properties_after_pass): New functions.
169         (execute_one_pass): Handle per-function properties.
170         (execute_ipa_pass_list): Use do_per_function; sanity check that cfun
171         and current_function_decls are cleared out.
172         * ipa-cp.c (constant_val_insert): Clear cfun/current_function_decl
173         after use.
174
175 2006-12-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
176
177         PR middle-end/7651
178         * c.opt (Wempty-body): New.
179         * doc/invoke.texi (Wempty-body): Document it.
180         (Wextra): Enabled by -Wextra.
181         * c-opts.c (c_common_post_options): Enabled by -Wextra.
182         * c-common.c (empty_body_warning): Replace Wextra with Wempty-body.
183         * c-parser.c (c_parser_c99_block_statement): Likewise.
184
185 2006-12-15  Jakub Jelinek  <jakub@redhat.com>
186
187         PR target/30185
188         * config/rs6000/rs6000.md (div<mode>3): Use correct mode in
189         force_reg call.
190
191 2006-12-15  Andrew Pinski  <pinski@gmail.com>
192
193         PR tree-opt/30140
194         * tree-inline.c (setup_one_parameter): Gimplify the statement if
195         the variable is not a gimple register variable.
196
197 2006-12-15  Uros Bizjak  <ubizjak@gmail.com>
198
199         * invoke.texi (mstringop-strategy): Add missing "byte_loop" value.
200
201 2006-12-14  Jan Hubicka  <jh@suse.cz>
202
203         * tree-flow.h (struct stmt_ann_d): Move bitfield references_memory
204         to proper place.
205
206 2006-12-14  Richard Guenther  <rguenther@suse.de>
207
208         PR tree-optimization/30197
209         * builtins.c (fold_builtin_cexp): New function to fold cexp
210         to cexpi and exp parts.
211         * tree-ssa-pre.c (try_combine_conversion): Also handle
212         REALPART_EXPR and IMAGPART_EXPR.
213
214 2006-12-14  Richard Guenther  <rguenther@suse.de>
215
216         PR middle-end/30172
217         * fold-const.c (fold_binary): Fold __complex__ ( x, 0 )
218         + __complex__ ( 0, y ) to __complex__ ( x, y ).
219         Fold __complex__ (x, y) * +-I to __complex__ (-+y, +-x).
220
221 2006-12-14  Richard Guenther  <rguenther@suse.de>
222
223         PR tree-optimization/30198
224         * fold-const.c (fold_unary): Fold REALPART_EXPR of cexpi to cos.
225         Fold IMAGPART_EXPR of cexpi to sin.
226
227 2006-12-14  Dorit Nuzman  <dorit@il.ibm.com>
228             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
229
230         * spu.c (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Defined.
231         (spu_init_builtins): Mark the SPU_MASK_FOR_LOAD builtin decl as read
232         only.
233         (spu_expand_builtin_1): Handle the SPU_MASK_FOR_LOAD builtin.
234         (spu_builtin_mask_for_load): New.
235         * spu-builtins.def (SPU_MASK_FOR_LOAD): Define new builtin.
236         * spu.md (UNSPEC_SPU_REALIGN_LOAD, UNSPEC_SPU_MASK_FOR_LOAD):New.
237         (vec_realign_load_<mode>, spu_lvsr): New.
238
239 2006-12-13  Ian Lance Taylor  <iant@google.com>
240
241         PR c++/19564
242         PR c++/19756
243         * c-typeck.c (parser_build_binary_op): Move parentheses warnings
244         to warn_about_parentheses in c-common.c.
245         * c-common.c (warn_about_parentheses): New function.
246         * c-common.h (warn_about_parentheses): Declare.
247         * doc/invoke.texi (Warning Options): Update -Wparentheses
248         description.
249
250 2006-12-13  Zdenek Dvorak <dvorakz@suse.cz>
251
252         * tree-ssa-loop-ivopts.c: Include tree-affine.h.
253         (divide): Removed.
254         (constant_multiple_of): Fix order of operators for division.
255         (aff_combination_const, aff_combination_elt, aff_combination_scale,
256         aff_combination_add_elt, aff_combination_add, aff_combination_convert,
257         tree_to_aff_combination, add_elt_to_tree, unshare_aff_combination,
258         aff_combination_to_tree): Moved to tree-affine.c and made to work with
259         double_int coefficients.
260         (get_computation_aff, get_computation_at): Work with double_int
261         coefficients.
262         (get_computation_cost_at): Do not use divide.
263         (rewrite_use_nonlinear_expr, rewrite_use_address, rewrite_use_compare):
264         Assert that expressing the computation did not fail.
265         * tree-ssa-address.c: Include tree-affine.h.
266         (add_to_parts, most_expensive_mult_to_index, addr_to_parts,
267         create_mem_ref): Work with double_int coefficients.
268         * tree-affine.c: New file.
269         * tree-affine.h: New file.
270         * tree-flow.h (struct affine_tree_combination): Removed.
271         * Makefile.in (tree-affine.o): Add.
272         (tree-ssa-address.o, tree-ssa-loop-ivopts.o): Add tree-affine.h
273         dependency.
274
275 2006-12-13  Peter Bergner  <bergner@vnet.ibm.com>
276
277         PR middle-end/30191
278         Revert:
279         * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and
280         the offset == 0 "then" clauses.
281         * config/rs6000/predicates.md (gpc_reg_operand): Check for
282         reload_in_progress.
283
284 2006-12-13  Uros Bizjak  <ubizjak@gmail.com>
285
286         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 53.
287         (FIXED_REGISTERS, CALL_USED_REGISTERS): Remove dir register.
288         (REG_ALLOC_ORDER): Remove one element due to removal of dir register.
289         (FRAME_POINTER_REGNUM): Update register number to 20.
290         (REG_CLASS_CONTENTS): Update contents due to removed dir register.
291         (HI_REGISTER_NAMES): Remove "dirflag".
292
293         * config/i386/i386.c (regclass_map): Remove dirflag entry.
294         (dbx_register_map, dbx64_register_map, svr4_dbx_register_map):
295         Remove "dir" entry.
296         (ix86_md_asm_clobbers): Remove "dirflag" default asm clobber.
297
298         * config/i386/i386.md (R10_REG, R11_REG): Renumber.
299         (sse_prologue_save, *sse_prologue_save_insn): Renumber
300         hardcoded SSE register numbers.
301
302         * config/i386/mmx.md (mmx_emms, mmx_femms): Renumber
303         hardcoded MMX register numbers.
304
305
306 2006-12-13  Mark Shinwell  <shinwell@codesourcery.com>
307
308         * config/arm/arm.c (arm_output_fldmx): Output FLDMD instead of
309         FLDMX.  Rename function to...
310         (vfp_output_fldmd): ...this.
311         (vfp_output_fstmx): Output FSTMD instead of FSTMX.  Rename
312         function to...
313         (vfp_output_fstmd): ...this.
314         (vfp_emit_fstmx): Don't leave space in the frame layout for the
315         FSTMX format word.  Rename function to...
316         (vfp_emit_fstmd): ...this.
317         (arm_get_vfp_saved_size): Don't add in space for the FSTMX format
318         word.
319         (arm_output_epilogue): Adjust comment to reflect use of FSTMD.
320         (arm_unwind_emit_sequence): Don't compensate for the FSTMX format
321         word.  Also emit "vsave" assembler directives in such cases rather
322         than "save".
323         * config/arm/libunwind.S (gnu_Unwind_Restore_VFP,
324         gnu_Unwind_Save_VFP): Adjust comments.
325         (gnu_Unwind_Restore_VFP_D, gnu_Unwind_Save_VFP_D): New functions
326         for saving and restoring using FSTMD and FLDMD rather than
327         FSTMX and FLDMX.
328         (gnu_Unwind_Restore_VFP_D_16_to_31, gnu_Unwind_Restore_VFP_D_16_to_31):
329         New functions for saving and restoring the VFPv3 registers 16 .. 31.
330         * config/arm/pr-support.c (gnu_unwind_execute): Add conditional
331         compilation case to correctly handle unwind opcode 0xc8 when using
332         VFP.
333         * config/arm/unwind-arm.c (struct vfpv3_regs): New.
334         (DEMAND_SAVE_VFP_D, DEMAND_SAVE_VFP_V3): New flags.
335         (__gnu_Unwind_Save_VFP_D, __gnu_Unwind_Restore_VFP_D,
336         __gnu_Unwind_Save_VFP_D_16_to_31, __gnu_Unwind_Restore_VFP_D_16_to_31):
337         Declare.
338         (restore_non_core_regs): Restore registers using FLDMD rather than
339         FLDMX if required.  Also handle restoration of VFPv3 registers.
340         (_Unwind_VRS_Pop): Handle saving and restoring of registers using
341         FSTMD and FLDMD if required; also handle VFPv3 registers 16 .. 31,
342         including cases where the caller specifies a range of registers
343         that overlaps the d15/d16 boundary.
344
345 2006-12-13  Diego Novillo  <dnovillo@redhat.com>
346
347         PR 30089
348         * tree-ssa-operands.h (SSA_OPERAND_MEMORY_SIZE): Add space to
349         accomodate 511 operands.
350
351 2006-12-13  Richard Guenther  <rguenther@suse.de>
352
353         * builtins.c (expand_builtin_cexpi): Fix typo.
354
355 2006-12-13  Jan Hubicka  <jh@suse.cz>
356
357         * Makefile.in: Add dependencies.
358         * tree-pretty-print.c: Include value-prof.h
359         (dump_generic_bb_buff): Dump histograms
360         * value-prof.c: Include pointer-set.h
361         (gimple_alloc_histogram_value, histogram_hash, histogram_eq,
362         set_histogram_value, gimple_histogram_value,
363         gimple_add_histogram_value, gimple_remove_histogram_value,
364         gimple_histogram_value_of_type, dump_histogram_value,
365         dump_histograms_for_stmt, gimple_remove_stmt_histograms,
366         gimple_duplicate_stmt_histograms, visit_hist,
367         verify_histograms): New functions.
368         (tree_value_profile_transformations): Update for new histogram API.
369         (tree_divmod_fixed_value): Update for new histogram API.
370         (tree_divmod_fixed_value_transform): Update for new histogram API.
371         (tree_mod_pow2): Update for new histogram API.
372         (tree_mod_pow2_value_transform): Update for new histogram API.
373         (tree_mod_subtract): Update for new histogram API.
374         (tree_mod_subtract_transform): Update for new histogram API.
375         (tree_stringops_transform): Update for new histogram API.
376         (tree_divmod_values_to_profile): Update for new histogram API.
377         (tree_stringops_values_to_profile): Update for new histogram API.
378         (tree_find_values_to_profile): Update for new histogram API.
379         * value-prof.h (gimple_histogram_value): Declare.
380         (gimple_histogram_value_of_type): Declare.
381         (gimple_add_histogram_value): Declare.
382         (gimple_remove_histogram_value): Declare.
383         (dump_histograms_for_stmt): Declare.
384         (gimple_remove_histogram_value): Declare.
385         (gimple_remove_stmt_histograms): Declare.
386         (gimple_duplicate_stmt_histograms): Declare.
387         (verify_histograms): Declare.
388         * function.h
389         (struct funrction): Add value_histograms hash.
390         (VALUE_HISTOGRAMS): New macro.
391         * profile.c (compute_value_histograms): update for new API.
392         * tree-inline.c: Include value-prof.h
393         (copy_bb): Update histograms.
394         * tree-flow.h (struct stmt_ann_d): Do not contain pointer to histograms;
395         reorder to get smaller memory layout.
396         * tree-cfg.c: Include value-prof.h
397         (bsi_remove): Update histograms.
398         (bsi_replace): Update histograms.
399         (verify_stmts): Call histogram verifier.
400         (tree_duplicate_bb): Update histograms.
401         (move_block_to_fn): Update histograms.
402
403 2006-12-13  Richard Guenther  <rguenther@suse.de>
404
405         * ipa-inline.c (cgraph_flatten_node): Replace leafify with
406         flatten.
407         (cgraph_decide_inlining): Likewise.
408
409 2006-12-13  Richard Guenther  <rguenther@suse.de>
410
411         PR tree-optimization/17687
412         * builtins.def (BUILT_IN_CEXPI, BUILT_IN_CEXPIF, BUILT_IN_CEXPIL):
413         New builtins for imaginary argument cexp.
414         * builtin-types.def (BT_FN_COMPLEX_FLOAT_FLOAT,
415         BT_FN_COMPLEX_DOUBLE_DOUBLE, BT_FN_COMPLEX_LONGDOUBLE_LONGDOUBLE):
416         New required builtin types.
417         * builtins.c (expand_builtin_cexpi): Declare.
418         (mathfn_built_in): Handle BUILT_IN_CEXPI.
419         (expand_builtin_cexpi): New static helper.
420         (expand_builtin): Call it.
421         (do_mpfr_sincos): Adjust for CEXPI evaluation.
422         (fold_builtin_sincos): New function to fold sincos to cepxi.
423
424 2006-12-13  Richard Guenther  <rguenther@suse.de>
425
426         * ipa-reference.c (scan_for_static_refs): Also scan
427         tcc_comparison class trees.
428
429 2006-12-12 David Daney  <ddaney@avtrex.com>
430
431         * config/mips/mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before
432         define.
433
434 2006-12-12  Andrew Pinski  <pinskia@gmail.com>
435
436         * tree-vect-transform.c (vect_permute_load_chain):
437         Set DECL_GIMPLE_REG_P to true for the vect_perm_*
438         temp variables.
439
440 2006-12-13  Sa Liu  <saliu@de.ibm.com>
441             Ben Elliston  <bje@au.ibm.com>
442
443         * config/spu/spu.h (C_COMMON_OVERRIDE_OPTIONS): Define.
444         (REGISTER_TARGET_PRAGMAS): Don't zero warn_main flag.
445         * config/spu/spu-protos.h (spu_c_common_override_options):
446         Declare.
447         * config/spu/spu-c.c (spu_c_common_override_options): New.
448         * config/spu/spu.c (spu_override_options): Whitespace fix.
449
450 2006-12-12  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
451
452         * config/spu/spu.c (cpat_info): Fix an incorrectly identified case.
453
454 2006-12-12  Geoffrey Keating  <geoffk@apple.com>
455
456         * mips-tdump.c: Replace CROSS_COMPILE with
457         CROSS_DIRECTORY_STRUCTURE.
458         * mips-tfile.c: Likewise.
459         * gcc.c: Likewise.
460         * configure.ac: Likewise.
461         * cppdefault.c: Likewise.
462         * Makefile.in: Likewise.
463         * config/alpha/osf.h: Likewise.
464         * config/i386/cygwin.h: Likewise.
465         * config/i386/beos-elf.h: Likewise.
466         * config/i386/nto.h: Likewise.
467         * config/fr30/fr30.h: Likewise.
468         * config/svr4.h: Likewise.
469         * config/rs6000/aix.h: Likewise.
470         * config/rs6000/sysv4.h: Likewise.
471         * config/pa/pa64-hpux.h: Likewise.
472         * config/pa/pa-hpux10.h: Likewise.
473         * config/pa/pa-hpux11.h: Likewise.
474         * collect2.c: Likewise.
475         * configure: Regenerate.
476
477         * doc/tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP
478         actually takes an unsigned HOST_WIDE_INT for its second parameter.
479
480 2006-12-13  Ulrich Weigand  <uweigand@de.ibm.com>
481
482         * config/spu/spu.c (TARGET_ENCODE_SECTION_INFO): Define.
483         (spu_encode_section_info): New.
484         * config/spu/spu.h (ALIGNED_SYMBOL_REF_P): Adjust.
485         (SYMBOL_FLAG_ALIGN1): New.
486
487 2006-12-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
488
489         PR tree-opt/28624
490         * tree-ssa-dom.c (eliminate_degenerate_phis): Use a temporary
491         bitmap for EXECUTE_IF_SET_IN_BITMAP.
492
493 2006-12-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
494
495         PR tree-opt/28436
496         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): Rename to ...
497         (DECL_GIMPLE_REG_P): This.
498         * fold-const.c (fold_indirect_ref_1): Fold *(foo *)&vectorfoo into
499         using BIT_FIELD_REF.
500         * omp-low.c (omp_copy_decl_2): Use the renamed DECL_GIMPLE_REG_P.
501         * tree-gimple.c (is_gimple_reg): Use the renamed DECL_GIMPLE_REG_P
502         and check for VECTOR_TYPE.
503         * expr.c (get_inner_reference): Set the mode for BIT_FIELD_REF with
504         vector types.
505         * tree-flow-inline.h (var_can_have_subvars): Use the renamed
506         DECL_GIMPLE_REG_P.
507         * gimplify.c (internal_get_tmp_var): Use the renamed DECL_GIMPLE_REG_P
508         and check for VECTOR_TYPE.
509         (gimplify_bind_expr): Likewise.
510         (gimplify_function_tree): Likewise.
511         * expmed.c: Include target.h.
512         (extract_bit_field): For vector mode, try find a better mode first.
513         If that fails use gen_lowpart (for vectors only).
514         * tree-dfa.c (make_rename_temp): Use the renamed DECL_GIMPLE_REG_P
515         and check for VECTOR_TYPE.
516         * tree-ssa-pre.c (create_expressions_by_pieces): Likewise.
517         (insert_into_preds_of_block): Likewise.
518         (insert_fake_stores): Create gimple register store_tmps for
519         vector types.
520         * tree-sra.c (sra_elt): New field, is_vector_lhs.
521         (sra_walk_expr <case BIT_FIELD_REF>): For vector types that
522         are the left hand side, set the element's is_vector_lhs to true.
523         (instantiate_element): For vector types which were on the left
524         hand size, set DECL_GIMPLE_REG_P to false.
525         * tree-nested.c (create_tmp_var_for): Use the renamed
526         DECL_GIMPLE_REG_P.
527         * tree-inline.c (declare_return_variable):  Use the renamed
528         DECL_GIMPLE_REG_P and check for VECTOR_TYPE.
529         (copy_decl_to_var):  Use the renamed DECL_GIMPLE_REG_P.
530         (copy_result_decl_to_var): Likewise.
531         * tree-vect-transform.c (vect_get_new_vect_var): For vector types,
532         create a gimple register variable.
533         (vect_permute_store_chain): Set DECL_GIMPLE_REG_P to true for the
534         vect_inter_* temp variables.
535         * Makefile.in (expmed.o): Update dependencies.
536
537 2006-12-12  Peter Bergner  <bergner@vnet.ibm.com>
538
539         * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and
540         the offset == 0 "then" clauses.
541         * config/rs6000/predicates.md (gpc_reg_operand): Check for
542         reload_in_progress.
543
544 2006-12-12  Marcin Dalecki  <martin@dalecki.de>
545
546         * doc/passes.texi: remove docs about "redundant PHI removal".
547         * tree-pass.h: remove orphaned declaration of pass_redundant_phi,
548         remove redundant pass_partition_blocks declaration.
549
550 2006-12-12  Andrew Macleod  <amacleod@redhat.com>
551
552         PR tree-optimization/30159
553         * tree-ssa-coalesce.c (coalesce_ssa_name): Process single ssa_name
554         functions in case a default_def coalesce is required.
555
556 2006-12-12  Jakub Jelinek  <jakub@redhat.com>
557
558         PR libstdc++/11953
559         * gthr-posix.h (_REENTRANT): Only define if __osf__ is defined.
560
561         * config/ia64/linux.h (CPP_SPEC): Define.
562         * config/s390/linux.h (CPP_SPEC): Define.
563
564 2006-12-12  Jim Wilson  <wilson@specifix.com>
565             Jakub Jelinek  <jakub@redhat.com>
566
567         PR rtl-optimization/27761
568         * combine.c (try_combine): Don't create a useless garbage SET
569         if PATTERN (i2) is a PARALLEL.  If added_sets_1, save
570         PATTERN (i1) resp. SET from i1src to i1dest in i1pat
571         and use it to prevent accidental modification of i1src.
572
573 2006-12-12  Ira Rosen  <irar@il.ibm.com>
574
575         * tree-vect-analyze.c (vect_analyze_data_ref_access): Add another check
576         for stores with gaps.
577         * tree-vect-transform.c (vect_permute_store_chain): Create
578         interleave_high or interleave_low according to the endianess.
579
580 2006-12-12  Richard Guenther  <rguenther@suse.de>
581
582         PR middle-end/30147
583         * fold-const.c (fold_read_from_constant_string): Only fold read
584         from constant string if the result type is integer.
585
586 2006-12-12  Olivier Hainque  <hainque@adacore.com>
587
588         * config/rs6000/t-vxworks: Remove assignment to LIB2FUNCS_EXTRA.
589
590 2006-12-12  Olivier Hainque  <hainque@adacore.com>
591
592         * config/vxlib.c: Extract tls related routines into ...
593         * config/vxlib-tls.c: New file.
594         * config/t-vxworks: Add vxlib-tls.c to LIB2FUNCS_EXTRA.
595
596 2006-12-12  Sa Liu  <saliu@de.ibm.com>
597             Ben Elliston  <bje@au.ibm.com>
598
599         * config/spu/spu.opt (mfixed-range): New option.
600         * config/spu/spu.h (spu_fixed_range_string): Declare.
601         * config/spu/spu.c (spu_override_options): Handle -mfixed-range.
602         (fix_range): New function.
603         * doc/invoke.texi (SPU Options): Document -mfixed-range.
604         * testsuite/gcc.target/spu/fixed-range.c: New.
605         * testsuite/gcc.target/spu/fixed-range-bad.c: Ditto.
606
607 2006-12-11  H.J. Lu  <hongjiu.lu@intel.com>
608
609         PR middle-end/17982
610         PR middle-end/20218
611         * cgraphunit.c (cgraph_optimize): Remove call to
612         process_pending_assemble_externals.
613
614         * config/elfos.h (ASM_OUTPUT_EXTERNAL): New.
615
616         * config/ia64/hpux.h (TARGET_ASM_FILE_END): Removed.
617
618         * config/ia64/ia64.c (ia64_asm_output_external): Rewritten.
619         (ia64_hpux_add_extern_decl): Removed.
620         (ia64_hpux_file_end): Likewise.
621         (extern_func_list): Likewise.
622         (extern_func_head): Likewise.
623
624         * output.h (assemble_external): Update comments.
625         (default_elf_asm_output_external): New.
626         (maybe_assemble_visibility): New.
627
628         * toplev.c (compile_file): Update comment.
629
630         * varasm.c (assemble_external): Always put it on
631         pending_assemble_externals.
632         (maybe_assemble_visibility): Make it extern and return int.
633         (default_elf_asm_output_external): New.
634
635 2006-12-11  Daniel Berlin  <dberlin@dberlin.org>
636
637         * tree-ssa-structalias.c (handle_ptr_arith): Return false when we
638         can't handle the pointer arithmetic.
639
640 2006-12-11  Diego Novillo  <dnovillo@redhat.com>
641
642         * doc/tree-ssa.texi: Update documentation for virtual operands
643         and the use of push_stmt_changes/pop_stmt_changes.
644         * doc/invoke.texi: Remove documentation for params
645         global-var-threshold.
646         Update documentation on max-aliased-vops.
647
648         * tree-into-ssa.c: Cleanup comments, variables and
649         spacing in various functions.
650         (regs_to_rename): Declare.
651         (mem_syms_to_rename): Declare.
652         (dump_update_ssa): Declare.
653         (debug_update_ssa): Declare.
654         (dump_names_replaced_by): Declare.
655         (debug_names_replaced_by): Declare.
656         (dump_def_blocks): Declare.
657         (debug_def_blocks): Declare.
658         (dump_defs_stack): Declare.
659         (debug_defs_stack): Declare.
660         (dump_currdefs): Declare.
661         (debug_currdefs): Declare.
662         (mark_def_sites): Do not handle virtual operands.
663         (compute_idf): Rename from find_idf.  Update users.
664         (register_new_def): Make local.  Convert second argument
665         to 'tree'.
666         Use BLOCK_DEFS_STACK directly.
667         If pushing a non-register, also push the underlying
668         symbol.
669         (rewrite_stmt): Do not handle virtual operands.
670         (dump_tree_ssa): Call dump_def_blocks, dump_defs_stack,
671         dump_currdefs and dump_tree_ssa_stats.
672         (dump_tree_ssa_stats): Also dump REPL_TBL.
673         (replace_use): Remove.  Update all users to call SET_USE
674         instead.
675         (rewrite_blocks): Move code to free memory to
676         fini_ssa_renamer.
677         (mark_def_site_blocks): Move initialization code to
678         init_ssa_renamer.
679         (init_ssa_renamer): New.
680         (fini_ssa_renamer): New.
681         (rewrite_into_ssa): Call them.
682         (prepare_block_for_update): Process SSA_OP_ALL_USES first
683         and SSA_OP_ALL_DEFS later.  Do not process virtual
684         operands separately.
685         (dump_update_ssa): Call dump_decl_set.
686         (init_update_ssa): Initialize regs_to_rename and
687         mem_syms_to_rename.
688         Call init_ssa_renamer.
689         (delete_update_ssa): Call fini_ssa_renamer.
690         Free blocks_with_phis_to_rewrite.
691         (mark_sym_for_renaming): If the variable has
692         sub-variables, also mark them.
693         If the variable belongs to a partition, also mark it.
694         (mark_set_for_renaming): Call mark_sym_for_renaming on
695         every symbol in the set.
696         (switch_virtuals_to_full_rewrite): Call
697         mark_set_for_renaming.
698         (update_ssa): Separate syms_to_rename into regs_to_rename
699         and mem_syms_to_rename.
700
701         * tree-dump.c (dump_options): Add TDF_MEMSYMS.
702         * tree-pretty-print.c (debug_generic_expr): Add TDF_MEMSYMS.
703         (debug_generic_stmt): Likewise.
704         (debug_tree_chain): Likewise.
705         (dump_symbols): New.
706         (dump_generic_node): Check for TDF_MEMSYMS.
707         Handle MEMORY_PARTITION_TAG.
708         If the statement references memory and TDF_MEMSYMS is
709         given, call dump_symbols.
710         Indicate default names with (D).
711         (dump_vops): Update for new virtual operator format.
712
713         * tree.c (init_ttree): Add MEMORY_PARTITION_TAG to
714         tree_contains_struct.
715         (tree_code_size): Handle MEMORY_PARTITION_TAG.
716         (tree_node_structure): Likewise.
717         (needs_to_live_in_memory): Handle SSA names.
718         * tree.h (MTAG_P): Likewise.
719         (struct tree_memory_partition_tag): Declare.
720         (MPT_SYMBOLS): Define.
721         (union tree_node): Add field 'mpt'.
722         * treestruct.def (TS_MEMORY_PARTITION_TAG): Define.
723         * tree.def (MEMORY_PARTITION_TAG): Define.
724
725         * tree-pass.h (TDF_MEMSYMS): Define.
726
727         * params.h (GLOBAL_VAR_THRESHOLD): Remove.
728
729         * tree-ssa-alias.c: Include pointer-set.h
730         (struct alias_map_d): Remove fields total_alias_vops,
731         grouped_p and may_aliases.  Update all users.
732         (struct mp_info_def): Declare.
733         (mp_info_t): New type.
734         (get_smt_for): Rename from get_tmt_for.  Update all
735         users.
736         (add_may_alias): Add argument ALREADY_ADDED.  If given,
737         use it to avoid adding duplicate entries to alias sets.
738         (replace_may_alias): Remove.  Update all users.
739         (total_alias_vops_cmp): Remove.  Update all users.
740         (group_aliases_into): Remove.  Update all users.
741         (tree_pointer_compare): Remove.  Update all users.
742         (compact_name_tags): Remove.  Update all users.
743         (group_aliases): Remove.  Update all users.
744         (mark_non_addressable): Move from tree-flow-inline.h.
745         Remove the symbol from the partition holding it, if
746         needed.
747         (dump_mp_info): New.
748         (debug_mp_info): New.
749         (sort_mp_info): New.
750         (create_partition_for): New.
751         (rewrite_alias_set_for): New.
752         (compute_memory_partitions): New.
753         (compute_may_aliases): Call it.
754         (init_alias_info): If computing aliases for the first
755         time, mark every memory symbol for renaming.
756         (have_common_aliases_p): New.
757         (compute_flow_insensitive_aliasing): Call it.
758         (setup_pointers_and_addressables): Do not cache
759         num_referenced_vars.
760         For register promoted symbols, mark their former
761         partition for renaming.
762         (maybe_create_global_var): Only create .GLOBAL_VAR if
763         there are no call-clobbered variables and a mix of pure
764         and non-pure functions were found.
765         (may_alias_p): Tidy comments.
766         (create_tag_raw): Remove unused variable new_type.
767         (dump_alias_info): call dump_memory_partitions.
768         (dump_points_to_info_for): Call dump_decl_set.
769         (may_be_aliased): Tidy comments and formatting.
770
771         * timevar.def (TV_MEMORY_PARTITIONING): Define.
772         * tree-vectorizer.c (vect_memsyms_to_rename): Rename from
773         vect_vnames_to_rename.  Set DECL_UIDs instead of SSA name
774         versions in it.
775         (slpeel_update_phi_nodes_for_guard1): Ignore memory PHIs.
776         * tree-vect-transform.c (vect_transform_loop): Call
777         mark_set_for_renaming with vect_memsyms_to_rename.
778         * tree-flow-inline.h (zero_imm_uses_p): New.
779         (memory_partition): New.
780         (set_memory_partition): New.
781         (factoring_name_p): New.
782         (symbol_mem_tag): New.  Update every function that used
783         to access the annotation directly.
784         (set_symbol_mem_tag): Likewise.
785
786         * tree-ssa-copy.c (may_propagate_copy): Allow copies
787         between a partition and a symbol as long as the symbol
788         belongs to the partition.
789         (merge_alias_info): Ignore merge requests when memory
790         partitions are involved.
791
792         * tree-ssa.c (verify_ssa_name): Check that default
793         definitions have empty defining statements.
794         (verify_use): Remove argument IS_VIRTUAL.
795         Don't call verify_ssa_name.
796         (verify_phi_args): Call verify_ssa_name.
797         (verify_flow_insensitive_alias_info): Handle MPTs.
798         (verify_flow_sensitive_alias_info): Likewise.
799         (verify_name_tags): Likewise.
800         (verify_call_clobbering): Likewise.
801         (verify_ssa): Check for VOPs only after aliasing
802         information is available.
803         Check virtuals and real operands separately.
804         Call verify_ssa_name on every operand.
805         (stmt_references_memory_p): Move to tree-ssa-operands.c.
806         (walk_use_def_chains_1): Guard against NULL PHI
807         arguments.
808
809         * tree-ssa-operands.c (stmt_references_memory_p): Move from
810         tree-ssa.c.
811         (get_mpt_for): New.
812         (dump_memory_partitions): New.
813         (debug_memory_partitions): New.
814
815         * tree-flow.h (struct var_ann_d): Add field mpt.
816         (struct stmt_ann_d): Add bitfield references_memory.
817         * Makefile.in (tree-ssa-structalias.o): Include
818         pointer-set.h
819         (tree-ssa-alias.o): Likewise.
820         * tree-ssa-structalias.c: (update_alias_info): Use
821         STORED_SYMS to determine which variables are being
822         written to by the store operation.
823         * tree-ssa-structalias.h (struct alias_info)
824         <total_alias_vops>: Remove.  Update all users.
825         <written_vars>: Change to a pointer set.  Update all
826         users.
827         <dereferenced_ptrs_store>: Likewise.
828         <dereferenced_ptrs_load>: Likewise.
829         (NUM_REFERENCES): Remove.  Update all users.
830         (NUM_REFERENCES_CLEAR): Remove.  Update all users.
831         (NUM_REFERENCES_INC): Remove.  Update all users.
832         (NUM_REFERENCES_SET): Remove.  Update all users.
833
834         * params.def (PARAM_GLOBAL_VAR_THRESHOLD): Remove.
835         Update all users.
836         (PARAM_MAX_ALIASED_VOPS): Set to 10.
837         * tree-ssanames.c (make_ssa_name): Initialize
838         SSA_NAME_IS_DEFAULT_DEF to 0.
839
840 2006-12-11  Aldy Hernandez  <aldyh@redhat.com>
841
842         * tree-ssa-dse.c (aggregate_vardecl_d): New.
843         (dse_global_data): Add aggregate_vardecl field.
844         (dse_possible_dead_store_p): New.
845         Add prev_defvar variable.
846         Allow immediate uses and previous immediate uses to differ
847         if they are setting different parts of the whole.
848         (get_aggregate_vardecl): New.
849         (dse_record_partial_aggregate_store): New.
850         (dse_whole_aggregate_clobbered_p): New.
851         (dse_partial_kill_p): New.
852         (dse_optimize_stmt): Abstract code checking a possible dead store
853         into new function dse_possible_dead_store_p().
854         Call dse_maybe_record_aggregate_store().
855         When checking whether a STMT and its USE_STMT refer to the
856         same memory address, check also for partial kills that clobber
857         the whole.
858         Move some variable definitions to the block where they are used.
859         (aggregate_vardecl_hash): New.
860         (aggregate_vardecl_eq): New.
861         (aggregate_vardecl_free): New.
862         (aggregate_whole_store_p): New.
863         (tree_ssa_dse): Initialize and free aggregate_vardecl.
864         Mark which aggregate stores we care about.
865
866 2006-12-11  Andrew Macleod  <amacleod@redhat.com>
867
868         * tree-ssa-operands.h (struct vuse_element_d): Declare.
869         (vuse_element_t): Declare.
870         (struct vuse_vec_d): Declare.
871         (vuse_vec_p): Declare.
872         (VUSE_VECT_NUM_ELEM): Define.
873         (VUSE_VECT_ELEMENT_NC): Define.
874         (VUSE_ELEMENT_PTR_NC): Define.
875         (VUSE_ELEMENT_VAR_NC): Define.
876         (VUSE_VECT_ELEMENT): Define.
877         (VUSE_ELEMENT_PTR): Define.
878         (VUSE_ELEMENT_VAR): Define.
879         (struct maydef_optype_d) <use_var>: Remove.
880         <use_ptr>: Remove.
881         <usev>: Add.
882         (struct vuse_optype_d) <kill_var>: Remove.
883         <use_ptr>: Remove.
884         <usev>: Add.
885         (struct mustdef_optype_d) <kill_var>: Remove.
886         <use_ptr>: Remove.
887         <usev>: Add.
888         (VUSE_OP_PTR): Add argument.  Use VUSE_ELEMENT_PTR.
889         (VUSE_OP): Add argument.  Use VUSE_ELEMENT_PTR.
890         (VUSE_NUM): Define.
891         (VUSE_VECT): Define.
892         (MAYDEF_OP_PTR): Add argument.  Use VUSE_OP_PTR.
893         (MAYDEF_OP): Add argument.  Use VUSE_OP.
894         (MAYDEF_NUM): Define.
895         (MAYDEF_VECT): Define.
896         (MUSTDEF_KILL_PTR): Use VUSE_OP_PTR.
897         (MUSTDEF_KILL): Use VUSE_OP.
898         (MUSTDEF_NUM): Define.
899         (MUSTDEF_VECT): Define.
900         (realloc_maydef): Declare.
901         (realloc_vuse): Declare.
902         (struct ssa_operand_iterator_d) <vuse_index>: Add.
903         <mayuse_index>: Add.
904         (LOADED_SYMS): Define.
905         (STORED_SYMS): Define.
906         (FOR_EACH_SSA_MUSTDEF_OPERAND): Call op_iter_next_mustdef.
907         * tree-into-ssa.c: Adapt for multi-operand V_MAY_DEF and VUSE
908         operators.
909         * tree-pretty-print.c: Likewise.
910         * tree-ssa-dse.c: Likewise.
911         * tree-flow-inline.h: Likewise.
912         (op_iter_next_mustdef): New.
913         * tree-ssa-operands.c: Likewise.
914         (ALLOC_OPTYPE): Remove.
915         Update all users.
916         (alloc_def): New.
917         (alloc_use): New.
918         (alloc_maydef): New.
919         (alloc_vuse): New.
920         (alloc_mustdef): New.
921         (realloc_maydef): New.
922         (realloc_vuse): New.
923
924 2006-12-11  Aldy Hernandez  <aldyh@redhat.com>
925
926         * tree-ssa-operands.c: Remove build_v_must_defs.
927         (init_ssa_operands): Delete build_v_must_defs.
928         (finalize_ssa_v_must_def_ops): Remove.
929         (finalize_ssa_v_must_defs): Remove.
930         (finalize_ssa_stmt_operands): Do not call
931         finalize_ssa_v_must_defs.
932         (start_ssa_stmt_operands): Do not check build_v_must_defs.
933         (append_v_must_def): Delete.
934         (copy_virtual_operands): Do not copy V_MUST_DEFs.
935         (get_modify_expr_operands): Remove reference to V_MUST_DEF from
936         comment.  Remove opf_kill_def.
937         (build_ssa_operands): Remove references to v_must_defs.
938         (copy_virtual_operands): Same.
939         (copy_virtual_operands): Same.
940         (fini_ssa_operands): Same.
941         (free_ssa_operands): Same.
942         (add_mustdef_op): Remove.
943         Remove mustdef_optype_p.
944         (alloc_mustdef): Remove.
945         Remove references to V_MUST_DEFs in comment at top of file.
946         (get_expr_operands): Remove opf_kill_def.
947         (opf_kill_def): Remove.
948         (add_virtual_operand): Remove opf_kill_def.
949         (get_indirect_ref_operands): Same.
950         (get_tmr_operands): Same.
951
952         * tree-vectorizer.c (rename_variables_in_bb): Remove
953         SSA_OP_ALL_KILLS.
954
955         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Remove
956         SSA_OP_ALL_KILLS.
957         (check_loop_closed_ssa_stmt): Same.
958
959         * tree-ssa.c (verify_def): Remove V_MUST_DEF from comment.
960         (verify_use): Same.
961         (verify_ssa): Remove V_MUST_DEFs traces.
962         (verify_ssa): Remove SSA_OP_ALL_KILLS.
963
964         * tree-into-ssa.c (mark_def_sites): Change SSA_OP_VMUSTDEF to
965         SSA_OP_VMAYDEF.
966         (rewrite_update_stmt): Remove SSA_OP_VIRTUAL_KILLS.
967         (rewrite_stmt): Remove SSA_OP_ALL_KILLS.
968
969         * tree-ssa-operands.h (struct stmt_operands_d): Remove V_MUST_DEF
970         references.
971         (MUSTDEF_OPS): Remove.
972         (SSA_OP_VMUSTDEF): Remove.
973         (FOR_EACH_SSA_MUSTDEF_OPERAND): Remove.
974         (struct mustdef_optype_d): Remove.
975         Remove mustdef_optype_p.
976         (struct stmt_operands_d): Remove mustdef_ops.
977         (ssa_operand_iterator_d): Remove mustdefs and mustkills.
978         (SSA_OP_VIRTUAL_DEFS): Remove SSA_OP_VMUSTDEF.
979         (MUSTDEF_RESULT_PTR): Remove.
980         (MUSTDEF_RESULT): Remove.
981         (MUSTDEF_KILL_PTR): Remove.
982         (MUSTDEF_KILL): Remove.
983         (MUSTDEF_NUM): Remove.
984         (MUSTDEF_VECT): Remove.
985         (SSA_OP_VIRTUAL_KILLS): Remove.
986         (SSA_OP_ALL_VIRTUALS): Remove SSA_OP_VIRTUAL_KILLS.
987         (SSA_OP_VMUSTKILL): Remove.
988         (SSA_OP_ALL_KILLS): Remove.
989         (SSA_OP_ALL_OPERANDS): Remove SSA_OP_ALL_KILLS.
990
991         * tree-flow-inline.h (op_iter_init_def): Remove
992         SSA_OP_VIRTUAL_KILLS.
993         (delink_stmt_imm_use): Remove SSA_OP_ALL_KILLS.
994
995         * tree-ssa-pre.c (compute_rvuse_and_antic_safe): Remove
996         SSA_OP_VIRTUAL_KILLS.
997
998         * tree-ssa-loop-im.c (determine_max_movement): Remove
999         SSA_OP_VIRTUAL_KILLS.
1000         (gather_mem_refs_stmt): Same.
1001         (gather_mem_refs_stmt): Same.
1002
1003         * tree-ssa-dce.c (mark_really_necessary_kill_operand_phis): Delete.
1004         (perform_tree_ssa_dce): Remove call to
1005         mark_really_necessary_kill_operand_phis.
1006
1007         * tree-flow-inline.h (op_iter_init): Remove setting of mustdefs
1008         and mustkills.
1009         (op_iter_next_use): Do not check mustkills.
1010         (op_iter_next_def): Do not check mustdefs.
1011         (op_iter_next_tree): Do not check mustkills or mustdefs.
1012         (clear_and_done_ssa_iter): Do not set mustdefs or mustkills.
1013         (op_iter_next_maymustdef): Do not check mustkills.
1014         (op_iter_init_must_and_may_def): Remove SSA_OP_VMUSTKILL.
1015         (op_iter_init_mustdef): Remove.
1016
1017         * tree-ssa-live.c (create_ssa_var_map): Change SSA_OP_VMUSTDEF to
1018         SSA_OP_VMAYDEF.
1019
1020         * tree-ssa-dse.c (dse_optimize_stmt): Remove SSA_OP_VMUSTDEF.
1021
1022         * tree-ssa-ccp.c: Remove V_MUST_DEF traces from comments.
1023         (visit_assignment): Same.
1024
1025         * tree-ssa-copy.c (copy_prop_visit_assignment): Same.
1026
1027         * tree-sra.c (mark_all_v_defs_1): Remove V_MUST_DEF from comment.
1028
1029         * tree-outof-ssa.c (check_replaceable): Remove SSA_OP_VMUSTDEF.
1030
1031         * tree-pretty-print.c (dump_vops): Remove printing of V_MUST_DEF.
1032         Remove kill_p variable.
1033
1034         * tree-dfa.c (struct dfa_stats_d): Remove num_v_must_defs.
1035         (dump_dfa_stats): Remove code related to V_MUST_DEFs.
1036         (collect_dfa_stats_r): Do not set num_v_must_defs.
1037         (mark_new_vars_to_rename): Remove v_must_defs_{before,after}
1038         code.
1039
1040         * tree-into-ssa.c (mark_def_sites): Change SSA_OP_VMUSTKILL to
1041         SSA_OP_VMAYUSE.
1042
1043         * tree-ssa-pre.c (compute_rvuse_and_antic_safe): Remove
1044         SSA_OP_VMUSTDEF and SSA_OP_VMUSTKILL.
1045
1046         * tree-ssa-propagate.c (stmt_makes_single_store): Remove
1047         SSA_OP_VMUSTDEF.
1048
1049 2006-12-11  Zdenek Dvorak <dvorakz@suse.cz>
1050
1051         PR rtl-optimization/30113
1052         * loop-iv.c (implies_p): Require the mode of the operands to be
1053         scalar.
1054
1055 2006-12-11  Diego Novillo  <dnovillo@redhat.com>
1056
1057         * tree-ssa-operands.h (create_ssa_artificial_load_stmt):
1058         Rename from create_ssa_artficial_load_stmt.  Update all users.
1059         * tree-into-ssa.c (register_new_def): Make static.
1060         * tree.c (is_global_var): Handle SSA_NAMEs.
1061         * tree.h (SSA_NAME_IS_DEFAULT_DEF): Define.  Update all users
1062         that used to call gimple_default_def.
1063         * tree-ssa-operands.c (push_stmt_changes): New.
1064         (pop_stmt_changes): New.  Update every pass that modifies
1065         statements to bracket modifications with
1066         push_stmt_changes/pop_stmt_changes.
1067         (discard_stmt_changes): New.
1068         * tree-ssa-dom.c (stmts_to_rescan): Change to stack of
1069         'tree *' instead of 'tree'.  Update all users.
1070         * tree-flow-inline.h (zero_imm_uses_p): New.
1071         (symbol_mem_tag): New.  Update every function that used
1072         to access the annotation directly.
1073         (set_symbol_mem_tag): Likewise.
1074         * tree-dfa.c (dump_variable): Always show the escape mask.
1075         (mark_symbols_for_renaming): Rename from
1076         mark_new_vars_to_rename.  Update all users.
1077         Only mark to rename naked symbols in real and virtual
1078         operands.
1079
1080 2006-12-11  Andreas Schwab  <schwab@suse.de>
1081
1082         * varasm.c (elf_record_gcc_switches): Cast second argument of
1083         ASM_OUTPUT_SKIP to unsigned HOST_WIDE_INT.
1084
1085 2006-12-11  Diego Novillo  <dnovillo@redhat.com>
1086
1087         * tree-scalar-evolution.c (scev_const_prop):
1088         * tree-phinodes.c (remove_phi_node): Add argument
1089         RELEASE_LHS_P.  If given, release the SSA name on the LHS of
1090         the PHI node.
1091         Update all users.
1092         * tree-ssa-dce.c: Remove forward declarations for static
1093         functions.  Re-arrange functions bodies as needed.
1094         (find_obviously_necessary_stmts): Never mark PHI nodes as
1095         obviously necessary.
1096
1097 2006-12-11  Carlos O'Donell  <carlos@codesourcery.com>
1098
1099         * config/arm/elf.h (MAX_OFILE_ALIGNMENT): Remove definition.
1100
1101 2006-12-11  Jan Hubicka  <jh@suse.cz>
1102
1103         * value-prof.c (tree_stringops_transform): New.
1104         (tree_value_profile_transformations): Require count to be non-zero;
1105         call stringop transform; reset stmt BSI after BB changed.
1106         (tree_divmod_fixed_value, tree_mod_pow2): Don't emit unnecesary label.
1107         (interesting_stringop_to_profile_p, tree_stringop_fixed_value): New.
1108         (tree_stringops_values_to_profile): New.
1109         (tree_values_to_profile): Call tree_stringops_values_to_profile.
1110         * tree.h (build_string_literal): Tidy prototype.
1111         (validate_arglist, builtin_memset_read_str, get_pointer_alignment):
1112         Declare.
1113         * builtins.c (validate_arglist, builtin_memset_read_str,
1114         get_pointer_alignment): Export.
1115
1116 2006-12-11  Uros Bizjak  <ubizjak@gmail.com>
1117
1118         PR target/30120
1119         Revert:
1120         2006-11-15  Uros Bizjak  <ubizjak@gmail.com>
1121
1122         * config/i386/i386.opt: New target option -mx87regparm.
1123
1124         * config/i386/i386.h (struct ix86_args): Add x87_nregs, x87_regno,
1125         float_in_x87: Add new variables. mmx_words, sse_words: Remove.
1126         (X87_REGPARM_MAX): Define.
1127
1128         * config/i386/i386.c (override_options): Error out for
1129         -mx87regparm but no 80387 support.
1130         (ix86_attribute_table): Add x87regparm.
1131         (ix86_handle_cconv_attribute): Update comments for x87regparm.
1132         (ix86_comp_type_attributes): Check for mismatched x87regparm types.
1133         (ix86_function_x87regparm): New function.
1134         (ix86_function_arg_regno_p): Add X87_REGPARM_MAX 80387 floating
1135         point registers.
1136         (init_cumulative_args): Initialize x87_nregs and float_in_x87
1137         variables.
1138         (function_arg_advance): Process x87_nregs and x87_regno when
1139         floating point argument is to be passed in 80387 register.
1140         (function_arg): Pass XFmode arguments in 80387 registers for local
1141         functions.  Pass SFmode and DFmode arguments to local functions
1142         in 80387 registers when flag_unsafe_math_optimizations is set.
1143
1144         * reg-stack.c (convert_regs_entry): Disable NaN load for
1145         stack registers that are used for argument passing.
1146
1147         * doc/extend.texi: Document x87regparm function attribute.
1148         * doc/invoke.texi: Document -mx87regparm.
1149
1150 2006-12-11  Jan Hubicka  <jh@suse.cz>
1151
1152         Move all varpool routines out of cgraph/cgraphunit to varpool.c
1153         * cgraph.c: Update comments.
1154         (cgraph_varpool_hash,
1155         cgraph_varpool_nodes, cgraph_varpool_last_needed_node
1156         cgraph_varpool_node_name, cgraph_varpool_node,
1157         cgraph_varpol_mode_for_asm, cgraph_varpool_mark_needed_node,
1158         cgraph_variable_initializer_availability): Move to
1159         varpool.c and drop cgraph_ prefixes.
1160         (cgraph_varpool_enqueue_needed_node, cgraph_varpool_reset_queue,
1161         cgraph_varpool_first_unanalyzed_node, cgraph_varpool_finalize_decl):
1162         move to varpool.c; drop cgraph_ prefix; make static.
1163         (dump_cgraph_varpool_node): Move to varpool.c under name
1164         dump_varpool_node.
1165         (dump_varpool, hash_varpool_node, eq_varpool_node,
1166         decide_is_variable_needed): Move to varpool.c
1167         (decl_assembler_name_equal): Move to tree.c.
1168         (availability_names): Rename to ...
1169         (cgraph_availability_names): ... this one.
1170         (dump_cgraph_node): Update.
1171         * cgraph.h: Reorder declarations now in varpool.c
1172         (cgraph_vailablity_names): Declare.
1173         (struct cgraph_varpool_node): Rename to ...
1174         (struct varpool_node): ... this one.
1175         (cgraph_varpool_first_unanalyzed_node, cgraph_varpool_nodes_queue,
1176         cgraph_varpool_first_unanalyzed_node, cgraph_varpool_node,
1177         cgraph_varpool_node_for_asm, cgraph_varpool_mark_needed_node,
1178         cgraph_varpool_finalize_decl, cgraph_varpool_enqueue_needed_node,
1179         cgraph_varpool_reset_queue, cgraph_varpool_assemble_pending_decls,
1180         cgraph_variable_initializer_availability): Rename to ...
1181         (varpool_first_unanalyzed_node, varpool_nodes_queue,
1182         varpool_first_unanalyzed_node, varpool_node,
1183         varpool_node_for_asm, varpool_mark_needed_node,
1184         varpool_finalize_decl, varpool_enqueue_needed_node,
1185         varpool_assemble_pending_decls, variable_initializer_availability):
1186         Rename to ...
1187         * tree.c (decl_assembler_name_equal): Move here from cgraph.c.
1188         * tree.h (decl_assembler_name_equal): Declare.
1189         * omp-low.c (lower_omp_critical): Update.
1190         * ipa-reference (analyze_variable, static_execute): Likewise.
1191         * toplev.c (wrapup_global_declaration_2, compile_file): Update.
1192         * cgraphunit.c: Update comments.
1193         (cgraph_varpool_assembled_nodes_queue): Move to varpool.c under name
1194         varpool_assembled_nodes_queue.
1195         (cgraph_varpool_analyze_pending_decls): Move to varpool.c under name
1196         varpool_analyze_pending_decls.
1197         (cgraph_varpool_remove_unreferenced_decls): Move to varpool.c under name
1198         varpool_remove_unreferenced_decls.
1199         (record_reference): Update.
1200         (cgraph_create_edges): Update.
1201         (record_referneces_in_initializer): New function.
1202         (cgraph_varpool_assemble_decl): Move to varpool.c under name
1203         varpool_assemble_decl; make global.
1204         (cgraph_varpool_assemble_pending_decls): Move to varpool.c under name
1205         varpool_assemble_pending_decls.
1206         (process_function_and_variable_attributes, cgraph_finalize_compilation_unit,
1207         struct cgraph_order_sort, cgraph_output_in_order,
1208         cgraph_function_and_variable_invisibility, cgraph_optimize,
1209         cgraph_increase_alignment): Update.
1210         * dwarf2out.c (decls_for_scope): Likewise.
1211         * ipa-type-escape.c (analyze_variable, type_escape_execute): Likewise.
1212         * except.c (output_ttype): Likewise.
1213         * varasm.c (mark_decl_referenced): Likewise.
1214         (find_decl_and_mark_referenced, assemble_alias): update.
1215         * Makefile.in: Add varpool.c, gt-varpool.c and remove gt-cgraphunit.c
1216         * passes.c (rest_of_decl_compilation): Update.
1217
1218 2006-12-11  Ira Rosen  <irar@il.ibm.com>
1219
1220         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Use
1221         GIMPLE_STMT_OPERAND.
1222         * tree-vect-transform.c (vect_permute_store_chain): Likewise.
1223         (vect_setup_realignment): Likewise.
1224
1225 2006-12-11  Sa Liu  <saliu@de.ibm.com>
1226             Ben Elliston  <bje@au.ibm.com>
1227
1228         * config/spu/spu-elf.h (STARTFILE_SPEC): Update.
1229         (ENDFILE_SPEC): Likewise.
1230         * config/spu/spu.opt (mstdmain): New option.
1231         * config/spu/crti.asm: Remove.
1232         * config/spu/crtn.asm: Likewise.
1233         * config/spu/crt0.c: Likewise.
1234         * config/spu/crtend.c: Likewise.
1235         * config/spu/t-spu-elf (EXTRA_MULTILIB_PARTS): Remove crt0 files
1236         listed above.
1237         ($(T)crti.o, $(T)crtn.o, $(T)crt1.o, $(T)crtend1.o): Remove.
1238         * doc/invoke.texi (SPU Options): Document -mstdmain.
1239
1240 2006-12-10  Zdenek Dvorak <dvorakz@suse.cz>
1241
1242         * doc/loop.texi: Document number_of_latch_executions and
1243         number_of_cond_exit_executions.
1244         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1245         chrec_is_positive, number_of_iterations_for_all_loops,
1246         scev_const_prop): Use number_of_latch_executions.
1247         (set_nb_iterations_in_loop): Do not increase the value of the
1248         number of iterations.
1249         (number_of_iterations_in_loop): Renamed to ...
1250         (number_of_latch_executions): ... this.
1251         (number_of_exit_cond_executions): New function.
1252         * tree-scalar-evolution.h (number_of_iterations_in_loop): Declaration
1253         removed.
1254         (number_of_latch_executions, number_of_exit_cond_executions): Declare.
1255         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Use
1256         number_of_latch_executions.
1257         * tree-data-ref.c (get_number_of_iters_for_loop): Use
1258         number_of_exit_cond_executions.
1259         * tree-vect-analyze.c (vect_get_loop_niters): Ditto.
1260         * cfgloop.h (struct loop): Improve description of the nb_iterations
1261         field.
1262
1263 2006-12-10  Daniel Berlin  <dberlin@dberlin.org>
1264
1265         * tree-ssa-alias.c (compact_name_tags): Use sort_tags_by_id.
1266         (tree_pointer_compare): Remove.
1267
1268 2006-12-10  Zdenek Dvorak <dvorakz@suse.cz>
1269
1270         * tree-vrp.c (adjust_range_with_scev): Use get_chrec_loop.
1271         * loop-unswitch.c (unswitch_loops): Use FOR_EACH_LOOP.
1272         * tree-loop-linear.c (linear_transform_loops): Ditto.
1273         * tree-ssa-loop-im.c (determine_lsm): Ditto.
1274         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations,
1275         free_numbers_of_iterations_estimates): Ditto.
1276         * tree_ssa_unswitch_loops (tree_ssa_unswitch_loops): Ditto.
1277         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1278         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Ditto.
1279         * modulo-sched.c (sms_schedule): Ditto.
1280         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables,
1281         tree_unroll_loops_completely): Ditto.
1282         * predict.c (predict_loops): Ditto.
1283         * tree-if-conv.c (main_tree_if_conversion): Ditto.
1284         * loop-unroll.c (unroll_and_peel_loops, peel_loops_completely,
1285         decide_unrolling_and_peeling): Ditto.
1286         * cfgloopmanip.c (unloop): Use delete_loop.
1287         (place_new_loop): Access larray vector instead of parray.
1288         (create_preheaders, force_single_succ_latches,
1289         fix_loop_structure): Use FOR_EACH_LOOP and delete_loop..
1290         * loop-doloop.c (doloop_optimize_loops): Ditto.
1291         * loop-invariant.c (move_loop_invariants): Ditto.
1292         * tree-cfg.c (replace_uses_by): Ditto.
1293         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Ditto.
1294         * tree-chrec.h (CHREC_VAR, CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE):
1295         Moved to ...
1296         * tree.h (CHREC_VAR, CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE):
1297         ... here.
1298         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
1299         compute_overall_effect_of_inner_loop, chrec_is_positive): Use
1300         get_loop and get_chrec_loop.
1301         (number_of_iterations_for_all_loops): Use number_of_loops.
1302         (scev_initialize, scev_reset, scev_const_prop): Use FOR_EACH_LOOP.
1303         * tree-scalar-evolution.h (get_chrec_loop): New inline function.
1304         * cfgloopanal.c (mark_irreducible_loops): Use number_of_loops,
1305         and FOR_EACH_LOOP.
1306         * tree-chrec.c (evolution_function_is_invariant_rec_p,
1307         chrec_convert_1): Use get_loop and get_chrec_loop.
1308         * loop-init.c (loop_optimizer_init): Use number_of_loops.
1309         (loop_optimizer_init): Use FOR_EACH_LOOP.
1310         * tree-vectorizer.c (vect_loops_num): Removed.
1311         (vectorize_loops): Store number of loops locally.  Use
1312         FOR_EACH_LOOP and get_loop.
1313         * tree-vectorizer.h (vect_loops_num): Removed.
1314         * tree-data-ref.c (get_number_of_iters_for_loop): Use get_loop.
1315         (find_data_references_in_loop): Do not set parallel_p.
1316         * tree-data-ref.h: Do not declare VEC(loop_p).
1317         * cfgloop.c (flow_loops_dump, mark_single_exit_loops,
1318         verify_loop_structure): Use FOR_EACH_LOOP.
1319         (flow_loops_free): Use FOR_EACH_LOOP, free larray vector.
1320         (initialize_loops_parallel_p): Removed.
1321         (flow_loops_find): Push the loops into a vector.
1322         (delete_loop): New function.
1323         (cancel_loop): Use delete_loop.
1324         * cfgloop.h: Declare VEC(loop_p).
1325         (struct loop): Remove parallel_p field.
1326         (struct loops): Replace num and parray field by larray vector.
1327         Remove shared_headers field.
1328         (delete_loop): Declare.
1329         (get_loop, get_loops, number_of_loops, fel_next, fel_init,
1330         FOR_EACH_LOOP): New.
1331         * doc/loop.tex: Document new accessor functions.
1332
1333 2006-12-10  Andrew MacLeod  <amacleod@redhat.com>
1334
1335         * common.opt (-ftree-lrs): Remove live range splitting option.
1336         * makefile.in: Add tree-ssa-coalesce.o and reduce header dependancies.
1337         * opts.c (decode_options): Remove flag_tree_live_range_split.
1338         * tree-flow.h (struct var_ann_d): Rename fields from root_ to base_.
1339         * tree-flow-inline.h (single_imm_use_p): New.  Check for single use.
1340         * tree-outof-ssa.c: Remove header files which aren't needed.
1341         (SSANORM_*): Remove flags.
1342         (print_exprs_edge, coalesce_abnormal_edges, coalesce_phi_operands,
1343         coalesce_result_decls_and_copies, coalesce_asm_operands): Remove.
1344         (coalesce_ssa_name): Move to tree-ssa-coalesce.c.
1345         (assign_vars): Use Basevar instead of root_var structure.
1346         (replace_def_variable): Dont do anything if def is replaceable.
1347         (remove_ssa_form): Integrate functional changes.
1348         (rewrite_out_of_ssa): Remove live-range_split option.
1349         * tree-ssa-coalesce.c: New File for ssa-name coalescing.
1350         (coalesce_cost): Calculate the cost of a coalesce.
1351         (coalesce_cost_bb): Calculate the coalesce cost within a BB.
1352         (coalesce_cost_edge): Calculate the coalesce cost on an edge.
1353         (pop_cost_one_pair): Remove the best coalesce with cost 1 from the list.
1354         (pop_best_coalesce): Remove the best coalesce from the list.
1355         (coalesce_pair_map_hash): Calculate coalesce pair hash.
1356         (coalesce_pair_map_eq): Compare 2 coalesce pairs for hash function.
1357         (create_coalesce_list): Create a coalesce list object.
1358         (delete_coalesce_list): Free a coalesce list object.
1359         (find_coalesce_pair): Find matching pair in the coalesce list.
1360         (add_cost_one_coalesce): Add a coalesce to the "cost one" list.
1361         (add_coalesce): Add a coalesce to the coalesce list.
1362         (compare_pairs): Comparision function to determine pair sorted order.
1363         (num_coalesce_pairs): Number of coalesced pairs.
1364         (first_coalesce_pair, end_coalesce_pair_p, next_coalesce_pair):
1365         Coalesce pair iterator functions.
1366         (sort_coalesce_list): Sort coalesce pairs in order of expense.
1367         (dump_coalesce_list): Show coalesce list.
1368         (ssa_conflicts_new): Create an SSA conflict graph.
1369         (ssa_conflicts_delete): Delete an SSA conflict graph.
1370         (ssa_conflicts_test_p): Test for conflicts.
1371         (ssa_conflicts_add_one): Add a single conflict.
1372         (ssa_conflicts_add): Add a conflict pair.
1373         (ssa_conflicts_merge): Merge conflicts.
1374         (struct live_track_d): Struct for tracking live partitions.
1375         (new_live_track): Create new live_track object.
1376         (delete_live_track): Delete a live_track object.
1377         (live_track_remove_partition): Remove a partition from the live list.
1378         (live_track_add_partition): Add a partition from the live list.
1379         (live_track_clear_var): Take VAR from the live list.
1380         (live_track_live_p): Is var live?
1381         (live_track_process_use): Make var come alive.
1382         (live_track_process_def): Make var go dead, add conflicts.
1383         (live_track_init): Initialize to a live on exit set.
1384         (live_track_clear_base_vars): Clear live partitions.
1385         (build_ssa_conflict_graph): Build a conflict graph.
1386         (print_exprs): Common debug output routine.
1387         (abnormal_corrupt): Output info about a failed coalesce across an
1388         abnormal edge.
1389         (fail_abnormal_edge_coalesce): Output info about a failed MUST_COALESCE.
1390         (create_outofssa_var_map): Create a var map and coalesce list.
1391         (attempt_coalesce): Coalesce a pair.
1392         (coalesce_partitions): Coalesce all pairs in a coalesce list.
1393         (coalesce_ssa_name): Entry point.  Determine what ssa_names to coalesce.
1394         * tree-ssa-live.c: Remove header files which aren't needed.
1395         (var_map_base_init): New.  Initialize a basevar list.
1396         (var_map_base_fini): New.  Finish a basevar list.
1397         (init_var_map): Initialize new fields.
1398         (delete_var_map): Free new fields.
1399         (var_union): Use renamed fields.
1400         (compact_var_map): Remove.
1401         (partition_to_view_init): Use renamed fields, change order of an if.
1402         (partition_view_fini): Use renamed fields.
1403         (partition_view_normal): Create basevar list if requested.
1404         (partition_view_bitmap): Create a view based on a bitmap of partitions.
1405         (change_partition_var): Use renamed fields.
1406         (create_ssa_var_map): Remove.
1407         (tpa_init, tpa_remove_partition, tpa_delete, tpa_compact,
1408         root_var_init): Remove.
1409         (partition_pair_map_hash, partition_pair_map_eq, create_coalesce_list,
1410         delete_coalesce_list, find_partition_pair, coalesce_cost, add_coalesce,
1411         compare_pairs, num_coalesce_pairs, first_partition_pair,
1412         end_partition_pair_p, next_partition_pair, sort_coalesce_list,
1413         pop_best_coalesce, add_conflicts_if_valid, set_if_valid,
1414         build_tree_conflict_graph, coalesce_tpa_members, dump_coalesce_list,
1415         tpa_dump): Moved to tree-ssa-coalesce.c and/or renamed there.
1416         (dump_var_map): Use renamed fields.
1417         * tree-ssa-live.h (struct  _var_map): Modify fields.
1418         (partition_to_var, version_to_var, var_to_partition): Use renamed
1419         fields.
1420         (basevar_index): New.  Index of the base variable of a partition.
1421         (num_basevars): New.  Number of unique base variables in partition map.
1422         (register_ssa_partition): Use renamed fields.
1423         (struct tree_partition_associator_d): Remove.
1424         (tpa_num_trees, tpa_tree, tpa_first_partition, tpa_next_partition,
1425         tpa_find_tree, tpa_decompact, root_var_init, root_var_num,
1426         root_var, root_var_first_partition, root_var_next_partition,
1427         root_var_dump, root_var_delete, root_var_remove_partition,
1428         root_var_find, root_var_compact, root_var_decompact): Remove.
1429         (struct partition_pair, struct coalesce_list_d): Moved to
1430         tree-ssa-coalesce.c
1431         * tree-ssa-ter.c: Remove header files which aren't needed.
1432
1433 2006-12-10  Steven Bosscher  <steven@gcc.gnu.org>
1434
1435         * cse.c: (struct cse_basic_block_data): Remove LAST field.
1436         (struct branch_path): Remove BRANCH and TAKEN fields. Add new
1437         BB field.
1438         (cse_visited_basic_blocks): New static bitmap.
1439         (cse_end_of_basic_block, cse_basic_block): Remove.
1440         (cse_find_path, cse_dump_path, cse_prescan_path,
1441         cse_extended_basic_block): New static functions.
1442         (cse_insn): Don't CSE over setjmp calls.  Use the CFG to find
1443         basic block boundaries.  Don't record jump equivalences here.
1444         Update the CFG after doing in-place replacement of the SET_SRC.
1445         (cse_main): Rewrite.  Look for extended basic block headers
1446         and call cse_extended_basic_block on them until all paths that
1447         start at this header are exhausted.
1448         (rest_of_handle_cse): Verify that the CFG is incrementally updated
1449         and correct after cse_main.
1450         Don't call delete_trivially_dead_insns, let cfgcleanup do that.
1451         (rest_of_handle_cse2): Verify the CFG here, too, after cse_main.
1452         (pass_cse): Add TODO_verify_flow.
1453         (pass_cse2): Likewise.
1454
1455 2006-12-10  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1456
1457         * reload1.c (choose_reload_regs): Don't set byte offset when
1458         resolving subregs of hard regs.
1459
1460 2006-12-09  Zack Weinberg  <zackw@panix.com>
1461
1462         * c-opts.c (c_common_parse_file): Unconditionally give a warning,
1463         suitable for the language, if set_yydebug is true.
1464         * c-pragma.h: Define enum pragma_omp_clause here.  Don't define
1465         YYDEBUG or declare yydebug.
1466         * c-parser.c (yydebug, enum pragma_omp_clause): Delete.
1467
1468 2006-12-09  Jan Hubicka  <jh@suse.cz>
1469
1470         * cgraph.c: Update copyright.
1471         * cgraph.h: Likewise
1472         (cgraph_update_pending_function): Remove prototype.
1473         * cgraphunit.c: Update copyright; update overall comment.
1474         (cgraph_assemble_pending_functions): Make local.
1475
1476 2006-12-09  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1477
1478         * haifa-sched.c (schedule_block): Remove excessive sanity check.
1479
1480 2006-12-08  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1481
1482         * config/spu/spu-protos.h (spu_split_immediate): Renamed from
1483         spu_split_address.
1484         (cpat_const_p, gen_cpat_const): Add.
1485         * config/spu/spu.c (immediate_class): New enum.
1486         (cpat_info, classify_immediate): New.
1487         (print_operand): Use S, D, T instead of F, G, H.  Use
1488         classify_immediate.  Handle cpat cases.
1489         (spu_split_immediate):  Renamed from spu_split_address.  Split all
1490         immediates that can be split.
1491         (immediate_load_p): Use classify_immediate.
1492         (spu_legitimate_constant_p): Accept everything except some cases of
1493         CONST_VECTOR.
1494         (spu_expand_move): Use spu_split_immedate.
1495         (fsmbi_const_p): Use classify_immediate.
1496         (cpat_const_p): New.
1497         (gen_cpat_const: New.
1498         * config/spu/constraints.md (j,k,l): New constraints for cpat
1499         instructions.
1500         * config/spu/spu.md (unnamed splitter): Change address splitter to
1501         handle all immediates.
1502         (_mov<mode>, _movdi, _movti): Handle i, j, k constraints for cpat
1503         instructions.
1504         (cpat, _cpat, splitter): Generate a TImode constant for cpat patterns
1505         when possible.
1506
1507 2006-12-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1508
1509         PR target/30039
1510         * pa.md (high:DI and lo_sum:DI): Handle 64-bit CONST_INTs in 32-bit
1511         patterns.  Correct length of high:DI instruction sequence.
1512
1513 2006-12-08  Mike Stump  <mrs@apple.com>
1514
1515         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Build
1516         libgcc with -mmacosx-version-min=10.4.
1517         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Default to
1518         G4 for 10.5+ unless doing kernel builds.
1519
1520 2006-12-08  Uros Bizjak  <ubizjak@gmail.com>
1521
1522         PR target/30120
1523         * reg-stack.c (convert_regs_entry): Mark current argument passing
1524         registers as live.
1525
1526         * config/i386/i386.h (X87_REGPARM_MAX): Set to 0 to disable passing
1527         of float arguments in x87 registers.
1528
1529 2006-12-08  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
1530
1531         * pa.h (LEGITIMATE_CONSTANT_P): Simplify.
1532
1533 2006-12-08  Mark Shinwell  <shinwell@codesourcery.com>
1534
1535         * recog.c (mode_dependent_address_p): Identify pre-increment,
1536         pre-decrement, post-increment and post-decrement addressing as always
1537         being mode-dependent.
1538         * config/m32c/m32c.c (m32c_mode_dependent_address): Delete.
1539         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1540         * config/m32c/m32c-protos.h (m32c_mode_dependent_address): Delete.
1541         * config/m32r/m32r.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete PRE_DEC,
1542         PRE_INC and POST_INC checks.
1543         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1544         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1545         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1546         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1547         * config/c4x/c4x.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete PRE_DEC,
1548         PRE_INC, POST_DEC and POST_INC cases.
1549         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
1550         Delete POST_INC and PRE_DEC cases.
1551         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to
1552         no-op.
1553         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1554         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to
1555         no-op.
1556         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1557         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1558         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Delete
1559         PRE_INC and PRE_DEC cases.
1560         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1561         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1562         * config/arm/arm.h (ARM_GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1563         (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1564         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1565         * config/vax/vax.c (vax_mode_dependent_address_p): Delete
1566         auto-increment cases.
1567         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete
1568         auto-increment cases.
1569         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1570
1571 2006-12-08  Andrew MacLeod  <amacleod@redhat.com>
1572
1573         * Makefile.in: Add new file tree-ssa-ter.c.
1574         * tree-outof-ssa.c (struct temp_expr_table_d, new_temp_expr_table,
1575         free_temp_expr_table, add_value_to_version_list,
1576         add_value_to_partition_list, remove_value_from_partition_list,
1577         add_dependence, check_replaceable, finish_expr, mark_replaceable,
1578         kill_expr, kill_virtual_exprs, find_replaceable_in_bb,
1579         find_replaceable_exprs, dump_replaceable_exprs): Move to tree-ssa-ter.c.
1580         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs): Add
1581         prototypes.
1582         * tree-ssa-ter.c: New file using code moved from tree-outof-ssa.c.
1583         (struct value_expr_d): Remove.
1584         (struct temp_expr_table_d): Rename fields, add explicit vector of
1585         replaceable expressions instead of sharing.  Change value_expr_p's to
1586         bitmap.  Delete free_list.
1587         (new_temp_expr_table): Rename fields, count number of ssa_names in
1588         each partition.
1589         (free_temp_expr_table): Rename field, free new fields.
1590         (new_value_expr, free_value_expr, find_value_in_list, add_value_to_list,
1591         add_info_to_list, remove_value_from_list): Delete.
1592         (version_to_be_replaced_p): New.  Is an ssa-name replaceable?
1593         (make_dependent_on_partition): New.  Set bit in version list, allocating
1594         a bitmap if need be.
1595         (add_to_partition_kill_list): New.  Set bit in the partition list,
1596         allocating a bitmap if need be.
1597         (remove_from_partition_kill_list): New.  Remove a bit from the
1598         partition list, free the bitmap if it is empty.
1599         (add_dependence): Use renamed field, cleanup.  Don't add a dependence
1600         on partitions with only one member.
1601         (is_replaceable_p): New.  Split out replaceability check from
1602         check_replaceable.
1603         (process_replaceable): New.  Code split from check_replaceable.
1604         (check_replaceable): Removed.
1605         (finished_with_expr): Renamed from finish_expr.
1606         (kill_expr): Use renamed fields and less parameters.
1607         (kill_virtual_exprs): Less parameters.
1608         (mark_replaceable): Use renamed fields.
1609         (find_replaceable_in_bb): Use renamed fields, cleanup.
1610         (find_replaceable_exprs): Use renamed routines, cleanup.
1611         (dump_replaceable_exprs): Don't go past end of ssa_names list.
1612         (debug_ter): New.  Debug routine to dump state.
1613
1614 2006-12-08  Bernd Schmidt  <bernd.schmidt@analog.com>
1615
1616         * config/bfin/bfin.c (effective_address_32bit_p): Return true for
1617         anything involving the GOT.
1618         (bfin_adjust_cost): Don't take the REGNO of a MEM.
1619         (trapping_loads_p): Look inside the pattern of an insn to find the
1620         SET.
1621         * config/bfin/bfin.md (attr "type"): Add movcc.
1622         (insn_reservation "alu"): Likewise.
1623         (movsicc_insn1, movsicc_insn2): Change type to movcc.
1624
1625 2006-12-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1626
1627         * config/spu/spu-c.c (spu_build_overload_builtin): Delete.
1628         (spu_resolve_overloaded_builtin): Check for non scalar instead
1629         of vector type and check the function call argument type also for
1630         non scalar.
1631         Call build_function_call instead of spu_build_overload_builtin.
1632
1633 2006-12-07  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1634
1635         * config/spu/spu.c (array_to_constant): Correct the order of arguments
1636         to the calls of hwint_to_const_double.
1637
1638 2006-12-07  Nick Clifton  <nickc@redhat.com>
1639
1640         * config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to
1641         elf_record_gcc_switches.
1642
1643 2006-12-07  Andrew Macleod  <amacleod@redhat.com>
1644
1645         * expr.c (string_constant): Account for non-zero lower bound arrays.
1646
1647 2006-12-07  Richard Guenther  <rguenther@suse.de>
1648
1649         * builtins.c (expand_builtin_pow): Adjust predicates for
1650         pow to cbrt expansion to unsafe math and !HONOR_NANS for
1651         negative base.
1652
1653 2006-12-07  Jan Hubicka  <jh@suse.cz>
1654
1655         * i386.c (nocona_cost, pentium4_cost): Update preffered memcpy/memset
1656         codegen.
1657
1658 2006-12-07  Jan Hubicka  <jh@suse.cz>
1659
1660         * tree-vrp.c (compare_values): Short circuit INTEGER_CST;
1661         use fold_constant_to_binary; tolerate wrong type constants.
1662         (value_intersect_p): Do just two tests.
1663
1664 2006-12-07  Bernd Schmidt  <bernd.schmidt@analog.com>
1665
1666         * config/bfin/bfin.c (print_operand): New modifier 'N' for constants.
1667         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1668         lshifthi3): Use it, and fix the order of alternatives.
1669
1670 2006-12-07  Nick Clifton  <nickc@redhat.com>
1671
1672         * common.opt (record-gcc-switches): New command line switch.
1673         * target.h (print_switch_type): New enum.
1674         (print_switch_fn_type): New typedef for a function pointer.
1675         (struct gcc_target): Add record_gcc_switches and
1676         record_gcc_switches_section fields.
1677         * target-def.h (TARGET_ASM_RECORD_GCC_SWITCHES): Provide a
1678         default definition.
1679         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Provide a default
1680         definition.
1681         * toplev.c (print_single_switch): Simplify by providing a
1682         pointer to function that will format and output the switch
1683         appropriately.
1684         (print_switch_values): Likewise.
1685         (print_to_asm_out_file): New function.
1686         (print_to_stderr): New function.
1687         (init_asm_output): If flag_record_gcc_switches is set then if
1688         the target supports recording the switches then emit them into
1689         the assembler output file, otherwise tell the user that the
1690         switch is not supported.
1691         * varasm.c (eld_record_gcc_switches): New function.  Example
1692         handler for the record_gcc_switches target hook.
1693         * doc/tm.texi (TARGET_ASM_RECORD_GCC_SWITCHES): Document the new
1694         target hook.
1695         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Likewise.
1696         * doc/invoke.texi (-frecord-gcc-switches): Document.
1697
1698 2006-12-07  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1699
1700         PR target/29794
1701         * sched-rgn.c (add_block1): Use correct initializer.
1702
1703 2006-12-07  Richard Guenther  <rguenther@suse.de>
1704
1705         * tree-vect-transform.c (vectorizable_call): Fix leftover of
1706         TREE_OPERAND to GIMPLE_STMT_OPERAND conversion.
1707
1708 2006-12-06  Aldy Hernandez  <aldyh@redhat.com>
1709
1710         PR/30079
1711         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Build MODIFY_EXPR
1712         not GIMPLE_MODIFY_STMT.
1713
1714 2006-12-06  Jan Hubicka  <jh@suse.cz>
1715
1716         * tree-vrp.c (operand_less_p): New.
1717         (compare_values, value_inside_range): Rewrite in terms of
1718         operand_less_p.
1719
1720 2006-12-06 Uros Bizjak <ubizjak@gmail.com>
1721
1722         * config/i386/i386.md (DIRFLAG_REG): Remove constant.
1723         (type): Remove cld.
1724         (length_immediate): Do not depend on cld type attribute.
1725         (length_address): Ditto.
1726         (modrm): Ditto.
1727         (memory): Ditto.
1728         (cld): Remove insn pattern.
1729         (strmov_singleop): Do not use DIRFLAG_REG.
1730         (*strmovdi_rex_1): Ditto.
1731         (*strmovsi_1): Ditto.
1732         (*strmovsi_rex_1): Ditto.
1733         (*strmovhi_1): Ditto.
1734         (*strmovhi_rex_1): Ditto.
1735         (*strmovqi_1): Ditto.
1736         (*strmovqi_rex_1): Ditto.
1737         (rep_mov): Ditto.
1738         (*rep_movdi_rex64): Ditto.
1739         (*rep_movsi): Ditto.
1740         (*rep_movsi_rex64): Ditto.
1741         (*rep_movqi): Ditto.
1742         (*rep_movqi_rex64): Ditto.
1743         (strset_singleop): Ditto.
1744         (*strsetdi_rex_1): Ditto.
1745         (*strsetsi_1): Ditto.
1746         (*strsetsi_rex_1): Ditto.
1747         (*strsethi_1): Ditto.
1748         (*strsethi_rex_1): Ditto.
1749         (*strsetqi_1): Ditto.
1750         (*strsetqi_rex_1): Ditto.
1751         (rep_stos): Ditto.
1752         (*rep_stosdi_rex64): Ditto.
1753         (*rep_stossi): Ditto.
1754         (*rep_stossi_rex64): Ditto.
1755         (*rep_stosqi): Ditto.
1756         (*rep_stosqi_rex64): Ditto.
1757         (cmpstrnsi): Do not generate cld insn.
1758         (cmpstrnqi_nz_1): Do not use DIRFLAG_REG.
1759         (*cmpstrnqi_nz_1): Ditto.
1760         (*cmpstrnqi_nz_rex_1): Ditto.
1761         (cmpstrnqi_1): Ditto.
1762         (*cmpstrnqi_1): Ditto.
1763         (*cmpstrnqi_rex_1): Ditto.
1764         (strlenqi_1): Ditto.
1765         (*strlenqi_1): Ditto.
1766         (*strlenqi_rex_1): Ditto.
1767
1768         * config/i386/geode.md (shift): Do not depend on cld type attribute.
1769         * config/i386/pentium.md (pent_cld): Remove insn reservation.
1770         * config/i386/athlon.md (athlon_decode): Do not depend on cld
1771         type attribute.
1772         * config/i386/ppro.md (ppro_cld): Remove insn reservation.
1773         * config/i386/k6.md (k6_alux_only): Do not depend on cld type
1774         attribute.
1775         (k6_alux_only_load): Ditto.
1776         (k6_alux_only_store): Ditto.
1777
1778         * config/i386/i386.c (ix86_expand_movmem): Remove cld_done boolean.
1779         Do not emit cld instruction.
1780         (ix86_expand_setmem): Ditto.
1781         (ix86_expand_strlen): Do not emit cld instruction.
1782
1783 2006-12-06  Bernd Schmidt  <bernd.schmidt@analog.com>
1784
1785         * config/bfin/bfin.c (bfin_rtx_costs): Add a number of new cases, tweak
1786         old ones.
1787
1788 2006-12-06  Diego Novillo  <dnovillo@redhat.com>
1789
1790         * gdbinit.in: Set complaints to 0.
1791
1792 2006-12-06  Jan Hubicka  <jh@suse.cz>
1793
1794         * statistics.h (ALONE_PASS_MEM_STAT, ALONE_MEM_STAT_INFO,
1795         ALONE_MEM_STAT_DECL): New macros.
1796         * bitmap.h: Include statistics.h
1797         (struct bitmap_head_def): Add variant with pointer to bitmap descriptor.
1798         (bitmap_initialize_stat): Rename from bitmap_initialize; add statistics.
1799         (bitmap_obstack_alloc_stat, bitmap_gc_alloc_stat): Declare.
1800         * bitmap.c: Include hashtab.h
1801         (bitmap_descriptor): New.
1802         (bitmap_hash): New static variable
1803         (hash_descriptor, eq_descriptor, bitmap_descriptor, register_overhead):
1804         New static functions.
1805         (bitmap_register): New.
1806         (bitmap_element_free, bitmap_element_allocate, bitmap_elt_clear_from,
1807         bitmap_obstack_release): Do accounting.
1808         (bitmap_obstack_alloc_stat): Rename from bitmap_obstack_alloc ; do
1809         accounting.
1810         (bitmap_gc_alloc_stat): Likewise.
1811         (bitmap_obstack_free, bitmap_find_bit): Do statictics.
1812         (print_statistics, dump_bitmap_statistics): New functions.
1813         * toplev.c (finalize): Dump bitmap statistics.
1814
1815 2006-12-06  Bernd Schmidt  <bernd.schmidt@analog.com>
1816
1817         * reload1.c (delete_output_reload): Count occurrences in
1818         CALL_INSN_FUNCTION_USAGE.
1819         * rtlanal.c (count_occurrences): Handle EXPR_LIST nodes without
1820         crashing at the end of the list.
1821
1822 2006-12-05  Daniel Berlin  <dberlin@dberlin.org>
1823
1824         * tree-ssa-structalias.c (set_used_smts): Re-fix pr29156.
1825         Optimize to avoid marking more SMT's as used when they aren't.
1826
1827 2006-12-05  Eric Christopher  <echristo@apple.com>
1828
1829         * config/i386/i386.c (x86_output_aligned_bss): Move out
1830         of COMMON_ASM_OP ifdef.
1831
1832 2006-12-05  Eric Christopher  <echristo@apple.com>
1833
1834         * config/darwin.h (DARWIN_EXTRA_SPECS): New.
1835         (STARTFILE_SPEC): Use.
1836         (DARWIN_DYLIB1_SPEC): New.
1837         (DARWIN_CRT1_SPEC): New.
1838         * config/i386/darwin64.h (SUBTARGET_EXTRA_SPECS): Use
1839         DARWIN_EXTRA_SPECS.
1840         * config/i386/darwin.h: Ditto.
1841         * config/rs6000/darwin.h: Ditto.
1842
1843 2006-12-05  Daniel Berlin  <dberlin@dberlin.org>
1844
1845         * tree-vrp.c (pass_vrp): Remove PROP_smt_usage.
1846         * tree-complex.c (pass_lower_complex): Ditto.
1847         * tree-ssa-ccp.c (pass_ccp): Ditto.
1848         (pass_store_ccp): Ditto.
1849         * tree-ssa-dom.c (pass_dominator): Ditto.
1850         (pass_phi_only_cprop): Ditto.
1851         * tree-sra.c (pass_sra): Ditto.
1852         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
1853         * tree-flow.h (updating_used_alone): Remove.
1854         (updating_used_alone): Ditto.
1855         * tree-ssa-alias.c (updating_used_alone): Remove variable.
1856         (lhs_may_store_to): Remove function.
1857         (recalculate_used_alone): Ditto.
1858         (compute_may_aliases): Remove used_alone calculation.
1859         * tree.h (struct tree_memory_tag): Remove is_used_alone and
1860         old_used_alone. Remove SMT_USED_ALONE and SMT_OLD_USED_ALONE.
1861         * tree-pass.h (PROP_smt_usage): Remove.
1862         * passes.c (execute_todo): Remove used alone recalculation.
1863         (execute_one_pass): Ditto.
1864         * tree-ssa-operands.c (add_virtual_operand): Remove used_alone
1865         stuff.
1866
1867 2006-12-05  Brooks Moses  <brooks.moses@codesourcery.com>
1868
1869         * doc/include/texinfo.tex: Update to version 2006-11-08.17.
1870
1871 2006-12-05  Zdenek Dvorak <dvorakz@suse.cz>
1872
1873         PR tree-optimization/14784
1874         * tree-ssa-operands.c (access_can_touch_variable): Unrevert the fix.
1875
1876 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
1877
1878         Merge from gimple-tuples-branch.
1879
1880         2006-12-04  Aldy Hernandez  <aldyh@redhat.com>
1881
1882         * config/s390/s390.c (s390_va_start): Replace MODIFY_EXPR with
1883         GIMPLE_MODIFY_STMT.
1884         (s390_gimplify_va_arg): Same.
1885         * config/sparc/sparc.c (sparc_gimplify_va_arg): Same.
1886         * config/sh/sh.c (sh_va_start): Same.
1887         (sh_gimplify_va_arg_expr): Same.
1888         * config/xtensa/xtensa.c (xtensa_va_start): Same.
1889         (xtensa_gimplify_va_arg_expr): Same.
1890         * config/ia64/ia64.c (ia64_gimplify_va_arg): Same.
1891         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Same.
1892         * config/mips/mips.c (mips_va_start): Same.
1893         (mips_gimplify_va_arg_expr): Same.
1894
1895         2006-12-04  Aldy Hernandez  <aldyh@redhat.com>
1896
1897         * Merge from mainline at revision 119445.
1898
1899         2006-12-04  Aldy Hernandez  <aldyh@redhat.com>
1900
1901         * config/spu/spu.c (spu_va_start): Change MODIFY_EXPR to
1902         GIMPLE_MODIFY_STMT.
1903         (spu_gimplify_va_arg_expr): Same.
1904
1905         2006-12-04  Aldy Hernandez  <aldyh@redhat.com>
1906
1907         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1908         Change uses of MODIFY_EXPR to GIMPLE_MODIFY_STMT.
1909         (xstormy16_expand_builtin_va_arg): Same.
1910
1911         2006-12-04  Aldy Hernandez  <aldyh@redhat.com>
1912
1913         * config/frv/frv.c (frv_expand_builtin_va_start): Change MODIFY_EXPR
1914         to GIMPLE_MODIFY_STMT.
1915
1916         2006-12-04  Aldy Hernandez  <aldyh@redhat.com>
1917
1918         * config/alpha/alpha.c (va_list_skip_additions): Change all
1919         occurrences of MODIFY_EXPR to GIMPLE_MODIFY_STMT.
1920         (alpha_va_start): Same.
1921         (alpha_gimplify_va_arg_1): Same.
1922         (alpha_gimplify_va_arg): Same.
1923
1924         2006-12-01  Aldy Hernandez  <aldyh@redhat.com>
1925
1926         * gimplify.c (gimplify_modify_expr): Remove FIXME comment.
1927
1928         2006-12-01  Aldy Hernandez  <aldyh@redhat.com>
1929
1930         * tree-ssa-loop-im.c: Rename all PROTECTED_TREE_OPERAND to
1931         GENERIC_TREE_OPERAND, and all PROTECTED_TREE_TYPE to
1932         GENERIC_TREE_TYPE.
1933         * tree-complex.c: Same.
1934         * tree-pretty-print.c: Same.
1935         * tree.c: Same.
1936         * tree.h: Same.
1937         * builtins.c: Same.
1938         * fold-const.c: Same.
1939         * tree-ssa-dom.c: Same.
1940         * tree-ssa-propagate.c: Same.
1941         * tree-ssa-alias.c: Same.
1942         * gimple-low.c: Same.
1943         * dwarf2out.c: Same.
1944         * c-pretty-print.c: Same.
1945         * gimplify.c: Same.
1946         * tree-inline.c: Same.
1947         * tree-outof-ssa.c: Same.
1948         * tree-ssa-structalias.c: Same.
1949         * tree-ssa-reassoc.c: Same.
1950         * stmt.c: Same.
1951
1952         2006-11-16  Aldy Hernandez  <aldyh@redhat.com>
1953
1954         * tree.c (build2_stat): Fix comment.
1955
1956         2006-11-13  Aldy Hernandez  <aldyh@redhat.com>
1957
1958         * tree-ssa-propagate.c (get_rhs): Use GIMPLE_MODIFY_STMT and
1959         TREE_OPERAND when appropriate.
1960
1961         2006-11-04  Aldy Hernandez  <aldyh@redhat.com>
1962
1963         * java/java-tree.h (lang_tree_node): Handle gimple tuples.
1964         (EXPR_WFL_EMIT_LINE_NOTE): Look inside base.
1965         (EXPR_WFL_LINECOL): Use EXPR_LOCUS macro instead of exp.locus.
1966         * java/java-gimplify.c (java_gimplify_expr): Comment on why we do
1967         not handle GIMPLE_MODIFY_STMT in the switch statement.
1968         (java_gimplify_modify_expr): Call build2 with GIMPLE_MODIFY_STMT.
1969         (java_gimplify_new_array_init): Same.
1970
1971         2006-11-03  Aldy Hernandez  <aldyh@redhat.com>
1972
1973         * gimplify.c (gimplify_omp_for): Allow gimple statements.
1974         * tree-outof-ssa.c (check_replaceable): Use PROTECTED_TREE_OPERAND.
1975         * fold-const.c (fold_binary): Allow gimple statements.
1976         (fold): Same.
1977         * fortran/trans-array.c (gfc_conv_descriptor_data_set_internal):
1978         Rename from gfc_conv_descriptor_data_set.
1979         Call gfc_add_modify instead of gfc_add_modify_expr.
1980         * fortran/trans-array.h (gfc_conv_descriptor_data_set_internal):
1981         Rename from gfc_conv_descriptor_data_set.
1982         (gfc_conv_descriptor_data_set): New macro.
1983         (gfc_conv_descriptor_data_set_tuples): New macros.
1984         * fortran/trans-openmp.c (gfc_omp_clause_default_ctor): Call
1985         gfc_conv_descriptor_data_set_tuples.
1986         * fortran/trans.c (gfc_add_modify): Rename from gfc_add_modify_expr.
1987         Generate GIMPLE_MODIFY_STMT when appropriate.
1988         * fortran/trans.h (gfc_add_modify): Rename from gfc_add_modify_expr.
1989         (gfc_add_modify_expr): New macro.
1990         (gfc_add_modify_stmt): New macro.
1991         * fortran/f95-lang.c (lang_tree_node): Handle gimple statements.
1992
1993         2006-11-01  Aldy Hernandez  <aldyh@redhat.com>
1994
1995         * Merge from mainline at revision 118200.
1996
1997         2006-10-09  Aldy Hernandez  <aldyh@redhat.com>
1998
1999         * tree-inline.c (copy_bb): Check for GIMPLE_MODIFY_STMT, and adjust
2000         accordingly.
2001
2002         2006-10-09  Aldy Hernandez  <aldyh@redhat.com>
2003
2004         * tree.h (TREE_CHAIN, TREE_TYPE): Add versions for non GCC or not
2005         enable checking.
2006         Also, add __extension__ to GCC versions.
2007         * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
2008         * tree-inline.c (copy_tree_r): Initialize chain to assuage the warning
2009         patrol.
2010
2011         2006-10-05  Aldy Hernandez  <aldyh@redhat.com>
2012
2013         * tree-complex.c (expand_complex_libcall): Adjust for
2014         GIMPLE_MODIFY_STMT.
2015         (expand_complex_comparison): Same.
2016         * tree-pretty-print.c (dump_generic_node): Is_expr should include
2017         GIMPLE_STMT_P statements.
2018         * value-prof.c (tree_divmod_fixed_value_transform): Adjust for
2019         GIMPLE_MODIFY_STMT.
2020         (tree_mod_pow2_value_transform): Same.
2021         (tree_mod_subtract_transform): Same.
2022         * tree.c (build2_stat): Check for gimplified function in cfun.
2023         * tree.h (DECL_GIMPLIFIED): Delete.
2024         (struct tree_function_decl): Remove gimplified_flag.
2025         * omp-low.c (lower_omp_for): Adjust for GIMPLE_MODIFY_STMT.
2026         * cp/cp-gimplify.c (cp_gimplify_expr): Adjust for GIMPLE_MODIFY_STMT.
2027         (cxx_omp_clause_apply_fn): Adjust for GIMPLE_MODIFY_STMT.
2028         (cxx_omp_clause_copy_ctor): Same.
2029         (cxx_omp_clause_assign_op): Same.
2030         * c-pretty-print.c (pp_c_conditional_expression): Same.
2031         (pp_c_expression): Same.
2032         * langhooks.c (lhd_omp_predetermined_sharing): Same.
2033         * function.h (struct function): Add gimplified field.
2034         * tree-if-conv.c (add_to_dst_predicate_list): Adjust for
2035         GIMPLE_MODIFY_STMT.
2036         (find_phi_replacement_condition): Same.
2037         * gimplify.c (gimplify_modify_expr_to_memcpy): Same.
2038         (gimplify_modify_expr_to_memset): Same.
2039         (gimplify_init_ctor_eval_range): Same.
2040         (gimplify_modify_expr_complex_part): Same.
2041         (tree_to_gimple_tuple): Same.
2042         (gimplify_modify_expr): Same.
2043         (gimple_push_cleanup): Same.
2044         (gimplify_omp_for): Same.
2045         (gimplify_omp_atomic_pipeline): Same.
2046         (gimplify_omp_atomic_mutex): Same.
2047         (gimplify_expr): Same.
2048         (gimplify_one_sizepos): Same.
2049         (gimplify_function_tree): Same.
2050         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Same.
2051         (vect_recog_widen_sum_pattern): Same.
2052         * tree-vect-transform.c (get_initial_def_for_reduction): Same.
2053         (vect_create_epilog_for_reduction): Same.
2054         (vectorizable_reduction): Same.
2055
2056         2006-09-28  Aldy Hernandez  <aldyh@redhat.com>
2057
2058         * tree-ssa-math-opts.c (replace_reciprocal): Use GIMPLE_STMT_OPERAND.
2059         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p): Same.
2060         (ifc_temp_var): Same.
2061         * tree-vect-analyze.c (vect_determine_vectorization_factor): Check
2062         for gimple statements.
2063         (vect_analyze_operations): Same.
2064         (exist_non_indexing_operands_for_use_p): Use GIMPLE_STMT_OPERAND.
2065         * gimplify.c (gimplify_return_expr): Handle gimple statements.
2066         * lambda-code.c (can_put_in_inner_loop): Same.
2067         (can_put_after_inner_loop): Same.
2068         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Same.
2069         (vect_create_data_ref_ptr): Same.
2070         (vect_init_vector): Same.
2071         (vect_get_vec_def_for_operand): Same.
2072         (vect_create_epilog_for_reduction): Same.
2073         (vectorizable_reduction): Same.
2074         (vectorizable_assignment): Same.
2075         (vectorizable_operation): Same.
2076         (vectorizable_load): Same.
2077         (vectorizable_condition): Same.
2078         * config/rs6000/rs6000.c (rs6000_va_start): Do not create MODIFY_EXPRs.
2079         (rs6000_gimplify_va_arg): Same.
2080
2081         2006-09-25  Aldy Hernandez  <aldyh@redhat.com>
2082
2083         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use
2084         GIMPLE_STMT_OPERAND.
2085         (simplify_abs_using_ranges): Same.
2086         * tree-complex.c (expand_complex_operations_1): Use
2087         PROTECTED_TREE_OPERAND.
2088         * tree-ssa-loop-niter.c (simplify_replace_tree): Check for gimple
2089         stmt.
2090         (get_val_for): Use GIMPLE_STMT_OPERAND.
2091         * tree-tailcall.c (adjust_accumulator_values): Same.
2092         (adjust_return_value): Same.
2093         * tree.c (walk_tree): Use IS_GIMPLE_STMT_CODE_CLASS on default
2094         case.  Remove special case for tcc_gimple_stmt.
2095         * tree.h (CAN_HAVE_LOCATION_P): New.
2096         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Check for
2097         GIMPLE_STMT_P.
2098         * tree-stdarg.c (va_list_counter_bump): Use GIMPLE_STMT_OPERAND.
2099         * tree-ssa-dom.c (propagate_rhs_into_lhs): Same.
2100         * tree-nrv.c (execute_return_slot_opt): Same.
2101         * tree-ssa-alias.c (count_uses_and_derefs): Check for GIMPLE_STMT_P.
2102         * tree-vn.c (set_value_handle): Same.
2103         (get_value_handle): Same.
2104         * c-decl.c (add_stmt): Use CAN_HAVE_LOCATION_P.
2105         * tree-vectorizer.c (find_loop_location): Same.
2106         * c-typeck.c (c_process_expr_stmt): Same.
2107         (c_finish_stmt_expr): Same.
2108         * gimplify.c (should_carry_locus_p): Same.
2109         (tree_to_gimple_tuple): Delete definition and use of unecessary
2110         variable save_tree_block.
2111         * tree-ssa-pre.c (phi_translate): Check for GIMPLE_STMT_P.
2112         (create_expression_by_pieces): Use GIMPLE_STMT_OPERAND.
2113         (realify_fake_stores): Same.
2114         * tree-ssa-forwprop.c (forward_propagate_addr_into_variable_arr):
2115         Use TREE_OPERAND.
2116         * tree-inline.c (copy_body_r): Check for EXPR_P and GIMPLE_STMT_P.
2117         (copy_tree_r): Check for IS_GIMPLE_STMT_CODE_CLASS.
2118         * tree-cfg.c (move_stmt_r): Use EXPR_P.  Check for GIMPLE_STMT_P.
2119         * c-parser.c (c_parser_typeof_specifier): Use CAN_HAVE_LOCATION_P.
2120         (c_parser_statement_after_labels): Same.
2121         (c_parser_paren_condition): Same.
2122         (c_parser_for_statement): Same.
2123         (c_parser_omp_for_loop): Same.
2124         * tree-ssa-reassoc.c (linearize_expr): Use GIMPLE_STMT_OPERAND.
2125         (linearize_expr_tree): Same.
2126         * dwarf2out.c (reference_to_unused): Check for GIMPLE_STMT_P.
2127         * function.c (instantiate_expr): Same.
2128
2129         2006-09-22  Aldy Hernandez  <aldyh@redhat.com>
2130
2131         * tree.c (expr_location): Use GIMPLE_STMT_LOCUS.
2132         (set_expr_location): Same.
2133         (expr_locus): Same.
2134         (set_expr_locus): Same.
2135         (expr_filename): Same.
2136         (expr_lineno): Same.
2137         (tree_block): Use GIMPLE_STMT_BLOCK.
2138         (protected_tree_operand): Use GIMPLE_STMT_OPERAND.
2139         * tree.h (struct gimple_stmt): Remove prev and next.
2140         (GIMPLE_STMT_OPERAND_CHECK): New.
2141         (TREE_TO_GIMPLE_STMT): Delete.
2142         (GIMPLE_STMT_TO_TREE): Delete.
2143         (GIMPLE_STMT_OPERAND): Use union, not cast.
2144         (GIMPLE_STMT_LOCUS): New.
2145         (GIMPLE_STMT_BLOCK): New.
2146         * gimplify.c (tree_to_gimple_tuple): Use union.  Do not cast
2147         to tree_base.
2148         * tree-cfg.c (verify_gimple_tuples_1): Call gcc_unreachable.
2149
2150         2006-09-21  Aldy Hernandez  <aldyh@redhat.com>
2151
2152         * tree-into-ssa.c (REGISTER_DEFS_IN_STMT): Change common.base
2153         to base.
2154         * tree-tailcall.c (adjust_return_value): Same.
2155         * tree.c (tree_code_size): Remove GIMPLE_STATEMENT_LIST case.
2156         (copy_node_stat): Change common.base to base.
2157         (tree_node_structure): Return TS_GIMPLE_STATEMENT for tcc_gimple_stmt.
2158         Remove GIMPLE_STATEMENT_LIST case.
2159         * tree.h (struct gimple_stmt): Make operands of type tree.
2160         (TREE_CODE, TREE_SET_CODE, TREE_ADDRESSABLE, CALL_EXPR_TAILCALL,
2161         CASE_LOW_SEEN, TREE_STATIC, CLEANUP_EH_ONLY, CASE_HIGH_SEEN,
2162         TREE_NO_WARNING, TREE_CONSTANT_OVERFLOW, TREE_SYMBOL_REFERENCED,
2163         TYPE_REF_CAN_ALIAS_ALL, TREE_OVERFLOW, TREE_PUBLIC,
2164         TYPE_CACHED_VALUES_P, TREE_SIDE_EFFECTS, FORCED_LABEL,
2165         TREE_THIS_VOLATILE, TREE_THIS_NOTRAP, TREE_READONLY,
2166         TREE_CONSTANT, TYPE_SIZES_GIMPLIFIED, DECL_UNSIGNED,
2167         BIT_FIELD_REF_UNSIGNED, TYPE_UNSIGNED, TREE_ASM_WRITTEN, TREE_USED,
2168         TREE_NOTHROW, CALL_EXPR_RETURN_SLOT_OPT, DECL_BY_REFERENCE,
2169         CALL_FROM_THUNK_P, TYPE_ALIGN_OK, TREE_PRIVATE, TREE_PROTECTED,
2170         TREE_DEPRECATED, IDENTIFIER_TRANSPARENT_ALIAS, TREE_INVARIANT,
2171         TREE_LANG_FLAG_*, SSA_NAME_OCCURS_IN_ABNORMAL_PHI,
2172         SSA_NAME_IN_FREE_LIST, TYPE_VOLATILE, TYPE_READONLY, BINFO_VIRTUAL_P):
2173         Change common.base to base.
2174         (GIMPLE_STATEMENT_LIST*): Remove.
2175         (union tree_node): Add base.  Remove gimple_statement_list.
2176         Remove pointer from gstmt.
2177         * tree-ssa-propagate.c (set_rhs): Change common.base to base.
2178         * treestruct.def: Add TS_BASE.  Remove TS_GIMPLE_STATEMENT_LIST.
2179         * tree-vn.c (vn_compute): Change common.base to base.
2180         * tree-eh.c (verify_eh_throw_stmt_node): Same.
2181         * tree-flow-inline.h (var_ann): Same.
2182         (function_ann): Same.
2183         (stmt_ann): Same.
2184         (mark_non_addressable): Same.
2185         * gimplify.c (tree_to_gimple_tuple): Same.
2186         * tree.def (DEFTREECODE): Remove GIMPLE_STATEMENT_LIST.
2187         * tree-dfa.c (create_var_ann): Change common.base to base.
2188         (create_function_ann): Same.
2189         (create_stmt_ann): Same.
2190         (create_tree_ann): Same.
2191         (collect_dfa_stats_r): Same.
2192         * tree-ssa-pre.c (NECESSARY): Change common.base to base.
2193         * tree-ssa-dce.c (NECESSARY): Same.
2194         * tree-ssa.c (delete_tree_ssa): Same.
2195         * tree-optimize.c (execute_free_cfg_annotations): Same.
2196         * tree-flow.h: Same.
2197
2198         2006-09-19  Aldy Hernandez  <aldyh@redhat.com>
2199
2200         * tree.c (tree_code_size): Handle GIMPLE_STATEMENT_LIST.
2201         (tree_node_structure): Handle GIMPLE_STATEMENT_LIST and
2202         GIMPLE_MODIFY_STMT.
2203         * tree.h (struct gimple_stmt): Add prev and next fields.
2204         (GIMPLE_STMT_TO_TREE): Cast, do not call GIMPLE_STMT_CHECK.
2205         (GIMPLE_STATEMENT_LIST_HEAD): New.
2206         (GIMPLE_STATEMENT_LIST_TAIL): New.
2207         (struct gimple_statement_list): New.
2208         (union tree_node): Add gimple_stmt_list and gstmt.
2209         * treestruct.def: Add TS_GIMPLE_STATEMENT_LIST, TS_GIMPLE_STATEMENT.
2210         * tree.def: Add GIMPLE_STATEMENT_LIST.
2211
2212         2006-09-06  Aldy Hernandez  <aldyh@redhat.com>
2213
2214         * tree-dump.c (dequeue_and_dump): Handle GIMPLE_MODIFY_STMT.
2215         * tree-vrp.c (build_assert_expr_for): Change uses of
2216         MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
2217         (find_assert_locations): Same.
2218         (remove_range_assertions): Same.
2219         (stmt_interesting_for_vrp): Same.
2220         (vrp_visit_assignment): Same.
2221         (vrp_visit_stmt): Same.
2222         (simplify_cond_using_ranges): Same.
2223         * tree-into-ssa.c (REGISTER_DEFS_IN_THIS_STMT): Adjust for new
2224         tree structure.
2225         * tree-ssa-loop-im.c (movement_possibility): Change uses of
2226         MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
2227         (stmt_cost): Same.
2228         (determine_invariantness_stmt): Same.
2229         (schedule_sm): Same.
2230         (gather_mem_refs_stmt): Same.
2231         * tree-complex.c (init_dont_simulate_again): Same.
2232         (complex_visit_stmt): Same.
2233         (set_component_ssa_name): Same.
2234         (expand_complex_move): Same.
2235         (expand_complex_div_wide): Same.
2236         (expand_complex_comparison): Same.
2237         (expand_complex_operations_1): Same.
2238         * tree-ssa-loop-niter.c (expand_simple_operations): Same.
2239         (chain_of_csts_start): Same.
2240         (infer_loop_bounds_from_undefined): Same.
2241         * tree-pretty-print.c (dump_generic_node): Same.
2242         (op_prio): Same.
2243         (op_symbol_1): Same.
2244         * tree-ssa-loop-manip.c (create_iv): Same.
2245         * value-prof.c (tree_divmod_fixed_value): Same.
2246         (tree_divmod_fixed_value_transform): Same.
2247         (tree_mod_pow2): Same.
2248         (tree_mod_pow2_value_transform): Same.
2249         (tree_mod_subtract): Same.
2250         (tree_mod_subtract_transform): Same.
2251         (tree_divmod_values_to_profile): Same.
2252         * tree-tailcall.c (process_assignment): Same.
2253         (find_tail_calls): Same.
2254         (adjust_accumulator_values): Same.
2255         (adjust_return_value): Same.
2256         (eliminate_tail_call): Same.
2257         * tree.c (tree_code_size): Handle tcc_gimple_stmt.
2258         (make_node_stat): Same.
2259         (copy_node_stat): Handle gimple tuples.
2260         (expr_align): Handle GIMPLE_MODIFY_STMT.  Abort on MODIFY_EXPR.
2261         (tree_node_structure): Handle tcc_gimple_stmt.
2262         (build2_stat): Abort on MODIFY_EXPR after gimplification.  Handle
2263         tcc_gimple_stmt.
2264         (build2_gimple_stat): New.
2265         (expr_location): New.
2266         (set_expr_location): New.
2267         (expr_has_location): New.
2268         (expr_locus): New.
2269         (set_expr_locus): New.
2270         (expr_filename): New.
2271         (expr_lineno): New.
2272         (walk_tree): Handle tcc_gimple_stmt.
2273         (tree_block): New.
2274         (protected_tree_operand): New.
2275         (protected_tree_type): New.
2276         (tree_code_kind): Add gimple statements.
2277         * tree.h (tree_code_class): Add tcc_gimple_stmt.
2278         (IS_GIMPLE_STMT_CODE_CLASS): New.
2279         (struct tree_base): New.
2280         (struct tree_common): Shrink.
2281         (struct gimple_stmt): New.
2282         (struct gimple_expr): New.
2283         (TREE_SET_CODE, TREE_ADDRESSABLE, CALL_EXPR_TAILCALL,
2284         CASE_LOW_SEEN, TREE_STATIC, CLEANUP_EH_ONLY, CASE_HIGH_SEEN,
2285         TREE_NO_WARNING, TREE_CONSTANT_OVERFLOW, TREE_SYMBOL_REFERENCED,
2286         TYPE_REF_CAN_ALIAS_ALL, TREE_OVERFLOW, TREE_PUBLIC,
2287         TYPE_CACHED_VALUES_P, SAVE_EXPR_RESOLVED_P, TREE_SIDE_EFFECTS,
2288         FORCED_LABEL, TREE_THIS_VOLATILE, TREE_THIS_NOTRAP, TREE_READONLY,
2289         TREE_CONSTANT, TYPE_SIZES_GIMPLIFIED, DECL_UNSIGNED,
2290         BIT_FIELD_REF_UNSIGNED, TYPE_UNSIGNED, TREE_ASM_WRITTEN,
2291         TREE_USED, TREE_NOTHROW, CALL_EXPR_RETURN_SLOT_OPT,
2292         DECL_BY_REFERENCE, CALL_FROM_THUNK_P, TYPE_ALIGN_OK,
2293         TREE_PRIVATE, TREE_PROTECTED, TREE_DEPRECATED,
2294         IDENTIFIER_TRANSPARENT_ALIAS, TREE_INVARIANT,
2295         TREE_LANG_FLAG_[0-6], SSA_NAME_CHECK, SSA_NAME_IN_FREE_LIST,
2296         TYPE_VOLATILE, TYPE_READONLY, TREE_VISITED, BINFO_VIRTUAL_P):
2297         Adjust for new `common' layout.
2298         (struct tree_function_decl): Add gimplified_flag.
2299         (DECL_GIMPLIFIED): NEW.
2300         (EXPR_LOCATION, SET_EXPR_LOCUS, EXPR_FILENAME, EXPR_LOCUS,
2301         SET_EXPR_LOCUS, SET_EXPR_LOCATION, EXPR_LINENO,
2302         EXPR_HAS_LOCATION): Call corresponding function.
2303         (GIMPLE_STMT_CHECK): New.
2304         (TREE_OPERAND_CHECK, TREE_TYPE, TREE_CHAIN): Abort on gimple tuples.
2305         (TREE_BLOCK): Call tree_block.
2306         (GIMPLE_STMT_P): New.
2307         (GIMPLE_TUPLE_P): New.
2308         (TREE_TO_GIMPLE_STMT): New.
2309         (GIMPLE_STMT_TO_TREE): New.
2310         (GIMPLE_STMT_OPERAND): New.
2311         (GIMPLE_TUPLE_HAS_LOCUS_P): New.
2312         (PROTECTED_TREE_OPERAND): New.
2313         (PROTECTED_TREE_TYPE): New.
2314         (build2_gimple_stat): Protoize.
2315         (build2_gimple): New.
2316         (expr_location): Protoize.
2317         (set_expr_location): Protoize.
2318         (expr_has_location): Protoize.
2319         (expr_locus): Protoize.
2320         (set_expr_locus): Protoize.
2321         (expr_filename): Protoize.
2322         (expr_lineno): Protoize.
2323         (tree_block): Protoize.
2324         (protected_tree_operand): Protoize.
2325         (protected_tree_type): Protoize.
2326         (enum tree_node_kind): Add gimple_stmt_kind.
2327         * c-decl.c (union lang_tree_node): Tuples do not have a
2328         TREE_CHAIN.
2329         * ipa-cp.c (constant_val_insert): Change uses of MODIFY_EXPR to
2330         GIMPLE_MODIFY_STMT and adjust accordingly.
2331         * tree-scalar-evolution.c (follow_ssa_edge): Same.
2332         (interpret_condition_phi): Same.
2333         (pointer_used_p): Same.
2334         (analyze_scalar_evolution_1): Same.
2335         (scev_const_prop): Same.
2336         (interpret_rhs_modify_stmt): Rename from
2337         interpret_rhs_modify_expr.
2338         * builtins.c (std_expand_builtin_va_start): Change uses of
2339         MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
2340         (std_gimplify_va_arg_expr): Same.
2341         (expand_builtin_va_copy): Same.
2342         (integer_valued_real_p): Same.
2343         * fold-const.c (maybe_lvalue_p): Same.
2344         (fold_unary): Same.
2345         (tree_expr_nonnegative_p): Same.
2346         (tree_expr_nonzero_p): Same.
2347         * omp-low.c (extract_omp_for_data): Same.
2348         (lower_rec_input_clauses): Same.
2349         (lower_reduction_clauses): Same.
2350         (lower_copyprivate_clauses): Same.
2351         (lower_send_clauses): Same.
2352         (lower_send_shared_vars): Same.
2353         (expand_parallel_call): Same.
2354         (expand_omp_parallel): Same.
2355         (expand_omp_for_generic): Same.
2356         (expand_omp_for_static_nochunk): Same.
2357         (expand_omp_for_static_chunk): Same.
2358         (expand_omp_sections): Same.
2359         (lower_omp_single_copy): Same.
2360         (lower_omp_parallel): Same.
2361         * tree-ssa-dse.c (memory_address_same): Same.
2362         (dse_optimize_stmt): Same.
2363         * ipa-reference.c (scan_for_static_refs): Same.
2364         * tree-gimple.c (is_gimple_reg_rhs): Same.
2365         (get_call_expr_in): Same.
2366         (recalculate_side_effects): Same.
2367         * cgraphunit.c (cgraph_create_edges): Same.
2368         * tree-ssa-copyrename.c (rename_ssa_copies): Same.
2369         * tree-ssa-ccp.c (get_default_value): Same.
2370         (likely_value): Same.
2371         (visit_assignment): Same.
2372         (ccp_visit_stmt): Same.
2373         (get_maxval_strlen): Same.
2374         (ccp_fold_builtin): Same.
2375         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Same.
2376         (find_givs_in_stmt): Same.
2377         (find_interesting_uses_op): Same.
2378         (find_interesting_uses_stmt): Same.
2379         (rewrite_use_nonlinear_expr): Same.
2380         * ipa-pure-const.c (scan_function): Same.
2381         * tree-stdarg.c (va_list_counter_bump): Same.
2382         (check_all_va_list_escapes): Same.
2383         (execute_optimize_stdarg): Same.
2384         * tree-ssa-math-opts.c (compute_merit): Same.
2385         (insert_reciprocals): Same.
2386         (execute_cse_reciprocals): Same.
2387         * tree-ssa-dom.c (initialize_hash_element): Same.
2388         (simple_iv_increment_p): Same.
2389         (record_equivalences_from_stmt): Same.
2390         (optimize_stmt): Same.
2391         (remove_stmt_or_phi): Same.
2392         (get_rhs_or_phi_arg): Same.
2393         (get_lhs_or_phi_result): Same.
2394         (propagate_rhs_into_lhs): Same.
2395         * tree-nrv.c (tree_nrv): Same.
2396         (execute_return_slot_opt): Same.
2397         * tree-ssa-propagate.c (get_rhs): Same.
2398         (set_rhs): Same.
2399         (stmt_makes_single_load): Same.
2400         (stmt_makes_single_store): Same.
2401         (replace_vuses_in): Same.
2402         (fold_predicate_in): Same.
2403         (substitute_and_fold): Same.
2404         * tree-ssa-alias.c (compute_call_clobbered): Same.
2405         (recalculate_used_alone): Same.
2406         (count_uses_and_derefs): Same.
2407         (is_escape_site): Same.
2408         (find_used_portions): Same.
2409         * gimple-low.c (lower_stmt): Same.
2410         (block_may_fallthru): Same.
2411         (lower_return_expr): Same.
2412         * tree-ssa-sink.c (is_hidden_global_store): Same.
2413         (statement_sink_location): Same.
2414         * dwarf2out.c (loc_descriptor_from_tree_1): Same.
2415         * expr.c (safe_from_p): Same.
2416         (expand_expr_real): Same.
2417         (expand_expr_real_1): Same.
2418         * tree-ssa-loop-ivcanon.c (empty_loop_p): Same.
2419         * predict.c (expr_expected_value): Same.
2420         (strip_builtin_expect): Same.
2421         (apply_return_prediction): Same.
2422         (tree_bb_level_predictions): Same.
2423         (tree_estimate_probability): Same.
2424         * tree-vn.c (vn_compute): Same.
2425         * tree-eh.c (add_stmt_to_eh_region_fn): Same.
2426         (remove_stmt_from_eh_region_fn): Same.
2427         (do_return_redirection): Same.
2428         (honor_protect_cleanup_actions): Same.
2429         (lower_try_finally_switch): Same.
2430         (lower_eh_constructs_1): Same.
2431         (tree_could_throw_p): Same.
2432         (verify_eh_throw_stmt_node): Same.
2433         * function.c (gimplify_parameters): Same.
2434         * tree-vectorizer.c (vect_is_simple_use): Same.
2435         (vect_is_simple_reduction): Same.
2436         * ipa-type-escape.c (scan_for_refs): Same.
2437         * tree-if-conv.c (tree_if_conversion): Same.
2438         (tree_if_convert_stmt): Same.
2439         (if_convertible_gimplify_modify_stmt_p): Rename from
2440         if_convertible_modify_expr_p.
2441         (if_convertible_stmt_p): Adjust for GIMPLE_MODIFY_STMT.
2442         (ifc_temp_var): Same.
2443         (replace_phi_with_cond_modify_stmt): Rename from
2444         replace_phi_with_cond_modify_expr.
2445         (process_phi_nodes): Call replace_phi_with_cond_modify_stmt.
2446         * tree.def (DEFTREECODE): Add GIMPLE_MODIFY_STMT.
2447         * tree-data-ref.c (find_data_references_in_loop): Adjust for
2448         GIMPLE_MODIFY_STMT.
2449         * tree-flow-inline.h (var_ann): Same.
2450         (function_ann): Same.
2451         (stmt_ann): Same.
2452         (mark_non_addressable): Same.
2453         * tree-vect-analyze.c (vect_determine_vectorization_factor): Same.
2454         * gimplify.c (tree_to_gimple_tuple): New.
2455         (build_stack_save_restore): Adjust for GIMPLE_MODIFY_STMT.
2456         (gimplify_return_expr): Same.
2457         (gimplify_decl_expr): Same.
2458         (gimplify_self_mod_expr): Same.
2459         (gimplify_cond_expr): Same.
2460         (gimplify_init_constructor): Same.
2461         (gimplify_modify_expr): Same.
2462         (gimplify_expr): Same.
2463         (gimplify_function_tree): Same.
2464         (force_gimple_operand): Same.
2465         * tree-ssa-phiopt.c (conditional_replacement): Same.
2466         (minmax_replacement): Same.
2467         (abs_replacement): Same.
2468         * tree-dfa.c (create_var_ann): Same.
2469         (create_function_ann): Same.
2470         (create_stmt_ann): Same.
2471         (create_tree_ann): Same.
2472         (collect_dfa_stats_r): Same.
2473         * tree-ssa-pre.c (find_or_generate_expression): Same.
2474         (create_expression_by_pieces): Same.
2475         (try_look_through_load): Same.
2476         (insert_fake_stores): Same.
2477         (realify_fake_stores): Same.
2478         (compute_avail): Same.
2479         (eliminate): Same.
2480         (init_pre): Same.
2481         (poolify_modify_stmt): Rename from poolify_modify_stmt.
2482         Adjust for GIMPLE_MODIFY_STMT.
2483         (NECESSARY): Adjust for new `common' layout.
2484         * tree-ssa-live.c (build_tree_conflict_graph): Adjust for
2485         GIMPLE_MODIFY_STMT.
2486         * tree-sra.c (sra_walk_modify_stmt): Rename from
2487         sra_walk_modify_expr.
2488         (sra_walk_function): Adjust for GIMPLE_MODIFY_STMT.
2489         (generate_copy_inout): Same.
2490         (generate_element_copy): Same.
2491         (generate_element_zero): Same.
2492         (scalarize_copy): Same.
2493         * tree-mudflap.c (mf_decl_cache_locals): Same.
2494         (mf_build_check_statement_for): Same.
2495         (mf_xform_derefs): Same.
2496         * ipa-prop.c (ipa_method_modify_stmt): Same.
2497         * print-tree.c (print_node): Handle gimple tuples.
2498         Add case for tcc_gimple_stmt.
2499         * tree-ssa-copy.c (stmt_may_generate_copy): Adjust for
2500         GIMPLE_MODIFY_STMT.
2501         (copy_prop_visit_assignment): Same.
2502         (copy_prop_visit_stmt): Same.
2503         (init_copy_prop): Same.
2504         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): Same.
2505         (forward_propagate_into_cond_1): Same.
2506         (find_equivalent_equality_comparison): Same.
2507         (tidy_after_forward_propagate_addr): Same.
2508         (forward_propagate_addr_expr_1): Same.
2509         (simplify_not_neg_expr): Same.
2510         (simplify_switch_expr): Same.
2511         * tree-ssa-dce.c (find_pdom): Same.
2512         (mark_stmt_if_obviously_necessary): Same.
2513         (NECESSARY): Adjust for new `common' layout.
2514         * tree-flow.h: Same.
2515         * tree-vect-patterns.c (widened_name_p): Adjust for
2516         GIMPLE_MODIFY_STMT.
2517         (vect_recog_dot_prod_pattern): Same.
2518         (vect_recog_widen_sum_pattern): Same.
2519         (vect_pattern_recog_1): Same.
2520         * tree-nested.c (init_tmp_var): Same.
2521         (save_tmp_var): Same.
2522         (walk_stmts): Same.
2523         (convert_call_expr): Same.
2524         (finalize_nesting_tree_1): Same.
2525         * tree-ssa.c (verify_ssa): Same.
2526         (delete_tree_ssa): Same.
2527         * lambda-code.c (lbv_to_gcc_expression): Same.
2528         (lle_to_gcc_expression): Same.
2529         (lambda_loopnest_to_gcc_loopnest): Same.
2530         (can_put_in_inner_loop): Same.
2531         (can_convert_to_perfect_nest): Same.
2532         (perfect_nestify): Same.
2533         * tree-ssa-loop-prefetch.c (gather_memory_references): Same.
2534         * tree-inline.c (copy_body_r): Same.
2535         (setup_one_parameter): Same.
2536         (initialize_inlined_parameters): Same.
2537         (estimate_num_insns_1): Same.
2538         (expand_call_inline): Same.
2539         (gimple_expand_calls_inline): Same.
2540         (copy_tree_r): Same.
2541         * tree-optimize.c (execute_free_cfg_annotations): Same.
2542         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Same.
2543         (vect_align_data_ref): Same.
2544         (vect_create_data_ref_ptr): Same.
2545         (vect_init_vector): Same.
2546         (vect_create_epilog_for_reduction): Same.
2547         (vectorizable_reduction): Same.
2548         (vectorizable_assignment): Same.
2549         (vectorizable_operation): Same.
2550         (vectorizable_store): Same.
2551         (vectorizable_load): Same.
2552         (vectorizable_live_operation): Same.
2553         (vectorizable_condition): Same.
2554         (vect_generate_tmps_on_preheader): Same.
2555         (vect_create_cond_for_align_checks): Same.
2556         * tree-object-size.c (collect_object_sizes_for): Same.
2557         (check_for_plus_in_loops_1): Same.
2558         (check_for_plus_in_loops): Same.
2559         * tree-outof-ssa.c (insert_copy_on_edge): Same.
2560         (replace_use_variable): Same.
2561         (check_replaceable): Same.
2562         (rewrite_trees): Same.
2563         (identical_copies_p): Same.
2564         (insert_backedge_copies): Same.
2565         * tree-profile.c (tree_gen_edge_profiler): Same.
2566         * tree-vect-generic.c (expand_vector_operations_1): Same.
2567         * tree-ssa-structalias.c (update_alias_info): Same.
2568         (find_func_aliases): Same.
2569         * tree-cfg.c (factor_computed_gotos): Same.
2570         (make_edges): Same.
2571         (make_goto_expr_edges): Same.
2572         (tree_merge_blocks): Same.
2573         (remove_useless_stmts_cond): Same.
2574         (remove_useless_stmts_1): Same.
2575         (tree_find_edge_insert_loc): Same.
2576         (verify_expr): Same.
2577         (gimplify_val): Same.
2578         (verify_gimple_tuples_1): New.
2579         (verify_gimple_tuples): New.
2580         (verify_stmts): Call verify_gimple_tuples.
2581         * tree-ssa-reassoc.c (get_rank): Adjust for GIMPLE_MODIFY_STMT.
2582         (get_unary_op): Same.
2583         (linearize_expr): Same.
2584         (get_single_immediate_use): Same.
2585         (negate_value): Same.
2586         (should_break_up_subtract): Same.
2587         (break_up_subtract): Same.
2588         (repropagate_negates): Same.
2589         (break_up_subtract_bb): Same.
2590         (reassociate_bb): Same.
2591         * config/i386/i386.c (ix86_va_start): Same.
2592         (ix86_gimplify_va_arg): Same.
2593         * stmt.c (expand_expr_stmt): Same.
2594         (warn_if_unused_value): Same.
2595         (expand_return): Same.
2596         * tree-ssanames.c (make_ssa_name): Same.
2597         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Same.
2598         * tree-ssa-operands.c (finalize_ssa_defs): Same.
2599         (add_virtual_operand): Same.
2600         (get_expr_operands): Same.
2601         (parse_ssa_operands): Same.
2602         (get_modify_stmt_operands): Rename from get_modify_expr_operands.
2603
2604 2006-12-05  H.J. Lu  <hongjiu.lu@intel.com>
2605
2606         * config.host: Remove extra blank line.
2607
2608 2006-12-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2609
2610         * config.host (i[34567]86-*-*, x86-64-*-*): Use driver-i386.o only if
2611         target is also an x86 variant.
2612
2613 2006-12-05  Richard Guenther  <rguenther@suse.de>
2614
2615         * config/i386/i386.c (ix86_builtin_vectorized_function): Declare.
2616         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define.
2617         (ix86_builtin_vectorized_function): New function to vectorize
2618         sqrt.
2619
2620 2006-12-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2621
2622         * config/bfin/bfin.c (output_file_start): Fix comment which referred to
2623         ia64_override_options.
2624
2625 2006-12-04  Jan Hubicka  <jh@suse.cz>
2626
2627         * cfgexpand.c (expand_one_var): Guard expand_one_stack_var by
2628         really_expand.
2629
2630 2006-12-04  Bernd Schmidt  <bernd.schmidt@analog.com>
2631
2632         * rtlanal.c (note_uses): Deal with SEQUENCEs.
2633         * config/bfin/bfin.c: Include "timevar.h".
2634         (bfin_flag_schedule_insns2, splitting_for_sched,
2635         bfin_flag_var_tracking): New variables.
2636         (print_operand): Handle '%!'.
2637         (override_options): Disable normal sched2 pass, instead set
2638         bfin_flag_schedule_insns2 for reorg to handle it.
2639         (output_file_start): Likewise for var-tracking.
2640         (bfin_optimize_loop): Take some care not to stumble over SEQUENCEs.
2641         (gen_one_bundle, bfin_gen_bundles, type_for_anomaly, trapping_loads_p):
2642         New functions.
2643         (bfin_reorg): Do second scheduling pass here, and call
2644         bfin_gen_bundles.  Use type_for_anomaly and trapping_loads_p instead
2645         of examining insns directly.  If bfin_flag_var_tracking, call
2646         var-tracking pass when done with everything else.
2647         * config/bfin/bfin.h (PRINT_OPERAND_PUNCT_VALID_P): '!' is valid.
2648         * config/bfin/bfin.md (UNSPEC_32BIT): New constant.
2649         (movsi_insn32): New pattern, with two new splits to create it
2650         before the final scheduling pass.
2651         (neghi2): Not a dsp32 insn, rather alu0.
2652         (movbi, pushsi_insn, popsi_insn, movsi_insn, movv2hi_insn, movhi_insn,
2653         movqi_insn, movsf_insn, movsi_insv, extendhisi2, zero_extendhisi2,
2654         extendqihi2, extendqisi2, zero_extendqihi2, zero_extendqisi2,
2655         mulhisi3, umulhisi3, ssadsi3, sssubsi3, smaxsi3, sminsi3, abssi2,
2656         ssnegsi2, signbitssi2, smaxhi3, sminhi3, abshi2, ssneghi2, signbitshi2,
2657         movhi_low2high, movhi_high2high, movhi_low2low, movhi_high2low,
2658         movhiv2hi_low, movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2659         ssaddhi3, sssubhi3, addv2hi3, ssaddv2hi3, subv2hi3, sssubv2hi3,
2660         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3, sublohiv2hi3,
2661         subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3, addlohiv2hi3,
2662         addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3, sminv2hi3, smaxv2hi3,
2663         flag_mulhi, flag_mulhisi, flag_mulhisi_parts, flag_machi,
2664         flag_machi_acconly, flag_macinithi, flag_macinit1hi, mulv2hi3,
2665         flag_mulv2hi, flag_mulv2hi_parts, flag_macv2hi_parts,
2666         flag_macv2hi_parts_acconly, flag_macinitv2hi_parts,
2667         flag_macinit1v2hi_parts, mulhisi_ll, mulhisi_lh, mulhisi_hl,
2668         mulhisi_hh, ssnegv2hi2, absv2hi2, ssashiftv2hi3, ssashifthi3,
2669         lshiftv2hi3, lshifthi3): Use '%!' to terminate all dsp32/load/store
2670         variants instead of ';'.
2671         (ror_one, rol_one): Likewise.  Make them dsp32 insns.
2672         (ashlsi3_insn, ashrsi3, lshrsi3): Add dsp32 variants.
2673         (align8, align16, align24): Now named patterns; also using '%!'.
2674         (mnop): New insn.
2675
2676 2006-12-05  Kazu Hirata  <kazu@codesourcery.com>
2677
2678         * config/i386/darwin.h, config/spu/spu.c, tree-ssa-live.c,
2679         tree-vect-generic.c, tree-vect-transform.c: Fix comment typos.
2680
2681 2006-12-04  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2682
2683         * config/spu/spu-protos.c (spu_split_address): Add.
2684         * config/spu/spu.c (spu_split_address): Add.
2685         (print_operand): Handle HIGH.
2686         (spu_legitimate_address):  Don't test for aligned CONST.
2687         (spu_expand_mov):  Don't split addresses here.
2688         * config/spu/constraints.md (A): Don't test legitimate_const.
2689         * config/spu/spu.md: Add split of movsi patterns for PIC mode.
2690         (ceq_di): Use correct predicates.
2691
2692 2006-12-04  Eric Christopher  <echristo@apple.com>
2693
2694         * config/darwin.h: Update copyright notice.
2695         * config/i386/darwin.h: Ditto.
2696
2697 2006-12-04  Jan Hubicka  <jh@suse.cz>
2698
2699         * builtins.c (fold_builtin_memory_op): Check that expr_size match.
2700         * explow.c (expr_size, int_expr_size): Assert that size is non_NULL.
2701
2702 2006-12-04  Daniel Berlin  <dberlin@dberlin.org>
2703
2704         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Call
2705         set_used_smts.
2706         * tree-ssa-structalias.c (set_used_smts): Export.
2707         (find_what_p_points_to): Don't call set_used_smts here.
2708         * tree-ssa-structalias.h (set_used_smts): Add prototype.
2709
2710 2006-12-04  Daniel Berlin  <dberlin@dberlin.org>
2711
2712         * tree-ssa-alias.c (compute_may_aliases):
2713         Compute flow sensitive before flow insensitive.
2714         (compute_flow_sensitive_aliasing): Don't try to add
2715         a symbol memory tag to itself.
2716
2717         * alias.h (alias_set_subset_of): New prototype.
2718
2719         * alias.c (alias_set_subset_of): New function.
2720
2721         * tree-ssa-structalias.c: Update comments.
2722         (struct variable_info): Add finished_solution.
2723         (new_varinfo): Set finished solution to NULL.
2724         (var_escaped_vars): Remove.
2725         (escaped_vars_tree): Remove.
2726         (escaped_vars_id): Remove.
2727         (nonlocal_vars_id): Remove.
2728         (constraint_expr_type): Add INCLUDES.
2729         (graph_size): Removed.
2730         (dump_constraint): Support INCLUDES.
2731         (build_constraint_graph): Ditto.
2732         (collapse_nodes): Add merge_solutions argument.
2733         Don't merge attributes.
2734         (process_unification_queue): Just use collapse_nodes.
2735         (perform_var_substitution): Update call to collapse_nodes.
2736         (get_constraint_exp_from_ssa_var): Use INCLUDES.
2737         (process_constraint): Fix non-field sensitive handling
2738         Handle includes.
2739         (get_constraint_for): Use INCLUDES.
2740         (make_constraint_from_anything): Renamed from
2741         make_constraint_from_escaped.
2742         (make_constraint_to_escaped): Removed.
2743         (find_global_initializers): Removed.
2744         (create_variable_info_for): Do not make constraints to escaped
2745         vars anymore.
2746         (dump_solution_for_var): Don't print out the equivalent points-to
2747         sets, just use the name of the variable it shares it with.
2748         (intra_create_variable_infos): Use INCLUDES.
2749         Change nonlocal variable sets to anything sets.
2750         (init_base_vars): Remove escaped_vars and nonlocal_var
2751         initialization.
2752         (find_escape_constraints): Removed.
2753         (delete_points_to_sets): Remove dead code.
2754         (used_smt_calculated): New variable.
2755         (set_used_smts): New function.
2756         (merge_smts_into): New function.
2757         (find_what_p_points_to): Modify to use SMTs.
2758         (create_nonlocal_var): Remove.
2759
2760         * tree-ssa-operands.c (access_can_touch_variable): Remove
2761         reference to nonlocal_all.
2762
2763         * tree-ssa.c (verify_name_tags): Remove.
2764
2765 2006-12-04  Carlos O'Donell  <carlos@codesourcery.com>
2766
2767         * config/arm/unwind-arm.c: Adjust __cxa_type_match declaration.
2768         (__gnu_unwind_pr_common): Pass is_reference to __cxa_type_match.
2769
2770 2006-12-04  Andrew MacLeod  <amacleod@redhat.com>
2771
2772         * tree-outof-ssa.c (coalesce_ssa_name): Use calculate_live_ranges.
2773         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info): Update.
2774         (add_livein_if_notdef): Delete.
2775         (loe_visit_block): New.  Propogate live on entry info for a block into
2776         each predecessor.  If it changes, make sure it is visited again.
2777         (live_worklist): Visit every block and update the live on entry info
2778         for preds.  Iterate over any that changed.
2779         (set_var_live_on_entry): Populate the live on entry blocks with bits
2780         based on the immediate uses of a var.
2781         (calculate_live_on_entry): Remove.
2782         (calculate_live_on_exit): Calculate live on exit based on the newly
2783         oriented live on entry bits.
2784         (calculate_live_ranges): Build live on entry and exit vectors.
2785         (dump_live_info): Use new orientation of live on entry bitmaps.
2786         (verify_live_on_entry): New.  Split out verification code from old
2787         calculate_live_on_entry routine.
2788         * tree-ssa-live.h (struct tree_live_info_d): Add Working stack.
2789         (live_entry_blocks): Rename to live_on_entry and return bitmap for a
2790         basic_block instead of for a partition.
2791         (live_merge_and_clear): Add asserts.
2792         (make_live_on_entry): Set partition bit in basic block vector.
2793
2794 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2795
2796         PR libgomp/29947
2797         * omp-low.c (expand_omp_for_static_nochunk,
2798         expand_omp_for_static_chunk): Do all arithmetics in signed rather than
2799         unsigned type.
2800
2801         PR middle-end/29965
2802         * omp-low.c (determine_parallel_type): Don't try to optimize combined
2803         parallels if region->exit or region->inner->exit is NULL.
2804         (expand_omp_parallel): Handle NULL region->exit even if cfg is already
2805         built.
2806         (expand_omp_for_generic): Handle NULL region->cond and region->exit.
2807         (expand_omp_for): Use expand_omp_for_generic if either region->cond
2808         or region->exit is NULL.
2809         (expand_omp_sections): Handle NULL region->cond or region->exit.
2810         (expand_omp_synch):
2811
2812 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2813
2814         * config/sparc/sp64-elf.h (JUMP_TABLES_IN_TEXT_SECTION): Delete.
2815         * config/sparc/sysv4.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2816
2817 2006-12-04  Eric Botcazou  <ebotcazou@adacore.com>
2818
2819         * tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and
2820         TYPE_MAX_VALUE for scalar types here but...
2821         (walk_tree): ...there instead.  Return NULL_TREE if the TYPE_DECL
2822         is attached an error mark, and the return value of the callback
2823         if it is not NULL_TREE.
2824
2825 2006-12-04  Ben Elliston  <bje@au.ibm.com>
2826
2827         * config/spu/spu.md (_mulv4si3): Remove unused local variables.
2828
2829 2006-12-03  Eric Christopher  <echristo@apple.com>
2830
2831         PR target/24598
2832         * config/t-slibgcc-darwin: Pass -install_name.
2833         * config/darwin.h (LINK_COMMAND_SPEC): Remove use of
2834         libtool. Only pass through options that the linker recognizes.
2835         (LINK_SPEC): Update comment. Translate options.
2836         (STARTFILE_SPEC): Add dylib1.o for shared libraries.
2837         * config/darwin9.h (LINK_COMMAND_SPEC): Ditto above.
2838
2839 2006-12-03  Dorit Nuzman  <dorit@il.ibm.com>
2840
2841         * config/spu/spu.md (smaxv4sf3, sminv4sf3): New.
2842
2843 2006-12-03  Uros Bizjak  <ubizjak@gmail.com>
2844
2845         PR target/30041
2846         * config/i386/sse.md ("*sse3_movddup"): Use operands[0] and
2847         operands[1] in insn constraint.  Correct type attribute to sselog1.
2848
2849 2006-12-02  H.J. Lu  <hongjiu.lu@intel.com>
2850
2851         PR target/30040
2852         * config/i386/driver-i386.c: Include "coretypes.h" and "tm.h".
2853         (bit_SSSE3): New.
2854         (host_detect_local_cpu): Check -mtune= vs. -march=. Rewrite
2855         processor detection.
2856
2857         * config/i386/i386.h (CC1_CPU_SPEC): Add -mtune=native for
2858         -march=native if there is no -mtune=*.
2859
2860         * config/i386/x-i386 (driver-i386.o): Also depend on $(TM_H)
2861         coretypes.h.
2862
2863 2006-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2864
2865         * doc/install.texi: Update recommended MPFR version.  Remove
2866         obsolete reference to cumulative patch.
2867
2868 2006-12-02  Lee Millward  <lee.millward@codesourcery.com>
2869
2870         PR c/27953
2871         * c-decl.c (store_parm_decls_oldstyle): Robustify.
2872
2873 2006-11-30  Jan Hubicka  <jh@suse.cz>
2874             Uros Bizjak  <ubizjak@gmail.com>
2875
2876         * config/i386/i386.c (pentium4_cost, nocona_cost): Update
2877         32bit memcpy/memset decriptors.
2878         (decide_alg): With -minline-all-stringops and sizes that are best
2879         to be copied via libcall still work hard enough to pick non-libcall
2880         strategy.
2881
2882 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
2883
2884         * doc/extend.texi, doc/invoke.texi, doc/md.texi: Fix typos.
2885
2886         * builtins.c, cfgloop.h, cgraph.h, config/arm/arm.c,
2887         config/i386/i386.c, config/i386/i386.h, config/mips/mips.h,
2888         config/rs6000/cell.md, config/rs6000/rs6000.c, config/sh/sh.c,
2889         config/sh/sh4-300.md, config/spu/spu-builtins.def,
2890         config/spu/spu-c.c, config/spu/spu-modes.def,
2891         config/spu/spu.c, config/spu/spu.md,
2892         config/spu/spu_internals.h, config/spu/vmx2spu.h,
2893         fold-const.c, fwprop.c, predict.c, tree-data-ref.h,
2894         tree-flow.h, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2895         tree-ssa-pre.c, tree-vect-analyze.c, tree-vect-transform.c,
2896         tree-vectorizer.c, tree-vrp.c: Fix comment typos.  Follow
2897         spelling conventions.
2898
2899         * config/i386/i386.c: Fix a comment typo.
2900
2901 2006-12-01  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2902
2903         * config/spu/spu.c (spu_immediate): Remove trailing comma.
2904         (reloc_diagnostic): Call warning when -mwarn-reloc is specified.
2905         * config/spu/spu.md: (zero_extendhisi2): Expand instead of split for
2906         better optimization.
2907         (floatv4siv4sf2): New.
2908         (fix_truncv4sfv4si2): New.
2909         (floatunsv4siv4sf2): New.
2910         (fixuns_truncv4sfv4si2): New.
2911         (addv16qi3): New.
2912         (subv16qi3): New.
2913         (negv16qi2): New.
2914         (mulv8hi3): New.
2915         (mulsi3): Remove.
2916         (mul<mode>3): New.
2917         (_mulv4si3): New.
2918         (cmp<mode>): Don't accept constant arguments for DI, TI and SF.
2919         * config/spu/spu_internals.h: Handle overloaded intrinsics in C++ with
2920         spu_resolve_overloaded_builtin instead of static inline functions.
2921
2922 2006-12-01  Eric Botcazou  <ebotcazou@adacore.com>
2923
2924         * fold-const.c (fold_binary) <LT_EXPR>: Use the precision of the
2925         type instead of the size of its mode to compute the highest and
2926         lowest possible values.  Still check the size of the mode before
2927         flipping the signedness of the comparison.
2928
2929 2006-12-01  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2930
2931         * config/spu/predicates.md (spu_mov_operand): Add.
2932         * config/spu/spu.c (spu_expand_extv): Remove unused code.
2933         (print_operand_address, print_operand): Handle addresses containing AND.
2934         (spu_split_load, spu_split_store): Use updated movti pattern.
2935         * config/spu/spu.md: (_mov<mode>, _movdi, _movti): Handle loads and
2936         stores in mov patterns for correct operation of reload.
2937         (lq, lq_<mode>, stq, stq_<mode>): Remove.
2938
2939 2006-12-01  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2940
2941         PR c++/30021
2942         * c-common.c (check_main_parameter_types): Check for error_mark_node.
2943
2944 2006-12-01  Andrew MacLeod  <amacleod@redhat.com>
2945
2946         * common.opt (ftree-combine-temps): Remove.
2947         * tree-outof-ssa.c (SSANORM_COMBINE_TEMPS): Remove.
2948         (coalesce_ssa_name): Don't check for combine-temps.
2949         (coalesce_vars): Remove.
2950         (check_replaceable): Use num_imm_uses.
2951         (remove_ssa_form, insert_backedge_copies, rewrite_out_of_ssa): Don't
2952         check for combine-temps.
2953         (rewrite_out_of_ssa): Never create a ref_count in the var_map.
2954         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Change parms
2955         to register_ssa_partition calls.
2956         * tree-ssa-live.c (register_ssa_partition): Remove prototype.
2957         (init_var_map, delete_var_map): remove refernces to ref_count.
2958         (create_ssa_var_map): Never calculate a ref count.
2959         (type_var_init): Remove.
2960         * tree-ssa-live.h (typedef struct _var_map): Remove ref_count.
2961         (SSA_VAR_MAP_REF_COUNT): Delete.
2962         (create_ssa_var_map): Change Prototype to have no parameters.
2963         (version_ref_count): Delete.
2964         (register_ssa_partition): Remove 'is_use' paramater and don't set the
2965         ref_count vector.
2966         (type_var_num, type_var, type_var_first_partition,
2967         type_var_next_partition, type_var_dump, type_var_delete,
2968         type_var_remove_partition, type_var_find, type_var_compact,
2969         type_var_decompact): Remove.
2970
2971 2006-12-01  Bernd Schmidt  <bernd.schmidt@analog.com>
2972
2973         * config/bfin/bfin.md (pushsi_insn, popsi_insn): Set correct addrtype
2974         attribute.
2975
2976 2006-12-01  Richard Guenther  <rguenther@suse.de>
2977
2978         PR c++/29433
2979         * dwarf2out.c (struct pubname_struct): Make name const.
2980         (add_pubtype): Do not xstrdup identifiers.
2981
2982 2006-12-01  Bernd Schmidt  <bernd.schmidt@analog.com>
2983
2984         * config/bfin/bfin.c (bfin_valid_add): Fix the logic that ensures
2985         multiword accesses are in range.
2986
2987 2006-12-01  Zdenek Dvorak <dvorakz@suse.cz>
2988
2989         PR tree-optimization/29921
2990         * tree-ssa-ccp.c (canonicalize_float_value): New function.
2991         (set_lattice_value): Use canonicalize_float_value.
2992
2993 2006-11-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2994
2995         * config/spu/spu.c (spu_builtin_range): Move from spu-c.c
2996         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Delete.
2997         (spu_cpu_cpp_builtins): Remove.
2998         (spu_override_options): Don't set warn_main.
2999         (spu_force_reg): Move from spu-c.c.
3000         (spu_check_builtin_parm): Likewise.
3001         (expand_builtin_args): Likewise.
3002         (spu_expand_builtin_1): Likewise.
3003         (spu_expand_builtin): Likewise.
3004         * config/spu/spu.h (REGISTER_TARGET_PRAGMAS): Define, set
3005         warn_main and targetm.resolve_overloaded_builtin.
3006         * config/spu/spu-c.c (spu_builtin_range): Remove.
3007         (spu_check_builtin_parm): Remove.
3008         (expand_builtin_args): Remove.
3009         (spu_expand_builtin_1): Remove.
3010         (spu_expand_builtin): Remove.
3011         (spu_cpu_cpp_builtins): Moved from spu.c
3012         (spu_force_reg): Remove.
3013
3014 2006-12-01  Joseph Myers  <joseph@codesourcery.com>
3015             David Edelsohn  <edelsohn@gnu.org>
3016
3017         PR target/24036
3018         * doc/tm.texi (HARD_REGNO_NREGS_HAS_PADDING,
3019         HARD_REGNO_NREGS_WITH_PADDING): Document new target macros.
3020         * defaults.h (HARD_REGNO_NREGS_HAS_PADDING,
3021         HARD_REGNO_NREGS_WITH_PADDING): Define.
3022         * config/i386/i386.h (HARD_REGNO_NREGS_HAS_PADDING,
3023         HARD_REGNO_NREGS_WITH_PADDING): Define.
3024         * rtlanal.c (subreg_regno_offset, subreg_offset_representable_p):
3025         Use new macros to detect modes with holes; do not look at integer
3026         units.
3027         (subreg_offset_representable_p): Check for and disallow cases
3028         where the modes use different numbers of bits from registers.
3029         * config/rs6000/rs6000.c (rs6000_emit_move): Handle TFmode
3030         constant for soft-float.
3031         (rs6000_hard_regno_nregs): Use UNITS_PER_FP_WORD for e500 GPRs
3032         containing doubles.
3033         (rs6000_split_multireg_move): Use DFmode reg_mode for TFmode moves
3034         in E500 double case.
3035         * config/rs6000/rs6000.md (movtf): Allow soft-float.
3036         (movtf_softfloat): New.
3037
3038 2006-11-30  Richard Sandiford  <richard@codesourcery.com>
3039
3040         * simplify-rtx.c (simplify_rtx): Use simplify_subreg rather than
3041         simplify_gen_subreg.
3042
3043 2006-11-30  Andrew Macleod  <amacleod@redhat.com>
3044
3045         * tree-ssa-live.c (create_coalesce_list): Create a hash table.
3046         (COALESCE_HASH_FN): New.  Define hash function.
3047         (partition_pair_map_hash): New.  Hash value for a partition pair.
3048         (partition_pair_map_eq): New.  Equality for hash pairs.
3049         (create_coalesce_list): Create hash table.
3050         (delete_coalesce_list): Free hash table.
3051         (find_partition_pair): Find/create pairs in hash table.
3052         (compare_pairs):  Sort pairs in ascending order now.
3053         (num_coalesce_pairs): New.  Number of pairs in hash table.
3054         (struct partition_pair_iterator): Iterator struct for pair table.
3055         (first_partition_pair): Iterator function for first pair.
3056         (end_partition_pair_p): Iterator function for end of iteration.
3057         (next_partition_pair): Iterator function for next pair.
3058         (FOR_EACH_PARTITION_PAIR): Macro for iterating over pairs.
3059         (sort_coalesce_list): Sort pairs from hash table into an array.
3060         (pop_best_coalesce): Take pairs from the array.
3061         (dump_coalesce_list): Update to use hash table or sorted array.
3062         * tree-ssa-live.h (struct partition_pair_d): Remove next field.
3063         (struct coalesce_list_d): Add hash table related fields.
3064
3065 2006-11-30  Jan Hubicka  <jh@suse.cz>
3066
3067         PR middle-end/30028
3068         * builtins.c (fold_builtin_memory_op): Fix typo in the check for
3069         memmove/bcopy->memcpy conversion.
3070
3071 2006-11-30  Carlos O'Donell  <carlos@codesourcery.com>
3072
3073         * doc/tm.texi (MAX_OFILE_ALIGNMENT): Document default.
3074         * config/elfos.h [!MAX_OFILE_ALIGNMENT] (MAX_OFILE_ALIGNMENT):
3075         Default is the largest alignment supported for 32-bit ELF and
3076         representable on a 32-bit host.
3077
3078 2006-11-30  Janis Johnson  <janis187@us.ibm.com>
3079
3080         * config/dfp-bit.c (DFP_TO_INT): Use wider precision.
3081
3082 2006-11-30  Jan Hubicka  <jh@suse.cz>
3083
3084         * tree-ssa-operands.h (struct ssa_operands): New.
3085         * tree-flow-inline.h (gimple_ssa_operands): New function.
3086         * tree-flow.h: (struct gimple_df): Add ssa_operands.
3087         * Makefile.in: Remove gt-tree-ssa-operands.h
3088         * tree-ssa-operands.c: Do not include gt-tree-ssa-operands.h
3089         (free_defs, free_uses, free_vuses, free_maydefs, free_mustdefs,
3090         operand_memory, operand_memory_index, ops_active): Remove statics.
3091         (ALLOC_OPTYPE): Update.
3092         (operand_build_sort_virtual): Update.
3093         (ssa_operands_active): Update.
3094         (init_ssa_operands): Update.
3095         (fini_ssa_operands): Update.
3096         (ssa_operand_alloc): Update.
3097         (INITIALIZE_USE): Update.
3098         (finalize_ssa_use_ops): Update.
3099         (finalize_ssa_v_may_def_ops): Update.
3100         (finalize_ssa_vuse_ops): Update.
3101         (finalize_ssa_v_must_def_ops): Update.
3102
3103 2006-11-30  Richard Guenther  <rguenther@suse.de>
3104
3105         * tree-vectorizer.h (vectorizable_function): Export.
3106         * tree-vect-transform.c (vectorizable_function): Likewise.
3107         * tree-vect-patterns.c (vect_recog_pow_pattern): Set
3108         type_in to scalar type in recognition of squaring.
3109         Make sure the target can vectorize sqrt in recognition
3110         of sqrt, set type_in to vector type in this case.
3111
3112 2006-11-30  Uros Bizjak  <ubizjak@gmail.com>
3113
3114         * config/i386/i386.md (R10_REG): New constant.
3115         * config/i386/i386.c (pro_epilogue_adjust_stack): Use R11_REG.
3116         (ix86_emit_restore_regs_using_mov): Ditto.
3117         (ix86_expand_call): Ditto.
3118         (x86_output_mi_thunk): Ditto. Also use R10_REG.
3119
3120 2006-11-30  Steven Bosscher  <steven@gcc.gnu.org>
3121
3122         * cselib.c (cselib_init): Use special MEM rtx form for callmem.
3123         * alias.c (canon_true_dependence): Update comment.
3124
3125 2006-11-30  Steven Bosscher  <steven@gcc.gnu.org>
3126
3127         * cgraphunit.c (cgraph_finalize_compilation_unit): Add a newline
3128         at the end of a diagnostics message.
3129
3130         * alloc-pool.c (pool_free): Postpone clearing the pool entry
3131         until after asserting that it was allocated in the right pool.
3132
3133         * cfgrtl.c (print_rtl_with_bb): Print predecessor and
3134         successor edge information as well.  Make output of live regs
3135         on exit consistent with live regs on entry.
3136
3137 2006-11-30  Uros Bizjak  <ubizjak@gmail.com>
3138
3139         PR target/29852
3140         * config/i386/i386.md (*truncxfsf2_mixed, *truncxfdf2_mixed): Enable
3141         insn patterns for TARGET_80387.
3142         (*truncxfsf2_i387, *truncxfdf2_i387): Remove.
3143         (*truncxfsf2_i387_1): Rename to *truncxfsf2_i387.
3144         (*truncxfdf2_i387_1): Rename to *truncxfdf2_i387.
3145         (fmod<mode>3, remainder<mode>3): Enable expaders for SSE math.
3146         Generate truncxf<mode>2 insn patterns for strict SSE math.
3147
3148 2006-11-30  Uros Bizjak  <ubizjak@gmail.com>
3149
3150         * config/i386/i386.md (movsf_1): Enable pattern for standard
3151         80387 constants before reload when optimizing for size.
3152         (*movdf_nointeger, *movdf_integer): Ditto.
3153         (*movxf_nointeger, *movxf_integer): Disable patterns for standard
3154         80387 constants before reload when not optimizing for size.
3155
3156         (*fop_xf_4_i387, *fop_xf_5_i387, *fop_xf_6_i387): Avoid float
3157         extension of XFmode input operands.
3158
3159 2006-11-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3160
3161         * config/spu/crt0.c (__dso_handle): Define.
3162
3163 2006-11-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3164
3165         * emit-rtl.c (verify_rtl_sharing): Handle SEQUENCE specially
3166         when clearing the used flags.
3167
3168 2006-11-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3169
3170         * config/spu/spu.md (extend_compare): Fix whitespace formatting.
3171
3172 2006-11-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3173
3174         PR target/29945
3175         * config/spu/spu.md  (extend_compare<mode>): New pattern.
3176         (extend_compare): Change to expand and use the above pattern.
3177
3178 2006-11-29  Janis Johnson  <janis187@us.ibm.com>
3179
3180         * config/dfp-bit.c (DFP_TO_INT): Fix rounding mode.
3181
3182         * config/dfp-bit.h (CONTEXT_ROUND): Delete.
3183         (DFP_INIT_ROUNDMODE): Define.
3184         * config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
3185         * mklibgcc.in: Fix dependencies for dfp-bit.c.
3186
3187 2006-11-29  Tehila Meyzels  <tehila@il.ibm.com>
3188
3189         * haifa-sched.c: Remove define LINE_NOTE(INSN).  Remove line_note_head.
3190         Update documentation.
3191         (associate_line_notes_with_blocks): Kill.
3192         (extend_bb): Remove basic block argument, put void instead.
3193         Remove line number handling for each bb.
3194         (save_line_notes): Kill.
3195         (restore_line_notes): Kill.
3196         (sched_init): Remove line_note_head initialization.
3197         Change extend_bb call.
3198         (sched_finish): Remove free of line_note_head.
3199         (add_block): Change extend_bb call.
3200         * sched-ebb.c (schedule_ebb): Remove save_line_notes,
3201         rm_line_notes and restore_line_notes calls.
3202         (schedule_ebbs): Remove rm_redundant_line_notes.
3203         * sched-int.h (struct haifa_insn_data): Remove line_note.
3204         (save_line_notes): Remove declaration.
3205         (restore_line_notes): Remove declaration.
3206         * modulo-sched.c (loop_canon_p): Update debug info printing
3207         by using insn locators instead of line note.
3208         (sms_schedule): Update debug info printing, by using insn
3209         locators instead of line note.
3210         * sched-rgn.c (debug_dependencies): Remove handling of case
3211         n>0 (line number), since it's a dead code.
3212         (schedule_region): Remove save_line_notes and
3213         restore_line_notes calls.
3214
3215 2006-11-29  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * config/rs6000/predicates.md (gpc_reg_operand): Check
3218         invalid_e500_subreg.
3219         * config/rs6000/rs6000.c (invalid_e500_subreg): Don't allow any
3220         SImode subregs of SPE vectors.
3221         * config/rs6000/rs6000.md (insv): Fail for invalid E500 subregs.
3222         * jump.c (true_regnum): Require subregs to satisfy
3223         subreg_offset_representable_p.
3224
3225 2006-11-29  Daniel Berlin  <dberlin@dberlin.org>
3226             Steven Bosscher <stevenb.gcc@gmail.com>
3227
3228         * Makefile.in (tree-ssanames.o): Remove gt-tree-ssanames.h,
3229         since it no longer exists.
3230
3231 2006-11-29  Duncan Sands  <baldrick@free.fr>
3232
3233         PR tree-optimization/23744
3234         * tree-vrp.c (vrp_meet): do not require ranges to intersect.
3235
3236 2006-11-29  Duncan Sands  <baldrick@free.fr>
3237
3238         PR tree-optimization/23744
3239         * testsuite/gcc.dg/tree-ssa/pr23744.c: new test.
3240
3241 2006-11-29  Duncan Sands  <baldrick@free.fr>
3242
3243         PR tree-optimization/23744
3244         * testsuite/gcc.dg/tree-ssa/update-threading.c: xfail.
3245
3246 2006-11-29  Jie Zhang  <jie.zhang@analog.com>
3247
3248         * doc/tm.texi (NO_PROFILE_COUNTERS): Document more accurately.
3249
3250 2006-11-29  J"orn Rennecke  <joern.rennecke@st.com>
3251
3252         * sh.opt (minline-ic_invalidate): New option.
3253         (musermode): Adjust comment.
3254         * sh.c (sh_initialize_trampoline): Emit library call unless
3255         is set; if it is set, don't emit library call if we can use icbi
3256         instead.
3257         * sh.md (ic_invalidate_line, ic_invalidate_line_sh4a): Also use
3258         icbi for TARGET_SH4_300.
3259         * t-sh (LIB1ASMFUNCS_CACHE): Set.
3260         * doc/invoke.texi: Document -minline-ic_invalidate; Update
3261         -musermode documentation.
3262
3263 2006-11-29  Jim Tison  <jtison@us.ibm.com>
3264
3265         * gthr-tpf.h (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION,
3266         __gthread_recursive_mutex_init): Define.
3267
3268 2006-11-29  Joseph Myers  <joseph@codesourcery.com>
3269
3270         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): If
3271         STRICT_ALIGNMENT and the type is more aligned than the saved
3272         registers, copy via a temporary.
3273
3274 2006-11-28  Andrew Pinski  <pinskia@gmail.com>
3275
3276         PR tree-opt/29984
3277         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Handle MAX_EXPR
3278         and MIN_EXRP.
3279
3280 2006-11-28  Bob Wilson  <bob.wilson@acm.org>
3281
3282         * config/xtensa/lib1funcs.asm (__umulsidi3): Restore a12-a15 on exit.
3283
3284 2006-11-28  Jan Hubicka  <jh@suse.cz>
3285
3286         Privatize SSA variables into gimple_df.
3287         * tree-flow-inline.h
3288         (gimple_in_ssa_p, gimple_aliases_computed_p, gimple_addressable_vars,
3289         gimple_call_clobbered_vars, gimple_referenced_vars, gimple_global_var,
3290         gimple_nonlocal_all): New accessors.
3291         (first_referenced_var): Update.
3292         (mark_stmt_modified): Update.
3293         (is_call_clobbered): Update.
3294         (mark_call_clobbered): Update.
3295         (clear_call_clobbered): Update.
3296         (mark_non_addressable): Update.
3297         * tree-vrp.c (get_value_range): Update.
3298         * tree-into-ssa.c (in_ssa_p): Kill.
3299         (get_default_def_for): Update.
3300         (rewrite_into_ssa): Update.
3301         * tree-complex.c (init_parameter_lattice_values): Update.
3302         (update_complex_assignment): Update.
3303         (update_parameter_components): Update.
3304         (expand_complex_libcall): Update.
3305         (expand_complex_operations_1): Update.
3306         * tree-tailcall.c (arg_needs_copy_p): Update.
3307         (add_virtual_phis): Update.
3308         (tree_optimize_tail_calls_1): Update.
3309         * tree-ssa-dse.c (memory_ssa_name_same): Update.
3310         * tree-ssa-copyrename.c
3311         (copy_rename_partition_coalesce): Update.
3312         * tree-ssa-math-opts.c (execute_cse_reciprocals): Update.
3313         * tree-ssa-propagate.c (set_rhs): Update.
3314         * tree-ssa-alias.c (aliases_computed_p, call_clobbered_vars,
3315         addressable_vars, global_var):Kill.
3316         (set_initial_properties): Update.
3317         (init_alias_info): Update.
3318         (finalize_ref_all_pointers): Update.
3319         (setup_pointers_and_addressables): Update.
3320         (maybe_create_global_var): Update.
3321         (create_global_var): Update.
3322         (dump_points_to_info): Update.
3323         * function.h (struct gimple_df): Forward declare.
3324         (struct function): Add GIMPLE_DF field.
3325         * gimplify.c (force_gimple_operand): Update.
3326         * tree-dfa.c (referenced_vars, default_defs): KIll.
3327         (make_rename_temp): Update.
3328         (dump_variable): Update.
3329         (referenced_var_lookup): Update.
3330         (referenced_var_check_and_insert): Update.
3331         (default_def): Rename to ...
3332         (gimple_default_def): ... this one; accept cfun argument.
3333         (set_default_def): Update.
3334         * tree-cfgcleanup.c (modified_noreturn_calls): Kill.
3335         (cleanup_control_flow): Update.
3336         * tree-ssa-pre.c (compute_avail): Update
3337         * tree-ssa-live.c (calculate_live_on_entry): Update.
3338         * tree-ssa.c (verify_use): Update.
3339         (verify_call_clobbering): Update.
3340         (verify_call_clobbering): Update.
3341         (init_tree_ssa): Update.
3342         (delete_tree_ssa): Update.
3343         * tree-outof-ssa.c (coalesce_ssa_name): Update.
3344         (rewrite_out_of_ssa): Update.
3345         * tree-flow.h (gimple_df): New structure collecting dataflow variables.
3346         (FREE_SSANAMES, SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS): New
3347         private accessors.
3348         (in_ssa_p, modified_noreturn_calls, referenced_vars, default_defs,
3349         ssa_names, global_var, nonlocal_all, call_clobbered_vars,
3350         addressable_vars, aliases_computed_p): Kill.
3351         (default_def): Rename to...
3352         (gimple_default_def): ... this one.
3353         (defaule_def_fn): Kill.
3354         (num_referenced_vars, ssa_names, num_ssa_names): Update.
3355         * tree-ssa-structalias.c (nonlocal_all): Kill.
3356         (get_constraint_exp_from_ssa_var): Update.
3357         (create_nonlocal_var): Update.
3358         (get_constraint_for): Update.
3359         (update_alias_info): Update.
3360         (find_global_initializers): Update.
3361         (intra_create_variable_infos): Update.
3362         (intra_create_variable_infos):
3363         (find_what_p_points_to): Update.
3364         (init_alias_heapvars): Update.
3365         * tree-cfg.c (remove_bb): Update.
3366         (gimplify_val): Update.
3367         * tree-ssa-reassoc.c (get_rank): Update.
3368         (init_reassoc): Update.
3369         * tree-ssanames.c: Do not include gt-tree-ssanames.h
3370         (ssa_names, free_ssanames): Kill.
3371         (init_ssanames): Update.
3372         (make_ssa_name): Update.
3373         (release_ssa_name): Update.
3374         (release_defs): Update.
3375         (replace_ssa_name_symbol): Update.
3376         * tree-ssa-operands.c (access_can_touch_variable): Update.
3377         (add_virtual_operand): Update.
3378         (add_call_clobber_ops): Update.
3379         (add_call_read_ops): Update.
3380         (get_call_expr_operands): Update.
3381         (get_asm_expr_operands): Update.
3382
3383 2006-11-28  Jan Hubicka  <jh@suse.cz>
3384
3385         * builtins.c: Include tree-flow.h.
3386         (fold_builtin_memory_op): Be more aggressive on converting memcpy to
3387         assignment; convert memmove to memcpy for sizes greater than 1 where
3388         alignment of operands prohibit the partial overlap.
3389
3390 2006-11-28  Jan Hubicka  <jh@suse.cz>
3391
3392         * invoke.texi (large-stack-frame, large-stack-frame-growth): New params.
3393         * cgraph.c (dump_cgraph_node): Dump stack usage.
3394         * cgraph.h (cgraph_local_info): Add estimated_self_stack_size.
3395         (cgraph_global_info): Add estimated_stack_size and stack_frame_offset.
3396         * cgraphunit.c (cgraph_analyze_function): Analyze stack sizes.
3397         * ipa-inline.c (cgraph_clone_inlined_nodes): Propagate stack usage.
3398         (cgraph_check_inline_limits): Limit stack growth.
3399         * cfgexpand.c: Include tree-inline.h.
3400         (account_stack_vars): New function.
3401         (expand_one_var): New param to just account the stack; return estimated
3402         size.
3403         (expand_used_vars_for_block): Update call of expand_one_var.
3404         (account_used_vars_for_block): New function.
3405         (estimated_stack_frame_size): Likewise.
3406         (init_vars_expansion, fini_vars_expansion): Break out from..
3407         (expand_used_vars): ... here.
3408         * tree-inline.h (estimated_stack_frame_size): Declare.
3409         * params.def (PARAM_LARGE_STACK_FRAME, PARAM_STACK_FRAME_GROWTH): New.
3410
3411 2006-11-28  Richard Guenther  <rguenther@suse.de>
3412
3413         * ggc-page.c (ggc_print_statistics): Use %ul and a cast to
3414         unsigned long for printing OBJECT_SIZE.
3415
3416 2006-11-27  Steven Bosscher  <steven@gcc.gnu.org>
3417
3418         * alias.c (init_alias_analysis): Remove simplification loop
3419         after propagating pointers.
3420
3421 2006-11-27  Uros Bizjak  <ubizjak@gmail.com>
3422
3423         * config/i386/i386.c (x86_ext_80387_constants): Add m_K8, m_CORE2
3424         and m_GENERIC64.
3425
3426 2006-11-27  Bob Wilson  <bob.wilson@acm.org>
3427
3428         * config/xtensa/xtensa.h (XCHAL_HAVE_MUL32_HIGH): Provide default.
3429
3430 2006-11-27  Roger Sayle  <roger@eyesopen.com>
3431             Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3432
3433         * c-common.c (constant_fits_type_p): Delete.
3434         (unsigned_conversion_warning): Delete.
3435         (conversion_warning): Integrate Wconversion warning from
3436         unsigned_conversion_warning.
3437         (convert_and_check): Integrate Woverflow warning from
3438         unsigned_conversion_warning.  Reorganize and simplify to avoid
3439         dependence upon the middle-end setting TREE_OVERFLOW on integral
3440         conversions, by using int_fits_type_p directly.
3441
3442 2006-11-27  Tobias Burnus  <burnus@net-b.de>
3443
3444         * doc/invoke.texi: Fixed typo.
3445
3446 2006-11-27  Michael Matz  <matz@suse.de>
3447             Andreas Krebbel  <krebbel1@de.ibm.com>
3448
3449         PR target/29319
3450         * config/s390/predicates.md (larl_operand): Check addend of larl
3451         operand to be in range of -/+2GB.
3452         * config/s390/s390.c (legitimize_pic_address): Likewise.
3453         Changed type of variable even to HOST_WIDE_INT.
3454
3455 2006-11-27  Jan Hubicka  <jh@suse.cz>
3456
3457         * expr.c (emit_block_move_via_libcall): Export.
3458         (clear_storage_via_libcall): Rename to ...
3459         (set_storage_via_libcall): ... this one; handle arbitrary value to set.
3460         (clear_storage): Update to set_storage_via_libcall.
3461         * expr.h (emit_block_move_via_libcall): Declare
3462         * config/i386/i386.h (stringop_alg): New enum.
3463         (MAX_STRINGOP_ALGS): New constant.
3464         (stringop_algs): New struct.
3465         (processor_costs): Add memcpy/memset descriptors.
3466         (TARGET_REP_MOVEL_OPTIMAL): Remove.
3467         * config/i386/i386.md (movsi_insv_1_rex64): New pattern.
3468         (strmovsi, strmovdi, strsetsi, strsetdi): Update; accept all operands
3469         for memset.
3470         * config/i386/i386.opt (minline-stringops-dynamically,
3471         mstringop-strategy): New
3472         parameters.
3473         * config/i386/i386-prostos.h (ix86_expand_movmem): Update prototype.
3474         (ix86_expand-clrmem): Rename to ...
3475         (ix86_expand_setmem): ... this one; update prototype.
3476         * config/i386/i386.c (DUMMY_STRINGOP_ALGS): New constant.
3477         (size_cost, i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
3478         geode_cost, k6_cost, athlon_cost, k8_cost, pentium4_cost,
3479         nocona_cost, core2_cost, generic_cost, generic64_cost,
3480         generic32_cost): Add memcpy/memset descriptors.
3481         (x86_rep_movl_optimal): Remove.
3482         (stringop_alg): New static variable.
3483         (ix86_expand_aligntest): Handle predictions.
3484         (override_options): Add strgop_alg handling.
3485         (predict_jump): New function.
3486         (scale_counter): New function.
3487         (expand_set_or_movmem_via_loop): New function.
3488         (expand_movmem_via_rep_mov): New function.
3489         (expand_setmem_via_rep_stots): New function.
3490         (emit_strmov): New function.
3491         (expand_movmem_epilogue): New function.
3492         (expand_setmem_epilogue_via_loop): New function.
3493         (expand_setmem_epilogue): New function.
3494         (expand_movmem_prologue): New function.
3495         (expand_setmem_prologue): New function.
3496         (decide_alg): New function.
3497         (decide_alignment): New function.
3498         (ix86_exand_movmem): Rewrite.
3499         (promote_duplicated_reg): New function.
3500         (ix86_expand_clrmem): Rename to ...
3501         (ix86_expand_setmem): ... this one. Rewrite.
3502
3503         * invoke.texi (minline-stringops-dynamically): New command line option.
3504         (mstringop-strategy): Likewise.
3505
3506 2006-11-27  Jan Hubicka  <jh@suse.cz>
3507
3508         * cfgexpand.c (construct_exit_block): Don't disturb end of last BB.
3509         * rtl.texi (NOTE_INSN_FUNCTION_END): Remove.
3510         * final.c (final_scan_insn): Don't scan NOTE_INSN_FUNCTION_END.
3511         * insn-notes.def (FUNCTION_END): Remove.
3512         * jump.c (delete_related_insns): Don't worry about FUNCTION_END.
3513         (redicect_jump_2): Don't accept -1 parameter to remove FUNCTION_END
3514         note.
3515         * ifcvt.c (dead_or_predictable): Update call of redirect_jump_2.
3516         * function.c (expand_function_end): Don't emit NOTE_INSN_FUNCTION_END
3517         * cfglayout.c (duplicate_insn_chain): Don't worry about
3518         NOTE_FUNCTION_END.
3519
3520 2006-11-27  Richard Guenther  <rguenther@suse.de>
3521             Zdenek Dvorak <dvorakz@suse.cz>
3522
3523         * target.h (struct gcc_target): Add builtin_vectorized_function
3524         target hook.
3525         * target-def.h (TARGET_VECTORIZE): Likewise.
3526         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3527         Document new target hook.
3528         * targhooks.h (default_builtin_vectorized_function): Declare.
3529         * targhooks.c (default_builtin_vectorized_function): Define.
3530         * tree-vectorizer.h (stmt_vec_info_type): Add call_vec_info_type.
3531         (vectorizable_call): Declare.
3532         * tree-vect-analyze.c (vect_analyze_operations): Call
3533         vectorizable_call.
3534         * tree-vect-transform.c (vectorizable_function): New static function.
3535         (build_vectorized_function_call): Likewise.
3536         (vectorizable_call): New function.
3537         (vect_transform_stmt): Handle vectorizable calls.
3538
3539 2006-11-27  Richard Guenther  <rguenther@suse.de>
3540
3541         PR middle-end/25620
3542         * builtins.c (expand_builtin_pow): Optimize non integer valued
3543         constant exponents using sqrt or cbrt if possible.  Always fall back
3544         to expanding via optabs.
3545
3546 2006-11-27  Ira Rosen  <irar@il.ibm.com>
3547
3548         PR tree-optimization/22372
3549         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Convert
3550         the type of the base address.
3551         (vect_create_data_ref_ptr): Add an argument, type of the data-ref. Use
3552         it in the data-ref pointer creation.
3553         (vect_init_vector): Add an argument, type of the init vector. Use it in
3554         the stmt creation.
3555         (vect_get_vec_def_for_operand): Fix calls to vect_init_vector.
3556         (get_initial_def_for_reduction): Likewise.
3557         (vect_create_epilog_for_reduction): Change type of MODIFY_EXPR to
3558         void_type_node.
3559         (vectorizable_assignment, vect_permute_store_chain): Likewise.
3560         (vectorizable_store): Fix call to vect_create_data_ref_ptr. Use the
3561         correct type in stmt creation.
3562         (vect_setup_realignment): Use the correct type in stmt creation.
3563         (vect_permute_load_chain): Change type of MODIFY_EXPR to
3564         void_type_node.
3565         (vectorizable_load): Fix calls to vect_create_data_ref_ptr. Change type
3566         of MODIFY_EXPR to void_type_node.
3567         (vectorizable_condition): Change type of MODIFY_EXPR to
3568         void_type_node.
3569         (vect_update_ivs_after_vectorizer): Use the correct type in stmt
3570         creation.
3571
3572 2006-11-27  Uros Bizjak  <ubizjak@gmail.com>
3573
3574         Revert:
3575         2006-05-08  Uros Bizjak  <uros@kss-loka.si>
3576         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
3577         standard 80387 constants, raise the cost to prevent
3578         compress_float_constant() to generate load from memory.
3579
3580         * config/i386/i386.md: Add new splitter pattern to split
3581         float_extended load of constant from constant pool into
3582         pure constant load.
3583
3584 2006-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3585
3586         * doc/install.texi: Move GMP/MPFR configure options from Fortran
3587         section to general section.  Remove documentation for
3588         --with-mpfr-dir and --with-gmp-dir, add documentation for
3589         --with-mpfr-include, --with-mpfr-lib, --with-gmp-include and
3590         --with-gmp-lib.
3591
3592         * builtins.c (fold_builtin_fmin_fmax): Handle NaN arguments.
3593
3594 2006-11-26  Razya Ladklesky  <razya@il.ibm.com>
3595
3596         * testsuite/gcc.dg/ipa/ipa-6.c: New.
3597
3598 2006-11-26  Razya Ladklesky  <razya@il.ibm.com>
3599
3600         PR tree-optimization/29122
3601         * tree-inline.c (tree_function_versioning): Update DECL_ASSEMBLER_NAME
3602         for the new version.  Assign NULL to DECL_RTL of the new version.
3603
3604 2006-11-25  Uros Bizjak  <ubizjak@gmail.com>
3605
3606         * reg-stack.c (get_true_reg): Fix UNSPEC_TRUNC_NOOP handling.
3607
3608 2006-11-25  Steven Bosscher  <steven@gcc.gnu.org>
3609
3610         * cse.c (cse_altered): Remove.
3611         (record_jump_equiv): Make true/false argument a bool instead
3612         of an int.
3613         (cse_insn): Don't set cse_altered.  Use delete_insn_and_edges
3614         where appropriate.  Emit a new jump before the existing one
3615         instead of after so that delete_insn_and_edges removes the
3616         dead edges properly.  Check any_condjump_p before calling
3617         record_jump_equiv.
3618         (cse_basic_block): Check any_condjump_p before calling
3619         record_jump_equiv.
3620         (cse_main): Don't set/check cse_altered.  Remove USE_C_ALLOCA.
3621
3622 2006-11-25  Brooks Moses  <brooks.moses@codesourcery.com>
3623
3624         * c.opt: Remove -ffixed-form, -ffixed-line-length-none, and
3625         -ffixed-line-length-* options.
3626
3627 2006-11-25  Uros Bizjak  <ubizjak@gmail.com>
3628
3629         * config/i386/i386.md (fpremxf4): Rename to fpremxf4_i387.
3630         (fprem1xf4): Rename to fprem1xf4_i387.
3631
3632         (fmodsf3, fmoddf3): Macroize patterns using X87MODEF12 mode macro.
3633         Rename patterns to fmod<mode>3.  Use general_operand operand
3634         constraint for operands 1 and 2.  Use SSE_FLOAT_MODE_P to disable
3635         patterns for SSE math.
3636         (remaindersf3, remainderdf3): Ditto.
3637
3638 2006-11-25  Joseph Myers  <joseph@codesourcery.com>
3639
3640         * function.c (instantiate_virtual_regs_in_insn): Call force_reg
3641         inside start_sequence / end_sequence pair.
3642
3643 2006-11-25  Steven Bosscher  <steven@gcc.gnu.org>
3644
3645         * jump.c (mark_all_labels): Work in cfglayout mode.
3646         * cfgcleanup.c (cleanup_cfg): Do not call delete_dead_jumptables
3647         when in cfglayout mode, because there are no dead jumptables
3648         visible.
3649         * cfgrtl.c (commit_one_edge_insertion): Don't set bb->aux when
3650         in cfglayout mode.
3651         (commit_edge_insertions): Do not allow insertion of instructions
3652         with control flow insns when in cfglayout mode.
3653
3654 2006-11-25  Zdenek Dvorak <dvorakz@suse.cz>
3655
3656         * tree-vrp.c (execute_vrp): Do not pass loops structure through
3657         arguments.
3658         * loop-unswitch.c (unswitch_loops, unswitch_single_loop,
3659         unswitch_loop): Ditto.
3660         * tree-loop-linear.c (linear_transform_loops): Ditto.
3661         * tree-ssa-loop-im.c (determine_lsm, tree_ssa_lim_initialize,
3662         tree_ssa_lim): Ditto.
3663         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations,
3664         free_numbers_of_iterations_estimates): Ditto.
3665         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops,
3666         tree_unswitch_single_loop, tree_unswitch_loop): Ditto.
3667         * cfgloopmanip.c (fix_bb_placement, fix_bb_placements,
3668         remove_path, add_loop, loopify, unloop, fix_loop_placements,
3669         place_new_loop, duplicate_loop, duplicate_subloops,
3670         update_single_exit_for_duplicated_loops, copy_loops_to,
3671         duplicate_loop_to_header_edge, create_preheaders,
3672         force_single_succ_latches, loop_version, fix_loop_structure):
3673         Ditto.
3674         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge,
3675         tree_unroll_loop): Ditto.
3676         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3677         * tree-scalar-evolution.c (select_loops_exit_conditions,
3678         scev_initialize, scev_analysis): Ditto.
3679         * tree-scalar-evolution.h (scev_initialize): Ditto.
3680         * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Ditto.
3681         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
3682         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Ditto.
3683         * modulo-sched.c (sms_schedule): Ditto.
3684         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
3685         * loop-init.c (loop_optimizer_init, rtl_move_loop_invariants,
3686         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): Ditto.
3687         * ifcvt.c (if_convert): Ditto.
3688         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely,
3689         canonicalize_loop_induction_variables,
3690         canonicalize_induction_variables,
3691         tree_unroll_loops_completely, remove_empty_loops): Ditto.
3692         * tree-ssa-loop.c (tree_ssa_loop_init, tree_ssa_loop_im,
3693         tree_ssa_loop_unswitch, tree_vectorize, tree_linear_transform,
3694         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
3695         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts,
3696         tree_ssa_loop_done): Ditto.
3697         * predict.c (predict_loops, tree_estimate_probability, estimate_loops,
3698         estimate_bb_frequencies): Ditto.
3699         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
3700         slpeel_tree_peel_loop_to_edge, vectorize_loops): Ditto.
3701         * loop-unroll.c (unroll_and_peel_loops, peel_loops_completely,
3702         decide_unrolling_and_peeling, peel_loop_completely,
3703         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
3704         peel_loop_simple, unroll_loop_stupid): Ditto.
3705         * loop-doloop.c (doloop_optimize_loops): Ditto.
3706         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Ditto.
3707         * loop-invariant.c (move_loop_invariants): Ditto.
3708         * tree-ssa-dce.c (tree_ssa_dce_loop): Ditto.
3709         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays,
3710         tree_ssa_prefetch_arrays): Ditto.
3711         * lambda-code.c (gcc_loopnest_to_lambda_loopnest, perfect_nestify):
3712         Ditto.
3713         * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
3714         vect_do_peeling_for_alignment, vect_transform_loop): Ditto.
3715         * cfgloop.c (flow_loops_cfg_dump, flow_loops_dump,
3716         mark_single_exit_loops, cancel_loop, cancel_loop_tree,
3717         verify_loop_structure): Ditto.
3718         * tree-flow.h (vectorize_loops, tree_ssa_lim, tree_ssa_unswitch_loops,
3719         canonicalize_induction_variables, tree_unroll_loops_completely,
3720         tree_ssa_prefetch_arrays, remove_empty_loops, tree_ssa_iv_optimize,
3721         estimate_numbers_of_iterations, free_numbers_of_iterations_estimates,
3722         tree_duplicate_loop_to_header_edge, tree_ssa_loop_version,
3723         tree_unroll_loop, linear_transform_loops): Declaration changed.
3724         * basic-block.h: Remove declaration of struct loops.
3725         * cfghooks.h (struct cfg_hooks): Change type of
3726         cfg_hook_duplicate_loop_to_header_edge.
3727         (cfg_hook_duplicate_loop_to_header_edge): Declaration changed.
3728         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge,
3729         vect_transform_loop): Declaration changed.
3730         * lambda.h (gcc_loopnest_to_lambda_loopnest): Declaration changed.
3731         * cfgloop.h (flow_loops_dump, fix_loop_structure,
3732         mark_irreducible_loops, mark_single_exit_loops, mark_loop_exit_edges,
3733         cancel_loop_tree, create_preheaders, force_single_succ_latches,
3734         verify_loop_structure, duplicate_loop, duplicate_loop_to_header_edge,
3735         loopify, loop_version, remove_path, unswitch_loops,
3736         unroll_and_peel_loops, doloop_optimize_loops, move_loop_invariants):
3737         Declaration changed.
3738
3739 2006-11-24  Uros Bizjak  <ubizjak@gmail.com>
3740
3741         * config/i386/i386.md (UNSPEC_TRUNC_NOOP): New unspec definition.
3742         (X87MODEF): New mode macro.
3743         (ssemodefsuffix): New mode attribute.
3744         (truncxf<mode>2_i387_noop_unspec): New insn pattern.
3745         (sqrt_extend<mode>xf2_i387): New insn pattern.
3746         (sqrt<mode>2): For non-SSE sqrt, emit sqrt_extend<mode>xf2_i387
3747         insn and truncate result back to original mode using
3748         UNSPEC_TRUNC_NOOP truncation.
3749         (*sqrt<mode>2_sse): Implement using SSEMODEF mode macro and
3750         ssemodefsuffix mode attribute.
3751         (*sqrtsf2_mixed, *sqrtsf2_i387, *sqrtdf2_mixed, *sqrtdf2_i387)
3752         (*sqrtextendsfdf2_i387, *sqrtextendsfxf2_i387)
3753         (*sqrtextenddfxf2_i387): Remove insn patterns.
3754
3755         (fmodsf3, fmoddf3, remaindersf3, remainderdf3): Use noop
3756         truncation patterns.
3757
3758         * reg-stack.c (get_true_reg): Handle UNSPEC_TRUNC_NOOP.
3759
3760 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
3761
3762         PR c/29955
3763         * c-tree.h (c_maybe_initialize_eh): New prototype.
3764         * c-decl.c (finish_decl): Move EH initialization...
3765         (c_maybe_initialize_eh): ... here.  New function.
3766         * c-parser.c (c_parser_omp_construct): Call c_maybe_initialize_eh
3767         if not #pragma omp atomic.
3768
3769         PR c/29736
3770         * c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
3771         or UNION_TYPE inner types.
3772
3773 2006-11-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3774
3775         PR tree-opt/29964
3776         * ipa-pure-const.c (check_tree): If the original tree
3777         is volatile return early and say the function is not pure
3778         nor const.  Remove the volatile check for writes.
3779         (analyze_function): Print out the result of the local
3780         analysis pass.
3781
3782 2006-11-24  Joseph Myers  <joseph@codesourcery.com>
3783
3784         * config/rs6000/eabispe.h (TARGET_DEFAULT): Include
3785         MASK_STRICT_ALIGN.
3786         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Likewise.
3787         * config/rs6000/rs6000.c (rs6000_override_options): Use
3788         MASK_STRICT_ALIGN for 8540 and 8548.  Add MASK_STRICT_ALIGN to
3789         POWERPC_MASKS.
3790
3791 2006-11-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3792
3793         * config/s390.c (s390_emit_compare_and_swap): New function.
3794         (s390_expand_cs_hqi, s390_expand_atomic): Call
3795         s390_emit_compare_and_swap.
3796
3797 2006-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3798
3799         * pa.c (return_addr_rtx): Change 0xe0400002 to -532676606.
3800
3801 2006-11-24  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3802
3803         PR c/2707
3804         PR c++/26167
3805         * c-common.c (conversion_warning): New.
3806         (convert_and_check): Call conversion_warning unless there is an
3807         overflow warning.
3808         * doc/invoke.texi (-Wconversion): Update description.
3809
3810 2006-11-23  Daniel Berlin  <dberlin@dberlin.org>
3811
3812         * tree-ssa-alias.c (tree_pointer_compare): New function.
3813         (compact_name_tags): New function.
3814         (group_aliases): Call compact_name_tags.
3815
3816 2006-11-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3817
3818         * real.h (real_isinteger): Declare.
3819         * real.c (real_isinteger): Define.
3820         * builtins.c (integer_valued_real_p): Use it.
3821
3822 2006-11-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3823
3824         PR c/9072
3825         * c.opt (Wtraditional-conversion): New.
3826         (Wconversion): Update description.
3827         * c-typeck.c (convert_arguments): Warnings for prototypes causing
3828         type conversions different from what would happen in the absence
3829         of prototype are now handled by Wtraditional-conversion.
3830         * doc/invoke.texi (Wtraditional-conversion): New.
3831         (Wconversion): Update description.
3832         * doc/trouble.texi (Wconversion): Replace Wconversion by
3833         Wtraditional-conversion.
3834
3835 2006-11-23  Andrew Pinski  <pinskia@gmail.com>
3836
3837         * predict.c (tree_estimate_probability): Check to make
3838         sure current_loops is non null before calling flow_loops_dump.
3839
3840 2006-11-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3841
3842         * var-tracking.c (emit_note_insn_var_location): Revert previous patch.
3843
3844 2006-11-23  David Ung  <davidu@mips.com>
3845
3846         * config/mips/mips.h (ISA_HAS_FP4): Add MIPS32R2 + 64bit fpu
3847         combination.
3848         (ISA_HAS_MXHC1): True if ISA supports mfhc1 and mthc1 opcodes.
3849         (ASM_SPEC): Pass along -mfp32 and -mfp64.
3850         * config/mips/mips.c (mips_split_64bit_move): Use gen_mthc1 to set
3851         high part of FP register when in 64-bit FP register mode.  Similarly
3852         use gen_mfhc1 to load high part of FP register.
3853         (override_options): Allow -mgp32 and -mfp64 combination if
3854         ISA_HAS_MXHC1 (currently for O32 only).
3855         (mips_cannot_change_mode_class): If floating-point registers are
3856         bigger than word size. disallow conversion of float register from a
3857         large integer mode to a float mode smaller than the float register
3858         size.
3859         (mips_class_max_nregs): Handle float registers case seperately.
3860         * config/mips/mips.md (define_constants): Add UNSPEC_MFHC1,
3861         UNSPEC_MTHC1.
3862         (movdi_32bit): Use !TARGET_FLOAT64 in condition pattern.
3863         (movdf_hardfloat_32bit): Similarly.
3864         (movdi_gp32_fp64): New DImode pattern for MIPS32R2 which optionally
3865         support a full 64-bit fpu.
3866         (mthc1): New pattern to generate MTHC1 instruction.
3867         (mfhc1): New pattern to generate MFHC1 instruction.
3868         * doc/invoke.texi (MIPS Options): Document the -mgp32 -mfp64
3869         option for the MIPS32R2 and mention its use under O32 ABI.
3870
3871 2006-11-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3872
3873         * var-tracking.c (emit_note_insn_var_location): Take care not to
3874         cause verify_flow_info failures.
3875
3876 2006-11-22  Daniel Berlin  <dberlin@dberlin.org>
3877
3878         * tree-ssa-structalias.c: Remove edge weights in favor of just
3879         processing them as complex constraints.
3880         (struct constraint_graph): Remove weighted succs and preds. Rename
3881         nonweighted succs and preds.
3882         (constraint_edge): Removed.
3883         (constraint_edge_t): Ditto.
3884         (constraint_edge_pool): Ditto.
3885         (new_constraint_edge): Ditto.
3886         (constraint_edge_equal): Ditto.
3887         (constraint_edge_less): Ditto.
3888         (constraint_edge_vec_find): Ditto.
3889         (erase_self_graph_edge): Ditto.
3890         (add_graph_edge): Removed.
3891         (get_graph_weights): Ditto.
3892         (allocate_graph_weights): Ditto.
3893         (valid_weighted_graph_edge): Ditto
3894         (bitmap_other_than_zero_bit_set): Ditto.
3895         (int_add_graph_edge): Renamed to add_graph_edge.
3896         (clear_edges_for_node): Remove support for weighted edges.
3897         (merge_graph_nodes): Ditto.
3898         (valid_graph_edge): Ditto.
3899         (build_constraint_graph): Ditto.
3900         (scc_visit): Ditto.
3901         (collapse_nodes): Ditto.
3902         (process_unification_queue): Ditto.
3903         (topo_visit): Ditto.
3904         (do_ds_constraint): Ditto.
3905         (perform_var_subsitution): Ditto.
3906         (solve_graph): Ditto.
3907         (init_alias_vars): Ditto.
3908         (delete_points_to_sets): Ditto.
3909         (do_complex_constraint): Support offsetted copies here.
3910
3911 2006-11-23  Ulrich Weigand  <uweigand@de.ibm.com>
3912
3913         * config/spu/spu_intrinsics.h (SPU_RdEventStatMask): Rename to
3914         SPU_RdEventMask.
3915         * config/spu/spu_mfcio.h (spu_read_event_mask): Update.
3916
3917         * config/spu/spu_mfcio.h (struct mfc_list_element): Change width
3918         of size bitfield.
3919
3920 2006-11-23  Ben Elliston  <bje@au.ibm.com>
3921
3922         * config/spu/spu-elf.h (LIB_SPEC): Do not link with -lc_p.
3923
3924 2006-11-23  Zdenek Dvorak <dvorakz@suse.cz>
3925
3926         PR tree-optimization/29921
3927         * fold-const.c (operand_equal_p): Without HONOR_SIGNED_ZEROS, consider
3928         signed and unsigned zero equal.
3929
3930 2006-11-22  Peter Bergner  <bergner@vnet.ibm.com>
3931
3932         * config/rs6000/rs6000.c (get_store_dest): New.
3933         (adjacent_mem_locations): Use get_store_dest() to get
3934         the rtl of the store destination.
3935
3936 2006-11-22  Joseph Myers  <joseph@codesourcery.com>
3937
3938         * config/rs6000/spe.md (SPE64): New mode macro.
3939         (mov_sidf_e500_subreg0): Change to mov_si<mode>_e500_subreg0.  Add
3940         memory load.
3941         (mov_si<mode>_e500_subreg0_2): New.
3942         (mov_sidf_e500_subreg4): Change to mov_si<mode>_e500_subreg4.  Add
3943         memory load.
3944         (mov_si<mode>_e500_subreg4_2): New.
3945         * config/rs6000/predicates.md (input_operand): Do not allow
3946         invalid E500 subregs.
3947         (rs6000_nonimmediate_operand): Check for invalid E500 subregs also
3948         if TARGET_SPE.
3949         * config/rs6000/rs6000.c (invalid_e500_subreg): Check for subregs
3950         involving DFmode if TARGET_E500_DOUBLE.  Check for subregs
3951         involving vector modes if TARGET_SPE.
3952
3953 2006-11-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3954
3955         Revert
3956         2006-11-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3957         * reorg.c (emit_delay_sequence): Copy the delay slot insn.
3958
3959 2006-11-22  Bernd Schmidt  <bernd.schmidt@analog.com>
3960
3961         * config/bfin/predicates.md (d_register_operand, mem_p_address_operand,
3962         mem_i_address_operand): New predicates.
3963         * config/bfin/bfin.c (bfin_issue_rate): New function.
3964         (TARGET_SCHED_ISSUE_RATE): New macro.
3965         * config/bfin/bfin.md (addrtype): New attribute.
3966         (slot0, slot1, slot2, store, pregs): New cpu_units.
3967         (core): Now a define_reservation.
3968         (alu): Remove some insn types from this reservation.
3969         (dsp32, load32, loadp, loadi, store32, storep, storei, multi): New
3970         insn reservations.
3971         (dummy reservation): Don't trigger for mcld insns.
3972         (absence_sets): Two new absence sets to enforce slot ordering.
3973         (popsi_insn): Set addrtype.
3974
3975 2006-11-22  Ira Rosen  <irar@il.ibm.com>
3976
3977         * doc/c-tree.texi: Document new tree codes.
3978         * doc/md.texi: Document new optabs.
3979         * tree-pretty-print.c (dump_generic_node): Handle print of new tree
3980         codes.
3981         * optabs.c (optab_for_tree_code, init_optabs): Handle new optabs.
3982         * optabs.h (optab_index): Add new.
3983         (vec_extract_even_optab, vec_extract_odd_optab,
3984         vec_interleave_high_optab, vec_interleave_low_optab): New optabs.
3985         * genopinit.c (vec_extract_even_optab, vec_extract_odd_optab,
3986         vec_interleave_high_optab, vec_interleave_low_optab): Initialize
3987         new optabs.
3988         * expr.c (expand_expr_real_1): Add implementation for new tree codes.
3989         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
3990         * tree-vectorizer.h (stmt_vec_info): Add new fields for interleaving
3991         along with macros for their access.
3992         * tree-data-ref.h (first_location_in_loop, data_reference): Update
3993         comment.
3994         * tree-vect-analyze.c (toplev.h): Include.
3995         (vect_determine_vectorization_factor): Fix indentation.
3996         (vect_insert_into_interleaving_chain,
3997         vect_update_interleaving_chain, vect_equal_offsets): New functions.
3998         (vect_analyze_data_ref_dependence): Add argument for interleaving
3999         check. Check for interleaving if it's true.
4000         (vect_check_dependences): New function.
4001         (vect_analyze_data_ref_dependences): Call vect_check_dependences for
4002         every ddr. Call vect_analyze_data_ref_dependence with new argument.
4003         (vect_update_misalignment_for_peel): Update for interleaving.
4004         (vect_verify_datarefs_alignment): Check only first data-ref for
4005         interleaving.
4006         (vect_enhance_data_refs_alignment): Update for interleaving. Check
4007         only first data-ref for interleaving.
4008         (vect_analyze_data_ref_access): Check interleaving, update
4009         interleaving data.
4010         (vect_analyze_data_refs): Call compute_data_dependences_for_loop
4011         with different parameters.
4012         * tree.def (VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR,
4013         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR): New tree codes.
4014         * tree-inline.c (estimate_num_insns_1): Add cases for new codes.
4015         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
4016         Update step in case of interleaving.
4017         (vect_strided_store_supported, vect_permute_store_chain): New
4018         functions.
4019         (vectorizable_store): Handle strided stores.
4020         (vect_strided_load_supported, vect_permute_load_chain,
4021         vect_transform_strided_load): New functions.
4022         (vectorizable_load): Handle strided loads.
4023         (vect_transform_stmt): Add argument. Handle strided stores. Check
4024         that vectorized stmt exists for patterns.
4025         (vect_gen_niters_for_prolog_loop): Update calculation for
4026         interleaving.
4027         (vect_transform_loop): Remove stmt_vec_info for strided stores after
4028         whole chain vectorization.
4029         * config/rs6000/altivec.md (UNSPEC_EXTEVEN, UNSPEC_EXTODD,
4030         UNSPEC_INTERHI, UNSPEC_INTERLO): New constants.
4031         (vpkuhum_nomode, vpkuwum_nomode, vec_extract_even<mode>,
4032         vec_extract_odd<mode>, altivec_vmrghsf, altivec_vmrglsf,
4033         vec_interleave_high<mode>, vec_interleave_low<mode>): Implement.
4034
4035 2006-11-22  Steven Bosscher  <steven@gcc.gnu.org>
4036
4037         * cse.c (enum taken): Remove PATH_AROUND.
4038         (addr_affects_sp_p, invalidate_skipped_set,
4039         invalidate_skipped_block): Remove.
4040         (cse_end_of_basic_block): Remove skip_blocks and related code.
4041         (cse_main): Don't test for flag_cse_skip_blocks.
4042         Update cse_end_of_basic_block call.
4043         (cse_basic_block): Likewise.  Remove PATH_AROUND case.  Remove
4044         code to lengthen the path if a jump was simplified.
4045
4046 2006-11-22  Zdenek Dvorak <dvorakz@suse.cz>
4047
4048         PR rtl-optimization/29924
4049         * loop-unroll.c (split_edge_and_insert): Handle the case insns is NULL.
4050         (unroll_loop_runtime_iterations): Assert that the argument passed to
4051         split_edge_and_insert is not NULL.
4052         * loop-doloop.c (add_test): Ditto.
4053
4054 2006-11-22  Zdenek Dvorak <dvorakz@suse.cz>
4055
4056         * tree-loop-linear.c (linear_transform_loops): Use single_exit accessor
4057         functions.
4058         * tree-ssa-loop-niter.c (loop_only_exit_p): Ditto.
4059         * cfgloopmanip.c (update_single_exits_after_duplication,
4060         update_single_exit_for_duplicated_loop, loop_version): Ditto.
4061         * tree-scalar-evolution.c (get_loop_exit_condition,
4062         get_exit_conditions_rec, loop_closed_phi_def,
4063         number_of_iterations_in_loop, scev_const_prop): Ditto.
4064         * tree-ssa-loop-ivopts.c (single_dom_exit): Ditto.
4065         * modulo-sched.c (generate_prolog_epilog, loop_canon_p, sms_schedule):
4066         Ditto.
4067         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
4068         Ditto.
4069         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
4070         slpeel_update_phi_nodes_for_guard1, slpeel_update_phi_nodes_for_guard2,
4071         slpeel_make_loop_iterate_ntimes,
4072         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_can_duplicate_loop_p,
4073         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
4074         Ditto.
4075         * tree-if-conv.c (if_convertible_loop_p): Ditto.
4076         * tree-vect-analyze.c (vect_analyze_operations, vect_stmt_relevant_p,
4077         vect_analyze_loop_form): Ditto.
4078         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, exit_phi_for_loop_p,
4079         can_convert_to_perfect_nest, perfect_nestify): Ditto.
4080         * tree-vect-transform.c (vect_create_epilog_for_reduction,
4081         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
4082         vect_transform_loop): Ditto.
4083         * cfgloop.c (mark_single_exit_loops, verify_loop_structure): Ditto.
4084         (single_exit, set_single_exit): New functions.
4085         * cfgloop.h (struct loop): Rename single_exit field to single_exit_.
4086         (single_exit, set_single_exit): Declare.
4087         * doc/loop.texi: Undocument single_exit field.  Document single_exit
4088         accessor function.
4089
4090 2006-11-22  Zdenek Dvorak <dvorakz@suse.cz>
4091
4092         PR tree-optimization/29902
4093         * tree-ssa-loop-manip.c (can_unroll_loop_p): Return false if
4094         any involved ssa name appears in abnormal phi node.
4095
4096 2006-11-21  Bob Wilson  <bob.wilson@acm.org>
4097
4098         * config/xtensa/xtensa.c (xtensa_char_to_class): Delete.
4099         (xtensa_const_ok_for_letter_p): Delete.
4100         (xtensa_extra_constraint): Delete.
4101         (override_options): Delete xtensa_char_to_class initialization.
4102         * config/xtensa/xtensa.h (REG_CLASS_FROM_LETTER): Delete.
4103         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4104         (EXTRA_CONSTRAINT): Delete.
4105         * config/xtensa/xtensa.md: Include constraints.md.
4106         (call_internal): Combine alternatives.
4107         (call_value_internal): Likewise, and remove invalid constraints.
4108         * config/xtensa/constraints.md: New file.
4109         * config/xtensa/xtensa-protos.h (xtensa_const_ok_for_letter_p): Delete.
4110         (xtensa_extra_constraint): Delete.
4111         * doc/md.texi (Machine Constraints): Refer to constraints.md for
4112         Xtensa constraints.
4113
4114 2006-11-21  Janis Johnson  <janis187@us.ibm.com>
4115
4116         * config/dfp-bits.c (DFP_TO_INT): Remove code to saturate result
4117         of conversion that doesn't fit.
4118
4119         * config/dfp-bit.h (CONTEXT_TRAPS, CONTEXT_ERRORS, DFP_RAISE): Delete.
4120         * config/dfp-bit.c (dfp_unary_op, dfp_binary_op, dfp_compare_op,
4121         DFP_TO_DFP, INT_TO_DFP, BFP_TO_DFP): Remove calls to DFP_RAISE.
4122
4123         * config/dfp-bit.c (dfp_binary_func): Fix typedef.
4124
4125 2006-11-21  Douglas Gregor <doug.gregor@gmail.com>
4126
4127         * c-common.h (enum rid): Add RID_STATIC_ASSERT.
4128
4129 2006-11-21  Richard Guenther  <rguenther@suse.de>
4130
4131         * tree-vectorizer.h (NUM_PATTERNS): Increase.
4132         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4133         vect_recog_pow_pattern.
4134         (vect_recog_pow_pattern): New function.
4135
4136 2006-11-21  Bernd Schmidt  <bernd.schmidt@analog.com>
4137
4138         * config/bfin/bfin.opt (mstack-check-l1): New.
4139         * doc/invoke.texi (Blackfin Options): Document it.
4140         * config/bfin/bfin.c (bfin_expand_prologue): Generate code to use
4141         stack bounds in L1 memory if the new option is enabled.
4142         (override_options): Don't allow combinations of -fstack-limit and
4143         -mstack-check-l1.
4144         (add_to_reg): Renamed from add_to_sp.  All callers changed.  Lose some
4145         dead code.
4146
4147         * config/bfin/bfin.c (hard_regno_mode_ok): Only allow first 31
4148         regs for DImode.
4149         (bfin_register_move_cost): Bump costs if trying to move plain
4150         integer values through accumulators.
4151
4152 2006-11-21  Ben Elliston  <bje@au.ibm.com>
4153
4154         * config/spu/spu.c (spu_expand_vector_init): Initialise x.
4155
4156 2006-11-20  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
4157             Russell Olsen <Russell_Olsen@playstation.sony.com>
4158             Dmitri Makarov <Dmitri_Makarov@playstation.sony.com>
4159             Yukishige Shibata <shibata@rd.scei.sony.co.jp>
4160             Nobuhisa Fujinami <fnami@rd.scei.sony.co.jp>
4161             Takeaki Fukuoka <fukuoka@rd.scei.sony.co.jp>
4162             Andrew Pinski <Andrew_Pinski@playstation.sony.com>
4163
4164         * config.gcc: Add target for SPU.
4165         * config/spu/constraints.md: New file.
4166         * config/spu/crt0.c: New file.
4167         * config/spu/crtend.c: New file.
4168         * config/spu/crti.asm: New file.
4169         * config/spu/crtn.asm: New file.
4170         * config/spu/float_unsdidf.c: New file.
4171         * config/spu/float_unssidf.c: New file.
4172         * config/spu/predicates.md: New file.
4173         * config/spu/spu-builtins.def: New file.
4174         * config/spu/spu-builtins.h: New file.
4175         * config/spu/spu-builtins.md: New file.
4176         * config/spu/spu-c.c: New file.
4177         * config/spu/spu-elf.h: New file.
4178         * config/spu/spu-modes.def: New file.
4179         * config/spu/spu-protos.h: New file.
4180         * config/spu/spu.c: New file.
4181         * config/spu/spu.h: New file.
4182         * config/spu/spu.md: New file.
4183         * config/spu/spu.opt: New file.
4184         * config/spu/spu_internals.h: New file.
4185         * config/spu/spu_intrinsics.h: New file.
4186         * config/spu/spu_mfcio.h: New file.
4187         * config/spu/t-spu-elf: New file.
4188         * config/spu/vec_types.h: New file.
4189         * config/spu/vmx2spu.h: New file.
4190         * doc/contrib.texi: Document SPU contributor.
4191         * doc/extend.texi: Document SPU extensions.
4192         * doc/invoke.texi: Document SPU options.
4193         * doc/md.texi: Document SPU constraints.
4194
4195 2006-11-21  Zdenek Dvorak <dvorakz@suse.cz>
4196
4197         * cfgloopmanip.c (add_loop, duplicate_loop): Do not set level
4198         of the loop.
4199         * cfgloop.c (flow_loop_level_compute, flow_loops_level_compute):
4200         Removed.
4201         (flow_loop_dump): Do not dump loop level.
4202         (flow_loops_find): Do not call flow_loops_level_compute.
4203         * cfgloop.h (struct loop): Remove level field.
4204
4205 2006-11-21  Zdenek Dvorak <dvorakz@suse.cz>
4206
4207         * tree-ssa-loop-im.c (schedule_sm, determine_lsm_ref,
4208         hoist_memory_references, loop_suitable_for_sm, determine_lsm_loop):
4209         Use vector of edges instead of array.
4210         * tree-ssa-loop-niter.c (find_loop_niter, find_loop_niter_by_eval,
4211         estimate_numbers_of_iterations_loop): Ditto.
4212         * predict.c (predict_loops): Ditto.
4213         * loop-unroll.c (analyze_insns_in_loop): Ditto.
4214         * tree-ssa-threadupdate.c: Remove declaration of heap allocation for
4215         edge vectors.
4216         * basic-block.h: Declare heap allocation for edge vectors.
4217         * tree-outof-ssa.c: Ditto.
4218         * cfgloop.c (get_loop_exit_edges): Return vector of edges.
4219         * cfgloop.h (get_loop_exit_edges): Declaration changed.
4220
4221 2006-11-20  Zack Weinberg  <zackw@panix.com>
4222
4223         * gengtype.c (process_gc_options): Remove unnecessary forward decl.
4224         Add another out parameter, "skip".
4225         (set_gc_used_type): Adjust calls to process_gc_options.  If a field
4226         is tagged "skip", do not mark its type used.
4227
4228 2006-11-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4229
4230         PR tree-opt/25500
4231         * tree-sra.c (single_scalar_field_in_record_p): New function.
4232         (decide_block_copy): Use it.
4233
4234 2006-11-20  David Daney  <ddaney@avtrex.com>
4235
4236         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
4237         PC to point to following instruction.
4238
4239 2006-11-20  Anatoly Sokolov <aesok@post.ru>
4240
4241         PR target/18553
4242         PR target/29449
4243         * config/avr/avr.h (OBJECT_FORMAT_ELF): Define.
4244
4245         * config/avr/avr.h (DWARF2_DEBUGGING_INFO): Define.
4246
4247 2006-11-20  J"orn Rennecke  <joern.rennecke@st.com>
4248
4249         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
4250         Add sh/superh.h to tm_file.
4251
4252 2006-11-20  Carlos O'Donell  <carlos@codesourcery.com>
4253             Mark Mitchell  <mark@codesourcery.com>
4254
4255         * cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and
4256         gcc_exec_prefix.
4257         (cpp_relocated): New function.
4258         * cppdefault.h: Declare cpp_PREFIX, cpp_PREFIX_len, gcc_exec_prefix
4259         and cpp_relocated.
4260         * Makefile.in (PREPROCESSOR_DEFINES): Add -DPREFIX option.
4261         * c-incpath.c (add_standard_paths): Call cpp_relocated. If relocated,
4262         replace configured prefix with gcc_exec_prefix.
4263
4264 2006-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
4265
4266         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Call
4267         bfin_legitimate_constant_p.
4268         * config/bfin/bfin.md (movsi expander): Check return value of
4269         expand_mvoe.
4270         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Declare.
4271         (expand_move): Adjust prototype.
4272         * config/bfin/bfin.c (expand_move): Now returns bool.  Handle
4273         invalid constants specially.
4274         (bfin_cannot_force_const_mem, bfin_legitimate_constant_p): New
4275         functions.
4276         (TARGET_CANNOT_FORCE_CONST_MEM): New macro.
4277
4278         * config/bfin/bfin.md (call_symbol, call_value_symbol, sibcall_symbol,
4279         sibcall_value_symbol): Allow these patterns if
4280         TARGET_LEAF_ID_SHARED_LIBRARY.
4281         * config/bfin/bfin.c (bfin_expand_call): Allow them here as well.
4282         (override_options): Turn on id shared library flags if -msep-data,
4283         but disallow the combination of these options on the command line.
4284         * config/bfin/bfin.h (TARGET_LEAF_ID_SHARED_LIBRARY, MASK_SEP_DATA
4285         MASK_LEAF_ID_SHARED_LIBRARY, TARGET_SEP_DATA): New macros.
4286         (DRIVER_SELF_SPECS): -mleaf-id-shared-library implies
4287         -mid-shared-library.
4288         (TARGET_SWITCHES): Add -mleaf-id-shared-library and -msep-data.
4289         * doc/invoke.texi (Blackfin Options): Document new switches.
4290
4291         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Handle some
4292         edge cases with local functions and TARGET_ID_SHARED_LIBRARY.
4293
4294         * tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially
4295         inflate costs for addresses with an out-of-bounds address.
4296
4297 2006-11-19  Andrew Pinski  <pinskia@gmail.com>
4298
4299         PR rtl-opt/29879
4300         * fwprop.c (loops): Remove.
4301         (forward_propagate_into): Use current_loops instead of
4302         loops.
4303         (fwprop_init): Call loop_optimizer_init instead of
4304         flow_loops_find.
4305         (fwprop_done): Call loop_optimizer_finalize instead of
4306         flow_loops_free.
4307         (fwprop): Use current_loops instead of loops.
4308
4309 2006-11-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4310
4311         PR c++/8586
4312         * c-opts.c (c_common_handle_option): Enable -Wwrite-strings if -Wall.
4313
4314 2006-11-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4315
4316         PR target/29114
4317         * pa.c (emit_move_sequence): Don't split constants with PLUS for modes
4318         larger than BITS_PER_WORD.
4319
4320 2006-11-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4321
4322         PR fortran/27885
4323         PR middle-end/28176
4324         * stor-layout.c (set_sizetype): Limit precision of *bitsizetypes types
4325         to MAX_FIXED_MODE_SIZE.
4326
4327 2006-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4328
4329         * builtins.c (integer_valued_real_p): Handle fmin/fmax.
4330         (fold_builtin_fmin_fmax): New.
4331         (fold_builtin_1): Use it.
4332
4333         * fold-const.c (fold_strip_sign_ops): Handle copysign.
4334
4335 2006-11-18  Richard Guenther  <rguenther@suse.de>
4336
4337         * config/i386/i386.c (ix86_builtins): New array for ix86
4338         builtin function decls.
4339         (def_builtin): New function.
4340         (def_builtin_const): Likewise.
4341         (ix86_init_mmx_sse_builtins): Mark sqrt and cvt builtins const.
4342
4343 2006-11-18  Vladimir Makarov  <vmakarov@redhat.com>
4344
4345         * doc/invoke.texi (core2): Add item.
4346
4347         * config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
4348         macros.
4349         (TARGET_CPU_CPP_BUILTINS): Add code for core2.
4350         (TARGET_CPU_DEFAULT_generic): Change value.
4351         (TARGET_CPU_DEFAULT_NAMES): Add core2.
4352         (processor_type): Add new constant PROCESSOR_CORE2.
4353
4354         * config/i386/i386.md (cpu): Add core2.
4355
4356         * config/i386/i386.c (core2_cost): New initialized variable.
4357         (m_CORE2): New macro.
4358         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
4359         x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
4360         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
4361         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
4362         x86_partial_reg_dependency, x86_memory_mismatch_stall,
4363         x86_accumulate_outgoing_args, x86_prologue_using_move,
4364         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
4365         x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
4366         x86_use_incdec, x86_four_jump_limit, x86_schedule,
4367         x86_pad_returns): Add m_CORE2.
4368         (override_options): Add entries for Core2.
4369         (ix86_issue_rate): Add case for Core2.
4370
4371 2006-11-18  Aldy Hernandez  <aldyh@redhat.com>
4372
4373         * doc/invoke.texi: Fix mno-isel typo.
4374
4375 2006-11-18  Joseph Myers  <joseph@codesourcery.com>
4376
4377         * config/rs6000/spe.md (movv4hi_internal): Add alternative for
4378         easy vector constant loads.
4379
4380 2006-11-18  Joseph Myers  <joseph@codesourcery.com>
4381
4382         * config/rs6000/rs6000.h (TARGET_NO_LWSYNC): Define.
4383         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4384         __NO_LWSYNC__ if TARGET_NO_LWSYNC.
4385         * config/rs6000/sync.md (lwsync): Emit plain sync if
4386         TARGET_NO_LWSYNC.
4387
4388 2006-11-17  DJ Delorie  <dj@redhat.com>
4389
4390         * reload1.c (reloads_unique_chain): New.
4391         (reloads_conflict): Call it.
4392
4393 2006-11-17  Bob Wilson  <bob.wilson@acm.org>
4394
4395         * config/xtensa/predicates.md (addsubx_operand): New.
4396         * config/xtensa/xtensa.c (xtensa_emit_branch): New.
4397         (xtensa_emit_bit_branch): New.
4398         (xtensa_emit_movcc): New.
4399         * config/xtensa/xtensa.md (any_minmax): New code macro.
4400         (minmax): New code attribute.
4401         (any_cond, any_scc, any_scc_sf): New code macros.
4402         (*addx2, *addx4, *addx8): Delete.
4403         (*addx): New.
4404         (*subx2, *subx4, *subx8): Delete.
4405         (*subx): New.
4406         (sminsi3, uminsi3, smaxsi3, umaxsi3): Use any_minmax macro.
4407         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Use any_cond.
4408         (*btrue, *bfalse, *ubtrue, *ubfalse): Use xtensa_emit_branch.
4409         (*bittrue, *bitfalse): Use xtensa_emit_bit_branch.
4410         (seq, sne, sgt, sge, slt, sle): Use any_scc macro.
4411         (movsicc_internal0, movsicc_internal1): Use xtensa_emit_movcc.
4412         (movsfcc_internal0, movsfcc_internal1): Likewise.
4413         (seq_sf, slt_sf, sle_sf): Use any_scc_sf macro.
4414         * config/xtensa/xtensa-protos.h: (xtensa_emit_branch): New.
4415         (xtensa_emit_bit_branch): New.
4416         (xtensa_emit_movcc): New.
4417         (function_arg_boundary): Add missing prototype.
4418
4419 2006-11-17  Bob Wilson  <bob.wilson@acm.org>
4420
4421         * config/xtensa/xtensa.md (tstsi): Delete
4422
4423 2006-11-17  Bob Wilson  <bob.wilson@acm.org>
4424
4425         * config/xtensa/xtensa.md (entry): Do not emit .frame directive.
4426
4427 2006-11-17  Bob Wilson  <bob.wilson@acm.org>
4428
4429         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4430
4431 2006-11-17  Bob Wilson  <bob.wilson@acm.org>
4432
4433         * config/xtensa/lib1funcs.asm (__umulsidi3): Restore a0 on exit.
4434
4435 2006-11-17  Zdenek Dvorak <dvorakz@suse.cz>
4436
4437         * tree-vrp.c (execute_vrp): Do not update current_loops.
4438         * loop-unswitch.c (unswitch_loop): Do not use loop_split_edge_with.
4439         * doc/loop.texi: Remove documentation for cancelled functions.
4440         * tree-ssa-loop-im.c (loop_commit_inserts): Removed.
4441         (move_computations, determine_lsm): Use bsi_commit_edge_inserts
4442         instead.
4443         * cfgloopmanip.c (remove_bbs): Do not update loops explicitly.
4444         (remove_path): Ensure that in delete_basic_blocks, the loops
4445         are still allocated.
4446         (add_loop): Work on valid loop structures.
4447         (loopify): Modify call of add_loop.
4448         (mfb_update_loops): Removed.
4449         (create_preheader): Do not update loops explicitly.
4450         (force_single_succ_latches, loop_version): Do not use
4451         loop_split_edge_with.
4452         (loop_split_edge_with): Removed.
4453         * tree-ssa-loop-manip.c (create_iv, determine_exit_conditions):
4454         Do not use bsi_insert_on_edge_immediate_loop.
4455         (split_loop_exit_edge, tree_unroll_loop): Do not use
4456         loop_split_edge_with.
4457         (bsi_insert_on_edge_immediate_loop): Removed.
4458         * tree-ssa-loop-ch.c (copy_loop_headers): Use current_loops.  Do not
4459         use loop_split_edge_with.
4460         * cfghooks.c: Include cfgloop.h.
4461         (verify_flow_info): Verify that loop_father is filled iff current_loops
4462         are available.
4463         (redirect_edge_and_branch_force, split_block, delete_basic_block,
4464         split_edge, merge_blocks, make_forwarder_block, duplicate_block):
4465         Update cfg.
4466         * cfgloopanal.c (mark_irreducible_loops): Work if the function contains
4467         no loops.
4468         * modulo-sched.c (generate_prolog_epilog, canon_loop): Do not use
4469         loop_split_edge_with.
4470         (sms_schedule): Use current_loops.
4471         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Use current_loops.
4472         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Set
4473         current_loops.
4474         (rtl_loop_init, rtl_loop_done): Do not set current_loops.
4475         * tree-ssa-sink.c (execute_sink_code): Use current_loops.
4476         * ifcvt.c (if_convert): Ditto.
4477         * predict.c (predict_loops): Do not clear current_loops.
4478         (tree_estimate_probability): Use current_loops.
4479         (propagate_freq): Receive head of the region to propagate instead of
4480         loop.
4481         (estimate_loops_at_level): Do not use shared to_visit bitmap.
4482         (estimate_loops): New function.  Handle case current_loops == NULL.
4483         (estimate_bb_frequencies): Do not allocate tovisit.  Use
4484         estimate_loops.
4485         * tree-ssa-loop.c (current_loops): Removed.
4486         (tree_loop_optimizer_init): Do not return loops.
4487         (tree_ssa_loop_init, tree_ssa_loop_done): Do not set current_loops.
4488         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard1,
4489         slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge):
4490         Do not update loops explicitly.
4491         * function.h (struct function): Add x_current_loops field.
4492         (current_loops): New macro.
4493         * tree-if-conv.c (combine_blocks): Do not update loops explicitly.
4494         * loop-unroll.c (split_edge_and_insert): New function.
4495         (unroll_loop_runtime_iterations, analyze_insns_in_loop): Do not
4496         use loop_split_edge_with.
4497         * loop-doloop.c (add_test, doloop_modify): Ditto.
4498         * tree-ssa-pre.c (init_pre, fini_pre): Do not set current_loops.
4499         * cfglayout.c (copy_bbs): Do not update loops explicitly.
4500         * lambda-code.c (perfect_nestify): Do not use loop_split_edge_with.
4501         * tree-vect-transform.c (vect_transform_loop): Do not update loops
4502         explicitly.
4503         * cfgloop.c (flow_loops_cfg_dump): Do not dump dfs_order and rc_order.
4504         (flow_loops_free): Do not free dfs_order and rc_order.
4505         (flow_loops_find): Do not set dfs_order and rc_order in loops
4506         structure.  Do not call loops and flow info verification.
4507         (add_bb_to_loop, remove_bb_from_loops): Check whether the block
4508         already belongs to some loop.
4509         * cfgloop.h (struct loops): Remove struct cfg.
4510         (current_loops, loop_split_edge_with): Declaration removed.
4511         (loop_optimizer_init, loop_optimizer_finalize): Declaration changed.
4512         * tree-flow.h (loop_commit_inserts, bsi_insert_on_edge_immediate_loop):
4513         Declaration removed.
4514         * Makefile.in (cfghooks.o): Add CFGLOOP_H dependency.
4515         * basic-block.h (split_edge_and_insert): Declare.
4516         * tree-cfg.c (remove_bb): Do not update loops explicitly.
4517
4518 2006-11-17  Zdenek Dvorak <dvorakz@suse.cz>
4519
4520         PR tree-optimization/29801
4521         * tree-ssa-ccp.c (get_symbol_constant_value): New function.
4522         (get_default_value): Use get_symbol_constant_value.
4523         (set_lattice_value): ICE when the value of the constant is
4524         changed.
4525         (visit_assignment): Ignore VDEFs of read-only variables.
4526
4527 2006-11-17  Zdenek Dvorak <dvorakz@suse.cz>
4528
4529         * tree-vect-transform.c (vect_create_epilog_for_reduction): Fix
4530         formating.
4531         (vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
4532         vect_gen_niters_for_prolog_loop): Fold the emited expressions.
4533
4534 2006-11-17  Zdenek Dvorak <dvorakz@suse.cz>
4535
4536         * tree-ssa-alias.c (new_type_alias): Do not use offset of expr to
4537         select subvars of var.
4538
4539 2006-11-17  Jakub Jelinek  <jakub@redhat.com>
4540
4541         PR middle-end/29584
4542         * tree-ssa-forwprop.c (simplify_switch_expr): Don't
4543         optimize if DEF doesn't have integral type.
4544
4545 2006-11-16  Mike Stump  <mrs@apple.com>
4546
4547         * config/darwin.h (LINK_COMMAND_SPEC): Don't do dwarf stuff on
4548         pre-darwin9 system, unless the user asks for it directly.
4549         (PREFERRED_DEBUGGING_TYPE): Likewise.
4550         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4551         * config.gcc: Add suppport for darwin9.h.
4552         * config/darwin9.h: Add.
4553         * doc/install.texi (Specific): Clarify darwin documentation.
4554
4555 2006-11-16  Richard Earnshaw  <rearnsha@arm.com>
4556
4557         * arm.h (CONSTANT_ALIGNMENT): Don't over-align strings when
4558         optimizing for size.
4559
4560 2006-11-16  Mike Stump  <mrs@apple.com>
4561
4562         * Makefile.in (targhooks.o): Add $(OPTABS_H).
4563
4564 2006-11-16  Dirk Mueller  <dmueller@suse.de>
4565
4566         * tree-vrp.c (get_value_range): Use XCNEW instead
4567         of XNEW and memset.
4568         (insert_range_assertions): Use XCNEWVEC instead
4569         of XNEWVEC and memset.
4570         (vrp_initialize): Same.
4571         (vrp_finalize): Same.
4572         * tree-ssa-ccp.c (ccp_initialize): Same.
4573         * predict.c (tree_bb_level_predictions): Same.
4574         * calls.c (expand_call): Same.
4575         * tree-ssa-copy.c (init_copy_prop): Same.
4576         (fini_copy_prop): Same.
4577         * tree-ssa-alias.c (get_ptr_info): Use GGC_CNEW instead
4578         of GGC_NEW and memset.
4579
4580 2006-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4581
4582         PR middle-end/26306
4583         * gimplify.c (gimplify_expr): Only force a load for references to
4584         non-BLKmode volatile values.
4585         * doc/implement-c.texi (Qualifiers implementation): Document the
4586         interpretation of what a volatile access is.
4587         * doc/extend.texi (C++ Extensions): Rework same documentation.
4588
4589 2006-11-16  Joseph Myers  <joseph@codesourcery.com>
4590
4591         * config/rs6000/spe.md (frob_di_df_2): Handle non-offsettable
4592         memory operand.
4593
4594 2006-11-16  Richard Earnshaw  <rearnsha@arm.com>
4595
4596         * arm.md (abssi2): Allow Thumb as well.  Use an SImode scratch for
4597         Thumb.
4598         (arm_neg_abssi2): Renamed from neg_abssi2.
4599         (thumb_abssi2, thumb_neg_abssi2): New patterns with splitters.
4600
4601 2006-11-16  Uros Bizjak  <ubizjak@gmail.com>
4602
4603         * config/i386/i386.c (ix86_function_sseregparm): Fix comment:
4604         number of arguments passed to local functions in SSE registers is 3.
4605
4606         * doc/invoke.texi (Function Attributes) [sseregparm]: Correct
4607         number of arguments passed in SSE registers to 3.
4608
4609 2006-11-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
4610
4611         PR target/29201
4612         * cfgrtl.c (rtl_delete_block): Move the code for getting last insn of
4613         bb to ...
4614         (get_last_bb_insn): ... new global function.
4615         (basic_block.h): Declare it.
4616         * haifa-sched.c (create_recovery_block): Use it.
4617
4618 2006-11-15  H.J. Lu  <hongjiu.lu@intel.com>
4619
4620         PR middle-end/29862
4621         * real.c (mpfr_from_real): Call mpfr_set_str before gcc_assert.
4622
4623 2006-11-15  Paul Brook  <paul@codesourcery.com>
4624
4625         * config/arm/unwind-arm.c (_Unwind_GetDataRelBase,
4626         _Unwind_GetTextRelBase): Move from here ...
4627         * config/arm/pr-support.c (_Unwind_GetDataRelBase,
4628         _Unwind_GetTextRelBase): ... To here.
4629
4630 2006-11-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4631
4632         * tree-ssa-loop-ivopts.c (get_address_cost): Make sure memory
4633         addresses we generate for testing are aligned.
4634
4635 2006-11-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4636
4637         PR tree-opt/29788
4638         * fold-const.c (fold_indirect_ref_1): Fold *&CONST_DECL down
4639         to what is the const decl is a place holder for.
4640
4641 2006-11-15  Uros Bizjak  <ubizjak@gmail.com>
4642
4643         * config/i386/i386.opt: New target option -mx87regparm.
4644
4645         * config/i386/i386.h (struct ix86_args): Add x87_nregs, x87_regno
4646         and float_in_x87 variables. mmx_words, sse_words: Remove.
4647         (X87_REGPARM_MAX): Define.
4648
4649         * config/i386/i386.c (override_options): Error out for
4650         -mx87regparm but no 80387 support.
4651         (ix86_attribute_table): Add x87regparm.
4652         (ix86_handle_cconv_attribute): Update comments for x87regparm.
4653         (ix86_comp_type_attributes): Check for mismatched x87regparm types.
4654         (ix86_function_x87regparm): New function.
4655         (ix86_function_arg_regno_p): Add X87_REGPARM_MAX 80387 floating
4656         point registers.
4657         (init_cumulative_args): Initialize x87_nregs and float_in_x87
4658         variables.
4659         (function_arg_advance): Process x87_nregs and x87_regno when
4660         floating point argument is to be passed in 80387 register.
4661         (function_arg): Pass XFmode arguments in 80387 registers for local
4662         functions.  Pass SFmode and DFmode arguments to local functions
4663         in 80387 registers when flag_unsafe_math_optimizations is set.
4664
4665         * reg-stack.c (convert_regs_entry): Disable NaN load for
4666         stack registers that are used for argument passing.
4667
4668         * doc/extend.texi: Document x87regparm function attribute.
4669         * doc/invoke.texi: Document -mx87regparm.
4670
4671 2006-11-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4672
4673         * tree-flow.h (multiplier_allowed_in_address_p): Adjust prototype.
4674         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): New
4675         arg MODE; all callers changed.  Use it to determine validity per
4676         machine mode instead of using Pmode for all memory references.
4677         (get_address_cost): Likewise add and use new arg MEM_MODE.
4678
4679 2006-11-15  Rask Ingemann Lambertsen <rask@sygehus.dk>
4680             J"orn Rennecke <joern.rennecke@st.com>
4681
4682         * combine.c (likely_spilled_retval_1): Fix masking operation.
4683         (likely_spilled_retval_p): Use proper pattern for call to
4684         likely_spilled_retval_1.
4685
4686 2006-11-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4687
4688         * tree-ssa-loop-ivopts.c (determine_iv_costs): Fix formatting.
4689
4690         * config/bfin/bfin.c (legitimize_pic_address): Lose dead code
4691         that tests for CONSTANT_POOL_ADDRESS_P.
4692
4693 2006-11-15  Jakub Jelinek  <jakub@redhat.com>
4694
4695         PR tree-optimization/29581
4696         * lambda-code.c (replace_uses_equiv_to_x_with_y): Add YINIT,
4697         REPLACEMENTS, FIRSTBSI arguments.  If initial condition or
4698         type is different between Y and USE, create a temporary
4699         variable, initialize it at the beginning of the body bb
4700         and use it as replacement instead of Y.
4701
4702 2006-11-15  Paolo Bonzini  <bonzini@gnu.org>
4703
4704         PR middle-end/29753
4705         * gimplify.c (fold_indirect_ref_rhs): Use
4706         STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS.
4707
4708 2006-11-14  Richard Earnshaw  <rearnsha@arm.com>
4709
4710         * expmed.c (emit_store_flag_1): New function.
4711         (emit_store_flag): Call it.  If we can't find a suitable scc insn,
4712         try a cstore insn.
4713         * expr.c (do_store_flag): If we can't find a scc insn, try cstore.
4714         Use do_compare_rtx_and_jump.
4715         * arm.h (BRANCH_COST): Increase to 2 on Thumb.
4716         * arm.md (cstoresi4): New define_expand.
4717         (cstoresi_eq0_thumb, cstoresi_ne0_thumb): Likewise.
4718         (cstoresi_eq0_thumb_insn, cstore_ne0_thumb_insn): New patterns.
4719         (cstoresi_nltu_thumb, thumb_addsi3_addgeu): New patterns.
4720
4721 2006-11-14  Caroline Tice  <ctice@apple.com>
4722
4723         * dwarf2out.c (debug_pubtypes_section): New static global variable.
4724         (pubname_entry):  Add DEF_VEC_O and DEF_VEC_ALLOC_O statements for
4725         this type.
4726         (pubname_table):  Redefine as a vector.
4727         (pubtype_table):  New static global variable, defined as a vector.
4728         (pubname_table_allocated): Remove static global variable.
4729         (pubname_table_in_use): Remove static global variable.
4730         (PUBNAME_TABLE_INCREMENT): Remove constant.
4731         (size_of_pubnames): Add parameter to deal with either pubnames or
4732         pubtypes, and change code to deal with table being a vector.
4733         (add_pubname):  Change to deal with table being a vector.
4734         (add_pubtype):  New function.
4735         (output_pubnames): Add parameter to deal with either pubnames or
4736         pubtypes, and change code to deal with table being a vector.
4737         (gen_array_type_die):  Add call to add_pubtype.
4738         (gen_enumeration_type_die): Add call to add_pubtype.
4739         (gen_struct_or_union_type_die): Add call to add_pubtype.
4740         (gen_subroutine_type_die): Add call to add_pubtype.
4741         (gen_typedef_die):  Add call to add_pubtype.
4742         (dwarf2out_init): Add code to initialize pubname_table and
4743         pubtype_table vectors; also initialize debug_pubtypes_section.
4744         (prune_unused_types):  Change to deal with pubnames being a vector.
4745         (dwarf2out_finish): Change to deal with pubnames being a vector; add
4746         pubnames table to call to output_pubnames;  Add code to output pubtypes
4747         table if DEBUG_PUBTYPES_SECTION is defined.
4748         * config/darwin.c (darwin_file_start):  Add DEBUG_PUBTYPES_SECTION to
4749         debugnames.
4750         * config/darwin.h (DEBUG_PUBTYPES_SECTION): Define new global variable.
4751
4752 2006-11-14  Joseph Myers  <joseph@codesourcery.com>
4753
4754         * config/arm/arm.h (FUNCTION_ARG_ADVANCE): Only adjust
4755         iwmmxt_nregs if TARGET_IWMMXT_ABI.
4756         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4757         movv2si_internal): Support moves between core registers.
4758
4759 2006-11-14  Eric Christopher  <echristo@apple.com>
4760
4761         * configure: Regenerate with autoconf 2.59.
4762
4763 2006-11-14  Daniel Berlin  <dberlin@dberlin.org>
4764
4765         Fix PR tree-optimization/27755
4766
4767         * tree-ssa-pre.c: Update comments.
4768         (bb_bitmap_sets): Add pa_in and  deferred member.
4769         (BB_DEFERRED): New macro.
4770         (maximal_set): New variable.
4771         (pre_stats): Add pa_insert member.
4772         (bitmap_set_and): Short circuit orig == dest.
4773         (bitmap_set_subtract_values): New function.
4774         (bitmap_set_contains_expr): Ditto.
4775         (translate_vuses_through_block): Add phiblock argument.
4776         (dependent_clean): New function.
4777         (compute_antic_aux): Update for maximal_set changes.
4778         (compute_partial_antic_aux): New function.
4779         (compute_antic): Handle partial anticipation.
4780         (do_partial_partial_insertion): New function.
4781         (insert_aux): Handle partial anticipation.
4782         (add_to_sets): Add to maximal set.
4783         (compute_avail): Ditto.
4784         (init_pre): Initialize maximal_set.
4785         (execute_pre): Do partial anticipation if -O3+.
4786
4787 2006-11-14  Paolo Bonzini  <bonzini@gnu.org>
4788
4789         PR rtl-optimization/29798
4790
4791         * fwprop.c (use_killed_between): Check that DEF_INSN dominates
4792         TARGET_INSN before any other check.
4793         (fwprop_init): Always calculate dominators.
4794         (fwprop_done): Always free them.
4795
4796 2006-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4797
4798         * fold-const.c (fold_strip_sign_ops): Handle COMPOUND_EXPR and
4799         COND_EXPR.
4800
4801 2006-11-13  DJ Delorie  <dj@redhat.com>
4802
4803         * config/m32c/m32c.c (m32c_prepare_shift): Use a separate
4804         temporary for intermediates.
4805
4806 2006-11-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4807
4808         * config/sh/sh.c (expand_cbranchdi4): Initialize skip_label.
4809         (sh_optimize_target_register_callee_saved): #if 0 the code
4810         using NOTE_INSN_LOOP_{BEG,END}.
4811
4812 2006-11-13  Roger Sayle  <roger@eyesopen.com>
4813
4814         * fold-const.c (optimize_bit_field_compare): Recursively call
4815         fold when simplifying non-constant comparisons between bit-fields.
4816
4817 2006-11-13  Jakub Jelinek  <jakub@redhat.com>
4818
4819         * configure.ac: Add changequote around __LONG_DOUBLE_MATH_OPTIONAL
4820         test.
4821         * configure: Rebuilt.
4822
4823 2006-11-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4824
4825         * config/rs6000/cell.md: New file.
4826         * config/rs6000/rs6000.c (rs6000_cell_dont_microcode): New
4827         variable.
4828         (ppccell_cost): New cost matrix.
4829         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4830         (rs6000_override_options): Set rs6000_always_hint to false
4831         for cell. Also align functions/lables/loops to 8byte
4832         for the Cell. Use PROCESSOR_CELL.
4833         (rs6000_emit_epilogue): Rename using_mfcr_multiple to
4834         using_mtcr_multiple.
4835         (rs6000_variable_issue): If the insn is a nonpipelined instruction
4836         on the Cell, return 0.
4837         (rs6000_adjust_cost): Add Cell cost adjustments.
4838         (is_microcoded_insn): Return true for Cell microcoded
4839         instructions.
4840         (is_nonpipeline_insn): New function.
4841         (rs6000_issue_rate): Add PROCESSOR_CELL.
4842         (rs6000_use_sched_lookahead): If Cell, then we should look ahead 8
4843         instructions.
4844         (rs6000_use_sched_lookahead_guard): New function.
4845         (rs6000_sched_reorder):  Reorder the ready list, if the second
4846         to last ready insn is a nonepipeline insn on the Cell.
4847         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_CELL.
4848         (ASM_CPU_SPEC): Add Cell.
4849         * config/rs6000/rs6000.md (cpu): Add Cell.
4850         (cell_micro): New Attr.
4851         Include cell.md
4852
4853 2006-11-13  Jakub Jelinek  <jakub@redhat.com>
4854
4855         * configure.ac (ld_vers): Parse GNU ld version 2.17.50.0.3-6 20060715
4856         style versions.
4857         * configure: Rebuilt.
4858
4859 2006-11-13  Richard Guenther  <rguenther@suse.de>
4860
4861         * config/i386/i386.c (ix86_expand_lround): Handle expand_simple_binop
4862         return value.
4863         (ix86_expand_lfloorceil): Likewise.
4864         (ix86_expand_rint): Likewise.
4865         (ix86_expand_floorceildf_32): Likewise.
4866         (ix86_expand_floorceil): Likewise.
4867         (ix86_expand_rounddf_32): Likewise.
4868         (ix86_expand_truncdf_32): Likewise.
4869         (ix86_expand_round): Likewise.
4870
4871 2006-11-13  Carlos O'Donell  <carlos@codesourcery.com>
4872             Mark Mitchell  <mark@codesourcery.com>
4873
4874         * gcc.c: Organize search path variables into $prefix relative,
4875         and well-known native. Add comments.
4876         (add_sysrooted_prefix): Add comment.
4877         (process_command): If !gcc_exec_prefix add $prefix based paths.
4878         If *cross_compile == '0', add native well-known paths.
4879         Assert tooldir_base_prefix is always relative.
4880         (main): If print_search_dirs, and if gcc_exec_prefix is set,
4881         use this value for 'install:' path.
4882         * Makefile.in: Add GCC_EXEC_PREFIX to generated site.exp.
4883
4884 2006-11-13  H.J. Lu  <hongjiu.lu@intel.com>
4885
4886         * config/i386/i386.c: Fix a typo in comment.
4887
4888 2006-11-13  Michael Matz  <matz@suse.de>
4889
4890         * genemit.c (gen_expand): Allocate enough memory.
4891
4892 2006-11-13  Joseph Myers  <joseph@codesourcery.com>
4893
4894         * config/arm/bpapi.h (TARGET_BPABI_CPP_BUILTINS): Define
4895         __GXX_TYPEINFO_EQUALITY_INLINE but not
4896         __GXX_MERGED_TYPEINFO_NAMES.
4897         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Define
4898         __GXX_MERGED_TYPEINFO_NAMES.
4899         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
4900         __GXX_TYPEINFO_EQUALITY_INLINE.
4901
4902 2006-11-13  H.J. Lu  <hongjiu.lu@intel.com>
4903             Zdenek Dvorak <dvorakz@suse.cz>
4904
4905         PR tree-optimization/29680
4906         * tree-ssa-operands.c (access_can_touch_variable): Revert fix for
4907         PR 14784.
4908
4909 2006-11-12  Jason Merrill  <jason@redhat.com>
4910             Andrew Pinski <pinskia@physics.uc.edu>
4911
4912         PR middle-end/28915
4913         * gimplify.c (gimplify_init_constructor): Don't reduce TREE_CONSTANT
4914         vector ctors.
4915         * tree-cfg.c (verify_expr): Don't look into TREE_CONSTANT
4916         vector ctors.
4917         * expmed.c (make_tree): Handle CONST, SYMBOL_REF.
4918         * tree.c (build_vector): Handle non-_CST elements.
4919
4920 2006-11-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4921
4922         * genemit.c (gen_insn): Call gen_exp with a non-null used
4923         when handling multiple insns.
4924         (gen_expand): Likewise.
4925         * reorg.c (emit_delay_sequence): Copy the delay slot insn.
4926         * config/sh/sh.md (ashrsi2_31+1): Copy operands[0].
4927         (movsi_const_16bit+1): Copy operands[1].
4928         (call_pcrel): Copy the call_site pattern.
4929         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4930
4931 2006-11-12  Roger Sayle  <roger@eyesopen.com>
4932
4933         * fold-const.c (negate_expr_p) <PLUS_EXPR, MINUS_EXPR>: Correct/refine
4934         condition for transformations.  Use !HONOR_SIGN_DEPENDENT_ROUNDING
4935         && !HONOR_SIGNED_ZEROS instead of flag_unsafe_math_optimizations.
4936         (fold_negate_expr) <PLUS_EXPR, MINUS_EXPR>: Likewise.
4937
4938 2006-11-12  Daniel Berlin  <dberlin@dberlin.org>
4939
4940         Fix PR tree-optimization/29587
4941         * tree-ssa-structalias.c (process_constraint): Don't
4942         mark address taken due only to escaped vars constraint.
4943
4944 2006-11-12  Michael Matz  <matz@suse.de>
4945             Roger Sayle  <roger@eyesopen.com>
4946
4947         PR rtl-optimization/29797
4948         * ifcvt.c (noce_try_bitop): Correct calculation of bitnum on
4949         BITS_BIG_ENDIAN targets.
4950
4951 2006-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4952
4953         * builtins.c (fold_builtin_cosh): New.
4954         (fold_builtin_1): Use it.
4955         * fold-const.c (negate_mathfn_p): Add llround, lround, round,
4956         trunc to the list of "odd" functions.  Also add llrint, lrint,
4957         rint and nearbyint when flag_rounding_math is false.
4958
4959 2006-11-12  Zdenek Dvorak <dvorakz@suse.cz>
4960
4961         * tree-flow.h (name_mappings_registered_p): Declare.
4962         * tree-into-ssa.c (name_mappings_registered_p): New function.
4963         * tree-cfg.c (tree_can_merge_blocks_p): Check
4964         name_mappings_registered_p instead of need_ssa_update_p.
4965
4966 2006-11-12  Zdenek Dvorak <dvorakz@suse.cz>
4967
4968         * tree-ssa-loop.c (tree_vectorize): Return the result of
4969         vectorize_loops.
4970         * tree-vectorizer.c (vectorize_loops): Return TODO_cleanup_cfg
4971         if anything changed.
4972         * tree-vectorizer.h (vectorize_loops): Declaration removed.
4973         * tree-flow.h (vectorize_loops): Declaration changed.
4974
4975 2006-11-12  Zdenek Dvorak <dvorakz@suse.cz>
4976
4977         * tree-ssa-loop-prefetch.c (schedule_prefetches): Cleanup and improve
4978         comments.
4979         (issue_prefetch_ref): Move assignment to write_p out of loop.
4980         (determine_unroll_factor): Do not take PARAM_MAX_UNROLL_TIMES and
4981         SIMULTANEOUS_PREFETCHES into account.
4982         (loop_prefetch_arrays): Do not pass ahead to determine_unroll_factor.
4983         * lambda-code.c (lcm): Renamed to ...
4984         (least_common_multiple): ... and exported.
4985         * tree-flow.h (least_common_multiple): Declare.
4986
4987 2006-11-12  Zdenek Dvorak <dvorakz@suse.cz>
4988
4989         * Makefile.in (tree-data-ref.o): Add langhooks.h dependency.
4990         * tree-ssa-loop-niter.c (derive_constant_upper_bound):  Follow
4991         ud-chains.  Handle AND_EXPR.
4992         (record_estimate): Record whether the estimate is realistic
4993         and whether it is derived from a loop exit.
4994         (record_nonwrapping_iv, idx_infer_loop_bounds, infer_loop_bounds_from_ref,
4995         infer_loop_bounds_from_array, infer_loop_bounds_from_signedness): New
4996         functions.
4997         (compute_estimated_nb_iterations): Take only realistic bounds into
4998         account.  Set estimate_state.  Use double_ints.
4999         (infer_loop_bounds_from_undefined): Call infer_loop_bounds_from_array
5000         and infer_loop_bounds_from_signedness.  Do not consider basic blocks
5001         that do not have to be always executed.
5002         (estimate_numbers_of_iterations_loop): Set estimate_state, and use it
5003         to determine whether to call infer_loop_bounds_from_undefined
5004         and compute_estimated_nb_iterations.
5005         (n_of_executions_at_most): Use double_ints.
5006         (free_numbers_of_iterations_estimates_loop): Set estimate_state.
5007         (substitute_in_loop_info): Do not replace in estimated_nb_iterations.
5008         * double-int.c (double_int_to_tree): Improve comment.
5009         (double_int_fits_to_tree_p): New function.
5010         * double-int.h (double_int_fits_to_tree_p): Declare.
5011         * tree-data-ref.c: Include langhooks.h.
5012         (estimate_niter_from_size_of_data, estimate_iters_using_array): Removed.
5013         (analyze_array_indexes): Do not call estimate_niter_from_size_of_data.
5014         (analyze_array): Do not pass estimate_only argument to
5015         analyze_array_indexes.
5016         (get_number_of_iters_for_loop): Build tree from the stored double_int
5017         value.
5018         (get_references_in_stmt, find_data_references_in_stmt): New functions.
5019         (find_data_references_in_loop): Use find_data_references_in_stmt.
5020         * tree-data-ref.h (struct data_ref_loc_d): New.
5021         (get_references_in_stmt): Declare.
5022         (estimate_iters_using_array): Declaration removed.
5023         * cfgloop.h (struct nb_iter_bound): Change type of bound to
5024         double_int.  Improve comments.  Add is_exit and realistic
5025         fields.
5026         (struct loop): Changed type of estimated_nb_iterations to double_int.
5027         Added estimate_state field.
5028         (record_estimate): Declaration removed.
5029
5030 2006-11-12  Zdenek Dvorak <dvorakz@suse.cz>
5031
5032         * params.c (set_param_value): Initialize the "set" field.
5033         * params.h (struct param_info): Add "set" field.
5034         (PARAM_SET_P): New macro.
5035         (PREFETCH_LATENCY, SIMULTANEOUS_PREFETCHES, L1_CACHE_SIZE,
5036         L1_CACHE_LINE_SIZE): New macros.
5037         * toplev.c (DEFPARAM): Initialize the "set" field.
5038         * tree-ssa-loop-prefetch.c (PREFETCH_LATENCY,
5039         SIMULTANEOUS_PREFETCHES): Removed.
5040         (PREFETCH_BLOCK): Use L1_CACHE_LINE_SIZE.
5041         (tree_ssa_prefetch_arrays): Dump the values of the parameters.
5042         * config/sparc/sparc.c: Include params.h.
5043         (sparc_override_options): Set SIMULTANEOUS_PREFETCHES and
5044         L1_CACHE_LINE_SIZE parameters.
5045         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5046         Removed.
5047         * config/i386/i386.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5048         Removed.
5049         * config/i386/i386.c: Include params.h.
5050         (k8_cost): Change default value for SIMULTANEOUS_PREFETCHES.
5051         (override_options): Set SIMULTANEOUS_PREFETCHES and
5052         L1_CACHE_LINE_SIZE parameters.
5053         * config/sh/sh.h (SIMULTANEOUS_PREFETCHES): Removed.
5054         (OPTIMIZATION_OPTIONS): Set SIMULTANEOUS_PREFETCHES and
5055         L1_CACHE_LINE_SIZE parameters.
5056         * config/ia64/ia64.c (ia64_optimization_options): Set
5057         SIMULTANEOUS_PREFETCHES and L1_CACHE_LINE_SIZE parameters.
5058         * config/ia64/ia64.h (SIMULTANEOUS_PREFETCHES, PREFETCH_BLOCK):
5059         Removed.
5060         * params.def (PARAM_PREFETCH_LATENCY, PARAM_SIMULTANEOUS_PREFETCHES,
5061         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE): New params.
5062         * doc/invoke.texi: Document new params.
5063
5064 2006-11-12  Roger Sayle  <roger@eyesopen.com>
5065
5066         PR tree-optimization/13827
5067         * fold-const.c (fold_binary) <EQ_EXPR, NE_EXPR>: Fold (X&C) op (Y&C)
5068         as ((X^Y)&C) op 0.
5069
5070 2006-11-12  Zdenek Dvorak <dvorakz@suse.cz>
5071
5072         * cfgloopmanip.c (update_single_exit_for_duplicated_loop,
5073         update_single_exit_for_duplicated_loops): New functions.
5074         (duplicate_loop_to_header_edge): Use
5075         update_single_exit_for_duplicated_loops.
5076         * tree-ssa-loop-manip.c (tree_unroll_loop): Call verification
5077         functions only with ENABLE_CHECKING.
5078
5079 2006-11-12  Andreas Schwab  <schwab@suse.de>
5080
5081         * except.c (sjlj_emit_function_enter): Remove unused variable.
5082
5083 2006-11-11  Roger Sayle  <roger@eyesopen.com>
5084
5085         * fold-const.c (int_binop_types_match_p): New function.
5086         (size_binop): Relax constraint that both arguments must both have
5087         exactly the same sizetype type.  Instead use int_binop_types_match_p.
5088         (size_diffop): Likewise.
5089
5090         (make_range): Use build_int_cst instead of fold_convert.
5091         (fold_cond_expr_with_comparison): Use build_int_cst to construct
5092         integer constants of the correct type.
5093         (fold_div_compare): Likewise.
5094         (fold_single_bit_test): Likewise.
5095         (fold_binary): Likewise.
5096         * stor-layout.c (layout_type) <VECTOR_TYPE>: Ensure that TYPE_SIZE
5097         has type bitsizetype and TYPE_SIZE_UNIT has type sizetype.
5098
5099 2006-11-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5100
5101         PR rtl-opt/28812
5102         * alias.c (fixed_scalar_and_varying_struct_p): Don't return a
5103         non null value if the struct memory access is in the 0th
5104         aliasing set.
5105
5106 2006-11-12  Jie Zhang  <jie.zhang@analog.com>
5107
5108         Revert
5109         2006-11-11  Jie Zhang  <jie.zhang@analog.com>
5110         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
5111         and __BFIN__.
5112
5113         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Use builtin_define_std
5114         instead of builtin_define for bfin and BFIN.
5115
5116 2006-11-11  Jie Zhang  <jie.zhang@analog.com>
5117
5118         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
5119         and __BFIN__.
5120
5121 2006-11-11  Jan Hubicka  <jh@suse.cz>
5122
5123         * extend.texi (__builtin_expect): We no longer require second argument
5124         to be constant.
5125         * gengtype.c (adjust_field_rtx_def): Drop NOTE_INSN_EXPECTED_VALUE.
5126         * builtins.c (expand_builtin_expect): Simplify.
5127         (expand_builtin_expect_jump): Kill.
5128         * final.c (final_scan_insn): Do not skip the removed notes.
5129         * insn-notes.def (LOOP_BEG, LOOP_END, REPEATED_LINE_NUMBER,
5130         EXPECTED_VALUE): Remove.
5131         * dojump.c (do_jump): Do not care about __builtin_expect.
5132         * predict.c (expected_value_to_br_prob): Kill.
5133         * function.c (expand_function_end): Do not expand
5134         NOTE_INSN_REPEATED_LINE_NUMBER.
5135         * print-rtl.c (print_rtx): Do not pretty print the removed notes.
5136         * expect.c (sjlj_emit_function_enter): Emit directly branch probability.
5137         * cfgexpand.c (add_reg_br_prob_note): Export.
5138         * cfgcleanup.c (rest_of_handle_jump2): Do not call
5139         expected_value_to_br_prob.
5140         * cfglayout.c (duplicate_insn_chain): Do not deal with removed notes.
5141         * rtl.h (add_reg_br_prob_note): Declare.
5142
5143 2006-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5144
5145         * tree-pretty-print.c (dump_generic_node): Print sign of Inf.
5146
5147 2006-11-11  Jan Hubicka  <jh@suse.cz>
5148
5149         * predict.c (predict_loops): Kill RTL variant.
5150
5151 2006-11-11  Jan Hubicka  <jh@suse.cz>
5152
5153         * tree-pass.h (pass_purge_lineno_notes): Remove declaration.
5154         * modulo-sched.c (find_line_note): Remove.
5155         (loop_canon_p): Do not worry about line number notes.
5156         (sms_schedule): Likewise.
5157         * cse.c (cse_main): Likewise.
5158         * regmove.c (fixup_match_1): Likewise
5159         * function.c (emit_return_info_block): Likewise.
5160         (expand_function_end): Likewise.
5161         (thread_prologue_an_epilogue_insns): Likewise.
5162         * cfgrtl.c (try_redirect_by_replacing_jump, rtl_tidy_fallthru_edge):
5163         Likewise.
5164         * emit-rtl.c (find_line_note, emit_insn_after_with_line_notes,
5165         emit_note_copy_after): Kill.
5166         (emit_note_copy): Do not worry about line numbers.
5167         * jump.c (purge_line_number_notes): Kill.
5168         (pass_purge_lineno_notes): Kill.
5169         * cfgcleanup.c (rest_of_handle_jump2): Kill purge_line_number_notes
5170         call.
5171         * rtl.h (emit_note_copy_after, emit_insn_after_with_line_notes): Kill.
5172         * passes.c (init_optimization_passes): Don't purge_lineno_notes.
5173         * sched-ebb.c (schedule_ebbs): Don't do rm_redundant_line_notes.
5174         * tree-pass.h (pass_purge_lineno_notes): Kill.
5175         * sched-ebb.c (schedule_ebb): Don't rm_line_notes,
5176         rm_redundant_line_notes.
5177         * sched-rgb.c (schedule_region): Don't rm_line_notes,
5178         rm_redundant_line_notes.
5179         * sched-int.h (rm_line_notes, rm_redundant_line_notes): Kill.
5180         * haifa-sched.c: Update comment about handling notes.
5181         (unlink_line_notes): Kill.
5182         (rm_line_notes): Kill.
5183         (save_line_notes): Simplify.
5184         (rm_redundant_line_notes): Kill.
5185
5186 2006-11-11  Richard Guenther  <rguenther@suse.de>
5187
5188         * tree.def (FIX_CEIL_EXPR, FIX_FLOOR_EXPR, FIX_ROUND_EXPR):
5189         Remove unused tree codes.
5190         * tree-vrp.c (extract_range_from_unary_expr): Remove handling
5191         of FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
5192         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5193         * tree.c (stabilize_reference): Likewise.
5194         * fold-const.c (fold_convert_const_int_from_real, operand_equal_p,
5195         fold_unary): Likewise.
5196         * tree-gimple.c (is_gimple_cast): Likewise.
5197         * dwarf2out.c (loc_descriptor_from_tree_1): Likewise.
5198         * expr.c (expand_expr_real_1): Likewise.
5199         * tree-eh.c (tree_could_trap_p): Likewise.
5200         * gimplify.c (gimplify_expr): Likewise.
5201         * tree-inline.c (estimate_num_insns_1): Likewise.
5202         * tree-cfg.c (verify_expr): Likewise.
5203
5204 2006-11-11  Zdenek Dvorak <dvorakz@suse.cz>
5205
5206         * tree-ssa-loop.c (pass_loop_prefetch): Change name to aprefetch.
5207         * tree-ssa-loop-prefetch.c (dump_mem_ref): Fix target file.
5208         (tree_ssa_prefetch_arrays): Do not dump for removed loops.
5209
5210 2006-11-11  Richard Sandiford  <richard@codesourcery.com>
5211
5212         PR middle-end/27528
5213         * stmt.c (expand_asm_operands): Use EXPAND_INITIALIZER if the
5214         constraints accept neither registers or memories.
5215
5216 2006-11-11  Jie Zhang  <jie.zhang@analog.com>
5217
5218         * config/bfin/bfin.h (FUNCTION_PROFILER): Don't use LABELNO.
5219         (NO_PROFILE_COUNTERS): Define as 1.
5220
5221 2006-11-10  Roger Sayle  <roger@eyesopen.com>
5222
5223         * fold-const.c (operand_equal_p) <INTEGER_CST, REAL_CST, VECTOR_CST>:
5224         Don't check for TREE_CONSTANT_OVERFLOW when comparing constants.
5225
5226 2006-11-10  Peter Bergner  <bergner@vnet.ibm.com>
5227
5228         * rtl.h (MEM_COPY_ATTRIBUTES): Copy MEM_POINTER.
5229
5230 2006-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5231
5232         * builtins.c (fold_builtin_cos): Use fold_strip_sign_ops().
5233         (fold_builtin_hypot): Likewise.
5234         * fold-const.c (fold_strip_sign_ops): Handle "odd" builtins.
5235
5236         * fold-const.c (negate_mathfn_p): Add BUILT_IN_ERF.
5237
5238 2006-11-10  Roger Sayle  <roger@eyesopen.com>
5239
5240         * tree.c (build_int_cst_wide): Add an assertion (gcc_unreachable)
5241         when attempting to build INTEGER_CSTs of non-integral types.
5242         * expmed.c (make_tree): Use the correct type, i.e. the inner
5243         type, when constructing the individual elements of a CONST_VECTOR.
5244
5245 2006-11-10  Jan Hubicka  <jh@suse.cz>
5246
5247         * cse.c (cse_process_notes): Copy the propagated value.
5248         * local-alloc.c (update_equiv_regs): Copy the memory RTX to be used
5249         in REG_EQUIV notes.
5250         * gcse.c (try_replace_reg): Copy the replacement.
5251         * i386.c (emit_i387_cw_initialization): Copy stored_mode.
5252         (assign_386_stack_local): Always return copied memory expression
5253         * function.c (instantiate_virtual_regs_in_insn): Copy the operand
5254         duplicates.
5255
5256 2006-11-10  Jan Hubicka  <jh@suse.cz>
5257
5258         * final.c (final): Walk from first instruction.
5259         * cfglayout.c (insn_locators_initialize): Remove line number notes.
5260
5261 2006-11-10  Uros Bizjak  <ubizjak@gmail.com>
5262
5263         PR target/29777
5264         * config/i386/sse.md (smulv8hi3_highpart): Change from define_insn
5265         to define_expand.
5266         (umulv8hi3_highpart): Ditto.
5267         (vec_widen_smult_hi_v8hi): New expander.
5268         (vec_widen_smult_lo_v8hi): Ditto.
5269
5270 2006-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5271
5272         PR middle-end/29335
5273         * builtins.c (do_mpfr_arg3): New.
5274         (fold_builtin_1): Handle builtins fma, fmin and fmax.
5275
5276 2006-11-09  Eric Christopher  <echristo@apple.com>
5277
5278         PR bootstrap/26892
5279         PR bootstrap/27814
5280         PR other/28994
5281         * configure.ac: Match powerpc*-*-darwin* for powerpc darwin checks.
5282         * config.gcc (powerpc64-*-darwin*): New target.
5283         * config.host: Ditto.
5284         * config/rs6000/darwin64.h: New file.
5285         * config/rs6000/x-darwin64: Ditto.
5286         * config/rs6000/host-ppc64-darwin.c: Ditto.
5287
5288 2006-11-09  Steve Ellcey  <sje@cup.hp.com>
5289
5290         * config/ia64/ia64.c (ia64_hpux_init_libfuncs):  Use HP-UX millicode
5291         routines for integer division.
5292
5293 2006-11-09  Daniel Jacobowitz  <dan@codesourcery.com>
5294
5295         * config/arm/t-linux (LIBGCC2_DEBUG_CFLAGS): Delete.
5296
5297 2006-11-09  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5298
5299         PR middle-end/29726
5300         * fold-const.c (fold_binary) <EQ_EXPR>: Fix typo in variable name.
5301
5302 2006-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
5303
5304         * simplify-rtx.c (avoid_constant_pool_reference): Avoid calling
5305         simplify_subreg with BLKmode outer mode.
5306
5307 2006-11-08  Brooks Moses  <brooks.moses@codesourcery.com>
5308
5309         * doc/invoke.texi: Minor formatting fixes in option lists.
5310
5311 2006-11-08  Zdenek Dvorak <dvorakz@suse.cz>
5312
5313         PR tree-optimization/29738
5314         * tree-ssa-ccp.c: Remove UNKNOWN_VAL from comments.
5315         (ccp_lattice_t): Remove UNKNOWN_VAL.
5316         (dump_lattice_value, ccp_lattice_meet, ccp_visit_phi_node):
5317         Do not handle UNKNOWN_VAL.
5318         (get_default_value): Set initial value of virtual operands to
5319         VARYING.
5320         (get_value): Always use get_default_value on uninitialized
5321         operands.
5322         (set_value_varying, surely_varying_stmt_p): New functions.
5323         (set_lattice_value): Do not pass argument to get_value.
5324         Do not handle UNKNOWN_VAL.
5325         (likely_value): Follow the semantics described in the comment.
5326         (ccp_initialize): Use surely_varying_stmt_p.  Do not mark
5327         phi nodes DONT_SIMULATE_AGAIN.
5328         (ccp_fold): Do not pass argument to get_value.
5329         (fold_const_aggregate_ref, visit_assignment): Ditto.  Do not
5330         handle UNKNOWN_VAL.
5331
5332 2006-11-08  Andrew Pinski  <Andrew_Pinski@playstation.sony.com>
5333
5334         * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
5335         HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.
5336
5337 2006-11-08  Roger Sayle  <roger@eyesopen.com>
5338
5339         * tree-ssa-propagate.c (set_rhs): Restructure validity tests as a
5340         test for inclusion rather than as a test for exclusion.
5341         * tree-ssa-ccp.c (fold_stmt_r) <COND_EXPR>: Use set_rhs to modify
5342         the condition after calling fold_binary.
5343         * fold-const.c (fold_inf_compare): Remove in_gimple_form check.
5344         (fold_binary) <LT_EXPR, GT_EXPR, LE_EXPR, GE_EXPR>: Likewise.
5345         * builtins.c (fold_builtin_isascii): Likewise.
5346         (fold_builtin_isdigit): Likewise.
5347
5348 2006-11-08  Carlos O'Donell  <carlos@codesourcery.com>
5349
5350         * configure.ac: Do not set PREFIX_INCLUDE_DIR if $prefix is NONE.
5351         * configure: Regenerate.
5352
5353 2006-11-08  Dorit Nuzman  <dorit@il.ibm.com>
5354
5355         * tree-vect-analyze.c (vect_mark_relevant, vect_stmt_relevant_p): Take
5356         enum argument instead of bool.
5357         (vect_analyze_operations): Call vectorizable_type_promotion.
5358         * tree-vectorizer.h (type_promotion_vec_info_type): New enum
5359         stmt_vec_info_type value.
5360         (supportable_widening_operation, vectorizable_type_promotion): New
5361         function declarations.
5362         * tree-vect-transform.c (vect_gen_widened_results_half): New function.
5363         (vectorizable_type_promotion): New function.
5364         (vect_transform_stmt): Call vectorizable_type_promotion.
5365         * tree-vect-analyze.c (supportable_widening_operation): New function.
5366         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
5367         Add implementation.
5368         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
5369         mode.
5370
5371         * tree.def (VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR):
5372         (VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR): New tree-codes.
5373         * tree-inline.c (estimate_num_insns_1): Add cases for above new
5374         tree-codes.
5375         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5376         * expr.c (expand_expr_real_1): Likewise.
5377         * optabs.c (optab_for_tree_code): Likewise.
5378         (init_optabs): Initialize new optabs.
5379         * genopinit.c (vec_widen_umult_hi_optab, vec_widen_smult_hi_optab,
5380         vec_widen_smult_hi_optab, vec_widen_smult_lo_optab,
5381         vec_unpacks_hi_optab, vec_unpacks_lo_optab, vec_unpacku_hi_optab,
5382         vec_unpacku_lo_optab): Initialize new optabs.
5383         * optabs.h (OTI_vec_widen_umult_hi, OTI_vec_widen_umult_lo):
5384         (OTI_vec_widen_smult_h, OTI_vec_widen_smult_lo, OTI_vec_unpacks_hi,
5385         OTI_vec_unpacks_lo, OTI_vec_unpacku_hi, OTI_vec_unpacku_lo): New
5386         optab indices.
5387         (vec_widen_umult_hi_optab, vec_widen_umult_lo_optab):
5388         (vec_widen_smult_hi_optab, vec_widen_smult_lo_optab):
5389         (vec_unpacks_hi_optab, vec_unpacku_hi_optab, vec_unpacks_lo_optab):
5390         (vec_unpacku_lo_optab): New optabs.
5391         * doc/md.texi (vec_unpacks_hi, vec_unpacks_lo, vec_unpacku_hi):
5392         (vec_unpacku_lo, vec_widen_umult_hi, vec_widen_umult_lo):
5393         (vec_widen_smult_hi, vec_widen_smult_lo): New.
5394         * doc/c-tree.texi (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR):
5395         (VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR, VEC_UNPACK_HI_EXPR):
5396         (VEC_UNPACK_LO_EXPR, VEC_PACK_MOD_EXPR, VEC_PACK_SAT_EXPR): New.
5397
5398         * config/rs6000/altivec.md (UNSPEC_VMULWHUB, UNSPEC_VMULWLUB):
5399         (UNSPEC_VMULWHSB, UNSPEC_VMULWLSB, UNSPEC_VMULWHUH, UNSPEC_VMULWLUH):
5400         (UNSPEC_VMULWHSH, UNSPEC_VMULWLSH): New.
5401         (UNSPEC_VPERMSI, UNSPEC_VPERMHI): New.
5402         (vec_vperm_v8hiv4si, vec_vperm_v16qiv8hi): New patterns used to
5403         implement the unsigned unpacking patterns.
5404         (vec_unpacks_hi_v16qi, vec_unpacks_hi_v8hi, vec_unpacks_lo_v16qi):
5405         (vec_unpacks_lo_v8hi): New signed unpacking patterns.
5406         (vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi):
5407         (vec_unpacku_lo_v8hi): New unsigned unpacking patterns.
5408         (vec_widen_umult_hi_v16qi, vec_widen_umult_lo_v16qi):
5409         (vec_widen_smult_hi_v16qi, vec_widen_smult_lo_v16qi):
5410         (vec_widen_umult_hi_v8hi, vec_widen_umult_lo_v8hi):
5411         (vec_widen_smult_hi_v8hi, vec_widen_smult_lo_v8hi): New widening
5412         multiplication patterns.
5413
5414         * target.h (builtin_mul_widen_even, builtin_mul_widen_odd): New.
5415         * target-def.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN):
5416         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5417         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): New.
5418         (rs6000_builtin_mul_widen_odd): New.
5419         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Defined.
5420         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Defined.
5421         * tree-vectorizer.h (enum vect_relevant): New enum type.
5422         (_stmt_vec_info): Field relevant chaned from bool to enum
5423         vect_relevant.
5424         (STMT_VINFO_RELEVANT_P): Updated.
5425         (STMT_VINFO_RELEVANT): New.
5426         * tree-vectorizer.c (new_stmt_vec_info): Use STMT_VINFO_RELEVANT
5427         instead of STMT_VINFO_RELEVANT_P.
5428         * tree-vect-analyze.c (vect_mark_relevant, vect_stmt_relevant_p):
5429         Replace calls to STMT_VINFO_RELEVANT_P with STMT_VINFO_RELEVANT,
5430         and boolean variable with enum vect_relevant.
5431         (vect_mark_stmts_to_be_vectorized): Likewise + update documentation.
5432         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
5433         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5434
5435         2006-11-08  Richard Henderson  <rth@redhat.com>
5436
5437         * config/i386/sse.md (vec_widen_umult_hi_v8hi,
5438         vec_widen_umult_lo_v8hi): New.
5439         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si,
5440         vec_widen_umult_hi_v4si, vec_widen_umult_lo_v4si): New.
5441
5442         * config/i386/i386.c (ix86_expand_sse_unpack): New.
5443         * config/i386/i386-protos.h (ix86_expand_sse_unpack): New.
5444         * config/i386/sse.md (vec_unpacku_hi_v16qi, vec_unpacks_hi_v16qi,
5445         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi, vec_unpacku_hi_v8hi,
5446         vec_unpacks_hi_v8hi, vec_unpacku_lo_v8hi, vec_unpacks_lo_v8hi,
5447         vec_unpacku_hi_v4si, vec_unpacks_hi_v4si, vec_unpacku_lo_v4si,
5448         vec_unpacks_lo_v4si): New.
5449
5450         2006-11-08  Dorit Nuzman  <dorit@il.ibm.com>
5451
5452         * tree-vect-transform.c (vectorizable_type_demotion): New function.
5453         (vect_transform_stmt): Add case for type_demotion_vec_info_type.
5454         (vect_analyze_operations): Call vectorizable_type_demotion.
5455         * tree-vectorizer.h (type_demotion_vec_info_type): New enum
5456         stmt_vec_info_type value.
5457         (vectorizable_type_demotion): New function declaration.
5458         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
5459         mode.
5460
5461         * tree.def (VEC_PACK_MOD_EXPR, VEC_PACK_SAT_EXPR): New tree-codes.
5462         * expr.c (expand_expr_real_1): Add case for VEC_PACK_MOD_EXPR and
5463         VEC_PACK_SAT_EXPR.
5464         * tree-iniline.c (estimate_num_insns_1): Likewise.
5465         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5466         * optabs.c (optab_for_tree_code): Likewise.
5467
5468         * optabs.c (expand_binop): In case of vec_pack_*_optabs the mode
5469         compared against the predicate of the result is not 'mode' (the input
5470         to the function) but a mode with half the size of 'mode'.
5471         (init_optab): Initialize new optabs.
5472         * optabs.h (OTI_vec_pack_mod, OTI_vec_pack_ssat, OTI_vec_pack_usat):
5473         New optab indices.
5474         (vec_pack_mod_optab, vec_pack_ssat_optab,  vec_pack_usat_optab): New
5475         optabs.
5476         * genopinit.c (vec_pack_mod_optab, vec_pack_ssat_optab):
5477         (vec_pack_usat_optab): Initialize new optabs.
5478         * doc/md.texi (vec_pack_mod, vec_pack_ssat, vec_pack_usat): New.
5479         * config/rs6000/altivec.md (vec_pack_mod_v8hi, vec_pack_mod_v4si): New.
5480
5481         2006-11-08  Richard Henderson  <rth@redehat.com>
5482
5483         * config/i386/sse.md (vec_pack_mod_v8hi, vec_pack_mod_v4si):
5484         (vec_pack_mod_v2di, vec_interleave_highv16qi, vec_interleave_lowv16qi):
5485         (vec_interleave_highv8hi, vec_interleave_lowv8hi):
5486         (vec_interleave_highv4si, vec_interleave_lowv4si):
5487         (vec_interleave_highv2di, vec_interleave_lowv2di): New.
5488
5489         2006-11-08  Dorit Nuzman  <dorit@il.ibm.com>
5490
5491         * tree-vect-transform.c (vectorizable_reduction): Support multiple
5492         datatypes.
5493         (vect_transform_stmt): Removed redundant code.
5494
5495         2006-11-08  Dorit Nuzman  <dorit@il.ibm.com>
5496
5497         * tree-vect-transform.c (vectorizable_operation): Support multiple
5498         datatypes.
5499
5500         2006-11-08  Dorit Nuzman  <dorit@il.ibm.com>
5501
5502         * tree-vect-transform.c (vect_align_data_ref): Removed.
5503         (vect_create_data_ref_ptr): Added additional argument - ptr_incr.
5504         Updated function documentation. Return the increment stmt in ptr_incr.
5505         (bump_vector_ptr): New function.
5506         (vect_get_vec_def_for_stmt_copy): New function.
5507         (vect_finish_stmt_generation): Create a stmt_info to newly created
5508         vector stmts.
5509         (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
5510         argument.
5511         (vectorizable_reduction, vectorizable_assignment): Not supported yet if
5512         VF is greater than the number of elements that can fit in one vector
5513         word.
5514         (vectorizable_operation, vectorizable_condition): Likewise.
5515         (vectorizable_store, vectorizable_load): Support the case that the VF
5516         is greater than the number of elements that can fit in one vector word.
5517         (vect_transform_loop): Don't fail in case of multiple data-types.
5518         * tree-vect-analyze.c (vect_determine_vectorization_factor): Don't fail
5519         in case of multiple data-types; the smallest type determines the VF.
5520         (vect_analyze_data_ref_dependence): Don't record datarefs as same_align
5521         if they are of different sizes.
5522         (vect_update_misalignment_for_peel): Compare misalignments in terms of
5523         number of elements rather than number of bytes.
5524         (vect_enhance_data_refs_alignment): Fix/Add dump printouts.
5525         (vect_can_advance_ivs_p): Fix a dump printout
5526
5527 2006-11-07  Eric Christopher  <echristo@apple.com>
5528
5529         * libgcc2.c (__bswapdi2): Rename from bswapDI2.
5530         (__bswapsi2): Ditto.
5531         * libgcc2.h: Remove transformation of bswap routines.
5532         * config/i386/i386.md (bswapsi2): New.
5533         (bswapdi2): Ditto.
5534
5535 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
5536
5537         * c-common.c (c_common_attributes): Add gnu_inline attribyte.
5538         (handle_gnu_inline_attribute): New function.
5539         * c-decl.c (diagnose_mismatched_decls): Handle gnu_inline attribute.
5540         (merge_decls, start_decl, start_function): Likewise.
5541         * doc/extend.texi: Document gnu_inline attribute.
5542
5543 2006-11-07  Steve Ellcey  <sje@cup.hp.com>
5544
5545         PR other/25028
5546         * config/ia64/t-hpux (LIB1ASMFUNCS):  Filter out _fixtfdi,
5547         _fixunstfdi, and  _floatditf
5548
5549 2006-11-06  Anatoly Sokolov <aesok@post.ru>
5550
5551         * config/avr/avr-protos.h (mask_one_bit_p, const_int_pow2_p): Remove
5552         prototype.
5553         * config/avr/avr.c (mask_one_bit_p, const_int_pow2_p): Remove.
5554         (output_movhi, ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out,
5555         lshrhi3_out, lshrsi3_out): Remove unnecessary code for handling value
5556         which start in an odd register.
5557
5558 2006-11-07  Richard Sandiford  <richard@codesourcery.com>
5559
5560         * config/mips/mips.h (ISA_HAS_PREFETCHX): Fix typo.
5561
5562 2006-11-07  Josh Conner  <jconner@apple.com>
5563
5564         * doc/invoke.texi (fstrict-aliasing): Move implementation
5565         details...
5566         * doc/tree-ssa.texi (Alias analysis): ...here.
5567
5568 2006-11-07  Richard Guenther  <rguenther@suse.de>
5569
5570         PR tree-optimization/29610
5571         * tree-cfgcleanup.c (cleanup_control_flow): Honor return value
5572         of tree_purge_dead_eh_edges as it may free dominators.
5573
5574         * g++.dg/other/pr29610.C: New testcase.
5575
5576 2006-11-07  David Ung  <davidu@mips.com>
5577
5578         * config/mips/mips.c (mips_rtx_cost_optimize_size): New table of
5579         costs when optimizing for size.
5580         (override_options): Use mips_rtx_cost_optimize_size table for cost
5581         calculations.
5582
5583 2006-11-07  Jie Zhang  <jie.zhang@analog.com>
5584
5585         * gcc.c (process_command): Treat -b as normal switch if its argument
5586         has no dash.
5587
5588 2006-11-07  David Ung  <davidu@mips.com>
5589
5590         * config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the
5591         list.
5592
5593 2006-11-06  Eric Christopher  <echristo@apple.com>
5594
5595         * config.gcc: Add x86_64-darwin host support.
5596         * config.host: Ditto.
5597         * config/i386/darwin64.h: New file.
5598         * config/i386/t-darwin64: Ditto.
5599
5600 2006-11-06  Janis Johnson  <janis187@us.ibm.com>
5601
5602         * gcc/doc/sourcebuild.texi (Test Directives): Add output-exists
5603         and output-exists-not.
5604
5605 2006-11-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5606
5607         PR tree-opt/29439
5608         * tree-vrp.c (vrp_int_const_binop): Use the correct tree when
5609         checking for overflow.
5610
5611 2006-11-06  Jan van Dijk  <jan@etpmod.phys.tue.nl>
5612
5613         * configure.ac: Fixed typo in case statement: :: changed to ;;
5614
5615 2006-11-06  Bob Wilson  <bob.wilson@acm.org>
5616
5617         * longlong.h (__xtensa__): Add definitions for umul_ppmm, __umulsidi3,
5618         count_leading_zeros, and count_trailing_zeros.
5619         * config/xtensa/xtensa.c (TARGET_INIT_BUILTINS): Define.
5620         (TARGET_FOLD_BUILTIN): Define.
5621         (TARGET_EXPAND_BUILTIN): Define.
5622         (xtensa_init_builtins): New.
5623         (xtensa_fold_builtin): New.
5624         (xtensa_expand_builtin): New.
5625         (xtensa_rtx_costs): Add CTZ and CLZ.  Adjust costs for MULT.
5626         * config/xtensa/xtensa.h (TARGET_MUL32_HIGH): Define.
5627         (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5628         (CTZ_DEFINED_VALUE_AT_ZERO): Define.
5629         * config/xtensa/xtensa.md (UNSPEC_NSAU): Remove.
5630         (any_extend): New code macro.
5631         (u, su): New code attributes.
5632         (<u>mulsidi3, <u>mulsi3_highpart, clzsi2, ctzsi2): New.
5633         (nsau): Remove; replaced by clzsi2.
5634         (ffssi2): Use clzsi2.
5635         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add _umulsidi3,
5636         _clzsi2, _ctzsi2, and _ffssi2.  Rename _nsau to _clz.
5637         * config/xtensa/lib1funcs.asm (__mulsi3): Support Mul32 option.
5638         (__umulsidi3, __clzsi2, __ctzsi2, __ffssi2): New.
5639         (__nsau_data): Guard with ifdef L_clz instead of L_nsau.
5640
5641 2006-11-06  Vladimir Prus  <vladimir@codesourcery.com>
5642
5643         * config/arm/t-strongarm-pe: (TARGET_LIBGCC2_CFLAGS): Do no
5644         set inhibit_libc.
5645         * config/arm/t-strongarm-elf: Likewise.
5646         * config/arm/t-pe: Likewise.
5647         * config/arm/t-arm-elf: Likewise.
5648         * config/arm/t-xscale-elf: Likewise.
5649         * config/arm/t-arm-coff: Likewise.
5650         * config/arm/t-xscale-coff: Likewise.
5651         * config/arm/t-wince-pe: Likewise.
5652
5653 2006-11-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5654
5655         * config/sh/lib1funcs-4-300.asm: Guard entire file with
5656         #if !__SHMEDIA__ .
5657
5658 2006-11-05  Jakub Jelinek  <jakub@redhat.com>
5659
5660         PR middle-end/29695
5661         * fold-const.c (fold_ternary): Fix A < 0 ? <sign bit of A> : 0
5662         simplification.
5663
5664 2006-11-04  Uros Bizjak  <ubizjak@gmail.com>
5665
5666         PR target/26915
5667         * config/i386/i386.c (standard_80387_constant_p): Treat -0.0 and -1.0
5668         as a valid 80387 constant.
5669         (standard_80387_constant_opcode): Return "#" for -0.0 and -1.0.
5670         * config/i386/i386.md (unnamed splitter): Split the load of
5671         constant -0.0 or -1.0  into the load of 0.0 or 1.0, followed
5672         by negation.
5673
5674 2006-11-04  Richard Earnshaw  <rearnsha@arm.com>
5675
5676         * arm.c (thumb_legitimate_addres_p): Allow any constant offset
5677         from the soft-frame, argument and virtual registers.
5678
5679 2006-11-04  Uros Bizjak  <ubizjak@gmail.com>
5680
5681         * config/i386/i386.md (*movxf_nointeger, *movxf_integer): Enable
5682         patterns for standard 80387 constants.
5683
5684 2006-11-03  Paolo Bonzini  <bonzini@gnu.org>
5685             Steven Bosscher  <steven@gcc.gnu.org>
5686
5687         * fwprop.c: New file.
5688         * Makefile.in: Add fwprop.o.
5689         * tree-pass.h (pass_rtl_fwprop, pass_rtl_fwprop_with_addr): New.
5690         * passes.c (init_optimization_passes): Schedule forward propagation.
5691         * rtlanal.c (loc_mentioned_in_p): Support NULL value of the second
5692         parameter.
5693         * timevar.def (TV_FWPROP): New.
5694         * common.opt (-fforward-propagate): New.
5695         * opts.c (decode_options): Enable forward propagation at -O2.
5696         * gcse.c (one_cprop_pass): Do not run local cprop unless touching jumps.
5697         * cse.c (fold_rtx_subreg, fold_rtx_mem, fold_rtx_mem_1, find_best_addr,
5698         canon_for_address, table_size): Remove.
5699         (new_basic_block, insert, remove_from_table): Remove references to
5700         table_size.
5701         (fold_rtx): Process SUBREGs and MEMs with equiv_constant, make
5702         simplification loop more straightforward by not calling fold_rtx
5703         recursively.
5704         (equiv_constant): Move here a small part of fold_rtx_subreg,
5705         do not call fold_rtx.  Call avoid_constant_pool_reference
5706         to process MEMs.
5707         * recog.h (canonicalize_change_group): New.
5708
5709         * doc/invoke.texi (Optimization Options): Document fwprop.
5710         * doc/passes.texi (RTL passes): Document fwprop.
5711
5712 2006-11-03  Geoffrey Keating  <geoffk@apple.com>
5713
5714         * c-decl.c (WANT_C99_INLINE_SEMANTICS): New, set to 1.
5715         (merge_decls): Implement WANT_C99_INLINE_SEMANTICS.
5716         (grokdeclarator): Likewise.
5717
5718 2006-11-03  Steven Bosscher  <steven@gcc.gnu.org>
5719
5720         * tree-dump.c (dump_enable_all): Rename local variable
5721         ir_type to avoid name conflicts.
5722         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Check for IR_GIMPLE
5723         instead of using ir_type().
5724         * profile.c (tree_register_profile_hooks): Likewise.
5725         * value-prof.c (tree_register_value_prof_hooks): Likewise.
5726         * basic-block.h (struct edge_def): Likewise.
5727         * config/arm/arm.c (legitimize_pic_address): Likewise.
5728         * coretypes.h (ir_type): New enum of all intermediate languages
5729         used in GCC.
5730         * cfghooks.c (ir_type): Rename to...
5731         (current_ir_type): ...this.  Distinguish between cfgrtl and
5732         cfglayout mode when the current IR is RTL.  Return enum ir_type.
5733         * cfghooks.h (ir_type): Replace with current_ir_type prototype.
5734
5735 2006-11-03  Paul Brook  <paul@codesourcery.com>
5736
5737         * config/arm/arm.c (arm_file_start): New function.
5738         (TARGET_ASM_FILE_START): Define.
5739         (arm_default_cpu): New variable.
5740         (arm_override_options): Set arm_default_cpu.
5741
5742 2006-11-03  David Ung  <davidu@mips.com>
5743
5744         * config/mips/mips.h (processor_type): Removed PROCESSOR_24K, add
5745         PROCESSOR_24KC and PROCESSOR_24KF.
5746         * config/mips/mips.c (mips_cpu_info_table): Add processor names
5747         and aliases for 4kec/4kem/4kep/24kec/24kef/24kex/34kc/34kf/34kx.
5748         (mips_rtx_cost_data): Add costs for the 24kc.
5749         * config/mips/mips.md ("cpu"): Remove 24k, add 24kc and 24kf.
5750         * config/mips/24k.md: Remove references to 24k and replace with
5751         uses of 24kc/24kf in the appropriate reservations.
5752         * doc/invoke.texi (MIPS Options): Updated.
5753
5754 2006-11-03  J"orn Rennecke  <joern.rennecke@st.com>
5755
5756         * config/sh/crt1.asm: Fix #ifdef indent.
5757
5758 2006-11-03  J"orn Rennecke  <joern.rennecke@st.com>
5759         Merged from STMicroelectronics sources:
5760         2006-10-06  Andrew Stubbs  <andrew.stubbs@st.com>
5761           * config/sh/crt1.asm (vbr_600): Add missing #if.
5762         2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
5763           * sh.opt (mfused-madd): New option.
5764           * sh.md (mac_media, macsf3): Make conditional on TARGET_FMAC.
5765         2006-07-04  Andrew Stubbs  <andrew.stubbs@st.com>
5766           * config/sh/crt1.asm (vbr_start): Move to new section .test.vbr.
5767           Remove pointless handler at VBR+0.
5768           (vbr_200, vbr_300, vbr_500): Remove pointless handler.
5769           (vbr_600): Save and restore mach and macl, fpul and fpscr and fr0 to
5770           fr7. Make sure the timer handler is called with the correct FPU
5771           precision setting, according to the ABI.
5772         2006-06-14  J"orn Rennecke <joern.rennecke@st.com>
5773           * config/sh/sh.opt (m2a-single, m2a-single-only): Fix Condition.
5774           * config/sh/sh.h (SUPPORT_SH2A_NOFPU): Fix condition.
5775           (SUPPORT_SH2A_SINGLE_ONLY, SUPPORT_SH2A_SINGLE_ONLY): Likewise.
5776         2006-06-09  J"orn Rennecke <joern.rennecke@st.com>
5777           * sh.md (cmpgeusi_t): Change into define_insn_and_split.  Accept
5778           zero as second operand.
5779         2006-04-28  J"orn Rennecke <joern.rennecke@st.com>
5780           * config/sh/divtab-sh4-300.c, config/sh/lib1funcs-4-300.asm:
5781           Fixed some bugs related to negative values, in particular -0
5782           and overflow at -0x80000000.
5783           * config/sh/divcost-analysis: Added sh4-300 figures.
5784         2006-04-27  J"orn Rennecke <joern.rennecke@st.com>
5785           * config/sh/t-sh (MULTILIB_MATCHES): Add -m4-300* / -m4-340 options.
5786         2006-04-26  J"orn Rennecke <joern.rennecke@st.com>
5787           * config/sh/t-sh (OPT_EXTRA_PARTS): Add libgcc-4-300.a.
5788           ($(T)div_table-4-300.o, $(T)libgcc-4-300.a): New rules.
5789           * config/sh/divtab-sh4-300.c, config/sh/lib1funcs-4-300.asm:
5790         New files.
5791           * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-4-300 for -m4-300* /
5792           -m4-340.
5793         2006-04-24  J"orn Rennecke <joern.rennecke@st.com>
5794           SH4-300 scheduling description & fixes to SH4-[12]00 description:
5795           * sh.md: New instruction types: fstore, movi8, fpscr_toggle, gp_mac,
5796           mac_mem, mem_mac, dfp_mul, fp_cmp.
5797           (insn_class, dfp_comp, any_fp_comp): Update.
5798           (push_fpul, movsf_ie, fpu_switch, toggle_sz, toggle_pr): Update type.
5799           (cmpgtsf_t, "cmpeqsf_t, cmpgtsf_t_i4, cmpeqsf_t_i4): Likewise.
5800           (muldf3_i): Likewise.
5801           (movsi_i): Split rI08 alternative into two separate alternatives.
5802           Update type.
5803           (movsi_ie, movsi_i_lowpart): Likewise.
5804           (movqi_i): Split ri alternative into two separate alternatives.
5805           Update type.
5806           * sh1.md (sh1_load_store, sh1_fp): Update.
5807           * sh4.md (sh4_store, sh4_mac_gp, fp_arith, fp_double_arith): Update.
5808           (mac_mem, sh4_fpscr_toggle): New insn_reservations.
5809           * sh4a.md (sh4a_mov, sh4a_load, sh4a_store, sh4a_fp_arith): Update.
5810           (sh4a_fp_double_arith): Likewise.
5811           * sh4-300.md: New file.
5812           * sh.c (sh_handle_option): Handle m4-300* options.
5813           (sh_adjust_cost): Fix latency of auto-increments.
5814           Handle SH4-300 differently than other SH4s.  Check for new insn types.
5815           * sh.h (OVERRIDE_OPTIONS): Initilize sh_branch_cost if it has not
5816           been set by an option.
5817           * sh.opt (m4-300, m4-100-nofpu, m4-200-nofpu): New options.
5818           (m4-300-nofpu, -m4-340, m4-300-single, m4-300-single-only): Likewise.
5819           (mbranch-cost=): Likewise.
5820           * superh.h (STARTFILE_SPEC): Take -m4-340 into account.
5821
5822           * sh.md (mulsf3): Remove special expansion code.
5823           (mulsf3_ie): Now a define_insn_and_split.
5824           (macsf3): Allow for TARGET_SH4.
5825
5826           * sh.md (cbranchsi4, cbranchdi4, cbranchdi4_i): New patterns.
5827           * sh.c (prepare_cbranch_operands, expand_cbranchsi4): New functions.
5828           (expand_cbranchdi4): Likewise.
5829           (sh_rtx_costs): Give lower cost for certain CONST_INT values and for
5830           CONST_DOUBLE if the outer code is COMPARE.
5831           * sh.h (OPTIMIZATION_OPTIONS): If not optimizing for size, set
5832           TARGET_CBRANCHDI4 and TARGET_EXPAND_CBRANCHDI4.
5833           (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, clear TARGET_CBRANCHDI4.
5834           (LEGITIMATE_CONSTANT_P): Also allow DImode and VOIDmode CONST_DOUBLEs.
5835           Remove redundant fp_{zero,one}_operand checks.
5836           * sh.opt (mcbranchdi, mexpand-cbranchdi, mcmpeqdi): New options.
5837           * sh-protos.h (prepare_cbranch_operands, expand_cbranchsi4): Declare.
5838           (expand_cbranchdi4): Likewise.
5839         2006-04-20  J"orn Rennecke <joern.rennecke@st.com>
5840           * sh.h (LOCAL_ALIGNMENT): Use DATA_ALIGNMENT.
5841
5842 2006-11-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5843
5844         * doc/md.texi (RS6000 constraints): Document H, Z, a, t, and W
5845         constraints.
5846
5847 2006-11-02  Brooks Moses  <brooks.moses@codesourcery.com>
5848
5849         * doc/invoke.texi: Fix mfp-trap-mode typo.
5850
5851 2006-11-02  Carlos O'Donell  <carlos@codesourcery.com>
5852
5853         * config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
5854         * arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call
5855         file_end_indicate_exec_stack.
5856         * arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK):
5857         Define as 0.
5858         * lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section
5859         for a non-executable stack.
5860         * crti.asm: Likewise.
5861         * crtn.asm: Likewise.
5862         * libunwind.S: Likewise.
5863
5864 2006-11-02  Ben Elliston  <bje@au.ibm.com>
5865
5866         * tree-ssa.c (warn_uninit): Use expand_location variables for
5867         locus and declaration locus.
5868
5869 2006-11-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5870
5871         PR target/27405
5872         * config/sh/sh.md (cmp{eq,gt,gtu}{si,di}_media): Remove.
5873         (cmpsi{eq,gt,gtu}{si,di}_media): Rename to
5874         cmp{eq,gt,gtu}{si,di}_media.
5875         (*cmpne0si_media): Remove.
5876         (*movsicc_umin): Adjust gen_cmp*_media call.
5877         (unordered): Change the mode of unordered and operands[1] to
5878         SImode.
5879         (seq): Adjust gen_cmp*_media calls.  Make the mode of
5880         a temporary result of compare SImode if needed.  If the mode
5881         of operands[0] is DImode, extend the temporary result to DImode.
5882         (slt, sle, sgt, sge, sgtu, sltu, sleu, sgue, sne): Likewise.
5883         (sunorderd): Change the mode of match_operand and unorderd to
5884         SImode.
5885         (cmpeq{sf,df}_media): Remove.
5886         (cmpsieq{sf,df}_media): Rename to cmpeq{sf,df}_media.
5887         (cmp{gt,ge,un}{sf,df}_media): Change the mode of match_operand
5888         and compare operation to SImode.
5889
5890 2006-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
5891
5892         * doc/install.texi (sparc-sun-solaris2*): Update GMP/MPFR build
5893         instructions.
5894         (sparc64-sun-solaris2*): Likewise.
5895
5896 2006-11-02  Paul Brook  <paul@codesourcery.com>
5897
5898         * config/arm/arm.c (arm_elf_asm_constructor): Remove ATTRIBUTE_UNUSED
5899         from priority argument.  Use different section for non-default
5900         priority.
5901         * config/arm/elf.h: Remove definition of SUPPORTS_INIT_PRIORITY.
5902
5903 2006-11-02  Eric Botcazou  <ebotcazou@adacore.com>
5904
5905         PR other/29639
5906         * except.c (switch_to_exception_section): Do not cache the section
5907         if named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
5908         and flag_function_sections is set.
5909
5910 2006-11-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5911
5912         PR middle-end/29335
5913         * builtins.c (do_mpfr_sincos): New.
5914         (fold_builtin_1): Use it to fold builtin sincos.
5915
5916 2006-11-01  Roger Sayle  <roger@eyesopen.com>
5917
5918         * config/darwin.h (CPP_SPEC): Handle -pthread, transforming
5919         it into -D_REENTRANT.
5920
5921 2006-11-01  Roger Sayle  <roger@eyesopen.com>
5922
5923         * configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
5924         whether the assembler supports taking the difference of symbols in
5925         different sections.  On x86/Solaris, GAS does but Solaris as doesn't.
5926         * configure: Regenerate.
5927         * config.in: Regenerate.
5928         * config/i386/sol2-10.h (JUMP_TABLES_IN_TEXT_SECTION): Define if
5929         the assembler doesn't support taking the difference of symbols in
5930         different sections, i.e. we're using the native solaris assembler.
5931
5932 2006-11-01  Pete Steinmetz  <steinmtz@us.ibm.com>
5933             Peter Bergner  <bergner@vnet.ibm.com>
5934
5935         * doc/invoke.texi: Add cpu_type power6x
5936         (RS/6000 and PowerPC Options): Add -mmfpgpr.
5937         * config.gcc: Add cpu_type power6x.
5938         * configure.ac: Add test for mf{t,f}gpr instructions.
5939         (HAVE_AS_MFPGPR): New.
5940         * config.in: Regenerate.
5941         * configure: Regenerate.
5942         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6x.
5943         * config/rs6000/rs6000.md (define_attr "type"): Add insert_dword,
5944         shift,trap,var_shift_rotate,cntlz,exts, var_delayed_compare, mffgpr
5945         and mftgpr attributes.
5946         (define_attr "cpu"): Add power6.
5947         Change instruction sequences to use new attributes.
5948         (floatsidf2,fix_truncdfsi2): use TARGET_MFPGPR.
5949         (fix_truncdfsi2_mfpgpr): New.
5950         (floatsidf_ppc64_mfpgpr): New.
5951         (floatsidf_ppc64): Added !TARGET_MFPGPR condition.
5952         (movdf_hardfloat64_mfpgpr,movdi_mfpgpr): New.
5953         (movdf_hardfloat64): Added !TARGET_MFPGPR condition.
5954         (movdi_internal64): Added !TARGET_MFPGPR and related conditions.
5955         (fix_truncdfsi2): Use gpc_reg_operand constraint.
5956         * config/rs6000/{6xx.md,power4.md,8540.md,603.md,mpc.md,
5957         7xx.md,rios2.md,7450.md,440.md,rios1.md,rs64.md,power5.md,40x.md}:
5958         Add descriptions for insert_dword, shift,trap,var_shift_rotate,
5959         cntlz,exts and var_delayed_compare.
5960         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5961         _ARCH_PWR6X, if features enabled.
5962         * config/rs6000/rs6000.opt (mmfpgpr): New.
5963         * config/rs6000/rs6000.c (rs6000_align_branch_targets): New variable.
5964         (cached_can_issue_more): New variable.
5965         (processor_costs): Add power6_cost.
5966         (rs6000_sched_init): New function.
5967         (is_dispatch_slot_restricted): Deleted.
5968         (set_to_load_agen): New function.
5969         (is_load_insn,is_store_insn): New functions.
5970         (adjacent_mem_locations): New function.
5971         (insn_must_be_first_in_group): New function.
5972         (insn_must_be_last_in_group): New function.
5973         (rs6000_sched_reorder): New function.
5974         (rs6000_sched_reorder2): New function.
5975         (TARGET_SCHED_INIT,TARGET_SCHED_REORDER,
5976         TARGET_SCHED_REORDER2): Define.
5977         (processor_target_table): Use PROCESSOR_POWER6 for power6.
5978         Add power6x. Add MASK_MFPGPR for power6x.
5979         (POWERPC_MASKS): Add MASK_MFPGPR.
5980         (rs6000_override_options): Set rs6000_always_hint to false
5981         for power6.  Set rs6000_align_branch_targets. Replace
5982         rs6000_sched_groups check with rs6000_align_branch_targets.
5983         Use PROCESSOR_POWER6.
5984         (last_scheduled_insn): New variable.
5985         (load_store_pendulum): New variable.
5986         (rs6000_variable_issue): Set last_scheduled_insn and
5987         cached_can_issue_more.
5988         (rs6000_adjust_cost): Add power6 cost adjustments.
5989         (rs6000_adjust_priority): Replace is_dispatch_slot_restricted
5990         with insn_must_be_first_in_group. Add power6 priority adjustments.
5991         (rs6000_issue_rate): Add CPU_POWER6.
5992         (insn_terminates_group_p): Use insn_must_be_{first,last}_in_group.
5993         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER6.
5994         (TARGET_MFPGPR): New.
5995         (SECONDARY_MEMORY_NEEDED): Use TARGET_MFPGPR.
5996         (ASM_CPU_SPEC): Add power6x.
5997         (SECONDARY_MEMORY_NEEDED): Added mode!=DFmode and mode!=DImode
5998         conditions.
5999         * config/rs6000/power6.md: New file.
6000
6001 2006-11-01  Adam Nemet  <anemet@caviumnetworks.com>
6002
6003         * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
6004         HOST_WIDE_INT_PRINT to print high and low parts.  Use
6005         HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT.  When
6006         printing a hexadecimal number prefix it with 0x.
6007
6008 2006-11-01  Chris Johns <chris@contemporary.net.au>
6009
6010         PR bootstrap/28400
6011         * Makefile.in (install-driver): Use exeext when installing
6012         $target-gcc-$version.
6013
6014 2006-11-01      Douglas Gregor <doug.gregor@gmail.com>
6015
6016         * c-common.c (flag_cpp0x): New.
6017         * c-common.h (flag_cpp0x): New.
6018         * c-cppbuiltin.c (c_cpp_builtins): If C++0x extensions are
6019         supported, define __GXX_EXPERIMENTAL_CPP0X__.
6020         * c-opts.c (set_std_cxx0x): New.
6021         (c_common_handle_option): Handle -std=c++0x, -std=gnu++0x.
6022         * c.opt (std=c++0x): Document.
6023         (std=gnu++0x): Ditto.
6024         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CPP0X__.
6025         * doc/invoke.texi: Document -std=c++0x, -std=gnu++0x.
6026
6027 2006-11-01  Richard Guenther  <rguenther@suse.de>
6028
6029         * config/i386/i386.c (ix86_expand_rint): Fix issues with
6030         signed zeros.
6031         (ix86_expand_floorceildf_32): Likewise.
6032         (ix86_expand_floorceil): Likewise.
6033         (ix86_expand_trunc): Likewise.
6034
6035 2006-10-31  Andrew Pinski  <pinskia@gmail.com>
6036
6037         * doc/invoke.texi (-fkeep-inline-functions): Change "GNU C"
6038         to "GNU C89".
6039
6040 2006-11-01  Danny Smith  <dannysmith@users.sourceforge.net>
6041
6042         * target.h (targetm.cxx.use_atexit_for_cxa_atexit): New target
6043         hook.
6044         * target-def.h: (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Define
6045         default.
6046         * config/i386/mingw32.h (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT):
6047         Override default.
6048         * doc/tm.texi (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Document.
6049         * configure.ac (use_cxa_atexit): As a special case, don't test
6050         for libc definition of __cxa_atexit on mingw32
6051         * configure: Regenerate.
6052         * config.gcc (i[34567]86-pc-mingw32): Default to
6053         enable__cxa_atexit=yes.
6054
6055 2006-11-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6056
6057         * builtins.def (gamma, lgamma): Use ATTR_MATHFN_FPROUNDING_STORE.
6058
6059 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
6060
6061         PR 23067
6062         * c-decl.c (start_struct): Don't create self-containing
6063         structures.
6064         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
6065         New.
6066         * config/rs6000/rs6000-protos.h
6067         (darwin_rs6000_special_round_type_align): New.
6068         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Rewrite.
6069         (ROUND_TYPE_ALIGN): Use darwin_rs6000_special_round_type_align.
6070
6071 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
6072
6073         * toplev.c (compile_file): Call final_write_globals
6074         even if there have been errors.
6075
6076 2006-10-31  Eric Christopher  <echristo@apple.com>
6077             Falk Hueffner  <falk@debian.org>
6078
6079         * doc/extend.texi (__builtin_bswap32): Document.
6080         (__builtin_bswap64): Ditto.
6081         * doc/libgcc.texi (bswapsi2): Document.
6082         (bswapdi2): Ditto.
6083         * doc/rtl.texi (bswap): Document.
6084         * optabs.c (expand_unop): Don't widen a bswap.
6085         (init_optabs): Init bswap. Set libfuncs explicitly
6086         for bswapsi2 and bswapdi2.
6087         * optabs.h (OTI_bswap): New.
6088         (bswap_optab): Ditto.
6089         * genopinit.c (optabs): Handle bswap_optab.
6090         * tree.h (tree_index): Add TI_UINT32_TYPE and
6091         TI_UINT64_TYPE.
6092         (uint32_type_node): New.
6093         (uint64_type_node): Ditto.
6094         * tree.c (build_common_tree_nodes_2): Initialize
6095         uint32_type_node and uint64_type_node.
6096         * builtins.c (expand_builtin_bswap): New.
6097         (expand_builtin): Call.
6098         (fold_builtin_bswap): New.
6099         (fold_builtin_1): Call.
6100         * fold-const.c (tree_expr_nonnegative_p): Return true
6101         for bswap.
6102         * builtin-types.def (BT_UINT32): New.
6103         (BT_UINT64): Ditto.
6104         (BT_FN_UINT32_UINT32): Ditto.
6105         (BT_FN_UINT64_UINT64): Ditto.
6106         * builtins.def (BUILT_IN_BSWAP32): New.
6107         (BUILT_IN_BSWAP64): Ditto.
6108         * rtl.def (BSWAP): New.
6109         * genattrtab.c (check_attr_value): New.
6110         * libgcc2.c (__bswapSI2): New.
6111         (__bswapDI2): Ditto.
6112         * libgcc2.h (__bswapSI2): Declare.
6113         (__bswapDI2): Ditto.
6114         * mklibgcc.in (lib2funcs): Add _bswapsi2 and _bswapdi2.
6115         * simplify-rtx.c (simplify_const_unary_operation): Return
6116         0 for BSWAP.
6117         * libgcc-std.ver (__bwapsi2): Add.
6118         (__bswapdi2): Ditto.
6119         * reload1.c (eliminate_regs_1): Add bswap.
6120         (elimination_effects): Ditto.
6121         * config/i386/i386.h (x86_bswap): New.
6122         (TARGET_BSWAP): Use.
6123         * config/i386/i386.c (x86_bswap): Set.
6124
6125 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
6126
6127         * coverage.c (coverage_checksum_string): Update comment.
6128         * dwarf2out.c (switch_to_eh_frame_section): Update for removal
6129         of get_file_function_name.
6130         * cgraphunit.c (cgraph_build_static_cdtor): Update for rename
6131         of get_file_function_name_long.
6132         * tree.c (get_file_function_name): Rename from
6133         get_file_function_name_long; improve comment; handle 'I' and 'D'
6134         specially when the target has ctor/dtor support; remove special
6135         handling for 'F'.
6136         (get_file_function_name): Remove.
6137         * tree.h (get_file_function_name): Rename from
6138         get_file_function_name_long.
6139         (get_file_function_name): Remove prototype.
6140
6141 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
6142
6143         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Remove.
6144         * config/darwin.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
6145
6146         * config/darwin.h (LINK_COMMAND_SPEC): Don't do weird things with -@.
6147         Call dsymutil when compiling and linking one or more source files
6148         in one step.
6149
6150 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
6151
6152         PR 15834
6153         * config/darwin.h (NO_IMPLICIT_EXTERN_C): Define.
6154
6155 2006-10-31  Geoffrey Keating  <geoffk@apple.com>
6156
6157         * c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
6158         inline static functions in c99 mode.
6159
6160         PR 16622
6161         * doc/extend.texi (Inline): Update.
6162         * c-tree.h (struct language_function): Remove field 'extern_inline'.
6163         * c-decl.c (current_extern_inline): Delete.
6164         (pop_scope): Adjust test for an undefined nested function.
6165         Add warning about undeclared inline function.
6166         (diagnose_mismatched_decls): Update comments.  Disallow overriding
6167         of inline functions in a translation unit in C99.  Allow inline
6168         declarations in C99 at any time.
6169         (merge_decls): Boolize variables.  Handle C99 'extern inline'
6170         semantics.
6171         (grokdeclarator): Set DECL_EXTERNAL here for functions.  Handle
6172         C99 inline semantics.
6173         (start_function): Don't clear current_extern_inline.  Don't set
6174         DECL_EXTERNAL.
6175         (c_push_function_context): Don't push current_extern_inline.
6176         (c_pop_function_context): Don't restore current_extern_inline.
6177
6178         PR 11377
6179         * c-typeck.c (build_external_ref): Warn about static variables
6180         used in extern inline functions.
6181         * c-decl.c (start_decl): Warn about static variables declared
6182         in extern inline functions.
6183
6184 2006-10-31  Roger Sayle  <roger@eyesopen.com>
6185
6186         PR middle-end/23470
6187         * tree.h (tree_expr_nonnegative_p): Return "bool" instead of "int".
6188         * fold-const.c (tree_expr_nonnegative_p): Likewise.  Consider
6189         pow(x,y) and powi(x,y) to be nonnegative if either x is nonnegative
6190         or y is an even integer.
6191
6192 2006-10-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6193
6194         PR target/24071
6195         * gthr-posix.h (__gthread_active_p): New implementation on Solaris.
6196         * gthr-posix95.h (__gthread_active_p): Likewise.
6197
6198 2006-10-31  Richard Guenther  <rguenther@suse.de>
6199
6200         * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
6201         acossf2, acosxf2, log1psf2, log1pdf2, log1pxf2, ilogbsi2,
6202         expsf2, expdf2, expxf2, exp10sf2, exp10df2, exp10xf2,
6203         exp2sf2, exp2df2, exp2xf2, expm1df2, expm1sf2, expm1xf2,
6204         ldexpdf3, ldexpsf3, ldexpxf3, rintxf2, rintdf2, rintsf2,
6205         lround<mode>di2, lround<mode>si2, floorxf2, floordf2, floorsf2,
6206         lfloor<mode>di2, lfloor<mode>si2, ceilxf2, ceildf2, ceilsf2,
6207         btruncxf2, btruncdf2, btruncsf2): Conditionalize expansion on
6208         !optimize_size.
6209
6210 2006-10-31  Steven Bosscher  <steven@gcc.gnu.org>
6211
6212         * opts.c (decode_options): Disable CSE skip blocks.
6213
6214 2006-10-30  Dirk Mueller  <dmueller@suse.de>
6215
6216         * c-common.h (strict_aliasing_warning): Fix whitespace.
6217         * c-decl (start_function): Move code for main decl warning ..
6218         * c-common.c (check_main_parameter_types): .. here.
6219         * c-common.h (check_main_parameter_types): Declare.
6220
6221 2006-10-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6222
6223         PR middle-end/29335
6224         * builtins.c (fold_builtin_1): Evaluate tgamma using MPFR.
6225
6226 2006-10-30  Pete Steinmetz  <steinmtz@us.ibm.com>
6227
6228         * recog.c (store_data_bypass_p): Add support to allow IN_INSN to
6229         be a PARALLEL containing sets.  Return false when out_pat is not
6230         a PARALLEL insn.
6231
6232 2006-10-30  Richard Sandiford  <richard@codesourcery.com>
6233
6234         * config/mips/mips.md (mul<mode>3): Split into...
6235         (mulsi3, muldi3): ...these separate patterns.
6236
6237 2006-10-30  Richard Sandiford  <richard@codesourcery.com>
6238
6239         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use a single spec,
6240         but with each set of options separated by spaces.
6241
6242 2006-10-30  J"orn Rennecke  <joern.rennecke@st.com>
6243
6244         * unwind-dw2.c (uw_init_context_1): Fix test that checks if
6245         dwarf_reg_size_table has been initialized.
6246
6247 2006-10-30  Roger Sayle  <roger@eyesopen.com>
6248
6249         * builtins.c (expand_builtin_mathfn_3): Correct coding style.
6250         * ddg.c (print_ddg_edge): Likewise.
6251         * dwarf2out.c (prune_unused_types_walk): Likewise.
6252         * ifcvt.c (noce_try_cmove_arith): Likewise.
6253         * langhooks.c (add_builtin_function): Likewise.
6254         * reg-stack.c (subst_stack_regs_pat): Likewise.
6255         * tree.c (expanded_location): Likewise.
6256         * tree-dump.c (dequeue_and_dump): Likewise.
6257
6258 2006-10-30  David Daney  <ddaney@avtrex.com>
6259
6260         * config/mips/linux.h (NO_SHARED_SPECS): Correct syntax error.
6261
6262 2006-10-30  Jakub Jelinek  <jakub@redhat.com>
6263
6264         PR tree-optimization/29637
6265         * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
6266         of the innertype is the innertype itself.
6267
6268 2006-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
6269
6270         * dwarf2out.c (file_name_acquire): Correct typo.
6271
6272 2006-10-29  Daniel Berlin  <dberlin@dberlin.org>
6273
6274         * tree.h (tree_value_handle): Remove struct value_set declaration.
6275         Change value_set to bitmap_set.
6276         * tree-pretty-print.c (dump_generic_node): Use has_stmt_ann.
6277         * tree-vn.c (get_value_handle): Made inline and moved to
6278         tree-flow-inline.h.
6279         * tree-flow-inline.h: (has_stmt_ann): New function.
6280         * tree-ssa-pre.c (expressions): New variable.
6281         (next_expression_id): Ditto.
6282         (alloc_expression_id): New function.
6283         (struct value_set): Remove.
6284         (get_expression_id): New function.
6285         (get_or_alloc_expression_id): Ditto.
6286         (expression_for_id): Ditto.
6287         (clear_expression_ids): Ditto.
6288         (FOR_EACH_EXPR_ID_IN_SET): New macro.
6289         (bb_value_sets): Renamed to bb_bitmap_sets.
6290         All value sets replaced with bitmap_sets.
6291         Add visited member.
6292         (BB_VISITED): New macro.
6293         (postorder): New variable.
6294         (add_to_value): Removed.
6295         (value_exists_in_set_bitmap): Ditto.
6296         (value_insert_into_set_bitmap): Ditto.
6297         (set_new): Ditto.
6298         (set_copy): Ditto.
6299         (set_remove): Ditto.
6300         (set_contains_value): Ditto.
6301         (insert_into_set): Ditto.
6302         (set_equal): Ditto.
6303         (find_leader): Ditto.
6304         (bitmap_set_subtract_from_value_set): Ditto.
6305         (value_insert_into_set): Ditto.
6306         (print_value_set): Ditto.
6307         (debug_value_set): Ditto.
6308         (constant_expr_p): New function.
6309         (bitmap_remove_from_set): Ditto.
6310         (bitmap_insert_into_set): Ditto.
6311         (bitmap_set_free): Ditto.
6312         (vh_compare): Ditto.
6313         (sorted_array_from_bitmap_set): Ditto.
6314         (bitmap_set_subtract): Ditto.
6315         (bitmap_set_equal): Ditto.
6316         (debug_bitmap_set): Ditto.
6317         (find_leader_in_sets): Ditto.
6318         (bitmap_set_replace_value): Modify for bitmapped sets.
6319         (phi_translate): Ditto.
6320         (phi_translate_set): Ditto.
6321         (bitmap_find_leader): Ditto.
6322         (valid_in_sets): Ditto.
6323         (union_contains_value): Ditto.
6324         (clean): Ditto.
6325         (compute_antic_aux): Ditto.  Mark changed blocks.
6326         (compute_antic): Ditto. Iterate in postorder and only over
6327         changing blocks.
6328         (compute_rvuse_and_antic_safe): Reuse postorder.
6329         (create_component_ref_by_pieces): Modify for bitmapped sets.
6330         (find_or_generate_expression): Ditto.
6331         (create_expression_by_pieces): Ditto.
6332         (insert_into_preds_of_block): Ditto.
6333         (changed_blocks): New variable.
6334         (do_regular_insertion): Broken out from insert_aux.
6335         (insert_aux): Modified for bitmapped sets.
6336         (find_existing_value_expr): New function.
6337         (create_value_expr_from): Use it.
6338         (insert_extra_phis): Removed.
6339         (print_bitmap_set): Renamed from bitmap_print_value_set.
6340         (compute_avail): Handle RETURN_EXPR.
6341         (init_pre): Modify for bitmapped sets.
6342         * tree-flow.h (has_stmt_ann): New function.
6343
6344 2006-10-29  Roger Sayle  <roger@eyesopen.com>
6345
6346         * builtins.c (fold_builtin_floor): Check for the availability of
6347         the C99 trunc function before transforming floor into trunc.
6348
6349 2006-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6350
6351         * builtins.c (fold_builtin_hypot): Rearrange recursive
6352         transformation before others, and also do ABS_EXPR.  When
6353         necessary, check flag_unsafe_math_optimizations.  When necessary,
6354         add fabs.
6355
6356 2006-10-29  Roger Sayle  <roger@eyesopen.com>
6357
6358         * fold-const.c (fold_comparison): Fold ~X op ~Y as Y op X.
6359         Fold ~X op C as X op' ~C, where op' is the swapped comparison.
6360         (fold_binary): ~X eq/ne C is now handled in fold_comparison.
6361         Fold -X eq/ne -Y as X eq/ne Y.
6362
6363 2006-10-29  Richard Sandiford  <richard@codesourcery.com>
6364
6365         * config/mips/mips.md (mul<mode>3): Check ISA_HAS_MUL3 rather than
6366         GENERATE_MULT3_<MODE>.  Restrict the test to SImode.  Use ISA_HAS_MUL3
6367         rather than GENERATE_MULT3_SI in the various define_peephole2s.
6368         (mulsi3_mult3): Depend on ISA_HAS_MUL3 rather than GENERATE_MULT3_SI.
6369         Use an inclusive test for "mult" rather than "mul".
6370         (rotr<mode>3): Depend on ISA_HAS_ROR.
6371         * config/mips/mips.h (GENERATE_MULT3_SI): Delete in favor of
6372         ISA_HAS_MUL3.
6373         (GENERATE_MULT3_DI): Delete.
6374         (ISA_HAS_64BIT_REGS): Use consistent formatting.
6375         (ISA_HAS_MUL3): New macro.
6376         (ISA_HAS_CONDMOVE, ISA_HAS_8CC): Use consistent formatting.
6377         (ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB): Likewise.
6378         (ISA_HAS_CLZ_CLO): Likewise.
6379         (ISA_HAS_DCLZ_DCLO): Delete.
6380         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC): Require !TARGET_MIPS16.
6381         (ISA_HAS_MACC): Require !TARGET_MIPS16 for all ISAs, not just
6382         the VR4120 and VR4130.
6383         (ISA_HAS_MACCHI): Use consistent formatting.
6384         (ISA_HAS_ROTR_SI, ISA_HAS_ROTR_DI): Delete in favor of...
6385         (ISA_HAS_ROR): ...this new macro.
6386         (ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX): Use consistent formatting.
6387         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS): Likewise.
6388         (ISA_HAS_LOAD_DELAY): Use ISA_MIPS1.
6389
6390 2006-10-29  Roger Sayle  <roger@eyesopen.com>
6391
6392         PR tree-optimization/15458
6393         * fold-const.c (fold_binary): Optimize ~X ^ C as X ^ ~C, where C
6394         is a constant.
6395
6396 2006-10-29  Richard Guenther  <rguenther@suse.de>
6397
6398         * config/i386/i386-protos.h (ix86_expand_trunc): Declare.
6399         (ix86_expand_truncdf_32): Likewise.
6400         * config/i386/i386.c (ix86_expand_trunc): New function expanding
6401         trunc inline for SSE math and -fno-trapping-math and if not
6402         optimizing for size.
6403         (ix86_expand_truncdf_32): Same for DFmode on 32bit archs.
6404         * config/i386/i386.md (btruncsf2, btruncdf2): Adjust expanders
6405         for expanding btrunc inline for SSE math.
6406
6407 2006-10-29  Joseph Myers  <joseph@codesourcery.com>
6408
6409         * config.gcc (i[34567]86-*-linux*): Handle --enable-targets=all.
6410         Handle tuning for bi-arch i[34567]86-*-linux* like that for
6411         i[34567]86-*-solaris2.1[0-9]*.
6412         * config/i386/linux64.h (TARGET_VERSION, MULTILIB_DEFAULTS):
6413         Define conditionally depending on TARGET_64BIT_DEFAULT.
6414         (SPEC_32, SPEC_64): Define.
6415         (LINK_SPEC): Use them.
6416         * doc/install.texi (--enable-targets=all): Document for x86-linux.
6417
6418 2006-10-29  Richard Guenther  <rguenther@suse.de>
6419
6420         * config/i386/i386-protos.h (ix86_expand_round): Declare.
6421         (ix86_expand_rounddf_32): Likewise.
6422         * config/i386/i386.c (ix86_expand_round): New function expanding
6423         round inline for SSE math and -fno-trapping-math and if not
6424         optimizing for size.
6425         (ix86_expand_rounddf_32): Same for DFmode on 32bit archs.
6426         * config/i386/i386.md (rounddf2, roundsf2): New pattern expanding
6427         round via ix86_expand_round.
6428
6429 2006-10-29  Richard Guenther  <rguenther@suse.de>
6430
6431         * config/i386/i386-protos.h (ix86_expand_floorceil): Declare.
6432         (ix86_expand_floorceildf_32): Likewise.
6433         * config/i386/i386.c (ix86_expand_sse_compare_mask): New
6434         static helper function.
6435         (ix86_expand_floorceil): Expander for floor and ceil to SSE
6436         math.
6437         (ix86_expand_floorceildf_32): Same for DFmode on 32bit archs.
6438         * config/i386/i386.md (floordf2): Adjust to enable floor
6439         expansion via ix86_expand_floorceil if TARGET_SSE_MATH and
6440         -fno-trapping-math is enabled and if not optimizing for size.
6441         (floorsf2, ceildf2, ceilsf2): Likewise.
6442         * config/i386/sse.md (sse_maskcmpsf3): New insn.
6443         (sse2_maskcmpdf3): Likewise.
6444
6445 2006-10-29  Richard Guenther  <rguenther@suse.de>
6446
6447         * builtins.c (expand_builtin_mathfn): Expand nearbyint as
6448         rint in case -fno-trapping-math is enabled.
6449         * config/i386/i386-protos.h (ix86_expand_rint): Declare.
6450         * config/i386/i386.c (ix86_gen_TWO52): New static helper function.
6451         (ix86_expand_sse_fabs): Likewise.
6452         (ix86_expand_rint): New function expanding rint to x87 or SSE math.
6453         * config/i386/i386.md (rintdf2): Enable for SSE math if
6454         -fno-trapping-math is enabled, use ix86_expand_rint for expansion.
6455         (rintsf2): Likewise.
6456
6457 2006-10-29  Richard Guenther  <rguenther@suse.de>
6458
6459         * genopinit.c (optabs): Change lfloor_optab and lceil_optab
6460         to conversion optabs.
6461         * optabs.c (init_optabs): Initialize lfloor_optab and lceil_optab
6462         as conversion optab.
6463         * optabs.h (enum optab_index): Remove OTI_lfloor and OTI_lceil.
6464         (enum convert_optab_index): Add COI_lfloor and COI_lceil.
6465         (lfloor_optab, lceil_optab): Adjust defines.
6466         * builtins.c (expand_builtin_int_roundingfn): Adjust for
6467         lfloor and lceil optabs now being conversion optabs.
6468         * config/i386/i386-protos.h (ix86_expand_lfloorceil): Declare.
6469         * config/i386/i386.c (ix86_expand_sse_compare_and_jump):
6470         New static helper function.
6471         (ix86_expand_lfloorceil): New function to expand lfloor and
6472         lceil inline.
6473         * config/i386/i386.md (lfloor<mode>2): Split into ...
6474         (lfloorxf<mode>2): ... x87 variant
6475         (lfloor<mode>di2, lfloor<mode>si2): ... and SSE variants
6476         using ix86_expand_lfloorceil.
6477         (lceil<mode>2, lceilxf<mode>2, lceil<mode>di2, lceil<mode>si2):
6478         Likewise.
6479         * doc/md.texi (lfloorMN, lceilMN): Document.
6480
6481 2006-10-29  Richard Sandiford  <richard@codesourcery.com>
6482
6483         * configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE.  Test for the
6484         -mno-shared assembler option on mips targets.
6485         * configure, config.in: Regenerate.
6486         * config/mips/linux.h (NO_SHARED_SPECS): New macro.
6487         (DRIVER_SELF_SPECS): Define to NO_SHARED_SPECS if non-empty.
6488         * config/mips/linux64.h (DRIVER_SELF_SPECS): Include NO_SHARED_SPECS.
6489
6490 2006-10-29  Richard Sandiford  <richard@codesourcery.com>
6491
6492         * config/mips/mips.c (mips_classify_symbol): Test DECL_WEAK as well
6493         as TREE_PUBLIC when deciding whether to return SYMBOL_GOT_GLOBAL.
6494
6495 2006-10-29  Kazu Hirata  <kazu@codesourcery.com>
6496
6497         * config/darwin.c, config/darwin.opt, config/ia64/itanium1.md,
6498         config/ia64/itanium2.md, real.c, tree-ssa-structalias.c: Fix
6499         comment typos.
6500
6501 2006-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6502
6503         PR middle-end/29335
6504         * builtins.c (do_mpfr_arg2, fold_builtin_hypot): New.
6505         (fold_builtin_pow): Evaluate constant arguments at compile-time
6506         using MPFR.
6507         (fold_builtin_1): Handle BUILT_IN_ATAN2 and BUILT_IN_HYPOT.
6508         (do_mpfr_ckconv): New helper function.
6509         (do_mpfr_arg1): Use do_mpfr_ckconv.
6510         (do_mpfr_arg2): New.
6511
6512 2006-10-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6513
6514         PR tree-opt/29271
6515         * doc/invoke.texi (-fdump-rtl-sched2) Fix file extension number.
6516         (-fdump-rtl-sched): Rename to ..
6517         (-fdump-rtl-sched1): here.  Also fix file extension number.
6518
6519 2006-10-28  Richard Guenther  <rguenther@suse.de>
6520
6521         * fold-const.c (maybe_canonicalize_comparison): Fix code
6522         to match comment.
6523
6524 2006-10-28  Uros Bizjak  <uros@kss-loka.si>
6525
6526         * config/i386/i386.h (GENERAL_REGNO_P): Use STACK_POINTER_REGNUM.
6527         (NON_QI_REG_P): Use IN_RANGE.
6528         (REX_INT_REGNO_P): Use IN_RANGE.
6529         (FP_REGNO_P): Use IN_RANGE.
6530         (SSE_REGNO_P): Use IN_RANGE.
6531         (REX_SSE_REGNO_P): Use IN_RANGE.
6532         (MMX_REGNO_P): Use IN_RANGE.
6533         (STACK_REGNO_P): New macro.
6534         (STACK_REG_P): Use STACK_REGNO_P.
6535         (NON_STACK_REG_P): Use STACK_REGNO_P.
6536         (REGNO_OK_FOR_INDEX_P): Use REX_INT_REGNO_P.
6537         (REGNO_OK_FOR_BASE_P): Use GENERAL_REGNO_P.
6538         (REG_OK_FOR_INDEX_NONSTRICT_P): Use REX_INT_REGNO_P.
6539         (REG_OK_FOR_BASE_NONSTRICT_P): Use GENERAL_REGNO_P.
6540         (HARD_REGNO_RENAME_OK): Use !IN_RANGE.
6541
6542 2006-10-28  Eric Botcazou  <ebotcazou@adacore.com>
6543
6544         * except.h (output_function_exception_table): Add 'const char*' param.
6545         * except.c (switch_to_exception_section): Add 'const char*' param.
6546         If named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
6547         and flag_function_sections is set, use a function-specific section.
6548         (output_function_exception_table): Add 'const char*' param.
6549         Adjust call to switch_to_exception_section.
6550         * final.c (rest_of_handle_final): Adjust calls to
6551         output_function_exception_table.
6552         * configure.ac (HAVE_LD_EH_GC_SECTIONS): New check.
6553         * config.in: Regenerate.
6554         * configure: Likewise.
6555
6556 2006-10-28  Richard Guenther  <rguenther@suse.de>
6557
6558         PR middle-end/26899
6559         * fold-const.c (maybe_canonicalize_comparison_1): Helper
6560         for maybe_canonicalize_comparison.
6561         (maybe_canonicalize_comparison): New function for canonicalizing
6562         comparison trees.
6563         (fold_comparison): Call it to canonicalize comparisons with
6564         constants involved.
6565
6566 2006-10-28  Richard Guenther  <rguenther@suse.de>
6567
6568         PR target/28806
6569         * builtins.c (expand_builtin_int_roundingfn_2): Expand
6570         BUILT_IN_LROUND and BUILT_IN_LLROUND from here.
6571         (expand_builtin): Adjust likewise.
6572         * genopinit.c (optabs[]): Add lround optab.
6573         * optabs.c (init_optabs): Initialize lround_optab.
6574         * optabs.h (enum convert_optab_index): Add COI_lround.
6575         (lround_optab): Define.
6576         * config/i386/i386-protos.h (ix86_expand_lround): Declare.
6577         * config/i386/i386.c (ix86_sse_copysign_to_positive): New
6578         static function.
6579         (ix86_expand_lround): New function.
6580         * config/i386/i386.md (lround<mode>di2, lround<mode>si2):
6581         New expanders.
6582         * doc/md.texi (lroundMN2): Document.
6583
6584 2006-10-28 Uros Bizjak <uros@kss-loka.si>
6585
6586         PR target/29377
6587         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Change "size"
6588         argument to HOST_WIDE_INT.  Update function prototype.
6589         (round_frame_size): Change return type to HOST_WIDE_INT.  Change
6590         "size" argument to HOST_WIDE_INT.  Update function prototype.
6591
6592 2006-10-28 Uros Bizjak <uros@kss-loka.si>
6593
6594         * config/i386/i386.c (output_387_ffreep): Create output from a
6595         template string for !HAVE_AS_IX86_FFREEP.
6596
6597 2006-10-27  Eric Christopher  <echristo@apple.com>
6598
6599         * config/darwin.c: Fix formatting and grammar.
6600
6601 2006-10-27  Jan Hubicka  <jh@suse.cz>
6602
6603         * builtins.c (fold_builtin): Don't generate NOP_EXPR that is going
6604         to be thrown away soon when IGNORE is set.
6605         * tree-ssa-ccp.c (convert_to_gimple_builtin): Add IGNORE argument
6606         indicating when return value shall not be computed.
6607         * gimplify.c (internal_get_tmp_var): Avoid random tree sharing.
6608
6609 2006-10-27  Vladimir Makarov  <vmakarov@redhat.com>
6610
6611         * config/i386/i386.h (TARGET_GEODE):
6612         (TARGET_CPU_CPP_BUILTINS): Add code for geode.
6613         (TARGET_CPU_DEFAULT_geode): New macro.
6614         (TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
6615         TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
6616         TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
6617         TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
6618         TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
6619         the macro values.
6620         (TARGET_CPU_DEFAULT_NAMES): Add geode.
6621         (processor_type): Add PROCESSOR_GEODE.
6622
6623         * config/i386/i386.md: Include geode.md.
6624         (cpu): Add geode.
6625
6626         * config/i386/i386.c (geode_cost): New initialized global
6627         variable.
6628         (m_GEODE, m_K6_GEODE): New macros.
6629         (x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
6630         x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
6631         x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
6632         x86_schedule): Use m_K6_GEODE instead of m_K6.
6633         (x86_movx, x86_cmove): Set up m_GEODE.
6634         (x86_integer_DFmode_moves): Clear m_GEODE.
6635         (processor_target_table): Add entry for geode.
6636         (processor_alias_table): Ditto.
6637
6638         * config/i386/geode.md: New file.
6639
6640         * doc/invoke.texi: Add entry about geode processor.
6641
6642 2006-10-27  Mike Stump  <mrs@apple.com>
6643
6644         * config/darwin-c.c (darwin_cpp_builtins): Move __STATIC__ and
6645         __DYNAMIC__ from here back to ...
6646         * config/darwin.h (CPP_SPEC): ... here.
6647
6648 2006-10-26  Nathan Froyd  <froydnj@codesourcery.com>
6649             Nathan Sidwell  <nathan@codesourcery.com>
6650
6651         * ggc-common.c (ggc_min_heapsize_heuristic): Be more conservative
6652         when choosing the minimum heapsize.
6653
6654 2006-10-26  Nathan Froyd <froydnj@codesourcery.com>
6655
6656         * gcc/unwind-dw2.h: Move cfa-related variables into
6657         struct frame_state_reg_info to ensure that the CFA is properly
6658         handled when executing DW_CFA_{remember,restore}_state.
6659         * gcc/unwind-dw2.c, gcc/config/alpha/linux-unwind.h,
6660         gcc/config/alpha/vms-unwind.h, gcc/config/s390/tpf-unwind.h
6661         gcc/config/s390/linux-unwind.h, gcc/config/sparc/linux-unwind.h
6662         gcc/config/i386/linux-unwind.h, gcc/config/sh/linux-unwind.h
6663         gcc/config/rs6000/linux-unwind.h,
6664         gcc/config/rs6000/darwin-fallback.c, gcc/config/pa/linux-unwind.h,
6665         gcc/config/pa/hpux-unwind.h, gcc/config/mips/linux-unwind.h:
6666         Modify to use new cfa_* fields.
6667
6668 2006-10-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6669
6670         * config/s390/s390.c (s390_init_frame_layout): Check positive
6671         frame_size.
6672
6673 2006-10-26  Ben Elliston  <bje@au.ibm.com>
6674
6675         * gimplify.c (get_name): Remove extraneous break.
6676         (gimplify_omp_for): Initialise ret with GS_OK.
6677
6678 2006-10-25  Steve Ellcey  <sje@cup.hp.com>
6679
6680         * config/ia64/hpux.h: Define _INCLUDE__STDC_A1_SOURCE in C++.
6681         Add unix98.o to link line.
6682
6683 2006-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6684
6685         PR middle-end/29335
6686         * builtins.c (fold_builtin_cbrt, fold_builtin_logarithm):
6687         Calculate compile-time constants using MPFR.
6688         (fold_builtin_1): Likewise handle BUILT_IN_ERF, BUILT_IN_ERFC,
6689         BUILT_IN_EXPM1 and BUILT_IN_LOG1P.
6690
6691 2006-10-25  Bob Wilson  <bob.wilson@acm.org>
6692
6693         * config/xtensa/lib2funcs.S: Use C-style comments.
6694
6695 2006-10-24  Nathan Froyd  <froydnj@codesourcery.com>
6696
6697         * dwarf2out.c (gen_compile_unit_die): Use IS_ABSOLUTE_PATH.
6698         (file_table_relative_p): Likewise.
6699         (dwarf2out_finish): Likewise.
6700         (file_name_acquire): Use DIR_SEPARATOR and DIR_SEPARATOR_2.
6701
6702 2006-10-25  Daniel Berlin  <dberlin@dberlin.org>
6703
6704         * tree-ssa-structalias.c (intra_create_variable_infos):
6705           Don't recreate nonlocal_all if it already exists.
6706
6707 2006-10-25  Richard Guenther  <rguenther@suse.de>
6708
6709         PR target/28803
6710         * optabs.h (enum optab_index): Remove OTI_lrint.
6711         (enum convert_optab_index): Add COI_lrint.
6712         (lrint_optab): Adjust.
6713         (expand_sfix_optab): Declare.
6714         * optabs.c (expand_sfix_optab): New function.
6715         (init_optabs): Init lrint_optab as conversion optab.
6716         * genopinit.c (lrint_optab): Change to a conversion optab.
6717         * builtins.c (expand_builtin_int_roundingfn_2): Adjust to
6718         expansion via conversion optab.
6719         * config/i386/i386.md (*fistdi2_1): Remove
6720         flag_unsafe_math_optimizations guard.
6721         (fistdi2, fistdi2_with_temp, *fist<mode>2_1, fist<mode>2,
6722         fist<mode>2_with_temp): Likewise.
6723         (lrint<mode>2): Split into...
6724         (lrintxf<mode>2): ... x87 part
6725         (lrint<mode>di2, lrint<mode>si2): ... and SSE parts.
6726         * config/i386/sse.md (sse_cvtss2si_2, sse_cvtss2_siq_2,
6727         sse2_cvtsd2si_2, sse2_cvtsd2siq_2): New insns for
6728         UNSPEC_FIX_NOTRUNC matching non-vector float modes.
6729         * doc/md.texi (lrintMN2): Document.
6730
6731 2006-10-25  Uros Bizjak  <uros@kss-loka.si>
6732
6733         PR target/28909
6734         * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>"):
6735         Use inc and dec instructions for TARGET_USE_INCDEC.
6736         ("*sync_compare_and_swap<mode>"): Fix -masm=intel template.
6737         ("sync_double_compare_and_swap<mode>"): Likewise.
6738         ("*sync_double_compare_and_swapdi_pic"): Likewise.
6739         ("*sync_compare_and_swap_cc<mode>"): Likewise.
6740         ("sync_double_compare_and_swap_cc<mode>"): Likewise.
6741         ("*sync_double_compare_and_swap_ccdi_pic"): Likewise.
6742         ("sync_old_add<mode>"): Likewise.
6743         ("sync_lock_test_and_set<mode>"): Likewise.
6744         ("sync_lock_test_and_set<mode>"): Likewise.
6745         ("sync_add<mode>"): Likewise.
6746         ("sync_sub<mode>"): Likewise.
6747         ("sync_ior<mode>"): Likewise.
6748         ("sync_and<mode>"): Likewise.
6749         ("sync_xor<mode>"): Likewise.
6750
6751 2006-10-25  Uros Bizjak  <uros@kss-loka.si>
6752
6753         * optabs.h (enum optab_index): Rename OTI_drem to OTI_remainder.
6754         (remainder_optab): Define corresponding macro.
6755         (drem_optab): Remove.
6756         * optabs.c (init_optabs): Initialize remainder_optab.  Remove
6757         drem_optab initialization.
6758         * genopinit.c (optabs): Implement remainder_optab using
6759         remainder?f3 patterns.  Remove drem_optab.
6760         * builtins.c (expand_builtin_mathfn_2): Handle
6761         BUILT_IN_REMAINDER{,F,L} using remainder_optab.
6762         (expand_builtin): Expand BUILT_IN_REMAINDER{,F,L} using
6763         expand_builtin_mathfn_2.
6764
6765         (expand_builtin) [BUILT_IN_FMOD, BUILT_IN_DREM]: Do not
6766         depend on flag_unsafe_math_optimizations.
6767
6768         * config/i386/i386.md ("remaindersf3", "remainderdf3")
6769         ("remainderxf3"): Renamed from "drem{s,d,x}f3" expanders.
6770         Do not depend on flag_unsafe_math_optimizations.  Use
6771         truncxf?f expander instead of truncxf?f_i387_noop.
6772
6773         ("fpremxf4", "fprem1xf4"): Do not depend on
6774         flag_unsafe_math_optimizations.
6775         ("fmodsf3", "fmoddf3", "fmodxf3"): Do not depend on
6776         flag_unsafe_math_optimizations.  Use truncxf?f expander
6777         instead of truncxf?f_i387_noop.
6778
6779         * doc/md.texi (fmod, remainder): Document standard named pattern.
6780
6781 2006-10-24  Richard Sandiford  <richard@codesourcery.com>
6782             David Daney  <ddaney@avtrex.com>
6783
6784         PR middle-end/29519
6785         * rtlanal.c (nonzero_address_p):  Remove check for values wrapping.
6786
6787 2006-10-25  Ben Elliston  <bje@au.ibm.com>
6788
6789         * doc/extend.texi (Variable Attributes): Typo fix.
6790
6791 2006-10-24  Uros Bizjak  <uros@kss-loka.si>
6792
6793         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 54.
6794         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add fpcr register.
6795         (REG_ALLOC_ORDER): Add one element to allocate fpcr register.
6796         (FRAME_POINTER_REGNUM): Update register number to 21.
6797         (REG_CLASS_CONTENTS): Update contents for added fpcr register.
6798         (HI_REGISTER_NAMES): Add "fpcr" for fpcr register.
6799
6800         * config/i386/i386.c (regclass_map): Add fpcr entry.
6801         (dbx_register_map, dbx64_register_map, svr4_dbx_register_map):
6802         Add fpcr entry.
6803         (print_reg): Assert REGNO (x) != FPCR_REG.
6804
6805         * config/i386/i386.md (FPCR_REG, R11_REG): New constants.
6806         (DIRFLAG_REG): Renumber.
6807         (x86_fnstcw_1, x86_fldcw_1): Use FPCR_REG instead of FPSR_REG.
6808         (*sibcall_1_rex64_v, *sibcall_value_1_rex64_v): Use R11_REG.
6809         (sse_prologue_save, *sse_prologue_save_insn): Renumber
6810         hardcoded SSE register numbers.
6811
6812         * config/i386/mmx.md (mmx_emms, mmx_femms): Renumber
6813         hardcoded MMX register numbers.
6814
6815 2006-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6816
6817         PR middle-end/29335
6818         * builtins.c (fold_builtin_sin, fold_builtin_atan): Remove.
6819         (do_mpfr_arg1): Add `min', `max' and `inclusive' arguments.
6820         Update all callers.
6821         (BUILT_IN_SIN, BUILT_IN_ATAN): Handle in main switch.
6822         (BUILT_IN_ASIN, BUILT_IN_ACOS, BUILT_IN_ATAN, BUILT_IN_ASINH,
6823         BUILT_IN_ACOSH, BUILT_IN_ATANH, BUILT_IN_SINH, BUILT_IN_COSH,
6824         BUILT_IN_TANH): Calculate compile-time arguments using MPFR.
6825
6826 2006-10-24  Richard Guenther  <rguenther@suse.de>
6827
6828         PR middle-end/28796
6829         * builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
6830         and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
6831         for deciding optimizations in consistency with fold-const.c
6832         (fold_builtin_unordered_cmp): Likewise.
6833
6834 2006-10-24  Richard Guenther  <rguenther@suse.de>
6835
6836         * builtins.c (fold_builtin_floor): Fold floor (x) where
6837         x is nonnegative to trunc (x).
6838         (fold_builtin_int_roundingfn): Fold lfloor (x) where x is
6839         nonnegative to FIX_TRUNC_EXPR.
6840
6841 2006-10-24  Richard Guenther  <rguenther@suse.de>
6842
6843         PR tree-optimization/29567
6844         * tree-vrp.c (register_edge_assert_for_1): Fix wrong logic
6845         for TRUTH_NOT_EXPR.  Clarify comments.
6846
6847 2006-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6848
6849         PR middle-end/29335
6850         * builtins.c (fold_builtin_exponent): Evaluate constant arguments
6851         at compile-time using MPFR.  Change parameter VALUE to FUNC,
6852         update all callers.
6853         (do_mpfr_arg1): Rename `exact' to `inexact'.  Carefully check
6854         for overflow and underflow at all times and avoid folding in
6855         those cases.
6856
6857 2006-10-24  Ben Elliston  <bje@au.ibm.com>
6858
6859         * reload1.c: Formatting fixes.
6860
6861 2006-10-23  Zdenek Dvorak <dvorakz@suse.cz>
6862
6863         PR tree-optimization/14784
6864         * tree-flow.h (struct var_ann_d): Add is_heapvar bit.
6865         * tree-ssa-structalias.c (get_constraint_for,
6866         intra_create_variable_infos): Set is_heapvar.
6867         * tree-ssa-operands.c (access_can_touch_variable): Do not handle
6868         non-heapvar pointer variables specially.
6869
6870 2006-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6871
6872         PR middle-end/29335
6873         * builtins.c (fold_builtin_sin, fold_builtin_cos,
6874         fold_builtin_tan): Fold all constant arguments.  Take a "type"
6875         argument as necessary.
6876         (do_mpfr_arg1): New.
6877         * real.c, real.h (real_from_mpfr, mpfr_from_real): New.
6878
6879 2006-10-23  Bob Wilson  <bob.wilson@acm.org>
6880
6881         * config/xtensa/lib1funcs.asm: Use C-style comments.
6882
6883 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
6884
6885         * tree.c (local_define_builtin): Replace calls to
6886         lang_hooks.builtin_function with add_builtin_function.
6887         * c-objc-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
6888         c_builtin_function.
6889         * c-tree.h (builtin_function): Rename to c_builtin_function. Change
6890         the signature.
6891         * c-decl.c (builtin_function): Rename to c_builtin_function. Move
6892         common code to add_builtin_function.
6893         * langhooks.c (add_builtin_function): New function.
6894         (lhd_builtin_function): New function.
6895         * langhooks.h (struct lang_hooks): Change the signature of
6896         builtin_function.
6897         (add_builtin_function): New function.
6898         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Replace
6899         calls to lang_hooks.builtin_function with add_builtin_function.
6900         * c-common.c (decl_builtin_1): Replace calls to
6901         lang_hooks.builtin_function with add_builtin_function.
6902         * config/alpha/alpha.c (alpha_init_builtins): Replace calls to
6903         lang_hooks.builtin_function with add_builtin_function.
6904         * config/frv/frv.c (def_builtin): Replace calls to
6905         lang_hooks.builtin_function with add_builtin_function.
6906         * config/s390/s390.c (s390_init_builtins): Replace calls to
6907         lang_hooks.builtin_function with add_builtin_function.
6908         * config/sparc/sparc.c (def_builtin): Replace calls to
6909         lang_hooks.builtin_function with add_builtin_function.
6910         * config/i386/i386.c (def_builtin): Replace calls to
6911         lang_hooks.builtin_function with add_builtin_function.
6912         * config/sh/sh.c (sh_media_init_builtins): Replace calls to
6913         lang_hooks.builtin_function with add_builtin_function.
6914         * config/c4x/c4x.c (c4x_init_builtins): Replace calls to
6915         lang_hooks.builtin_function with add_builtin_function.
6916         * config/stormy16/stormy16.c (xstormy16_init_builtins):
6917         Replace calls to lang_hooks.builtin_function with
6918         add_builtin_function.
6919         * config/iq2000/iq2000.c (def_builtin):
6920         Replace calls to lang_hooks.builtin_function with
6921         add_builtin_function.
6922         * config/ia64/ia64.c (def_builtin): Replace calls to
6923         lang_hooks.builtin_function with add_builtin_function.
6924         * config/rs6000/rs6000.c (def_builtin): Replace calls to
6925         lang_hooks.builtin_function with add_builtin_function.
6926         (altivec_init_builtins): Replace calls to
6927         lang_hooks.builtin_function with add_builtin_function.
6928         * config/arm/arm.c (def_mbuiltin): Replace calls to
6929         lang_hooks.builtin_function with add_builtin_function.
6930         (arm_init_tls_builtins): Replace calls to
6931         lang_hooks.builtin_function with add_builtin_function.
6932         * config/mips/mips.c (mips_init_builtins): Replace calls to
6933         lang_hooks.builtin_function with add_builtin_function.
6934         * config/bfin/bfin.c (def_builtin): Replace calls to
6935         lang_hooks.builtin_function with add_builtin_function.
6936         * langhooks-def.h (lhd_builtin_function): New function.
6937         (LANG_HOOKS_BUILTIN_FUNCTION): Define as lhd_builtin_function.
6938
6939 2006-10-23  Jakub Jelinek  <jakub@redhat.com>
6940
6941         * builtins.c (expand_builtin, maybe_emit_chk_warning): Handle
6942         BUILT_IN_STRNCAT_CHK.
6943
6944 2006-10-23  Jan Hubicka  <jh@suse.cz>
6945
6946         * builtins.c (expand_builtin_memmove): Remove ORIG_EXP argument;
6947         don't do conversion from memmove to memcpy here.
6948         (expand_builtin_bcopy, expand_builtin): Update call of
6949         expand_builtin_memmove.
6950         (fold_builtin_memory_op): Do folding of memmove to memcpy here.
6951
6952 2006-10-23  Paul Brook  <paul@codesourcery.com>
6953
6954         * stor-layout.c (start_record_layout): maximum_field_alignment
6955         overrides STRUCTURE_SIZE_BOUNDARY.
6956
6957 2006-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
6958
6959         * config/s390/predicates.md ("bras_sym_operand"): Do not accept
6960         nonlocal function symbols if flag_pic.
6961
6962 2006-10-23  Richard Guenther  <rguenther@suse.de>
6963
6964         PR middle-end/27132
6965         PR middle-end/23295
6966         * builtins.c (fold_binary): Remove checks for flag_wrapv
6967         and flag_trapv where negate_expr_p covers these cases.
6968
6969 2006-10-23  Richard Guenther  <rguenther@suse.de>
6970
6971         PR middle-end/29548
6972         * fold-const.c (fold_plusminus_mult_expr): Check exact power
6973         of two on the absolute value.
6974         (fold_binary): Fold x * -C to -x * C if x is easily negatable
6975         and negating -C does not overflow.
6976
6977 2006-10-23  Richard Guenther  <rguenther@suse.de>
6978
6979         PR middle-end/21032
6980         * convert.c (convert_to_real): Fold (float)-x to -(float)x
6981         only if not flag_rounding_math.
6982
6983 2006-10-22  Richard Sandiford  <richard@codesourcery.com>
6984             Kaz Kojima  <kkojima@gcc.gnu.org>
6985
6986         PR target/28232
6987         * config/sh/sh.c (expand_block_move): Use a BLKmode rather than
6988         SImode memory reference for the source of a movua.
6989         * config/sh/sh.md (UNSPEC_MOVUA): New macro.
6990         (movua): Use an unspec instead of sign_extract.  Expect the source
6991         to have mode BLKmode.
6992         (extv, insv): Use a BLKmode rather than SImode memory reference
6993         for the source of a movua.
6994
6995 2006-10-22  Jeff Law  <law@redhat.com>
6996         Richard Guenther  <rguenther@suse.de>
6997
6998         PR tree-optimization/15911
6999         * tree-vrp.c (extract_code_and_val_from_cond): New function.
7000         (register_edge_assert_for_1): Likewise.
7001         (register_edge_assert_for): Handle &&/&/||/| in conditionals.
7002         (find_conditional_asserts): Adjust for new function signature.
7003         (find_assert_locations): Likewise.
7004
7005 2006-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7006
7007         * config/i386/tmmintrin.h: Remove the duplicated content.
7008
7009 2006-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7010
7011         * config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
7012         (x86_64-*-*): Likewise.
7013
7014         * config/i386/i386.c (pta_flags): Add PTA_SSSE3.
7015         (override_options): Check SSSE3.
7016         (ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
7017         IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
7018         IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
7019         IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
7020         IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
7021         IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
7022         IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
7023         IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
7024         IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
7025         IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
7026         IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
7027         IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
7028         IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
7029         IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
7030         IX86_BUILTIN_PABSD128.
7031         (bdesc_2arg): Add SSSE3.
7032         (bdesc_1arg): Likewise.
7033         (ix86_init_mmx_sse_builtins): Support SSSE3.
7034         (ix86_expand_builtin): Likewise.
7035         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7036
7037         * config/i386/i386.md (UNSPEC_PSHUFB): New.
7038         (UNSPEC_PSIGN): Likewise.
7039         (UNSPEC_PALIGNR): Likewise.
7040         Include mmx.md before sse.md.
7041
7042         * config/i386/i386.opt: Add -mssse3.
7043
7044         * config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
7045         (ssse3_phaddwv4hi3): Likewise.
7046         (ssse3_phadddv4si3): Likewise.
7047         (ssse3_phadddv2si3): Likewise.
7048         (ssse3_phaddswv8hi3): Likewise.
7049         (ssse3_phaddswv4hi3): Likewise.
7050         (ssse3_phsubwv8hi3): Likewise.
7051         (ssse3_phsubwv4hi3): Likewise.
7052         (ssse3_phsubdv4si3): Likewise.
7053         (ssse3_phsubdv2si3): Likewise.
7054         (ssse3_phsubswv8hi3): Likewise.
7055         (ssse3_phsubswv4hi3): Likewise.
7056         (ssse3_pmaddubswv8hi3): Likewise.
7057         (ssse3_pmaddubswv4hi3): Likewise.
7058         (ssse3_pmulhrswv8hi3): Likewise.
7059         (ssse3_pmulhrswv4hi3): Likewise.
7060         (ssse3_pshufbv16qi3): Likewise.
7061         (ssse3_pshufbv8qi3): Likewise.
7062         (ssse3_psign<mode>3): Likewise.
7063         (ssse3_psign<mode>3): Likewise.
7064         (ssse3_palignrti): Likewise.
7065         (ssse3_palignrdi): Likewise.
7066         (abs<mode>2): Likewise.
7067         (abs<mode>2): Likewise.
7068
7069         * config/i386/tmmintrin.h: New file.
7070
7071         * doc/extend.texi: Document SSSE3 built-in functions.
7072
7073         * doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
7074
7075 2006-10-22  Ira Rosen  <irar@il.ibm.com>
7076
7077         * tree-vect-transform.c (vectorizable_load): Use the type of the
7078         return value of the mask_for_load builtin to create realign_load
7079         stmt.
7080
7081 2006-10-22  Richard Sandiford  <richard@codesourcery.com>
7082
7083         * config/mips/mips.c (mips_split_const): Don't accept bare PLUS
7084         expressions.
7085
7086 2006-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7087
7088         * config/i386/i386.md (UNSPEC_LDQQU): Renamed to ...
7089         (UNSPEC_LDDQU): This.
7090         * config/i386/sse.md (sse3_lddqu): Updated.
7091
7092 2006-10-21  Richard Guenther  <rguenther@suse.de>
7093
7094         * builtins.c (expand_builtin_int_roundingfn_2): New function.
7095         (expand_builtin): Use it to expand lrint instead of
7096         expand_builtin_mathfn.
7097
7098 2006-10-21  Uros Bizjak  <uros@kss-loka.si>
7099
7100         PR middle-end/28252
7101         * builtins.c (fold_builtin): Fold pow(x,1.0/3.0) as cbrt(x) if
7102         flag_unsafe_math_optimizations is set.
7103
7104 2006-10-21  Uros Bizjak  <uros@kss-loka.si>
7105
7106         PR target/19398
7107         * config/i386/i386.md (fix_trunc?f?i_sse): Add peephole2
7108         patterns to use memory input operand in x87->mem->XMM
7109         reload sequences.  Skip transformation for TARGET_K8.
7110
7111 2006-10-21  Uros Bizjak  <uros@kss-loka.si>
7112
7113         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Do not
7114         force operand1 to register if both operands are memory operands.
7115         (*extendsfdf2_mixed, *extendsfdf2_sse, *extendsfdf2_i387)
7116         (*extendsfxf2_i387, *extenddfxf2_i387): Do not disable pattern
7117         if both operands are memory operands.
7118         (truncdfsf2): Do not force operand1 to register if both operands
7119         are memory operands.
7120
7121 2006-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7122
7123         * Makefile.in (LIBS): Add $(GMPLIBS).
7124         * doc/install.texi: Update GMP and MPFR requirements.
7125         * doc/sourcebuild.texi (need_gmp): Delete.
7126
7127 2006-10-21  Richard Guenther  <rguenther@suse.de>
7128
7129         PR tree-optimization/3511
7130         * tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
7131         got new invariant arguments during PHI translation.
7132
7133 2006-10-21  Richard Guenther  <rguenther@suse.de>
7134
7135         PR middle-end/26898
7136         * fold-const.c (fold_comparison): Fold signed comparisons
7137         of the form X +- C1 CMP Y +- C2.
7138
7139 2006-10-21  Richard Guenther  <rguenther@suse.de>
7140
7141         PR target/19116
7142         * config/i386/i386.c (override_options): Do not set MASK_IEEE_FP
7143         if flag_unsafe_math_optimizations is specified.  We have
7144         flag_finite_math_only for that.
7145         * config/i386/i386.md (sqrtxf2): Do not require TARGET_IEEE_FP
7146         or flag_unsafe_math_optimizations.
7147
7148 2006-10-21  Richard Guenther  <rguenther@suse.de>
7149
7150         * builtins.c (fold_builtin_classify): Fix typo.
7151
7152 2006-10-21  Richard Guenther  <rguenther@suse.de>
7153
7154         PR middle-end/28796
7155         * simplify-rtx.c (simplify_const_relational_operation):
7156         Do not constant-fold ORDERED and UNORDERED for
7157         flag_unsafe_math_optimizations but only we do not need to
7158         honor NaNs for the given mode.
7159
7160 2006-10-21  Richard Guenther  <rguenther@suse.de>
7161
7162         PR target/29512
7163         * config/i386/i386.c (classify_argument): Remove redundant
7164         walking of the BINFOs.
7165         (contains_128bit_aligned_vector_p): Likewise.
7166
7167 2006-10-20  Mark Mitchell  <mark@codesourcery.com>
7168
7169         * BASE-VER: Set to 4.3.0.
7170
7171 2006-10-20  Daniel Berlin  <dberlin@dberlin.org>
7172
7173         * tree.h (DECL_PTA_ARTIFICIAL): Remove.
7174         (tree_decl_with_vis): Remove artificial_pta_var flag.
7175         * tree-flow.h (referenced_var_check_and_insert): Expose.
7176         (nonlocal_all): New prototype.
7177         * tree-ssa-structalias.c (nonlocal_for_type): Remove.
7178         (nonlocal_all): Make global.
7179         (nonlocal_lookup): Remove.
7180         (nonlocal_insert): Ditto.
7181         (create_nonlocal_var): Do not call nonlocal_insert.
7182         (get_nonlocal_id_for_type): Remove.
7183         (find_global_initializers): Mark new vars we find for renaming.
7184         (intra_create_variable_infos): Only create one nonlocal.
7185         (expand_nonlocal_solutions): Remove.
7186         (compute_points_to_sets): Don't call it.
7187         (ipa_pta_execute): Ditto.
7188         (init_alias_heapvars): Don't create nonlocal_for_type.
7189         (delete_alias_heapvars): Don't remove it.
7190         * tree-ssa-operands.c (access_can_touch_variable): Don't prune
7191         nonlocal_all.
7192
7193 2006-10-19  Brooks Moses  <bmoses@stanford.edu>
7194
7195         * doc/install.texi (Downloading GCC): Clarify mention of
7196         Fortran in the "full distribution" description.
7197
7198 2006-10-19  Daniel Berlin  <dberlin@dberlin.org>
7199
7200         Fix PR tree-optimization/28778
7201         Fix PR tree-optimization/29156
7202         Fix PR tree-optimization/29415
7203         * tree.h (DECL_PTA_ARTIFICIAL): New macro.
7204         (tree_decl_with_vis): Add artificial_pta_var flag.
7205         * tree-ssa-alias.c (is_escape_site): Remove alias info argument,
7206         pushed into callers.
7207         * tree-ssa-structalias.c (nonlocal_for_type): New variable.
7208         (nonlocal_all): Ditto.
7209         (struct variable_info): Add directly_dereferenced member.
7210         (var_escaped_vars): New variable.
7211         (escaped_vars_tree): Ditto.
7212         (escaped_vars_id): Ditto.
7213         (nonlocal_vars_id): Ditto.
7214         (new_var_info): Set directly_dereferenced.
7215         (graph_size): New variable
7216         (build_constraint_graph): Use graph_size.
7217         (solve_graph): Don't process constraints that cannot change the
7218         solution, don't try to propagate an empty solution to our
7219         successors.
7220         (process_constraint): Set directly_dereferenced.
7221         (could_have_pointers): New function.
7222         (get_constraint_for_component_ref): Don't process STRING_CST.
7223         (nonlocal_lookup): New function.
7224         (nonlocal_insert): Ditto.
7225         (create_nonlocal_var): Ditto.
7226         (get_nonlocal_id_for_type): Ditto.
7227         (get_constraint_for): Allow results vector to be empty in the case
7228         of string constants.
7229         Handle results of calls properly.
7230         (update_alias_info): Update alias info stats on number and type of
7231         calls.
7232         (find_func_aliases): Use could_have_pointers.
7233         (make_constraint_from_escaped): Renamed from
7234         make_constraint_to_anything, and changed to make constraints from
7235         escape variable.
7236         (make_constraint_to_escaped): New function.
7237         (find_global_initializers): Ditto.
7238         (create_variable_info_for): Make constraint from escaped to any
7239         global variable, and from any global variable to the set of
7240         escaped vars.
7241         (intra_create_variable_infos): Deal with escaped instead of
7242         pointing to anything.
7243         (set_uids_in_ptset): Do type pruning on directly dereferenced
7244         variables.
7245         (find_what_p_points_to): Adjust call to set_uids_with_ptset.
7246         (init_base_vars): Fix comment, and initialize escaped_vars.
7247         (need_to_solve): Removed.
7248         (find_escape_constraints): New function.
7249         (expand_nonlocal_solutions): Ditto.
7250         (compute_points_to_sets): Call find_escape_constraints and
7251         expand_nonlocal_solutions.
7252         (delete_points_to_sets): Don't fall off the end of the graph.
7253         (init_alias_heapvars): Initialize nonlocal_for_type and
7254         nonlocal_all.
7255         (delete_alias_heapvars): Free nonlocal_for_type and null out
7256         nonlocal_all.
7257
7258 2006-10-19  Eric Botcazou  <ebotcazou@adacore.com>
7259
7260         * fold-const.c (add_double): Rename to add_double_with_sign.
7261         Add 'unsigned_p' parameter and take it into account for the overflow.
7262         (mul_double): Rename to mul_double_with_sign.
7263         Add 'unsigned_p' parameter and take it into account for the overflow.
7264         (fold_div_compare): Call add_double_with_sign instead of add_double
7265         and mul_double_with_sign instead of mul_double, passing them the
7266         unsignedness of the type.
7267         * tree.h (add_double): Macroize.
7268         (add_double_with_sign): New prototype.
7269         (mul_double): Macroize.
7270         (mul_double_with_sign): New prototype.
7271
7272 2006-10-19  Chen Liqin  <liqin@sunnorth.com.cn>
7273
7274         * config/score/crti.asm: New file.
7275         * config/score/crtn.asm: New file.
7276         * config/score/elf.h: New file.
7277         * config/score/mac.md: New file.
7278         * config/score/misc.md: New file.
7279         * config/score/mul-div.S: New file.
7280         * config/score/predicates.md: New file.
7281         * config/score/score7.md: New file.
7282         * config/score/score.c: New file.
7283         * config/score/score-conv.h: New file.
7284         * config/score/score.h: New file.
7285         * config/score/score.md: New file.
7286         * config/score/score-mdaux.c: New file.
7287         * config/score/score-mdaux.h: New file.
7288         * config/score/score-modes.def: New file.
7289         * config/score/score.opt: New file.
7290         * config/score/score-protos.h: New file.
7291         * config/score/score-version.h: New file.
7292         * config/score/t-score-elf: New file.
7293         * config.gcc: Add score*-*-* configurations(Update before).
7294         * doc/invoke.texi (Score Options): New section.
7295         * doc/md.texi (Score family): New section to document constraints.
7296
7297 2006-10-19  Nick Clifton  <nickc@redhat.com>
7298
7299         * config/arm/arm.c: Fix spelling typo.
7300
7301 2006-10-18  Tom Tromey  <tromey@redhat.com>
7302
7303         * doc/install.texi (Prerequisites): Mention automake 1.9.6.
7304
7305 2006-10-18  Jan Hubicka  <jh@suse.cz>
7306
7307         PR middle-end/29299
7308         * cfgexpand.c (expand_used_vars_for_block): Vars marked used by user
7309         are used.
7310
7311 2006-10-18  Marcin Dalecki  <martin@dalecki.de>
7312
7313         * omp-low.c (expand_parallel_call): Use BSI_SAME_STMT instead of
7314         TSI_SAME_STMT, since that's the desired entity.
7315
7316 2006-10-17  Wolfgang Gellerich  <gellerich@de.ibm.com>
7317
7318         * config/s390/contraints.md: New file.
7319         * config/s390/s390-protos.h (s390_mem_constraint,
7320         s390_O_constraint_str, s390_N_constraint_str,
7321         s390_float_const_zero_p): Function prototypes added.
7322         * config/s390/s390.c (s390_extra_constraint_str,
7323         s390_const_double_ok_for_constraint_p,
7324         s390_const_ok_for_constraint_p): Functions removed.
7325         (s390_mem_constraint, s390_O_constraint_str, s390_N_constraint_str,
7326         s390_float_const_zero_p): New functions.
7327         * config/s390/s390.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_CONSTRAINT_P,
7328         CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR,
7329         EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT, CONSTRAINT_LEN):
7330         Macro definitions removed.
7331         (s390_const_ok_for_constraint_p, s390_const_double_ok_for_constraint_p,
7332         s390_extra_constraint_str): Functions removed.
7333
7334 2006-10-17  Andrew Pinsiki  <pinskia@gmail.com>
7335             Richard Sandiford  <richard@codesourcery.com>
7336
7337         PR target/29413
7338         * config/mips/linux.h (SUBTARGET_CC1_SPEC): Override.
7339         * config/mips/mips.h (CC1_SPEC): Override any earlier definition.
7340
7341 2006-10-16  Geoffrey Keating  <geoffk@apple.com>
7342
7343         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
7344         (DWARF2_FRAME_REG_OUT): Likewise.
7345         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Move from sysv4.h.
7346         (DWARF2_FRAME_REG_OUT): Likewise.
7347
7348 2006-10-17  Paul Brook  <paul@codesourcery.com>
7349
7350         * config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
7351
7352 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
7353
7354         * doc/contrib.texi, doc/install.texi, doc/standards.texi:
7355         Standardize on "GNU Fortran" as the official name of the Fortran
7356         compiler.
7357
7358 2006-10-16  Mike Stump  <mrs@apple.com>
7359
7360         * doc/invoke.texi (Darwin Options): Document -mkernel.
7361         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
7362         -mkernel support.
7363         (C_COMMON_OVERRIDE_OPTIONS): Add -mkernel support.  Add
7364         SUBTARGET_C_COMMON_OVERRIDE_OPTIONS callout.
7365         (CC1_SPEC): Don't turn on -fPIC when -mkernel is given.
7366         (OS_MISSING_ALTIVEC): Add.
7367         * config/i386/i386.c (override_options): Add
7368         SUBSUBTARGET_OVERRIDE_OPTIONS callout.
7369         * config/i386/darwin.h (CC1_SPEC): Don't turn on -fPIC when
7370         -mkernel, -static or -mdynamic-no-pic is given.
7371         (C_COMMON_OVERRIDE_OPTIONS): Add.
7372         * config/darwin.opt (fapple-kext): Add.
7373         (mkernel): Add.
7374         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add
7375         -fapple-kext, -findirect-virtual-calls, -fterminated-vtables and
7376         -mkernel support.
7377         (SUBSUBTARGET_OVERRIDE_OPTIONS): Add.
7378         (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Add.
7379         (CPP_SPEC): Move defines for __DYNAMIC__ and __STATIC__ from here...
7380         (SUBTARGET_ATTRIBUTE_TABLE): Add apple_kext_compatibility.
7381         (TARGET_CXX_CDTOR_RETURNS_THIS): Add.
7382         (flag_mkernel): Add.
7383         (flag_apple_kext): Add.
7384         (TARGET_KEXTABI): Add.
7385         * config/darwin.c (darwin_handle_kext_attribute): Add.
7386         (DARWIN_VTABLE_P): Add.
7387         (darwin_binds_local_p): Add partial support for rebinding vtables
7388         in kexts.
7389         (darwin_kextabi_p): Add.
7390         (darwin_override_options): Add.
7391         * config/darwin-protos.h (darwin_handle_kext_attribute): Add.
7392         (darwin_kextabi_p): Add.
7393         (darwin_override_options): Add.
7394         * config/darwin-c.c (darwin_cpp_builtins): ... move defines for
7395         __DYNAMIC__ and __STATIC__ here.
7396
7397 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
7398
7399         * doc/sourcebuild.texi, doc/makefile.texi, doc/install.texi:
7400         Added mention of "make pdf" target, and Texinfo requirements for
7401         same.
7402
7403 2006-10-16  DJ Delorie  <dj@redhat.com>
7404
7405         * config/s390/s390.c (s390_decompose_address): Allow symbol+offset
7406         into the GOT in case we need a subreg of the address.
7407
7408 2006-10-16  Richard Guenther  <rguenther@suse.de>
7409
7410         PR target/25519
7411         * doc/extend.texi (X86 Built-in Functions): Fix typos in
7412         SSE builtin documentation.  Document SSE2 builtins.
7413
7414 2006-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7415
7416         * pa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined
7417         symbol in the output file for non-shared links when -nostdlib or
7418         -nodefaultlibs isn't specified.
7419
7420         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*): Default to
7421         posix thread support.
7422
7423 2006-10-15  Jan Hubicka  <jh@suse.cz>
7424
7425         PR middle-end/29241
7426         * cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
7427         declared always_inline even when not inlining.
7428
7429 2006-10-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
7430             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7431             Andrew Pinski  <pinskia@gmail.com>
7432
7433         PR middle-end/29111
7434         * builtins.c (get_pointer_alignment): Return 0 if TER is not run.
7435
7436 2006-10-15  Jan Hubicka  <jh@suse.cz>
7437             Richard Guenther  <rguenther@suse.de>
7438
7439         PR middle-end/29299
7440         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
7441         process_function_and_variable_attributes on all variables, including
7442         those discovered during cgraph construction phase.
7443
7444 2006-10-15  Bernhard Fischer  <aldot@gcc.gnu.org>
7445
7446         * final.c: Update Copyright year. Commentary typo fix. Fix whitespace
7447
7448 2006-10-14  Uros Bizjak  <uros@kss-loka.si>
7449
7450         * config/i386/athlon.md (athlon_fist): Add fisttp.
7451
7452 2006-10-13  David Edelsohn  <edelsohn@gnu.org>
7453             Ian Lance Taylor  <ian@airs.com>
7454
7455         PR middle-end/29250
7456         * expr.c (expand_expr_real_1) <NON_LVALUE_EXPR, NOP_EXPR,
7457         CONVERT_EXPR>: Change EXPAND_SUM modifier to EXPAND_NORMAL when
7458         recursing.
7459
7460 2006-10-14  Kazu Hirata  <kazu@codesourcery.com>
7461
7462         * config/score/score.c, config/score/score.h: Fix comment
7463         typos.
7464
7465 2006-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7466
7467         PR bootstrap/29402
7468         * Makefile.in (ALL_GTFILES_H): Use $(sort ...) instead of
7469         shell pipeline.
7470
7471 2006-10-13  Eric Christopher  <echristo@apple.com>
7472
7473         * config/darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7474
7475 2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
7476
7477         Revert this change:
7478         2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
7479         * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
7480         alignment supported by 32-bit ELF.
7481
7482 2006-10-13  Eric Christopher  <echristo@apple.com>
7483
7484         * config/darwin.c (darwin_emit_unwind_label): Strip
7485         name encoding. Use DECL_ASSEMBLER_NAME_SET_P.
7486
7487 2006-10-13  Richard Guenther  <rguenther@suse.de>
7488
7489         PR tree-optimization/29446
7490         * tree-vrp.c (fix_equivalence_set): Remove.
7491         (extract_range_from_assert): Do not call fix_equivalence_set.
7492         (debug_value_range): Print a newline.
7493         (compare_name_with_value): For equivalence sets with
7494         inconsistent value ranges conservatively bail out.
7495         (compare_names): Likewise.
7496
7497 2006-10-13  David Edelsohn  <edelsohn@gnu.org>
7498
7499         * doc/install.texi (*-ibm-aix*): Add comment about 32-bit GMP
7500         and MPFR for gfortran.
7501
7502 2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
7503
7504         * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
7505         alignment supported by 32-bit ELF.
7506
7507 2006-10-13  Paolo Bonzini  <bonzini@gnu.org>
7508
7509         PR c/29092
7510
7511         * c-typeck.c (digest_init): Always allow initializing vectors
7512         that have static storage duration with compound literals.
7513         * tree.c (build_type_attribute_qual_variant): New, based on
7514         build_type_attribute_variant.
7515         (build_type_attribute_variant): Rewrite using the former.
7516         (make_vector_type): Use build_type_attribute_qual_variant to build
7517         type variants.  Use type_hash_canon on the others.
7518
7519 2006-10-13  Daniel Berlin <dberlin@dberlin.org>
7520             Ramana Radhakrishnan  <ramana.radhakrishnan@celunite.com>
7521
7522         * tree-flow-inline.h (zero_ssa_operands): Fix comment.
7523
7524 2006-10-12  Jan Hubicka  <jh@suse.cz>
7525
7526         PR c/28419
7527         * c-decl.c (c_make_fname_decl): Do not segfault in case where
7528         current_function_decl is set but current_function_scope is not.
7529
7530 2006-10-12  Jie Zhang  <jie.zhang@analog.com>
7531
7532         * config/bfin/bfin.md (eh_return): Call emit_jump_insn instead of
7533         emit_insn to emit eh_return_internal instruction.
7534         (eh_return_internal): Explicitly set pc.
7535
7536 2006-10-11  Richard Guenther  <rguenther@suse.de>
7537
7538         PR tree-optimization/28230
7539         * tree-vrp.c (vrp_int_const_binop): Move flag_wrapv handling
7540         to the correct place.
7541
7542 2006-10-11  Richard Guenther  <rguenther@suse.de>
7543
7544         PR inline-asm/29119
7545         * gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
7546         addressable.
7547
7548 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
7549
7550         * configure.ac: Added pdf to "Make-hooks"
7551         * Makefile.in: Added TEXI2PDF definition, and various pdf-file
7552         targets and *.pdf file patterns in cleanup targets.
7553         * configure: Regenerated.
7554
7555 2006-10-10  Anatoly Sokolov <aesok@post.ru>
7556
7557         * config/avr/predicates.md: New file.
7558         * config/avr/avr.md: Include it.
7559         (REG_SP): New constant.
7560         (peepholes): Use predicates.
7561         (sbrx_branch, sbrx_and_branchhi, sbrx_and_branchsi, branch, rvbranch,
7562         difficult_branch,  difficult_rvbranch, cbi, sbi, sbix_branch,
7563         sbix_branch_bit7, sbix_branch_tmp, sbix_branch_tmp_bit7): Ditto.
7564
7565 2006-10-10  Adam Nemet  <anemet@caviumnetworks.com>
7566
7567         * config/mips/mips.c (mips_save_restore_reg): Use gen_frame_mem to
7568         avoid alias set 0.
7569
7570 2006-10-10  Jakub Jelinek  <jakub@redhat.com>
7571
7572         PR middle-end/29272
7573         * builtins.c (var_decl_component_p): New function.
7574         (fold_builtin_memset, fold_builtin_memory_op): Restrict
7575         single entry optimization to variables and components thereof.
7576
7577 2006-10-10  Richard Guenther  <rguenther@suse.de>
7578
7579         PR rtl-optimization/29323
7580         * except.c (set_nothrow_function_flags): For functions
7581         that do not bind local bail out early.
7582
7583 2006-10-10  Ben Elliston  <bje@au.ibm.com>
7584
7585         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -m to the
7586         -mdlmzb option.
7587
7588 2006-10-09  Richard Henderson  <rth@redhat.com>
7589
7590         Revert emutls patch.
7591
7592 2006-10-09  Richard Guenther  <rguenther@suse.de>
7593
7594         PR middle-end/29254
7595         * cgraphunit.c (verify_cgraph_node): Bail out on earlier
7596         errors.
7597
7598 2006-10-09  Steve Ellcey  <sje@cup.hp.com>
7599
7600         PR target/27880
7601         * unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo.
7602         * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo.
7603         * configure: Regenerate.
7604         * config.in: Regenerate.
7605
7606 2006-10-09  Aldy Hernandez  <aldyh@redhat.com>
7607
7608         * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
7609
7610 2006-10-08  Richard Sandiford  <richard@codesourcery.com>
7611
7612         * config/mips/mips.c (mips_legitimize_tls_address): Implement
7613         all TLS models in the same way as local exec if !TARGET_ABICALLS.
7614         Remove stray newline.
7615
7616 2006-10-08  Richard Sandiford  <richard@codesourcery.com>
7617
7618         * config/mips/mips.c (mips_classify_symbol): Do not return
7619         SYMBOL_SMALL_DATA if SYMBOL_REF_WEAK.
7620         (mips_in_small_data_p): Tweak comments.
7621
7622 2006-10-08  Richard Sandiford  <richard@codesourcery.com>
7623
7624         * config/mips/elf.h (HANDLE_PRAGMA_PUSH_POP): Define.
7625
7626 2006-10-07  Kazu Hirata  <kazu@codesourcery.com>
7627
7628         * gimplify.c, sched-int.h: Fix comment typos.
7629
7630         * sched-int.h: Fix comment typos.
7631
7632 2006-10-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7633
7634         * sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
7635         New macros.
7636         * sched-ebb.c (begin_schedule_ready): Use them.
7637         * haifa-sched.c (schedule_insn, move_insn, try_ready,
7638         add_to_speculative_block, create_check_block_twin, speculate_insn,
7639         fix_jump_move, move_block_after_check): Ditto.
7640         * sched-rgn.c (new_ready): Ditto.
7641
7642 2006-10-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7643
7644         PR rtl-optimization/29128
7645         * sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
7646         * sched-ebb.c (advance_target_bb): Use it to fix condition to
7647         allow interblock movement of speculation checks.
7648
7649 2006-10-06  Zdenek Dvorak <dvorakz@suse.cz>
7650
7651         PR middle-end/29256
7652         * tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
7653         casted to integer type.
7654         (get_address_cost): Decrease cost of [symbol + index] addressing modes
7655         if they are significantly more expensive than [reg + index] ones.
7656
7657 2006-10-06  Jakub Jelinek  <jakub@redhat.com>
7658
7659         PR tree-optimization/29330
7660         * tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
7661         (initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
7662         on newly allocated ddrs.
7663         (find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
7664         to VEC (loop_p, heap) pointer.
7665         (compute_data_dependences_for_loop): Adjust caller.
7666         (free_dependence_relations): Free DDR_LOOP_NEST.
7667
7668         * tree-loop-linear.c (linear_transform_loops): Don't forget to
7669         free DEPENDENCE_RELATIONS and DATAREFS.
7670
7671         PR target/28924
7672         * builtins.c (expand_builtin_sync_operation,
7673         expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
7674         Use convert_to_mode to handle promoted arguments.
7675
7676 2006-10-06  J"orn Rennecke  <joern.rennecke@st.com>
7677
7678         * print-tree.c (print_node_brief, print_node): Print sign of Inf.
7679
7680 2006-10-06  J"orn Rennecke  <joern.rennecke@st.com>
7681
7682         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define.
7683
7684 2006-10-05  Uros Bizjak  <uros@kss-loka.si>
7685
7686         * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
7687         "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
7688         Use <modeconstraint> instead of "r" as operand 1 constraint.
7689
7690 2006-10-06  Olivier Hainque  <hainque@adacore.com>
7691
7692         * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
7693         Don't recurse on the pointed-to type.
7694         * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
7695         DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
7696         types with components of variable size.
7697
7698 2006-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
7699
7700         * config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
7701
7702 2006-10-06  Jakub Jelinek  <jakub@redhat.com>
7703
7704         PR tree-optimization/29290
7705         * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
7706         multiple exits.
7707
7708         PR target/29198
7709         * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
7710         * config/i386/predicates.md (local_symbolic_operand): Likewise.
7711
7712         PR c/29091
7713         * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
7714         the number of vector elements fill the rest with zeros.
7715
7716 2006-10-05  Richard Sandiford  <richard@codesourcery.com>
7717
7718         * config/mips/mips.c (mips_pass_by_reference): Do not return false
7719         for EABI if type is NULL.  Use a size check based on GET_MODE_SIZE
7720         instead.
7721
7722 2006-10-05  Bernd Schmidt  <bernd.schmidt@analog.com>
7723
7724         * config/bfin/bfin.md (subsi3): Lose expander, change previously
7725         unnamed pattern into subsi3.  Use correct constraints/predicates.
7726         * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
7727         * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
7728
7729 2006-10-05  Ira Rosen  <irar@il.ibm.com>
7730
7731         * doc/loop.texi: Add data references analysis description.
7732
7733 2006-10-04  Brooks Moses  <bmoses@stanford.edu>
7734
7735         * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
7736
7737 2006-10-04  Richard Henderson  <rth@redhat.com>
7738             Jakub Jelinek  <jakub@redhat.com>
7739
7740         * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
7741         * builtin-types.def (BT_WORD): Make unsigned.
7742         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
7743         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
7744         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
7745         * c-decl.c (grokdeclarator): Don't error if !have_tls.
7746         * c-parser.c (c_parser_omp_threadprivate): Likewise.
7747         * cgraph.c (decide_is_variable_needed): Look at force_output.
7748         Recurse for emulated tls.
7749         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
7750         checks redundant with decide_is_variable_needed.
7751         (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
7752         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
7753         emulated tls.
7754         * expr.c (emutls_var_address): New.
7755         (expand_expr_real_1): Expand emulated tls.
7756         (expand_expr_addr_expr_1): Likewise.
7757         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
7758         * output.h (emutls_finish): Declare.
7759         * toplev.c (compile_file): Call it.
7760         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
7761         address before wrapping in CONST.
7762         * varasm.c (emutls_htab, emutls_object_type): New.
7763         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
7764         (get_emutls_object_name, get_emutls_object_type): New.
7765         (get_emutls_init_templ_addr, emutls_decl): New.
7766         (emutls_common_1, emutls_finish): New.
7767         (assemble_variable): When emulating tls, swap decls; generate
7768         constructor for the emutls objects.
7769         (do_assemble_alias): When emulating tls, swap decl and target name.
7770         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
7771         for emulated tls.
7772         * emutls.c: New file.
7773         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
7774         tls_object for real tls.
7775
7776 2006-10-04  Zack Weinberg  <zackw@panix.com>
7777
7778         Fix bug in constraint-check generator, reported by Rask Ingemann
7779         Lambertsen:
7780         * genpreds.c (add_constraint): Don't remove anything from the
7781         expression here.
7782         (write_tm_constrs_h): Detect whether "op" argument is used, and
7783         mark it ARG_UNUSED if it isn't.
7784         (write_insn_const_int_ok_for_constraint): Skip the part of the
7785         expression that would test whether "op" (which is not available
7786         here) is a CONST_INT.
7787
7788 2006-10-04  Ryan Mansfield  <rmansfield@qnx.com>
7789
7790         PR c++/28448
7791         * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
7792
7793 2006-10-03  Geoffrey Keating  <geoffk@apple.com>
7794
7795         * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
7796         current Leopard versions.
7797         * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
7798
7799 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
7800
7801         * doc/install.texi: Fix typos.
7802
7803 2006-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7804
7805         * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
7806         * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
7807         * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
7808
7809 2006-10-02  Jack Howarth  <howarth@bromo.med.uc.edu>
7810
7811         * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
7812         arg to be struct mach_header_64* instead.
7813
7814 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
7815
7816         PR c/29154
7817         * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
7818         side effects after the outer expression's post side effects.
7819
7820 2006-10-01  Sandra Loosemore  <sandra@codesourcery.com>
7821
7822         * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET):  Fix
7823         comments to reflect actual behavior and relationship between
7824         DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
7825
7826         * doc/c-tree.texi (Working with declarations): Fix documentation
7827         of FIELD_DECL likewise.
7828
7829 2006-10-01  Ryan Mansfield  <rmansfield@qnx.com>
7830
7831         PR c/20533
7832         * doc/extend.texi: Add used variable attribute description.
7833
7834 2006-09-30  Joseph S. Myers  <joseph@codesourcery.com>
7835
7836         PR c/24010
7837         * c.opt (Woverride-init): New.
7838         * c-opts.c (c_common_post_options): Default warn_override_init to
7839         extra_warnings.
7840         * c-typeck.c (add_pending_init, output_init_element): Warn for
7841         overriding initializers without side effects.
7842         * doc/invoke.texi (-Woverride-init): Document.
7843         (-Wextra): Update.
7844
7845 2006-09-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7846
7847         PR rtl-optimization/28096
7848         * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
7849         assignment has already been used as a destination earlier in the block.
7850
7851 2006-09-29  Eric Botcazou  <ebotcazou@adacore.com>
7852
7853         * builtins.c (expand_builtin_setjmp): Delete.
7854         (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
7855         <BUILT_IN_SETJMP_SETUP>: New case.
7856         <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
7857         <BUILT_IN_SETJMP_RECEIVER>: Likewise.
7858         * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
7859         (BUILT_IN_SETJMP_DISPATCHER): Likewise.
7860         (BUILT_IN_SETJMP_RECEIVER): Likewise.
7861         * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
7862         (lower_function_body): Initialize it to false.  If it is set to true
7863         at the end of the processing, emit the setjmp dispatcher.
7864         (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
7865         is __builtin_setjmp and set calls_builtin_setjmp to true as well.
7866         <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
7867         on the rhs of the assignment.
7868         (lower_builtin_setjmp): New function.
7869         * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
7870         BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
7871         * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
7872         to detect calls that can go to non-local labels.  Use specific
7873         helper to create the abnormal edges associated with them.
7874         <MODIFY_EXPR>: Likewise.
7875         (make_abnormal_goto_edges): New function extracted from...
7876         (make_goto_expr_edges): ...here.  Call it for computed gotos.
7877         (simple_goto_p): Minor tweak.
7878         (tree_can_make_abnormal_goto): New predicate.
7879         (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
7880         (tree_purge_dead_abnormal_call_edges): New function.
7881         * tree-flow.h (tree_can_make_abnormal_goto): Declare.
7882         (tree_purge_dead_abnormal_call_edges): Likewise.
7883         (make_abnormal_goto_edges): Likewise.
7884         * tree-inline.c (expand_call_inline): Simplify statement frobbing.
7885         Purge all dead abnormal edges if the call was in the last statement.
7886         * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
7887         (execute_fixup_cfg): If there are non-local labels in the function,
7888         scan the basic blocks and split them at calls that can go to non-local
7889         labels or add missing abnormal call edges.  Write down the CFG in the
7890         dump file.
7891         (pass_fixup_cfg): Remove TODO_dump_func flag.
7892         * unwind-sjlj.c: Poison setjmp.
7893         * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
7894         * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
7895         (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
7896         (DONT_USE_BUILTIN_SETJMP): Document it.
7897
7898 2006-09-28  Geoffrey Keating  <geoffk@apple.com>
7899
7900         PR target/28617
7901         * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
7902         to 1 when __ppc64__ is defined.
7903         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
7904         darwin-64.c.
7905         * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
7906
7907 2006-09-28  Steve Ellcey  <sje@cup.hp.com>
7908
7909         * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
7910         * config/ia64/unwind-hpux.c: Delete.
7911
7912 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
7913
7914         * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
7915         on the element before gimplifying it, instead of punting if it is of
7916         variable size.
7917
7918 2006-09-28  Zdenek Dvorak <dvorakz@suse.cz>
7919
7920         * doc/loop.texi: New file.
7921         * doc/gccint.texi: Reference loop.texi.
7922         * Makefile.in (loop.texi): Add.
7923
7924 2006-09-27  Geoffrey Keating  <geoffk@apple.com>
7925
7926         * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
7927         __sysctl.
7928         * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7929         * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7930
7931 2006-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
7932
7933         * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
7934
7935 2006-09-27  Steven G. Kargl  <kargl@gcc.gnu.org>
7936
7937         * doc/install.texi: Document required versions of GMP and MPFR.
7938
7939 2006-09-27  Paul Brook  <paul@codesourcery.com>
7940
7941         PR target/29230
7942         * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
7943
7944 2006-09-27  Richard Sandiford  <richard@codesourcery.com>
7945
7946         * reload1.c (alter_reg): Require the alignment of the stack slot to
7947         be at least reg_max_ref_width bytes.
7948         (scan_paradoxical_subregs): Record the largest width in
7949         reg_max_ref_width.
7950
7951 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
7952
7953         PR middle-end/25261
7954         PR middle-end/28790
7955         * tree-nested.c (struct nesting_info): Added static_chain_added.
7956         (convert_call_expr): Set static_chain_added when adding static
7957         chain.  Handle OMP_PARALLEL and OMP_SECTION.
7958
7959 2006-09-25  Matthias Klose  <doko@debian.org>
7960
7961         * doc/invoke.texi: Add missing full stop.
7962
7963 2006-09-25  Richard Henderson  <rth@redhat.com>
7964
7965         * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
7966         before cgraph_function_flags_ready.
7967
7968 2006-09-24  Zdenek Dvorak <dvorakz@suse.cz>
7969             Adam Nemet  <anemet@caviumnetworks.com>
7970
7971         * tree-ssa-loop-ivopts.c (aff_combination_convert,
7972         determine_common_wider_type): New functions.
7973         (get_computation_aff): Use them to simplify arithmetic between
7974         UBASE and CBASE if they are shortened from the same type.
7975
7976 2006-09-24  Kazu Hirata  <kazu@codesourcery.com>
7977
7978         PR target/28911
7979         * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
7980         -2147483647 - 1 instead of 0x80000000.
7981
7982 2006-09-23  Revital1 Eres  <ERES@il.ibm.com>
7983
7984         * flags.h (HONOR_NANS): Fix typo in comment.
7985
7986 2006-09-23  Uros Bizjak <uros@kss-loka.si>
7987
7988         * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
7989
7990 2006-09-23  Jakub Jelinek  <jakub@redhat.com>
7991
7992         PR c/28706
7993         PR c/28712
7994         * tree.c (merge_attributes, attribute_list_contained): If both
7995         TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
7996         simple_cst_equal.
7997         * c-typeck.c (comptypes_internal): Don't consider aggregates
7998         in different TUs as compatible if there one set of attributes is
7999         not a subset of the other type's attributes.
8000         (composite_type): Try harder not to create a new aggregate type.
8001
8002 2006-09-22  Geoffrey Keating  <geoffk@apple.com>
8003
8004         * config/i386/driver-i386.c: Always define host_detect_local_cpu.
8005         * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
8006         or x86_64 host.  Define HAVE_LOCAL_CPU_DETECT.
8007         (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
8008         than replicating condition above.
8009         * config.host (i[34567]86-*-*): Always use driver-i386.o.
8010
8011         * config/darwin.h (LINK_SYSROOT_SPEC): New.
8012         (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
8013         the linker by default.
8014
8015 2006-09-22  Mike Stump  <mrs@apple.com>
8016
8017         * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
8018         code.
8019
8020 2006-09-22  Richard Guenther  <rguenther@suse.de>
8021
8022         PR middle-end/28964
8023         * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
8024         sort of stack variables stable.
8025
8026 2006-09-22  Peter Bergner <bergner@vnet.ibm.com>
8027
8028         PR middle-end/28690
8029         * explow.c (force_reg): Set REG_POINTER flag according to
8030         MEM_POINTER flag.
8031
8032 2006-09-22  Zdenek Dvorak <dvorakz@suse.cz>
8033
8034         PR tree-optimization/28888
8035         * tree-if-conv.c (combine_blocks): Rewritten.
8036         * tree-cfg.c (tree_verify_flow_info): Check that edges with
8037         EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
8038
8039 2006-09-22  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
8042         needed.
8043
8044 2006-09-21  Richard Sandiford  <richard@codesourcery.com>
8045
8046         * varasm.c (copy_constant): Fix reversed gcc_assert check.
8047
8048 2006-09-21  Janis Johnson  <janis187@us.ibm.com>
8049
8050         * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
8051
8052 2006-09-21  Roger Sayle  <roger@eyesopen.com>
8053
8054         PR debug/29132
8055         * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
8056         dw_fde_current_label, to be the start of the function, i.e. the same
8057         value as dw_fde_begin.
8058
8059 2006-09-20  Richard Sandiford  <richard@codesourcery.com>
8060
8061         * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
8062         * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
8063         (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
8064         (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
8065         (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
8066         (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
8067         (abs<mode>2, neg<mode>2): Likewise.
8068         * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
8069         (*mips_abs_ps): New define_insn.
8070
8071 2006-09-20  Josh Conner  <jconner@apple.com>
8072
8073         PR middle-end/25505
8074         * calls.c (expand_call): Allow reuse of structure return stack
8075         temp.
8076
8077 2006-09-20  Paul Brook  <paul@codesourcery.com>
8078
8079         * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
8080         positive offsets.
8081
8082 2006-09-20  Janis Johnson  <janis187@us.ibm.com>
8083
8084         * doc/extend.texi (Decimal Float): Update for latest draft TR,
8085         clean up terminology.
8086
8087 2006-09-20  Steve Ellcey  <sje@cup.hp.com>
8088
8089         PR target/28574
8090         * ifcvt.c (dead_or_predicable): Don't predicate then blocks
8091         with tablejumps in them.
8092
8093 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8094
8095         PR middle-end/28046
8096         * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
8097         wrap it into TARGET_EXPR.
8098
8099 2006-09-20  Eric Christopher  <echristo@apple.com>
8100
8101         * config/i386/i386.c (x86_fisttp): Remove.
8102         * config/i386/i386.h (x86_fisttp): Ditto.
8103         (TARGET_FISTTP): Ditto.
8104
8105 2006-09-19  Eric Christopher  <echristo@apple.com>
8106
8107         * doc/tm.texi (OBJC_JBLEN): Describe.
8108         * config/i386/darwin.h (OBJC_JBLEN): Define.
8109         * config/rs6000/darwin.h: Ditto.
8110
8111 2006-09-19  Steven Bosscher  <steven@gcc.gnu.org>
8112
8113         PR rtl-optimization/21299
8114         * reload1.c (reload): Purge invalid ASMs in the final pass.
8115
8116 2006-09-19  Steve Ellcey  <sje@cup.hp.com>
8117
8118         PR  28490
8119         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
8120         pointers as legitimate constants.
8121
8122 2006-09-19  Paul Brook  <paul@codesourcery.com>
8123
8124         PR target/28516
8125         * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
8126
8127 2006-09-17  Zdenek Dvorak <dvorakz@suse.cz>
8128
8129         PR tree-optimization/28887
8130         * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
8131         component parts from the reference.
8132         (gather_memory_references_ref): Record the reference without the
8133         nonaddressable component parts.
8134
8135 2006-09-17  Steven Bosscher  <steven@gcc.gnu.org>
8136
8137         PR c/25993
8138         * c-opts.c (c_common_handle_option): Ignore the -std options
8139         if the input language is assembly.
8140
8141 2006-09-17  Ira Rosen  <irar@il.ibm.com>
8142
8143         PR tree-opt/21591
8144         * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
8145         tag first.
8146         (ptr_ptr_may_alias_p): Likewise.
8147         (record_record_differ_p): New function.
8148         (base_object_differ_p): Call record_record_differ_p.
8149
8150 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
8151
8152         PR tree-opt/29059
8153         * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
8154         away for the expr argument.
8155
8156 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
8157
8158         PR tree-opt/27742
8159         * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
8160         before using it for dumping after vectorizing loops.
8161
8162 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
8163             Jack Howarth  <howarth@bromo.med.uc.edu>
8164
8165         PR target/29030
8166         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
8167         skip on error_mark_node.
8168         (rs6000_darwin64_record_arg_recurse): Likewise.
8169
8170 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
8171
8172         * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
8173         * doc/rtl.texi: Remove related documentation.
8174
8175 2006-09-16  Bernd Schmidt  <bernd.schmidt@analog.com>
8176
8177         * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
8178         printf.
8179
8180 2006-09-15  Jim Wilson  <wilson@specifix.com>
8181
8182         * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
8183         Handle symbol offsets same as they are handled in ia64_expand_move
8184         and move_operand.
8185
8186 2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>
8187
8188         * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
8189         Add forgotten parameter to the fprintf call.
8190
8191 2006-09-15  Steve Ellcey  <sje@cup.hp.com>
8192
8193         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
8194
8195 2006-09-15  Uros Bizjak <uros@kss-loka.si>
8196
8197         * doc/contrib.texi: Add my entry.
8198
8199 2006-09-15  Nick Clifton  <nickc@redhat.com>
8200
8201         * doc/md.texi (Processor pipeline description): Fix typo in
8202         example of how to use the absence_set directive and reword the
8203         description to make it slightly easier to read.
8204
8205 2006-09-15  Bernd Schmidt  <bernd.schmidt@analog.com>
8206
8207         * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
8208         * loop-doloop.c (doloop_optimize): Use it to limit costs of
8209         expanding the number of iterations.
8210         * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
8211
8212         * cfgrtl.c (emit_insn_at_entry): New function.
8213         * rtl.h (emit_insn_at_entry): Declare it.
8214         * integrate.c (emit_initial_value_sets): Use it.
8215
8216         * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
8217
8218         * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
8219         bad.
8220         (struct loop_work and related VEC declarations): Delete.
8221         (bfin_dump_loops): Print out new member bad.
8222         (bfin_bb_in_loop): Use plain bitmap test.  Don't recurse.
8223         (bfin_scan_loop): Don't recurse.
8224         (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
8225         loops.  No longer need to update outer loops if the current one is
8226         found bad.  Move some validitiy checks to bfin_discover_loop.
8227         (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
8228         but changed not to check for nesting.  Also changed to use the new bad
8229         flag.
8230         (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
8231         time.  Use bitmap based test to discover loop nesting.
8232
8233 2006-09-15  Kazu Hirata  <kazu@codesourcery.com>
8234
8235         * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
8236         one line.
8237
8238 2006-09-14  Richard Guenther  <rguenther@suse.de>
8239             Kazu Hirata  <kazu@codesourcery.com>
8240
8241         PR middle-end/28884.
8242         * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
8243         (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
8244         Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
8245         with TARGET_FUNCTION_VALUE.
8246
8247 2006-09-14  Anatoly Sokolov <aesok@post.ru>
8248
8249         PR target/26504
8250         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
8251
8252 2006-09-13  Aldy Hernandez  <aldyh@redhat.com>
8253
8254         * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
8255         of a RETURN_EXPR
8256
8257 2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
8258
8259         PR debug/28980
8260         * dwarf2out.c (loc_descriptor_from_tree_1): Handle
8261         FUNCTION_DECL.
8262
8263 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
8264
8265         * basic_block.h (bb_has_eh_pred): Fix comment.
8266
8267 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
8268
8269         * flow.c (calculate_global_regs_live): Invalidate eh registers
8270         on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
8271         (propagate_block): Handle eh registers as if they were set at basic
8272         block start.
8273         * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
8274         registers.
8275         * global.c (global_conflicts): Make eh registers to conflict with
8276         pseudos live at basic block begin.
8277         * basic_block.h (bb_has_eh_pred): New function.
8278
8279 2006-09-13  Richard Sandiford  <richard@codesourcery.com>
8280
8281         PR rtl-optimization/28982
8282         * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
8283         index of a PRE_MODIFY or POST_MODIFY address.
8284         * reload1.c (inc_for_reload): Use find_replacement on the original
8285         base and index registers.
8286
8287 2006-09-12  H.J. Lu  <hongjiu.lu@intel.com>
8288
8289         * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
8290         for -Os. Update __m128 alignment requirement.
8291
8292 2006-09-13  Jan Hubicka  <jh@suse.cz>
8293
8294         * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
8295
8296 2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8297
8298         PR rtl-optimization/28243
8299         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
8300         the insn to which the note was originally attached.
8301
8302 2006-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
8303             Roger Sayle  <roger@eyesopen.com>
8304
8305         * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
8306         outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
8307         on platforms that don't use dwarf for debug info.
8308
8309 2006-09-12  Jason Merrill  <jason@redhat.com>
8310
8311         PR middle-end/28493
8312         * builtins.c (expand_builtin_setjmp_receiver): Clobber
8313         hard_frame_pointer_rtx after using it to update the frame pointer.
8314
8315 2006-09-12  Roger Sayle  <roger@eyesopen.com>
8316
8317         * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
8318         (TARGET_ASM_CLOSE_PAREN): Likewise.
8319         * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
8320         (TARGET_ASM_CLOSE_PAREN): Likewise.
8321
8322 2006-09-12  Roger Sayle  <roger@eyesopen.com>
8323
8324         PR target/22223
8325         * config/alpha/alpha.c (alpha_start_function): Don't emit stack
8326         frame information for frames larger than 512 Kbytes on Tru64 when
8327         using the native assembler.
8328
8329 2006-09-12  Roger Sayle  <roger@eyesopen.com>
8330
8331         PR middle-end/4520
8332         PR bootstrap/28784
8333         * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
8334         and symbols.  Instead use the implementation from cse.c's hash_rtx.
8335
8336 2006-09-12  Jan Hubicka  <jh@suse.cz>
8337
8338         PR rtl-optimization/28071
8339         * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
8340         (vect_transform_loop): Likewise.
8341         * tree-vectorizer.c (new_loop_vec_info): Likewise.
8342         (new_loop_vec_info): Likewise.
8343         (destroy_loop_vec_info): Likewise.
8344         * tree-dfa.c (create_var_ann): Use GCC_CNEW.
8345         (create_stmt_ann): Likewise.
8346         (create_tree_ann): Rename to ...
8347         (create_tree_common_ann): ... this one; allocate only the common part
8348         of annotations.
8349         * tree-vn.c (set_value_handle): Use get_tree_common_ann.
8350         (get_value_handle): Likewise.
8351         * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
8352         get_tree_common_ann.
8353         * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
8354         (vinfo_for_stmt): Use stmt annotations.
8355         * tree-flow.h (tree_ann_common_t): New type.
8356         (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
8357         (tree_ann, get_tree_ann, create_tree_ann): New.
8358         * tree-flow-inline.h (get_function_ann): Do more type checking.
8359         (stmt_ann): Likewise.
8360         (tree_ann): Rename to ...
8361         (tree_common_ann): ... this one; return ony common_ann
8362         (get_tree_ann): Rename to ...
8363         (tree_common_ann): This one; return only common_ann.
8364         * tree-vect-patterns.c (vect_pattern_recog_1): Update call
8365         of set_stmt_info.
8366
8367 2006-09-11  Geoffrey Keating  <geoffk@apple.com>
8368
8369         * config.gcc (i[34567]86-*-darwin*): Set with_arch and
8370         with_cpu by default.
8371
8372         * dwarf2out.c (dwarf_file_data): New.
8373         (enum dw_val_class): Add dw_val_class_file.
8374         (struct dw_val_struct): Add val_file.
8375         (file_table): Change to a hash table.
8376         (file_table_emitted): Delete.
8377         (file_table_last_lookup_index): Delete.
8378         (emitcount): Delete.
8379         (last_emitted_file): New.
8380         (lookup_filename): Change prototype to return a struct dwarf_file_data.
8381         (init_file_table): Delete.
8382         (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
8383         (AT_addr): Add comment.
8384         (add_AT_file): New.
8385         (AT_file): New.
8386         (get_AT_file): New.
8387         (print_die): Handle dw_val_class_file.
8388         (print_dwarf_line_table): Update for new file table structure.
8389         (attr_checksum): Do checksum a filename.
8390         (same_dw_val_p, same_attr_p): Do compare a filename.
8391         (size_of_die): Handle dw_val_class_file.
8392         (value_format): Likewise.
8393         (output_die): Likewise.  Also, call maybe_emit_file here.
8394         (struct file_info): Constify filenames.  Make file_idx a pointer
8395         to a struct dwarf_file_data.
8396         (struct dir_info): Constify directory names.  Remove 'used' field.
8397         (struct file_name_acquire_data): New.
8398         (file_name_acquire): New.
8399         (output_file_names): Modify to handle new file data structures.
8400         (add_src_coords_attributes): Use add_AT_file.
8401         (add_call_src_coords_attributes): Likewise.
8402         (dwarf2out_imported_module_or_decl): Likewise.
8403         (gen_subprogram_die): Modify for new file data structures.
8404         (gen_variable_die): Likewise.
8405         (file_table_eq): New.
8406         (file_table_hash): New.
8407         (file_table_last_lookup): New.
8408         (lookup_filename): Rewrite to handle new file data structures.
8409         (maybe_emit_file): Rewrite to handle new file data structures.
8410         (dwarf2out_source_line): Always call lookup_filename and
8411         maybe_emit_file.
8412         (dwarf2out_init): Create file_table here.
8413         (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
8414         (file_table_relative_p): New.
8415         (dwarf2out_finish): Change detection of relative filenames
8416         to work with new file data structures.  Move output_line_info call
8417         after debug_info output.
8418
8419 2006-09-11  H.J. Lu  <hongjiu.lu@intel.com>
8420
8421         PR target/13685
8422         PR target/27537
8423         PR target/28621
8424         * config/i386/i386.c (override_options): Always default to 16
8425         byte stack boundary.
8426
8427 2006-09-11  Alexandre Oliva  <aoliva@redhat.com>
8428
8429         PR target/28672
8430         * var-tracking.c (dump_dataflow_set): Start dumping at
8431         register zero.
8432         (clobber_variable_part): Kill only the variable part in
8433         registers holding it, leaving other variables alone.
8434
8435 2006-09-11  Josh Triplett  <josh@freedesktop.org>
8436
8437         * doc/extend.texi (Other Builtins): Actually use the macro
8438         argument in the documentation example for
8439         __builtin_types_compatible_p.
8440
8441 2006-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
8442
8443         PR rtl-optimization/28726
8444         * sched-deps.c (sched_analyze_reg): New function extracted from...
8445         (sched_analyze_1): ...here.  Call it to analyze references to
8446         registers.  Treat again writes to a stack register as writing to the
8447         register.
8448         (sched_analyze_2): ...and here.  Call it to analyze references to
8449         registers.  Treat again reads of a stack register as reading the
8450         register.
8451
8452 2006-09-11  Guenter Roeck  <guenter@roeck-us.net>
8453             David Edelsohn  <edelsohn@gnu.org>
8454
8455         PR target/27287
8456         * config/rs6000/spe.md (frob_df_di): Remove %H.
8457         (frob_di_df): Remove %H.  Change evmergelo to mr.
8458         (frob_di_df_2): Remove %H.  Change evldd to two loads.
8459
8460 2006-09-11  Hideki Iwamoto  <h-iwamoto@kit.hi-ho.ne.jp>
8461
8462         * doc/cpp.texi: Fix names of charset options.
8463
8464 2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>
8465
8466         PR target/29009
8467         * config/i386/i386.c (override_options): Use 128-bit
8468         stack boundary always for 64bits.
8469
8470 2006-09-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
8471
8472         PR rtl-optimization/28636
8473         * combine.c (force_to_mode): Test for side-effects before
8474         substituting by zero.
8475         (simplify_shift_const): Likewise for zero or other constants.
8476
8477 2006-09-10  Steven Bosscher  <steven@gcc.gnu.org>
8478
8479         PR middle-end/26983
8480         * builtins.c (expand_builtin_setjmp): Force next_lab to be
8481         preserved.
8482
8483 2006-09-10  Richard Sandiford  <richard@codesourcery.com>
8484
8485         PR target/29006
8486         * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
8487         * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
8488         returned by mode_for_size, rather than the mode of src itself,
8489         to choose between 32-bit and 64-bit patterns.
8490         (mips_mem_fits_mode_p): New function.
8491         * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
8492         that the size of the source matches the size of the destination.
8493         (mov_<store>l, mov_<store>r): Likewise.
8494
8495 2006-09-10  Eric Christopher  <echristo@apple.com>
8496
8497         * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
8498         for literal16.
8499
8500 2006-09-09  Eric Christopher  <echristo@apple.com>
8501
8502         PR target/28995
8503         * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
8504         for literal16.
8505
8506 2006-09-09  Roger Sayle  <roger@eyesopen.com>
8507             Nicolas Setton <setton@adacore.com>
8508
8509         * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
8510
8511 2006-09-10  Andreas Schwab  <schwab@suse.de>
8512
8513         * config/m68k/m68k.md (bungt_rev): New pattern.
8514
8515 2006-09-09  Paolo Bonzini  <bonzini@gnu.org>
8516             Dale Johannesen  <dalej@apple.com>
8517
8518         PR target/26778
8519         * regclass.c (struct reg_pref): Update documentation.
8520         (regclass): Set prefclass to NO_REGS if memory is the best option.
8521         (record_reg_classes): Cope with a prefclass set to NO_REGS.
8522
8523 2006-09-08  Eric Christopher  <echristo@apple.com>
8524
8525         * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
8526         * config/t-slibgcc-darwin: Support x86_64 multilib.
8527         * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
8528         Return 1 for x86_64-darwin.
8529         * config/i386/t-darwin: Add m64 multilib.
8530         (LIB2_SIDITI_CONV_FUNCS): Use.
8531         (LIB2FUNCS_EXTRA): Ditto.
8532         * config/i386/darwin.h: Support x86_64.
8533         * config/i386/i386.c (override_options): Turn on flag_pic
8534         for x86_64-darwin. Disable flag_omit_pointer.
8535         (get_pc_thunk_name): Assert !TARGET_64BIT.
8536         (legitimate_address_p): Disable machopic addressing for
8537         x86_64.
8538         (legitimize_pic_address): Ditto.
8539         (ix86_expand_move): Ditto.
8540         (ix86_expand_call): Ditto.
8541         (machopic_output_stub): Ditto.
8542         * config/darwin.c (machopic_select_section): Support literal16.
8543         (machopic_select_rtx_section): Ditto.
8544         * config/darwin-sections.def: Ditto.
8545         * config/darwin-64.c: New.
8546
8547 2006-09-08  Joseph S. Myers  <joseph@codesourcery.com>
8548
8549         PR c/28504
8550         * c-tree.h (struct c_arg_info): Add pending_sizes.
8551         * c-parser.c (c_parser_parms_declarator,
8552         c_parser_parms_list_declarator): Initialize pending_sizes.
8553         * c-decl.c (get_parm_info): Initialize pending_sizes.
8554         (get_parm_info): Set pending_sizes.
8555         (grokdeclarator): Call put_pending_sizes for parameters for
8556         function definition only.
8557
8558 2006-09-07  Jason Merrill  <jason@redhat.com>
8559
8560         PR middle-end/27724
8561         * varasm.c (output_constant): Only strip actual no-op conversions.
8562
8563         PR target/13685
8564         * config/i386/i386.c (override_options): Use 128-bit
8565         stack boundary if -msse.
8566
8567 2006-09-07  Eric Christopher  <echristo@apple.com>
8568
8569         * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
8570         comment.
8571         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
8572         Redefine.
8573
8574 2006-09-07  Geoffrey Keating  <geoffk@apple.com>
8575
8576         * dwarf2out.c: Remove strange characters from comment above
8577         dwarf2out_frame_debug_expr.
8578
8579 2006-09-07  Eric Christopher  <echristo@apple.com>
8580
8581         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
8582         * config/darwin.h: ... to here.
8583
8584 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8585
8586         * config/i386/i386.c (x86_partial_flag_reg_stall): New.
8587
8588         * config/i386/i386.h (x86_partial_flag_reg_stall): New.
8589         (TARGET_PARTIAL_FLAG_REG_STALL): New.
8590
8591         * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
8592         TARGET_PARTIAL_FLAG_REG_STALL.
8593         (*ashldi3_cconly_rex64): Likewise.
8594         (*ashlsi3_cmp): Likewise.
8595         (*ashlsi3_cconly): Likewise.
8596         (*ashlsi3_cmp_zext): Likewise.
8597         (*ashlhi3_cmp): Likewise.
8598         (*ashlhi3_cconly): Likewise.
8599         (*ashlqi3_cmp): Likewise.
8600         (*ashlqi3_cconly): Likewise.
8601         (*ashrdi3_cmp_rex64): Likewise.
8602         (*ashrdi3_cconly_rex64): Likewise.
8603         (*ashrsi3_cmp): Likewise.
8604         (*ashrsi3_cconly): Likewise.
8605         (*ashrsi3_cmp_zext): Likewise.
8606         (*ashrhi3_cmp): Likewise.
8607         (*ashrhi3_cconly): Likewise.
8608         (*ashrqi3_cmp): Likewise.
8609         (*ashrqi3_cconly): Likewise.
8610         (*lshrdi3_cmp_rex64): Likewise.
8611         (*lshrdi3_cconly_rex64): Likewise.
8612         (*lshrsi3_cmp): Likewise.
8613         (*lshrsi3_cconly): Likewise.
8614         (*lshrsi3_cmp_zext): Likewise.
8615         (*lshrhi3_cmp): Likewise.
8616         (*lshrhi3_cconly): Likewise.
8617         (*lshrqi2_cmp): Likewise.
8618         (*lshrqi2_cconly): Likewise.
8619
8620 2006-09-07 Uros Bizjak <uros@kss-loka.si>
8621
8622         PR target/28946
8623         * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
8624         "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
8625         "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
8626         "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
8627         "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
8628         "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
8629         "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
8630         "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
8631         "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
8632         implement only CC setting effects of shift instructions.
8633
8634 2006-09-07  Martin Michlmayr  <tbm@cyrius.com>
8635
8636         * doc/contrib.texi: Add myself.
8637
8638 2006-09-07  Andrew Pinski  <pinskia@physics.uc.edu>
8639
8640         PR middle-end/28862
8641         * stor-layout.c (relayout_decl): Don't zero the alignment if it
8642         was set by the user.
8643
8644 2006-09-07  Paolo Bonzini  <bonzini@gnu.org>
8645
8646         PR target/27117
8647         * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
8648         (divsi_inv_m1): Use them.
8649         (UNSPEC_DIV_INV_TABLE): New constant.
8650
8651 2006-09-06  James E Wilson  <wilson@specifix.com>
8652
8653         PR rtl-opt/27883
8654         * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
8655         then call count_or_remove_death_notes.
8656
8657 2006-09-06  Jason Merrill  <jason@redhat.com>
8658
8659         PR c++/27371
8660         * tree-inline.c (copy_result_decl_to_var): New fn.
8661         (declare_return_variable): Use it.  Call declare_inline_vars here.
8662         (expand_call_inline): Not here.
8663
8664 2006-09-06  Diego Novillo  <dnovillo@redhat.com>
8665
8666         * doc/contrib.texi: Update my entry.
8667
8668 2006-09-06  Nick Clifton  <nickc@redhat.com>
8669
8670         * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
8671
8672 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
8673
8674         PR tree-opt/28937
8675         * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
8676         (canonicalize_induction_variables): Likewise.
8677         (tree_unroll_loops_completely): Likewise.
8678         (tree_ssa_prefetch_arrays): Likewise.
8679         (remove_empty_loops): Likewise.
8680         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
8681         TODO_cleanup_cfg instead of directly calling
8682         cleanup_tree_cfg_loop.
8683         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
8684         Likewise.
8685         (tree_unroll_loops_completely): Likewise.
8686         (remove_empty_loops): Likewise.
8687         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8688         * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
8689         of tree_ssa_unswitch_loops.
8690         (tree_ssa_loop_ivcanon): Use the return value of
8691         canonicalize_induction_variables.
8692         (tree_ssa_empty_loop): Use the return value of
8693         remove_empty_loops.
8694         (tree_complete_unroll): Use the return value of
8695         tree_unroll_loops_completely.
8696         (tree_ssa_loop_prefetch): Use the return value of
8697         tree_ssa_prefetch_arrays.
8698         * passes.c (execute_todo): Before Cleanup CFG, set
8699         updating_used_alone and after cleanup CFG, call
8700         recalculate_used_alone.
8701
8702 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
8703
8704         PR tree-opt/28952
8705         * tree-vect-transform.c (vectorizable_condition): Move the check
8706         for the type after the check for simple condition.
8707
8708 2006-09-05  J"orn Rennecke  <joern.rennecke@st.com>
8709             Kaz Kojima  <kkojima@gcc.gnu.org>
8710
8711         PR target/28764
8712         * mode-switching.c (optimize_mode_switching): Make the destination
8713         block of an abnormal edge have no anticipatable mode.  Don't
8714         insert mode switching code at the end of the source block of
8715         an abnormal edge.
8716
8717 2006-09-05  Paolo Bonzini  <bonzini@gnu.org>
8718
8719         PR rtl-optimization/26847
8720         * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
8721         (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
8722         (simplify_plus_minus): Count n_constants while filling ops.  Replace
8723         qsort with insertion sort.  Before going through the array to simplify
8724         pairs, sort it.  Delay early exit until after the first sort, exiting
8725         only if no swaps occurred.  Simplify pairs in reversed order, without
8726         special-casing the first iteration.  Pack ops after simplifying pairs.
8727
8728 2006-09-05  Anatoly Sokolov <aesok@post.ru>
8729
8730         * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
8731         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8732         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8733         (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
8734
8735 2006-09-05  Richard Guenther  <rguenther@suse.de>
8736
8737         PR tree-optimization/28900
8738         * tree-if-conv.c (find_phi_replacement_condition): Gimplify
8739         compound conditional before creating COND_EXPR condition.
8740
8741 2006-09-05  Richard Guenther  <rguenther@suse.de>
8742
8743         PR tree-optimization/28905
8744         * tree-vrp.c (fix_equivalence_set): Manually implement
8745         !value_ranges_intersect_p to also handle symbolic ranges.
8746
8747 2006-09-05  Richard Guenther  <rguenther@suse.de>
8748
8749         PR middle-end/28935
8750         * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
8751         of a COND_EXPR.
8752
8753 2006-09-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
8754
8755         PR rtl-optimization/27616
8756         * cse.c (table_size): New static variable.
8757         (new_basic_block): Initialize it to 0.
8758         (remove_from_table): Decrement it.
8759         (insert): Increment it.
8760         (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
8761         (fold_rtx_mem): Enforce a cap on the recursion depth.  Call
8762         fold_rtx_mem_1 if under the cap.
8763         (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
8764         the lookup of the equivalent expression and test for equality of the
8765         first operand of the equivalent expression before in turn looking up
8766         an equivalent constant for the second operand.
8767
8768 2006-09-02  Geoffrey Keating  <geoffk@apple.com>
8769
8770         Revert this change:
8771         2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
8772         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
8773         pointer, instead of assuming it is possible to derive the
8774         correct args size from a call insn.
8775
8776 2006-09-02  Jakub Jelinek  <jakub@redhat.com>
8777
8778         PR middle-end/27567
8779         * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
8780         (fold_builtin_mempcpy): Rename to...
8781         (fold_builtin_memory_op): ... this.  Optimize one element copy
8782         into an assignment.
8783         (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
8784         functions.
8785         (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
8786         (expand_builtin_memcpy, expand_builtin_mempcpy,
8787         expand_builtin_memmove): Likewise.  Use fold_builtin_memory_op.
8788         (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
8789         BUILT_IN_BCOPY.  Use fold_builtin_memory_op for
8790         BUILT_IN_MEM{CPY,PCPY,MOVE}.
8791
8792 2006-09-01  DJ Delorie  <dj@redhat.com>
8793
8794         * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
8795         (stzx_16): Likewise.
8796         ("stzx_24_<mode>"): Likewise.
8797         ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
8798         ("cmp<mode>_op"): New.
8799         (cmp<mode>): Change to expander; just save operands.
8800         (b<code>_op): New.
8801         (b<code>): Change to expander, emit compare here.
8802         (s<code>_op): Change to use split and expander.
8803         (s<code>_24_op): Likewise.
8804         (s<code>_<mode>): New.
8805         (s<code>_<mode>_24): New.
8806         (movqicc_<code>_<mode): New.
8807         (movhicc_<code>_<mode>): New.
8808         (s<code>): New.
8809         (s<code>_24): New.
8810         * config/m32c/m32c.c (compare_op0, compare_op1): New.
8811         (m32c_pend_compare): New.
8812         (m32c_unpend_compare): New.
8813         (m32c_expand_scc): New.
8814         (m32c_expand_movcc): Emit the compare also.
8815         * config/m32c/predicates.md (mra_nopp_operand): New.
8816
8817 2006-09-01  J"orn Rennecke  <joern.rennecke@st.com>
8818         Richard Guenther  <rguenther@suse.de>
8819         Adam Nemet  <anemet@caviumnetworks.com>
8820
8821         PR middle-end/27226
8822         * builtins.c (get_pointer_alignment): Handle more forms
8823         of base addresses that can be used to derive more precise
8824         information about alignment.
8825
8826 2006-09-01  Jason Merrill  <jason@redhat.com>
8827
8828         PR c++/28899
8829         * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
8830         want_value.
8831
8832         * gimplify.c (voidify_wrapper_expr): Handle null type.
8833
8834 2006-09-01  Josh Conner  <jconner@apple.com>
8835
8836         PR c++/25505
8837         * tree-nrv.c (dest_safe_for_nrv_p): New function.
8838         (execute_return_slot_opt): Use it.
8839
8840 2006-08-31  Josh Conner  <jconner@apple.com>
8841
8842         PR c++/25505
8843         * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
8844         returning aggregates.
8845
8846 2006-08-31  Zdenek Dvorak <dvorakz@suse.cz>
8847
8848         PR tree-optimization/28839
8849         * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
8850         blocks in that phi arguments appear.
8851
8852 2006-08-31  Roger Sayle  <roger@eyesopen.com>
8853
8854         PR other/22313
8855         * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
8856         NULL, otherwise use an advance_loc4 to adjust relative to the
8857         current label.
8858         (output_cfi) <DW_CFA_set_loc>: Update the current label.
8859         (dwarf2out_switch_text_section): Reset the current label to avoid
8860         using advance_loc4 over section boundaries.
8861
8862 2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>
8863
8864         PR target/24367
8865         * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
8866         r12 + SYMBOLIC_CONST.
8867
8868 2006-08-30  Richard Guenther  <rguenther@suse.de>
8869
8870         * Makefile.in (see.o): Add $(EXPR_H) dependency.
8871
8872 2006-08-30  Zdenek Dvorak <dvorakz@suse.cz>
8873
8874         PR rtl-optimization/27735
8875         * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
8876         Add new argument to keep track of whether an irreducible region
8877         was affected.  All callers changed.
8878         (fix_irreducible_loops): Removed.
8879         (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
8880         flags were invalidated.
8881
8882 2006-08-29  H.J. Lu  <hongjiu.lu@intel.com>
8883
8884         * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
8885         instead of SF operands.
8886         (*fop_df_comm_sse): Likewise.
8887         (*fop_df_comm_i387): Likewise.
8888         (*fop_df_1_mixed): Likewise.
8889         (*fop_df_1_sse): Likewise.
8890
8891 2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
8892             J"orn Rennecke  <joern.rennecke@st.com>
8893
8894         PR tree-optimization/17506
8895         * tree-ssa.c (warn_uninit): If warning about a location outside of
8896         the current function, note where the variable was declared.
8897
8898 2006-08-28  Zdenek Dvorak <dvorakz@suse.cz>
8899
8900         PR tree-optimization/28411
8901         * double-int.c (double_int_div): Use double_int_divmod.
8902         (double_int_divmod, double_int_sdivmod, double_int_udivmod,
8903         double_int_mod, double_int_smod, double_int_umod): New functions.
8904         * double-int.h (double_int_divmod, double_int_sdivmod,
8905         double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
8906         Declare.
8907         * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
8908         in double_int.
8909         (get_computation_aff, get_computation_cost_at): Handle double_int
8910         return type of constant_multiple_of.
8911
8912 2006-08-28  Kazu Hirata  <kazu@codesourcery.com>
8913
8914         PR middle-end/26632
8915         * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
8916         an implicit conversion.
8917
8918 2006-08-28  Prafulla Thakare  <prafullat@kpitcummins.com>
8919
8920         * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
8921
8922 2006-08-27  Roger Sayle  <roger@eyesopen.com>
8923
8924         * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
8925         x87 instructions.
8926
8927 2006-08-27  Kazu Hirata  <kazu@codesourcery.com>
8928
8929         * config/i386/crtfastmath.c: Fix a comment typo.
8930
8931 2006-08-26  Roger Sayle  <roger@eyesopen.com>
8932
8933         * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
8934         temporary visit flags on CASE_LABEL_EXPRs.
8935         * c-common.c (match_case_to_enum): Add function comment.  Avoid
8936         O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
8937         (c_do_switch_warnings):  Reorganize to record CASE_LOW_SEEN and
8938         CASE_HIGH_SEEN for enumerated types.  If the switch expression is
8939         a constant, only warn if that constant value isn't handled.
8940
8941 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
8942
8943         PR c++/24009
8944         * input.h (restore_input_file_stack): Declare.
8945         (INPUT_FILE_STACK_BITS): Define.
8946         * toplev.c (fs_p, input_file_stack_history,
8947         input_file_stack_restored, restore_input_file_stack): New.
8948         (push_srcloc, pop_srcloc): Check for input_file_stack_tick
8949         overflowing INPUT_FILE_STACK_BITS bits.  Save new state of stack.
8950         (pop_srcloc): Don't free old state of stack.
8951
8952 2006-08-26  David Edelsohn  <edelsohn@gnu.org>
8953
8954         PR target/27544
8955         * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
8956         (PowerPC Type Attributes): New.
8957
8958 2006-08-26  Bob Wilson  <bob.wilson@acm.org>
8959
8960         * config/xtensa/xtensa.c (function_arg_boundary): New.
8961         (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
8962         STACK_BOUNDARY.
8963         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
8964         function_arg_boundary function that limits alignment to STACK_BOUNDARY.
8965
8966 2006-08-26  Jakub Jelinek  <jakub@redhat.com>
8967
8968         PR middle-end/28683
8969         * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
8970         3 following insns.
8971
8972 2006-08-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8973
8974         * flow.c (verify_wide_reg): Use internal_error for consistency failure.
8975         (verify_local_live_at_start): Likewise.
8976
8977 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
8978
8979         PR c/27893
8980         * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
8981         omp_add_variable): Treat sizes as variable whenever not
8982         INTEGER_CST.
8983
8984 2006-08-26  Richard Guenther  <rguenther@suse.de>
8985
8986         PR middle-end/28814
8987         * fold-const.c (fold_binary): Fold temporary to correct
8988         type before constructing new comparison.
8989
8990 2006-08-25  Fariborz Jahanian  <fjahanian@apple.com>
8991
8992         PR c/28418
8993         * c-gimplify.c (gimplify_compound_literal_expr): Don't add
8994         variable again if DECL_SEEN_IN_BIND_EXPR_P.
8995
8996 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
8997
8998         PR c/28299
8999         * c-decl.c (start_function): Don't try to process prototype
9000         information from old declaration that isn't a function.
9001
9002 2006-08-25  Jan Hubicka  <jh@suse.cz>
9003
9004         PR target/28621
9005         * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
9006
9007 2006-08-25  Alan Modra  <amodra@bigpond.net.au>
9008
9009         PR target/27075
9010         * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
9011         for 8 byte objects.
9012
9013 2006-08-25  J"orn Rennecke  <joern.rennecke@st.com>
9014
9015         PR tree-optimization/16876
9016         * c-typeck.c (c_convert_parm_for_inlining): Don't take early
9017         exit if PARM doesn't match VALUE.
9018
9019 2006-08-25  Bob Wilson  <bob.wilson@acm.org>
9020
9021         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
9022         literal_prefix directive.
9023         (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
9024         * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
9025         * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
9026
9027 2006-08-25  David Edelsohn  <edelsohn@gnu.org>
9028
9029         PR target/28753
9030         * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
9031         predicate to general_operand.  Add 0->y and I->r alternatives.
9032
9033 2006-08-25  Kazu Hirata  <kazu@codesourcery.com>
9034
9035         * doc/tm.texi: Fix a typo.
9036         * predict.c: Fix comment typos.
9037
9038 2006-08-25  Nick Clifton  <nickc@redhat.com>
9039
9040         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9041         assertions of "cpu" and "machine".
9042
9043 2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>
9044
9045         PR tree-opt/28807
9046         * tree-ssa-operands.c (access_can_touch_variable): Don't say
9047         the access through a base which has an alias set of 0 cannot
9048         touch the variable.
9049
9050 2006-08-24  Bill Wendling  <wendling@apple.com>
9051
9052         * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
9053
9054 2006-08-24  Jan Hubicka  <jh@suse.cz>
9055
9056         * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
9057
9058 2006-08-24  Jan Hubicka  <jh@suse.cz>
9059
9060         PR debug/26881
9061         * cgraph.c: Fix comments.
9062         (cgraph_varpool_mark_needed_node): Mark only variables not already
9063         output to file.
9064         * cgraphunit.c: Update comments; include gt-cgraphunit.h
9065         (cgraph_varpool_assembled_nodes_queue): New static variable.
9066         (cgraph_varpool_assemble_decl): Record output decls for debug out code.
9067         (cgraph_varpool_output_debug_info): New function.
9068         (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
9069         * Makefile.in: Add gt-cgraphunit.h
9070
9071 2006-08-24  Jan Hubicka  <jh@suse.cz>
9072
9073         * predict.c (probability_reliable_p): New predicate.
9074         (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
9075         (predict_loops): Do not predict loop exit with less than 2%
9076         probability.
9077         * basic-block.h (edge_probability_reliable_p,
9078         br_prob_note_reliable_p): Declare.
9079         * ia64.h (ia64_print_operand): Do not disable on-chip branch
9080         prediction when static predictor is not reliable.
9081         * rs6000.c (output_cbranch): Likewise.
9082
9083 2006-08-23  Stuart Hastings  <stuart@apple.com>
9084
9085         PR 28825
9086         * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
9087         ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
9088
9089 2006-08-21  Geoffrey Keating  <geoffk@apple.com>
9090
9091         PR debug/28692
9092         * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
9093         complex values, nor for generic vector values.
9094
9095 2006-08-22  Richard Guenther  <rguenther@suse.de>
9096
9097         PR middle-end/28776
9098         * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
9099         parameter.  Convert arguments to arithmetic expression to the
9100         chrecs type.
9101         (analyze_scalar_evolution_1): Adjust caller.
9102
9103 2006-08-22  Jan Hubicka  <jh@suse.cz>
9104
9105         Patch by Paolo Bonzini
9106         * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
9107         my previous patch.
9108
9109 2006-08-22  Daniel Berlin  <dberlin@dberlin.org>
9110
9111         PR tree-optimization/28003
9112         * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
9113         before grouping aliases.
9114
9115 2006-08-22  Roger Sayle  <roger@eyesopen.com>
9116
9117         * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
9118         if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
9119
9120 2006-08-21  Jason Merrill  <jason@redhat.com>
9121
9122         PR c++/27115
9123         * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
9124         wrapper.  Loop to handle nested wrappers.
9125         (gimplify_bind_expr): Remove temp parameter.
9126         (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
9127         and STATEMENT_LIST on the rhs.
9128         (gimplify_statement_list): Voidify the STATEMENT_LIST.
9129         (gimplify_expr): Pass pre_p to gimplify_statement_list.
9130         (gimplify_target_expr): Remove special BIND_EXPR handling.
9131
9132 2006-08-21  J"orn Rennecke  <joern.rennecke@st.com>
9133
9134         * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
9135         #if !__SHMEDIA__ .
9136
9137 2006-08-21  Olivier Hainque  <hainque@adacore.com>
9138
9139         * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
9140         Arrange for the temporary captures of components overlapping the lhs
9141         to happen before the lhs is possibly cleared.
9142
9143 2006-08-21  Mark Shinwell  <shinwell@codesourcery.com>
9144
9145         * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
9146         necessary places to pass the correct "number of registers" values
9147         to _Unwind_VRS_Pop.
9148
9149 2006-08-20  Jan Hubicka  <jh@suse.cz>
9150
9151         * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
9152         (create_name_tags): Instead of quadratic checking use hashtable.
9153         * bitmap.h: Include hashtab.h.
9154         (bitmap_hash): Declare.
9155         * bitmap.c (bitmap_hash): New function.
9156
9157 2006-08-20  Jan Hubicka  <jh@suse.cz>
9158
9159         PR rtl-optimization/28071
9160         * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
9161         twice.
9162         * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
9163         * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
9164         (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
9165         cgraph_decide_inlining_incrementally): Update use of
9166         cgraph_check_inline_limits.
9167         * cgraph.c (edge_hash, edge_eq): New function.
9168         (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
9169         cgraph_edge_remove_caller, cgraph_node_remove_callees,
9170         cgraph_remove_node): Maintain call site hash.
9171         * cgraph.h (struct cgraph_node): Add call_site_hash.
9172         (cgraph_set_call_stmt): New function.
9173
9174 2006-08-20  Jan Hubicka  <jh@suse.cz>
9175
9176         PR rtl-optimization/28071
9177         * reload1.c (reg_has_output_reload): Turn into regset.
9178         (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
9179         choose_reload_regs, emit_reload_insns): Update to new
9180         reg_has_output_reload.
9181
9182 2006-08-20  Jan Hubicka  <jh@suse.cz>
9183
9184         PR middle-end/28779
9185         * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
9186         function body sizes.
9187         * cgraphunit.c (cgraph_analyze_function): Don't do so.
9188
9189 2006-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
9190
9191         PR target/28648 c:
9192         * tree.c (handle_dll_attribute): Return early if not a
9193         var or function decl.
9194
9195 2006-08-18  Joseph Myers  <joseph@codesourcery.com>
9196
9197         PR target/27565
9198         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
9199         alignment of SPE vector types.
9200
9201 2006-08-18  Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
9202
9203         * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
9204
9205 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
9206
9207         PR c/28744
9208         * cgraph.h (struct cgraph_node): Remove externally_visible
9209         bitfield.
9210         * cgraphunit.c (process_function_and_variable_attributes): Set
9211         local.externally_visible rather than externally_visible.
9212
9213         PR c/28744
9214         * c-common.c (handle_externally_visible_attribute): First look
9215         at TREE_CODE and only if it is function or var decl, check for
9216         non-public objects.  Don't warn for DECL_EXTERNAL.
9217         * cgraphunit.c (process_function_and_variable_attributes): Warn
9218         if externally_visible attribute is used on non-public object.
9219
9220 2006-08-17  Jan Hubicka  <jh@suse.cz>
9221
9222         PR tree-optimization/27865
9223         * reload1.c (forget_marked_reloads): New function.
9224         (forget_old_reloads_1): When data are passed, just mark the registers
9225         for later removal.
9226         (reload_as_needed): Use the new mechanizm.
9227
9228 2006-08-17  Alexandre Oliva  <aoliva@redhat.com>
9229
9230         PR target/28146
9231         * reload.h (reg_equiv_alt_mem_list): New declaration.
9232         * reload1.c (reg_equiv_alt_mem_list): New definition.
9233         (reload): Initialize it and release it.
9234         (delete_output_reload): Use it.
9235         * reload.c (push_reg_equiv_alt_mem): New function.
9236         (find_reloads_toplev): Call it.
9237         (find_reloads_address, find_reloads_address_1): Likewise.
9238         (find_reloads_subreg_address): Likewise.
9239
9240 2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
9241
9242         PR rtl-optimization/28489
9243         * sched-ebb.c (begin_schedule_ready): Create basic block
9244         at the right place.
9245         (advance_target_bb): Skip empty blocks.
9246         * haifa-sched.c (bb_note): Make global.
9247         * sched-int.h (bb_note): Add prototype.
9248
9249 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
9250
9251         PR tree-optimization/27865
9252         * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
9253         for pointer types.
9254         * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
9255         fold_used_pointer, pointer_used_p): New functions.
9256         (analyze_scalar_evolution_1): Use fold_used_pointer.
9257         * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
9258         * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
9259         for pointers.
9260
9261 2006-08-17  Paolo Bonzini <bonzini@gnu.org>
9262
9263         PR c++/28573
9264         * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
9265         or the INTEGER_CST.  Fail on a CALL_EXPR.
9266         (fold_offsetof): Pass new argument to fold_offsetof_1.
9267         * c-parser.c (c_parser_postfix_expression): Don't include a NULL
9268         operand into an INDIRECT_REF.
9269         * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
9270
9271 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
9272
9273         PR gcov/profile/26570
9274         * value-prof.c (static_values): Removed.
9275         (tree_find_values_to_profile): Do not set static_values.
9276         (find_values_to_profile): Do not free static_values.
9277         * profile.c (instrument_values): Do not free the values.
9278         (branch_prob): Free the values.
9279
9280 2006-08-16  Naveen.H.S  <naveenh@kpitcummins.com>
9281
9282         * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
9283
9284 2006-08-16  Joseph S. Myers  <joseph@codesourcery.com>
9285
9286         PR c/27697
9287         * c-typeck.c (build_component_ref): Combine qualifiers of
9288         structure or union and field.
9289
9290 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
9291
9292         PR rtl-optimization/28071
9293         * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
9294         * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
9295         * tree-into-ssa.c (struct dom_dfsnum): New.
9296         (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
9297         functions.
9298         (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
9299         compute_global_livein.
9300         (prepare_block_for_update, prepare_use_sites_for): Mark the uses
9301         in phi nodes in the correct blocks.
9302
9303 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
9304
9305         PR tree-optimization/28364
9306         * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
9307         correctly.
9308         (fold_affine_expr): New function.
9309         (may_eliminate_iv): Use fold_affine_expr.
9310
9311 2006-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9312
9313         PR c/27489
9314         * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
9315         Clean up.
9316
9317 2006-08-16  Mike Stump  <mrs@apple.com>
9318
9319         * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
9320         * doc/cppopts.texi (-MD): Likewise.
9321
9322 2006-08-15  Danny Smith  <dannysmith@users.sourceforge.net>
9323
9324         PR c/28287
9325         * c-common.c (handle_weak_attribute): Ignore and warn if
9326         not a FUNCTION_ or VAR_DECL.
9327
9328 2006-07-15  Mike Stump  <mrs@apple.com>
9329
9330         PR c/28280
9331         * c-parser.c (c_parser_typeof_specifier): Don't use
9332         c_finish_expr_stmt, open code desired semantics instead.
9333
9334 2006-08-15  Nick Clifton  <nickc@redhat.com>
9335
9336         * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
9337         fragment to tmake_file only if threads are enabled.
9338         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
9339         * config/i386/t-gthr-win32: New file. ... here.
9340
9341 2006-08-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9342
9343         PR c/28649
9344         * c-parser.c (c_parser_compound_statement_nostart): Reset
9345         parser->error after each statement.
9346
9347 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9348
9349         PR middle-end/28713
9350         * omp-low.c (lower_omp_parallel): Convert t to
9351         receiver_decl's type.
9352         (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
9353         source before comparison.
9354
9355         PR middle-end/28724
9356         * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
9357         to itype in assignment to oldival2.
9358
9359 2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>
9360
9361         PR c/27490
9362         PR c/27489
9363         * c-typeck.c (build_compound_expr): If the second expression
9364         is an error mark, then just return an error mark instead of
9365         creating a COMPOUND_EXPR.
9366
9367 2006-07-14  Mike Stump  <mrs@apple.com>
9368
9369         * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
9370
9371 2006-08-14  Kazu Hirata  <kazu@codesourcery.com>
9372
9373         * c-decl.c, var-tracking.c: Fix comment typos.
9374
9375 2006-08-14  Richard Sandiford  <richard@codesourcery.com>
9376
9377         PR rtl-optimization/28634
9378         * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
9379         for floating-point modes unless flag_unsafe_math_optimizations.
9380
9381 2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
9382             Andrew Pinski  <pinskia@physics.uc.edu>
9383
9384         PR c/27184
9385         * tree.c (build_array_type): Unify array types with
9386         unspecified index_type.
9387         * c-decl.c (grokdeclarator): Make sure we do not modify a
9388         unified incomplete array type.
9389         * c-typeck.c (store_init_value): Create distinct type before
9390         filling in the index type in an initializer from a compound
9391         literal.
9392
9393         * c-decl.c (grokdeclarator): Remove code where we copy the
9394         array type over.
9395
9396 2006-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
9397
9398         * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
9399         into account for TODO_dump_cgraph.
9400         (TODO_update_ssa_no_phi): Likewise.
9401         (TODO_update_ssa_full_phi): Likewise.
9402         (TODO_update_ssa_only_virtuals): Likewise.
9403         (TODO_remove_unused_locals): Likewise.
9404         (TODO_set_props): Likewise.
9405         (TODO_update_stmt_usage): Likewise.
9406
9407 2006-08-13  Dirk Mueller  <dmueller@suse.de>
9408
9409         * c-common.c (strict_aliasing_warning): Fix formatting.
9410
9411 2006-08-13  Matthias Klose  <doko@debian.org>
9412
9413         * doc/invoke.texi: Fix spelling errors.
9414
9415 2006-08-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
9416
9417         PR rtl-optimization/23454
9418         * reorg.c (relax_delay_slots): Update comment.
9419
9420 2006-08-11  Richard Guenther  <rguenther@suse.de>
9421
9422         PR middle-end/28651
9423         * simplify-rtx.c (simplify_const_relational_operation):
9424         Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
9425         codes.
9426
9427 2006-08-10  Eric Botcazou  <ebotcazou@adacore.com>
9428
9429         * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
9430         TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
9431
9432 2006-08-10  Paul Brook  <paul@codesourcery.com>
9433
9434         * final.c (final_scan_insn): Clear current_insn_predicate before
9435         outputting inline asm.
9436
9437 2006-08-10  Dorit Nuzman  <dorit@il.ibm.com>
9438
9439         PR tree-optimization/26197
9440         * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
9441         get_ref_base_and_extent and overlap_subvar to add only relevant
9442         subvars as may-aliases.
9443         (add_may_alias_for_new_tag): New function, factored out of
9444         new_type_alias.
9445         * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
9446         with additional argument.
9447         * tree-flow.h (new_type_alias): Takes additional argument.
9448
9449 2006-08-09  Nathan Sidwell  <nathan@codesourcery.com>
9450
9451         * gcov.c (no_data_file): New flag.
9452         (read_count_file): Set it if data file not present.  Assume counts
9453         zero if not found.
9454         (output_lines): Don't name the data file, if there wasn't one.
9455
9456 2006-08-09  Eric Botcazou  <ebotcazou@adacore.com>
9457
9458         * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
9459         (rs6000_generate_compare): Tweak comments.
9460         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
9461
9462 2006-08-09  Alexandre Oliva  <aoliva@redhat.com>
9463
9464         * var-tracking.c (enum micro_operation_type): Add MO_COPY.
9465         (var_debug_decl): New function.
9466         (var_reg_set): Follow debug decl link.  Add location even if
9467         reg is already known to hold some other variable.
9468         (var_mem_set): Follow debug decl link.
9469         (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
9470         decl link.  Delete other known locations of the variable part
9471         if requested.
9472         (var_reg_delete, var_mem_delete): Delete other known locations
9473         of the variable part if requested.
9474         (same_variable_part_p): New function.
9475         (add_stores): Select MO_COPY when appropriate.
9476         (vt_initialize): Handle it.
9477         (compute_bb_dataflow, emit_notes_in_bb): Likewise.  Delete
9478         known locations for MO_SET and MO_CLOBBER.
9479         (find_variable_location_part): New function.
9480         (set_variable_part, delete_variable_part): Use it.
9481         (clobber_variable_part): New function.
9482         * dwarf2out.c (dwarf2out_var_location): Do not follow debug
9483         decl link.
9484
9485 2006-08-07  Victor Kaplansky <victork@il.ibm.com>
9486
9487         PR tree-optimization/26969
9488         * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
9489         with an empty list of PHIs.
9490
9491 2006-08-06  Paolo Bonzini  <bonzini@gnu.org>
9492
9493         PR target/27827
9494
9495         * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
9496         instructions.
9497
9498 2006-08-06  Andreas Schwab  <schwab@suse.de>
9499
9500         * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
9501         string.  Whitespace and comment fixup.
9502
9503 2006-08-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9504
9505         PR c/28502
9506         * c-decl.c (validate_proto_after_old_defn): Return false on invalid
9507         argument.
9508
9509         PR c/27721
9510         * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
9511
9512         PR c/28136
9513         * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
9514
9515 2006-08-04  Jan Hubicka  <jh@suse.cz>
9516
9517         PR target/26655
9518         PR target/28270
9519         * reload.c (push_reload): Patch out the mismatching instruction;
9520         return early.
9521         (find_reload): Bail out if the instruction was patched out.
9522
9523 2006-08-04  Jan Hubicka  <jh@suse.cz>
9524
9525         PR tree-optimization/24888
9526         * tree-inline.c (expand_call_inline): Do not re-record variables.
9527         (declare_inline_vars): Add variable to unexpanded_var_list.
9528
9529 2006-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9530             Roger Sayle  <roger@eyesopen.com>
9531
9532         PR rtl-optimization/26244
9533         * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
9534         inner_const are negative or greater than or equal to the bitsize of
9535         MODE.  If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
9536         Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
9537         Simplify complicated if statement.  For ASHIFT and LSHIFTRT, return
9538         CONST0_RTX (mode) when the new shift count is greater than or equal to
9539         to the bitsize of the object being shifted and XEXP (y, 0) has no side
9540         effects.
9541
9542 2006-08-04  Kazu Hirata  <kazu@codesourcery.com>
9543
9544         * tree-cfg.c: Fix a comment typo.
9545
9546 2006-08-03  Mark Mitchell  <mark@codesourcery.com>
9547
9548         PR c++/28148
9549         * varasm.c (output_constant): Give the front end another chance to
9550         expand constants, after stripping NOPs.
9551
9552 2006-08-03  Jan Hubicka  <jh@suse.cz>
9553
9554         * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
9555         implementation.
9556
9557 2006-08-03  Dorit Nuzman  <dorit@il.ibm.com>
9558
9559         PR tree-optimization/27770
9560         * tree-vectorizer.h (get_vectype_for_scalar_type): Function
9561         declaration removed (moved to tree-flow.h).
9562         (vect_can_force_dr_alignment_p): Likewise.
9563         * tree-flow.h (get_vectype_for_scalar_type): New function declaration
9564         (moved from tree-vectorizer.h).
9565         (vect_can_force_dr_alignment_p): Likewise.
9566         * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
9567         from outside the vectorizer - in particular from cgraph stage.
9568         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
9569         the alignment of global arrays when -fsection-anchors is enabled.
9570         * cgraphunit.c (cgraph_increase_alignment): New function.
9571         (cgraph_optimize): Call cgraph_increase_alignment.
9572
9573 2006-08-03  David Edelsohn  <edelsohn@gnu.org>
9574
9575         PR target/27566
9576         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9577         not reload a SPE symbol_ref into a lo_sum address.
9578
9579 2006-08-02  Daniel Jacobowitz  <dan@codesourcery.com>
9580
9581         PR debug/28063
9582         * dwarf2out.c (prune_unused_types_prune): Move call to
9583         prune_unused_types_update_strings to cover the parent DIE also.
9584
9585 2006-08-02  Jan Hubicka  <jh@suse.cz>
9586
9587         PR gcov/profile/28480
9588         * tree-cfg.c (change_bb_for_stmt): New function.
9589         (tree_merge_blocks, tree_split_blocks): Use it.
9590
9591 2006-08-01  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9592
9593         PR c++/28250
9594         PR c++/28257
9595         PR c++/28259
9596         PR c++/28267
9597         * toplev.c (compile_file): Return early on errorcount or sorrycount.
9598         * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
9599         (cgraph_optimize): Likewise.
9600
9601 2006-08-01  Stuart Hastings  <stuart@apple.com>
9602
9603         * rtl.h (UINTVAL) New.
9604         * config/rs6000/rs6000.c (SMALL_INT) Use it.
9605         * testsuite/gcc.dg/20060801-1.c: New.
9606
9607 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
9608
9609         PR debug/23336
9610         * c-typeck.c (build_external_type): Mark used enum types.
9611         * dwarf2out.c (dwarf2out_abstract_function): Save and restore
9612         cfun also.
9613         (gen_subprogram_die): Whitespace fix.
9614
9615 2006-08-01  Jan Hubicka  <jh@suse.cz>
9616
9617         * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
9618         bitmap when not needed.
9619         * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
9620         bitmaps.
9621
9622 2006-08-01  Dirk Mueller  <dmueller@suse.de>
9623
9624         * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
9625
9626 2006-07-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9627
9628         * Makefile.in: Revert part of previous patch:
9629         Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
9630         and REGS_H.
9631
9632 2006-07-30  Eric Christopher  <echristo@apple.com>
9633
9634         PR target/27543
9635         * doc/extend.texi (i386 Variable Attributes): Add anchor.
9636         (PowerPC Variable Attributes): New section.
9637
9638 2006-07-30  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
9639
9640         PR target/28126 (partial fix)
9641         * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
9642
9643 2006-07-28  Jan Hubicka  <jh@suse.cz>
9644
9645         PR rtl-optimization/28071
9646         * cfgrtl.c (rtl_delete_block): Free regsets.
9647         * flow.c (allocate_bb_life_data): Re-use regsets if available.
9648
9649 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9650
9651         * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
9652         and variables used in dependencies.
9653
9654 2006-07-27  Arjan van de Ven <arjan@linux.intel.com>
9655
9656         * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
9657         %fs for -mcmodel=kernel.
9658         (stack_tls_protect_test_di): Likewise.
9659
9660 2006-07-27  Carlos O'Donell  <carlos@codesourcery.com>
9661
9662         * Makefile.in: Use mkinstalldirs.
9663
9664 2006-07-27  H.J. Lu  <hongjiu.lu@intel.com>
9665
9666         PR driver/28437
9667         * opts-common.c (prune_options): Skip joined switches.
9668
9669 2006-07-27  Jan Hubicka  <jh@suse.cz>
9670
9671         PR rtl-optimization/28071
9672         * cselib.c (cselib_process_insn): Don't remove useless values too
9673         often for very large hashtables.
9674
9675 2006-07-27  Jan Hubicka  <jh@suse.cz>
9676
9677         PR rtl-optimization/28071
9678         * global.c (greg_obstack): New obstack.
9679         (allocate_bb_info): Use it.
9680         (free_bb_info): Likewise.
9681         (modify_reg_pav): Likewise.
9682
9683 2006-07-27  Roger Sayle  <roger@eyesopen.com>
9684
9685         * builtins.c (fold_fixed_mathfn): When long and long long are the
9686         same size, canonicalize llceil*, llfloor*, llround* and llrint*
9687         functions to their lceil*, lfloor*, lround* and lrint* forms.
9688
9689 2006-07-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
9690
9691         PR gcc/28508
9692         * config/m32r/m32r.md (branch_insn): Reduce pc range for short
9693         branch.
9694         (rev_branch_insn): Likewise.
9695
9696 2006-07-27  Jan Hubicka  <jh@suse.cz>
9697
9698         PR rtl-optimization/28071
9699         * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
9700         (reg_set_in_bb, max_reg_computed): New static variables.
9701         (regmove_optimize): Free the new array.
9702         (fixup_match_1): Update call of reg_is_remote_constant_p.
9703
9704 2006-07-26  Jan Hubicka  <jh@suse.cz>
9705
9706         PR tree-optimization/27882
9707         * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
9708         and decl fields.
9709         * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
9710         next pointer
9711         (cgraph_analyze_compilation_unit): Likewise.
9712         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9713         * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
9714         (cgraph_early_inlinine): Make order garbage collected.
9715         * Makefile.in (gt-ipa-inline): New garbagecollected file.
9716
9717 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
9718
9719         * dbxout.c (output_types_sort): Add a comment.
9720         (output_used_types): Free the VEC.
9721
9722 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
9723
9724         * function.c (reorder_fix_fragments): Delete.
9725         (reorder_blocks): Don't call it.
9726         (reorder_blocks_1): Put all subblocks under the origin block.
9727
9728 2006-07-26  Zdenek Dvorak <dvorakz@suse.cz>
9729
9730         PR rtl-optimization/27907
9731         * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
9732         FLOAT_TRUNCATE.
9733
9734 2006-07-25  Roger Sayle  <roger@eyesopen.com>
9735
9736         PR middle-end/28473
9737         * convert.c (convert_to_integer): When transforming (T)foo(x) into
9738         bar(x) check that bar's result type can represent all the values of T.
9739
9740 2006-07-25  Zdenek Dvorak <dvorakz@suse.cz>
9741
9742         * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
9743
9744 2006-07-25  Nick Clifton  <nickc@redhat.com>
9745
9746         * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
9747         size_lookup[] array.
9748         (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
9749         (ggc_pch_count_object): Likewise.
9750         (ggc_pch_alloc_object): Likewise.
9751         (ggc_pch_write_object): Likewise.
9752         (init_ggc): Do not attempt to initialize entries in the
9753         size_lookup[] array for objects whose size is greater than than
9754         the length of the array.
9755
9756 2006-07-25  Daniel Jacobowitz  <dan@codesourcery.com>
9757
9758         * dbxout.c (output_used_types_helper): Push queued types
9759         on a VEC.
9760         (output_types_sort): New.
9761         (output_used_types): Collect used types on a VEC and sort them
9762         before emission.
9763
9764 2006-07-24  Richard Guenther  <rguenther@suse.de>
9765
9766         PR middle-end/28463
9767         * cgraph.c (cgraph_remove_node): Do not check if dumps
9768         are enabled.
9769         * cgraphunit.c (cgraph_optimize): Likewise.
9770
9771 2006-07-24  Jan Hubicka  <jh@suse.cz>
9772
9773         PR rtl-optimization/28071
9774         * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
9775         * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
9776         splitting before first stmt.
9777
9778 2006-07-24  Jan Hubicka  <jh@suse.cz>
9779
9780         PR rtl-optimization/28071
9781         * ipa-inline.c (update_caller_keys): Remove edges that
9782         are no longer inline candidates.
9783
9784 2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
9785
9786         PR debug/27473
9787         * dbxout.c (output_used_types_helper, output_used_types): New.
9788         (dbxout_symbol): Call output_used_types.
9789
9790 2006-07-23  Jan Hubicka  <jh@suse.cz>
9791
9792         PR c/25795
9793         PR c++/27369
9794         * cgraph.c (cgraph_varpool_nodes): Export.
9795         (decide_is_variable_needed): Ignored "used" attribute in
9796         unit-at-a-time mode.
9797         * cgraph.h (cgraph_varpool_nodes): Declare.
9798         * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
9799         unit-at-a-time mode.
9800
9801 2006-07-23  Roger Sayle  <roger@eyesopen.com>
9802
9803         PR target/28247
9804         * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
9805         mutex_destroy even when !_LIBOOBJC.  Remove duplicate prototype of
9806         the __gthrw form of thr_keycreate.
9807         (__gthread_key_delete): Silence the unused argument warning.
9808
9809 2006-07-23  Steven Bosscher  <steven@gcc.gnu.org>
9810
9811         PR debug/25468
9812         * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
9813         Cache the last found '\0' marker to avoid quadratic behavior.
9814
9815 2006-07-23  Jan Hubicka  <jh@suse.cz>
9816
9817         * i386.md (subsi_3_zext): Fix output template.
9818
9819 2006-07-21  Mike Stump  <mrs@apple.com>
9820
9821         * doc/invoke.texi (C++ Dialect Options): Note that
9822         -fvisibility-inlines-hidden doesn't affect explicitly
9823         instantiationed inline methods.
9824
9825 2006-07-20  Roger Sayle  <roger@eyesopen.com>
9826
9827         * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
9828         if the target assembler is GNU binutils' gas.
9829         * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
9830         whether to pass GNU gas or native as command line options.
9831
9832 2006-07-20  Jason Merrill  <jason@redhat.com>
9833
9834         * tree.c (remove_attribute): New fn.
9835         * tree.h: Declare it.
9836
9837 2006-07-20  Paul Brook  <paul@codesourcery.com>
9838
9839         PR 27363
9840         * cse.c (cse_insn): Add destination addresses to hash table. Check if
9841         they are invalidated by this instruction.
9842
9843 2006-07-21  Danny Smith  <dannysmith@users.sourceforge.net>
9844
9845         PR target/28427
9846         * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
9847
9848 2006-07-20  Eric Christopher  <echristo@apple.com>
9849
9850         PR target/26877
9851         * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
9852
9853 2006-07-19  Eric Christopher  <echristo@apple.com>
9854
9855         * config/t-slibgcc-darwin (stmp-lipo): Remove.
9856         Rewrite dependencies for libgcc_s.1.dylib.
9857
9858 2006-07-19  Jakub Jelinek  <jakub@redhat.com>
9859
9860         * except.c (duplicate_eh_regions_1): Clear next_peer.
9861
9862 2006-07-17  Nathan Sidwell  <nathan@codesourcery.com>
9863
9864         * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
9865         -mlongcall does not guarantee all calls will be long.
9866         * doc/extend.texi (long_call/short_call): Document that longcall
9867         does not guarantee a long call will be used.
9868         (longcall/shortcall): Likewise.
9869
9870 2006-07-18  Roger Sayle  <roger@eyesopen.com>
9871
9872         PR middle-end/28283
9873         * expmed.c (expand_shift): Additionally check that the shift_cost
9874         is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
9875         before implementing a LSHIFT_EXPR as a sequence of additions.
9876         * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
9877         middle-end that DImode shifts need to be synthesized by expand.
9878
9879 2006-07-18  Diego Novillo  <dnovillo@redhat.com>
9880
9881         PR 28410
9882         * tree-ssa-operands.c (access_can_touch_variable): Update
9883         comment.
9884         Return true if ALIAS is .GLOBAL_VAR.
9885
9886 2006-07-18  David Daney  <ddaney@avtrex.com>
9887
9888         * gcc.c (display_help): Fix typo in help text.
9889
9890 2006-07-18  Olivier Hainque  <hainque@adacore.com>
9891
9892         * tree.h (categorize_ctor_elements): Adjust prototype and add
9893         descriptive comment, both in accordance with the interface change
9894         described below.
9895         * varasm.c (constructor_static_from_elts_p): New function.
9896         Whether a constructor node is a valid static constant initializer
9897         if all its elements are.
9898         (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
9899         * output.h: Declare it.
9900         * expr.c (categorize_ctor_elements_1): Return whether the constructor
9901         is a valid constant initializer instead of computing the number of
9902         non-constant elements.  Use constructor_static_from_elts_p for this
9903         purpose.  Replace the head comment with an indication that this is a
9904         helper for categorize_ctor_elements.
9905         (categorize_ctor_elements): Same interface change as for the _1
9906         helper.  Former head comment from this helper moved here, adjusted to
9907         account for the interface changes.
9908         (mostly_zeros_p): Adjust call to categorize_ctor_elements.
9909         (all_zeros_p): Likewise.
9910         * gimplify.c (gimplify_init_constructor): Decide whether we can make
9911         static versions of the constructor from the categorize_ctor_elements
9912         return value instead of the formerly computed number of non-constant
9913         elements.
9914
9915 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
9916
9917         * configure: Regenerate.
9918         * Makefile.in (build_libsubdir): New configure substitution
9919         (build_libobjdir): New variable.
9920         (BUILD_LIBIBERTY): Use it.
9921
9922 2006-07-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9923
9924         PR c/28286
9925         * c-pragma.c (handle_pragma_pack): Handle invalid constants.
9926
9927 2006-07-18  Alexandre Oliva  <aoliva@redhat.com>
9928
9929         PR c/26993
9930         * c-common.c (handle_weakref_attribute): Ignore attribute in
9931         the same conditions the alias attribute is ignored.
9932
9933 2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>
9934
9935         * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
9936         (dbxout_begin_prologue): Increment scope_labelno.
9937
9938 2006-07-17  Richard Henderson  <rth@redhat.com>
9939
9940         PR 27889
9941         * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
9942         if needed.
9943
9944 2006-07-17  Roger Sayle  <roger@eyesopen.com>
9945             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9946
9947         * config/i386/gmon-sol2.c: Silence compilation warnings by partially
9948         synchronizing code with config/sparc/gmon-sol2.c.  Remove #if 0
9949         blocks.  #include "tconfig.h" and "tsystem.h" to prototype system
9950         functions such as sbrk, write, etc..  Add function prototypes.
9951         Convert function declarations from K&R to ISO C.  Cast pointers
9952         to "long" and "unsigned long" instead of "int" and "unsigned int".
9953         Convert tokens following #endif into comments.
9954
9955 2006-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
9956
9957         * invoke.texi: Remove mention of f77; Reformat table for
9958         inline parameter options correctly; mention that -malign-double
9959         is default on x86-64 targets.
9960
9961 2006-07-17  Zdenek Dvorak <dvorakz@suse.cz>
9962
9963         * tree-chrec.c (avoid_arithmetics_in_type_p): New.
9964         (convert_affine_scev, chrec_convert_aggressive): Use
9965         avoid_arithmetics_in_type_p.  Do not check for the subtypes
9966         separately.
9967
9968 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
9969
9970         PR middle-end/28403
9971         * optabs.c (expand_doubleword_shift): Wrap the call to
9972         do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
9973
9974 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
9975
9976         PR middle-end/28402
9977         * optabs.c (expand_binop): Pass next_methods rather than methods
9978         to expand_doubleword_shift.
9979
9980 2006-07-17  J"orn Rennecke  <joern.rennecke@st.com>
9981
9982         PR other/28251
9983         * tree.h (dump_addr): Declare.
9984         * print-tree.c (dump_addr): New function.
9985         (print_node_brief, print_node): Use it.
9986         * print-rtl.c (print_rtx): Likewise.
9987         * common.opt (-fdump-noaddr): New option.
9988         * doc/invoke.texi (-fdump-noaddr): Document.
9989         * loop-unroll.c (si_info_hash): Make hash independent of addresses.
9990         (ve_info_hash): Likewise.
9991
9992 2006-07-13  Andrew Haley  <aph@redhat.com>
9993
9994         PR tree-optimization/19505
9995         * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
9996         edge leaving this block, make sure that the destination of this
9997         block has only one predecessor.
9998
9999 2006-07-17  Richard Guenther  <rguenther@suse.de>
10000
10001         PR tree-optimization/28238
10002         * tree-inline.c (copy_bb): Check if we produced valid
10003         gimple copying and substituting a stmt.  If not, gimplify
10004         it.
10005
10006 2006-07-16  Eric Botcazou  <ebotcazou@adacore.com>
10007
10008         * optabs.c (maybe_encapsulate_block): New function extracted from...
10009         (emit_libcall_block): ...here.  Invoke it on the block of insns to
10010         maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
10011         (emit_no_conflict_block): Likewise.
10012
10013 2006-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10014
10015         * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
10016
10017 2006-07-15  Roger Sayle  <roger@eyesopen.com>
10018
10019         * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
10020         a new NOP_EXPR case of the switch statement.
10021
10022 2006-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
10023
10024         PR middle-end/28160
10025         * stor-layout.c (place_field): Take the bit field with
10026         an excessive size into account in the ms-bitfiled case.
10027
10028         PR middle-end/28161
10029         * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
10030         the previous bit field.
10031
10032 2006-07-14  Eliot Dresselhaus  <eliot@sonic.net>
10033
10034         PR target/27287
10035         * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
10036
10037 2006-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
10038
10039         * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
10040         signal frames correctly even when the signal was installed with
10041         sa_restorer set.
10042
10043 2006-07-14  Carlos O'Donell  <carlos@codesourcery.com>
10044
10045         * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
10046         (dbxout_function_end): Use local label LFBB. Remove hook
10047         DBX_OUTPUT_NFUN.
10048         (dbxout_source_line): Use local label LFBB.
10049         (dbxout_block): Likewise.
10050         (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
10051         (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
10052         * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
10053         and DBX_OUTPUT_NFUN.
10054
10055 2006-07-13  Janis Johnson  <janis187@us.ibm.com>
10056
10057         * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
10058
10059 2006-07-13  Jan Hubicka  <jh@suse.cz>
10060
10061         * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
10062         align_variable.
10063         * output.h (align_variable): Declare.
10064         * varasm.c (align_variable): Export.
10065         * value-prof.c (tree_value_profile_transformations): Recompute iterator
10066         when basic block changed.
10067
10068 2006-07-13  Nick Clifton  <nickc@redhat.com>
10069
10070         * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
10071         walking the LOG_LINKS chain.
10072
10073 2006-07-12  Geoffrey Keating  <geoffk@apple.com>
10074
10075         * doc/invoke.texi (C++ Dialect Options): Explain difference
10076         between -fvisibility-inlines-hidden and setting hidden
10077         visibility explicitly.
10078
10079 2006-07-12  Eric Christopher  <echristo@apple.com>
10080
10081         * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
10082         (stmp-lipo): Depend on libgcc.a.
10083
10084 2006-07-12  Kazu Hirata  <kazu@codesourcery.com>
10085
10086         * tree.c: Fix a comment typo.
10087
10088 2006-07-12  Naveen.H.S  <naveenh@kpitcummins.com>
10089
10090         * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
10091         dest.
10092         (umulhisi3_r): Likewise.
10093
10094 2006-07-12  Paolo Carlini  <pcarlini@suse.de>
10095
10096         PR libstdc++/27878
10097         * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
10098         x < 19, vs wchar_t support.
10099
10100 2006-07-12  Nick Clifton  <nickc@redhat.com>
10101
10102         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
10103         instead of -isa=sh4.
10104
10105 2006-07-12  Mike Stump  <mrs@apple.com>
10106
10107         * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
10108
10109 2006-07-10  Eric Christopher  <echristo@apple.com>
10110
10111         * config/t-slibgcc-darwin: Rewrite.
10112
10113 2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10114
10115         PR bootstrap/20437
10116         * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
10117         dependencies.
10118
10119 2006-07-08  Matthias Klose  <doko@debian.org>
10120
10121         * doc/sourcebuild.texi: Fix typo.
10122
10123 2006-07-07  Mike Stump  <mrs@apple.com>
10124
10125         * toplev.c (process_options): Don't give -ffunction-sections may
10126         affect debugging warning for Mach-O.
10127
10128 2006-07-07  James E Wilson  <wilson@specifix.com>
10129
10130         * config/mips/mips.md (cpu): Add sb1a.
10131         * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
10132         addition to sb1.  Adjust comments to clarify SB-1A differences from
10133         SB-1.
10134         (ir_sb1a_load): New.  Modify bypasses to use it.
10135         (ir_sb1a_simple_alu): Likewise.
10136         * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
10137         (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
10138         (mips_issue_rate): Add PROCESSOR_SB1A.
10139         (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
10140         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
10141         (TARGET_SB1): Add PROCESSOR_SB1A check.
10142         (TUNE_SB1): Likewise.
10143
10144         * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
10145         * config/mips/mips.c (mips_store_data_bypass_p): New.
10146         * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
10147         store_data_bypass_p.
10148
10149 2006-07-08  Paul Brook  <paul@codesourcery.com>
10150
10151         PR target/27991
10152         * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
10153
10154 2006-07-07   Richard Guenther  <rguenther@suse.de>
10155
10156         PR middle-end/28268
10157         * tree.h (build_one_cst): Declare.
10158         * tree.c (build_one_cst): New function.
10159         * tree-ssa-math-opts.c (get_constant_one): Remove.
10160         (insert_reciprocals): Use build_one_cst.
10161         * fold-const.c (fold_plusminus_mult): Likewise.
10162
10163 2006-07-07  Roger Sayle  <roger@eyesopen.com>
10164
10165         * pointer-set.c (pointer_set_destroy): Correct whitespace.
10166         * cfgloopanal.c (dump_graph): Likewise.
10167         * dojump.c (discard_pending_stack_adjust): Likewise.
10168         * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
10169         Likewise.
10170         * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
10171         * function.c (finalize_block_changes): Likewise.
10172         * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
10173         * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
10174         * rtl.c (dump_rtx_statistics): Likewise.
10175         * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
10176         Likewise.
10177         * varray.c (dump_varray_statistics): Likewise.
10178         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
10179         decode_decimal64, encode_decimal128, decode_decimal128,
10180         decimal_real_to_decimal): Likewise.
10181
10182 2006-07-07  Richard Guenther  <rguenther@suse.de>
10183
10184         PR tree-optimization/28187
10185         * tree-vrp.c (vrp_operand_equal_p): New function.
10186         (vrp_bitmap_equal_p): Likewise.
10187         (update_value_range): Use them to compare old and new
10188         max and min values.
10189
10190 2006-07-06  Roger Sayle  <roger@eyesopen.com>
10191
10192         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
10193         a default case to switch statement to silence compiler warnings.
10194
10195 2006-07-06  Roger Sayle  <roger@eyesopen.com>
10196
10197         PR target/27968
10198         * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
10199         the configured assembler supports the x87's ffreep mnemonic.
10200         * configure: Regenerate.
10201         * config.in: Regenerate.
10202
10203         * config/i386/i386.c (output_387_ffreep): New function.
10204         (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
10205         (output_387_reg_move): Likewise.
10206
10207 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10208
10209         Port to hosts whose 'sort' and 'tail' implementations
10210         treat operands with leading '+' as file names, as POSIX
10211         has required since 2001.  However, make sure the code still
10212         works on pre-POSIX hosts.
10213         * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
10214         which says you should use "tail -c +N" rather than "tail +Nc".
10215         Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
10216
10217 2006-07-06  Zdenek Dvorak <dvorakz@suse.cz>
10218
10219         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
10220         argument name.
10221
10222 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
10223
10224         PR target/28150
10225         * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
10226         PRE_{INC,DEC} of TFmode.
10227
10228 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
10229             Alan Modra  <amodra@bigpond.net.au>
10230
10231         PR target/28170
10232         * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
10233         bounds. Simplify.
10234
10235 2006-07-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10236
10237         PR target/28285
10238         * config/alpha/predicates.md (alpha_swapped_comparison_operator):
10239         Remove duplicate gtu.
10240
10241 2006-07-05  Jason Merrill  <jason@redhat.com>
10242
10243         PR c++/13983
10244         PR c++/17519
10245         * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
10246         * c-common.c (handle_packed_attribute): So don't copy it here.
10247         * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
10248
10249 2006-07-05  Mike Stump  <mrs@apple.com>
10250
10251         * doc/invoke.texi (Invoking G++): Clarify prose for g++.
10252
10253 2006-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10254
10255         PR target/26146
10256         * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
10257
10258 2006-07-05  Richard Guenther  <rguenther@suse.de>
10259
10260         PR target/28158
10261         * config/i386/i386.md (*negdf2_1): Restrict pattern to
10262         TARGET_SSE2 targets if using SSE math.
10263         (*absdf2_1): Likewise.
10264
10265 2006-07-05  Richard Guenther  <rguenther@suse.de>
10266
10267         PR tree-optimization/28162
10268         * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
10269         make sure to convert the operands to the correct type.
10270
10271 2006-07-04  Paolo Bonzini  <bonzini@gnu.org>
10272
10273         PR tree-optimization/28218
10274
10275         * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
10276         to calculate and free the dominator information.
10277
10278 2006-07-04  Peter O'Gorman  <peter@pogma.com>
10279
10280         * mklibgcc.in: chmod 644 before ranlib during install.
10281
10282 2006-07-04  Andrew Stubbs <andrew.stubbs@st.com>
10283             J"orn Rennecke <joern.rennecke@st.com>
10284
10285         * configure.ac (.eh_frame data check): Use diff -b.
10286
10287 2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
10288
10289         PR bootstrap/18058
10290         * Makefile.in (BUILD_RTL): Add build/vec.o.
10291         (build/gencondmd.o): Filter out -fkeep-inline-functions.
10292         (build/genextract): Delete.
10293         (build/genautomata): Likewise.
10294
10295 2006-07-04  Alan Modra  <amodra@bigpond.net.au>
10296
10297         PR target/28207
10298         * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
10299         128-bit IBM long doubles for ABI_V4.
10300
10301 2006-07-03  Eric Botcazou  <ebotcazou@adacore.com>
10302
10303         * tree.c (range_in_array_bounds_p): New predicate.
10304         * tree.h (range_in_array_bounds_p): Declare it.
10305         * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
10306         return a less conservative answer.
10307         * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
10308         and flag 'is_group'.
10309         (IS_ELEMENT_FOR_GROUP): New macro.
10310         (FOR_EACH_ACTUAL_CHILD): Likewise.
10311         (next_child_for_group): New helper function.
10312         (can_completely_scalarize_p): Take into account groups.
10313         (sra_hash_tree): Handle RANGE_EXPR.
10314         (sra_elt_eq): Likewise.
10315         (lookup_element): Be prepared for handling groups.
10316         (is_valid_const_index): Delete.
10317         (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
10318         instead of is_valid_const_index.
10319         <ARRAY_RANGE_REF>: New case.
10320         (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
10321         is_valid_const_index.
10322         <ARRAY_RANGE_REF>: Do not unconditionally punt.
10323         (scan_dump): Dump info for groups too.
10324         (decide_instantiation_1): Likewise.
10325         (decide_block_copy): Assert that the element is not a group.
10326         Propagate decision to groups.
10327         (generate_one_element_ref): Handle RANGE_EXPR.
10328         (mark_no_warning): Iterate over actual childs.
10329         (generate_copy_inout): Likewise.
10330         (generate_element_copy): Likewise.
10331         (generate_element_zero): Likewise.
10332         (generate_element_init_1): Likewise.
10333         (dump_sra_elt_name): Handle RANGE_EXPR.
10334
10335 2006-07-03  Roger Sayle  <roger@eyesopen.com>
10336
10337         PR tree-optimization/26251
10338         * tree-ssa-threadupdate.c (redirection_block_p): New function.
10339         (thread_block): When optimizing for size refuse to thread jumps
10340         that would require duplication of blocks other than redirection
10341         blocks.
10342
10343 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
10344
10345         * configure.ac: Fix thinko in previous check-in.
10346         * configure: Regenerate.
10347
10348 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
10349
10350         PR other/27063
10351         * configure.ac (for lang...): Simplify nesting of conditionals.
10352         Test subdir_requires for non-enabled languages.  Move processing
10353         of lang_opt_files and lang_tree_fiels below that test.
10354         * configure: Regenerate.
10355         * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
10356
10357 2006-07-01  Martin Michlmayr  <tbm@cyrius.com>
10358
10359         * doc/gcov.texi (Invoking Gcov): Add a missing word.
10360
10361 2006-06-30  Kazu Hirata  <kazu@codesourcery.com>
10362
10363         * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
10364         comment typos.
10365
10366 2006-06-29  Jason Merrill  <jason@redhat.com>
10367
10368         PR c++/26905
10369         PR c++/26612
10370         PR c++/27000
10371         PR c++/26984
10372         PR c++/19134
10373         * tree.c (build_decl_stat): Don't hande #pragma visibility here.
10374         * c-common.c (c_determine_visibility): Handle it here.
10375         * c-decl.c (finish_decl): Call c_determine_visibility for
10376         functions, too.
10377         * flags.h (enum symbol_visibility): Sort from most to least visibility.
10378         * tree.h: Likewise.
10379         * varasm.c (default_assemble_visibility): Likewise.
10380         * c-common.c (handle_visibility_attribute): Complain about trying
10381         to give visibility to an already defined class, or trying to change
10382         declared visibility. Always attach the attribute.
10383
10384         PR c++/26905
10385         PR c++/21675
10386         PR c++/17470
10387         * attribs.c (decl_attributes): Ignore type-in-place attributes
10388         once the type has been defined.
10389
10390 2006-06-29  Roger Sayle  <roger@eyesopen.com>
10391
10392         PR middle-end/27428
10393         * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
10394         to indicate the cpplib has issued an error message for us.
10395
10396 2006-06-29  Asher Langton  <langton2@llnl.gov>
10397
10398         PR target/25765
10399         * config/i386/i386.c (ix86_output_function_epilogue): Don't
10400         insert a label at the end of an function under Mach-O.
10401
10402 2006-06-29  Eric Christopher  <echristo@apple.com>
10403             Evan Cheng  <evan.cheng@apple.com>
10404
10405         * predicates.md (vector_all_ones_operand): New.
10406         (nonimmediate_or_sse_const_operand): Ditto.
10407         * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
10408         * config/i386/i386.c (standard_sse_constant_opcode): Define.
10409         (standard_sse_mode_p): Ditto.
10410         (standard_sse_constant_p): Add case for -1 vector.
10411         (ix86_expand_vector_move): Try to use.
10412         * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
10413         Call standard_sse_constant_opcode.
10414         (*movv4sf_internal): Ditto.
10415         (*movv2df_internal): Ditto.
10416
10417 2006-06-29  Roger Sayle  <roger@eyesopen.com>
10418
10419         * genpreds.c (write_match_code_switch): Correctly use XSTR instead
10420         of XEXP to extract the operands of a MATCH_CODE rtx.
10421
10422 2006-06-28  Andrew Pinski  <pinskia@gmail.com>
10423
10424         * tree.c (tree_size): Do not waste tail padding in
10425         struct tree_string and make the size be the same as
10426         build_string will generate.
10427
10428 2006-06-28  Jason Merrill  <jason@redhat.com>
10429
10430         PR c++/27768
10431         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
10432         may_aliases already in the tag's annotations to the bitmap.
10433
10434 2006-06-28  Roger Sayle  <roger@eyesopen.com>
10435
10436         * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
10437
10438 2006-06-28  Roger Sayle  <roger@eyesopen.com>
10439
10440         * genpreds.c (generate_switch_p): New function.
10441         (add_mode_tests): Push the new mode test down inside an AND expr
10442         if this allows the switch-suitable MATCH_CODE to be near the root.
10443         (write_match_code_switch): New function to write a MATCH_CODE as
10444         a switch statement.
10445         (write_predicate_stmts): New function to write a predicate RTX
10446         expression as a sequence of statements.
10447         (write_one_predicate_function): Use write_predicate_stmts.
10448         (write_tm_constrs_h): Likewise.
10449
10450 2006-06-26  Fred Fish  <fnf@specifix.com>
10451
10452         * config/mips/t-sb1: New file.
10453         * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
10454         tmake_file list.
10455
10456 2006-06-26  DJ Delorie  <dj@redhat.com>
10457
10458         * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
10459
10460 2006-06-26  Naveen H.S  <naveenh@kpitcummins.com>
10461             Jayant Sonar  <jayants@kpitcummins.com>
10462             Jaydeep Vipradas  <jaydeepv@kpitcummins.com>
10463
10464         * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
10465         (subsi3, subsi3_1, subsi3_2): New.
10466         * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
10467         * config/m32c/mov.md (SI mov peephole): New.
10468         * config/m32c/m32.c (m32c_immd_dbl_mov): New.
10469         * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
10470
10471 2006-06-26  Olivier Hainque  <hainque@adacore.com>
10472
10473         * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
10474         a CALL_EXPR target function declaration.
10475
10476 2006-06-26  Richard Guenther  <rguenther@suse.de>
10477
10478         * tree.c (build_string): Do not waste tail padding in
10479         struct tree_string.
10480
10481 2006-06-26  Richard Guenther  <rguenther@suse.de>
10482
10483         * ggc-page.c (init_ggc): Add missing element to size_lookup
10484         table.
10485
10486         Revert
10487         2006-06-23  Richard Guenther  <rguenther@suse.de>
10488
10489         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
10490         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
10491         alignment requests instead.  Add verification code.
10492         Add struct tree_function_decl and struct tree_binfo size to
10493         extra_order_size_table.  Add missing element to size_lookup
10494         table.
10495
10496 2006-06-25  Eric Botcazou  <ebotcazou@adacore.com>
10497
10498         PR middle-end/28151
10499         * fold-const.c (const_binop): Be prepared for self returning zero.
10500         Simplify code handling complex values.
10501
10502 2006-06-24  Olivier Hainque  <hainque@adacore.com>
10503
10504         * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
10505         (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
10506         aggregate types.
10507
10508 2006-06-24  Olivier Hainque  <hainque@adacore.com>
10509
10510         * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
10511         ARRAY_REF, so have the callback called for the low bound expression.
10512
10513 2006-06-23  Janis Johnson  <janis187@us.ibm.com>
10514
10515         * tree.h (DECIMAL_FLOAT_TYPE_P): New.
10516         * c-typeck.c (c_common_type): Disallow operations on decimal float
10517         types and other float types.
10518         * convert.c (convert_to_real): Don't ignore conversions involving
10519         decimal float types.
10520
10521 2006-06-23  Olivier Hainque  <hainque@adacore.com>
10522
10523         * tree.c (max_int_size_in_bytes): New function, inspired from
10524         code in function.c:assign_temp.
10525         * tree.h (max_int_size_in_bytes): Declare.
10526         * function.c (assign_temp): Use it.
10527         * gimplify.c (create_tmp_var): Relax the assertions on the type
10528         properties, not mandating constant size any more.
10529         (force_constant_size): New static function.
10530         (gimple_add_tmp_var): Use it, forcing variable size to a
10531         constant upper bound if it is not constant on entry.
10532
10533 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
10534
10535         PR target/27789
10536         * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
10537         for initialization and setting of one_only flag to ...
10538         (i386_pe_encode_section_info): ...here.
10539         (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
10540         Recheck that the symbol has not been defined.
10541
10542 2006-06-23  Richard Guenther  <rguenther@suse.de>
10543
10544         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
10545         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
10546         alignment requests instead.  Add verification code.
10547         Add struct tree_function_decl and struct tree_binfo size to
10548         extra_order_size_table.  Add missing element to size_lookup
10549         table.
10550
10551 2006-06-22  Roger Sayle  <roger@eyesopen.com>
10552             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10553
10554         PR middle-end/28131
10555         * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
10556         call to lang_hooks.types.type_for_mode returned NULL_TREE.
10557
10558 2006-06-23  Ben Elliston  <bje@au.ibm.com>
10559
10560         * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
10561         negate dn -- manipulate it directly.
10562
10563 2006-06-22  Roger Sayle  <roger@eyesopen.com>
10564             Steven Bosscher  <stevenb.gcc@gmail.com>
10565
10566         PR target/27531
10567         * reload1.c (gen_reload): Call mark_jump_label on the new insns
10568         generated by gen_move_insn to add REG_LABEL notes if necessary.
10569
10570 2006-06-22  Bob Wilson  <bob.wilson@acm.org>
10571
10572         * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
10573         (leaf_entry): Remove use of MIN_ESA.
10574
10575 2006-06-22  Zdenek Dvorak <dvorakz@suse.cz>
10576
10577         PR rtl-optimization/28121
10578         * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
10579         the entry edge.
10580
10581 2006-06-21  DJ Delorie  <dj@redhat.com>
10582
10583         * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
10584         (TN-16C-A156A/E).
10585         (mulhisi3_r): Likewise.
10586
10587 2006-06-21  Richard Sandiford  <richard@codesourcery.com>
10588
10589         PR middle-end/28034
10590         * coverage.c (coverage_counter_alloc): Leave the index type
10591         unspecified.
10592         (coverage_counter_alloc): Use null arguments for operands 2 and 3
10593         of the ARRAY_REF.
10594
10595 2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>
10596
10597         * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
10598         section from the "Options for Code Generation Conventions".
10599
10600 2006-06-21  Richard Henderson  <rth@redhat.com>
10601
10602         PR target/26347
10603         PR target/27082
10604         * config/alpha/predicates.md (small_symbolic_operand): Deny weak
10605         symbols.
10606         (global_symbolic_operand): Allow weak symbols, even if local_p.
10607
10608 2006-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10609
10610         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
10611         (find_interesting_uses_address): Punt if above function returns true.
10612
10613 2006-06-21  Richard Guenther  <rguenther@suse.de>
10614
10615         * configure: Regenerated.
10616
10617 2006-06-21  Joseph Myers  <joseph@codesourcery.com>
10618
10619         * config/mips/mips.c (function_arg): Where one part of a
10620         complex argument is in registers and the other part in the stack,
10621         return a REG not a PARALLEL.
10622
10623 2006-06-21  Mark Mitchell  <mark@codesourcery.com>
10624
10625         * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
10626         when cross-compiling.  Do not substitute libstdcxx_incdir.
10627         * configure: Regenerated.
10628
10629 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
10630
10631         * varasm.c (mergeable_string_section): Check for embedded NULs and
10632         NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
10633         rather than TREE_STRING_LENGTH bytes.
10634
10635 2006-06-21  Richard Guenther  <rguenther@suse.de>
10636
10637         * ggc-page.c (extra_order_size_table): Add var_ann_d,
10638         tree_ssa_name, bitmap_element and phi_node with 4 arguments
10639         sizes.
10640
10641 2006-06-21  Richrad Guenther  <rguenther@suse.de>
10642
10643         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
10644         Limit iteration over the dominators.
10645
10646 2006-06-20  Roger Sayle  <roger@eyesopen.com>
10647
10648         * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
10649         (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
10650
10651 2006-06-20  Richard Guenther  <rguenther@suse.de>
10652         Michael Matz  <matz@suse.de>
10653
10654         * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
10655         function.
10656         * alloc-pool.c (free_alloc_pool_if_empty): New function.
10657         * et-forest.h (et_free_pools): Prototype new function.
10658         * et-forest.c (et_free_tree_force): Free parent occurrence.
10659         (et_free_pools): New function.
10660         * dominance.c (free_dominance_info): Free et-forest alloc
10661         pools.
10662
10663 2006-06-20  Roger Sayle  <roger@eyesopen.com>
10664
10665         * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
10666         integer modes, attempt to directly construct an integer constant.
10667
10668         * fold-const.c (native_encode_vector): Determine the size of each
10669         element from the vector type instead of the first vector element.
10670
10671         * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
10672         if all of its elements/components are constant.
10673         (build_constructor_from_list): Likewise.
10674
10675 2006-06-20  Zdenek Dvorak <dvorakz@suse.cz>
10676
10677         PR tree-optimization/27331
10678         * tree-data-ref.c (free_data_ref): New function.
10679         (create_data_ref): Fail if the data reference has unknown access
10680         function.
10681         (free_data_refs): Use free_data_ref.
10682
10683 2006-06-19  Andrew Pinski  <pinskia@gmail.com>
10684
10685         PR middle-end/28075
10686         * tree-inline.c (setup_one_parameter): Strip useless
10687         type conversion before adding it to the IR.
10688         (declare_return_variable): Likewise.
10689
10690 2006-06-19  Martin Michlmayr  <tbm@cyrius.com>
10691
10692         PR c/27149
10693         * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
10694
10695 2006-06-19  Mike Stump  <mrs@apple.com>
10696
10697         * tree.c (variably_modified_type_p): VM arguments don't make the
10698         type a VM type.
10699
10700 2006-06-19  Richard Guenther  <rguenther@suse.de>
10701
10702         * tree-ssa-pre.c (try_combine_conversion): Strip useless
10703         type conversions after folding.
10704
10705 2006-06-19  Richard Guenther  <rguenther@suse.de>
10706
10707         * ggc-page.c (extra_order_size_tab): Add entries with
10708         size of struct function and basic_block.
10709         (size_lookup): Extend to cover sizes up to 511.
10710         (ggc_alloc_stat): Adjust user.
10711         (ggc_pch_count_object): Likewise.
10712         (ggc_pch_alloc_object): Likewise.
10713         (ggc_pch_write_object): Likewise.
10714
10715 2006-06-19  Zdenek Dvorak <dvorakz@suse.cz>
10716
10717         * tree-ssa-loop-niter.c (implies_ge_p): New function.
10718         (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
10719         correctly.
10720
10721 2006-06-19  Denis Chertykov  <denisc@overta.ru>
10722
10723         * config/avr/libgcc.S : Correct my wrong previous commit.
10724
10725 2006-06-19  Roger Sayle  <roger@eyesopen.com>
10726
10727         PR target/27861
10728         * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
10729         have stripped a SUBREG from the shift count, so we may need to
10730         convert_to_mode back to the type's mode before calling make_tree.
10731         Use new_amount instead of amount to avoid expanding a tree twice.
10732
10733 2006-06-19  Richard Guenther  <rguenther@suse.de>
10734
10735         PR middle-end/28045
10736         * fold-const.c (operand_equal_p): Check if the argument types
10737         have the same precision before stripping NOPs.
10738
10739 2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
10740
10741         Fix PR tree-optimization/27341
10742         * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
10743         statement we get.
10744         * tree-complex.c (pass_lower_complex): Update SMT usage.
10745
10746 2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
10747
10748         * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
10749         Add a new alternative to the constraint strings. Add move of
10750         operand 1 to 3 to the splitter definition.
10751         ("doloop_si_long"): Second contraint alternative removed.
10752
10753 2006-06-08  Anatoly Sokolov <aesok@post.ru>
10754
10755         * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
10756         (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
10757         __AVR_HAVE_LPMX__.
10758         (AVR_HAVE_MOVW) Define.
10759         (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
10760         (ASM_SPEC): Add avr25.
10761         (LINK_SPEC): Add avr25.
10762         * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
10763         (base_arch_s): Add new member 'have_movw_lpmx'.
10764         (avr_arch_types): Init 'have_movw_lpmx'.
10765         (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
10766         attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
10767         attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
10768         (avr_override_options): Init 'avr_have_movw_lpmx_p'.
10769         (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
10770         AVR_HAVE_MOVW.
10771         (avr_file_start): Do not output '.arh' derective.
10772         * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
10773         (__do_copy_data): Use __AVR_HAVE_LPMX__.
10774         * config/avr/avr.md (mcu_enhanced): Delete.
10775         (mcu_have_movw): Define.
10776         (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
10777         (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
10778         * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
10779         (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
10780         attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
10781         attiny861 and at86rf401 devices.
10782
10783 2006-06-18  Jie Zhang  <jie.zhang@analog.com>
10784
10785         * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
10786         of 4096.
10787
10788 2006-06-17  Karl Berry  <karl@gnu.org>
10789
10790         * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
10791         doc/gccint.texi, doc/install.texi (@dircategory): Use
10792         "Software development" instead of "Programming", following
10793         the Free Software Directory.
10794
10795 2006-06-17  Alexandre Oliva  <aoliva@redhat.com>
10796
10797         * config/i386/i386.c (legitimate_tls_address)
10798         <TARGET_GNU2_TLS>: Add tp after DTPOFF.
10799         * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
10800         (*tls_dynamic_gnu2_combine_64): Likewise.
10801
10802 2006-06-16  Richard Guenther  <rguenther@suse.de>
10803
10804         PR middle-end/27116
10805         * fold-const.c (negate_expr_p): Do not introduce undefined
10806         overflow in negating INTEGER_CSTs.
10807         (fold_negate_expr): Rename from negate_expr.  Revert last
10808         change for folding BIT_NOT_EXPR.  Change semantics to
10809         return NULL_TREE for non-simplified negations.  Do not
10810         strip type conversions and unify type handling.
10811         (negate_expr): New function, wrap around fold_negate_expr
10812         but ensure building a tree always.  Strip type conversions
10813         here, fold to result type.
10814         (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
10815
10816 2006-06-16  Roger Sayle  <roger@eyesopen.com>
10817
10818         PR middle-end/27802
10819         * reg-stack.c (subst_stack_regs): Handle noreturn function calls
10820         that (would) return their results in stack registers.
10821
10822 2006-06-16  Michael Matz  <matz@suse.de>
10823         Richard Guenther  <rguenther@suse.de>
10824
10825         * fold-const.c (fold_truthop): Only return new tree node if
10826         we canonicalized something.
10827
10828 2006-06-16  Richard Guenther  <rguenther@suse.de>
10829
10830         * function.h (enum function_frequency): Move declaration
10831         out of struct function.
10832         (struct function): Move bool fields and the enum to the bitfield
10833         section.  Reorder elements to avoid padding.  Remove unused
10834         fields left over from the RTL inliner removal.
10835         * function.c (free_after_compilation): Do not zero removed fields.
10836         * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
10837         (ipa-type-escape.o): Likewise.
10838
10839 2006-06-16  Richard Guenther  <rguenther@suse.de>
10840
10841         * cgraph.h (struct cgraph_local_info): Turn bool elements
10842         into a bitfield.
10843         (struct cgraph_node): Likewise.
10844         (struct cgraph_varpool_node): Likewise.
10845
10846 2006-06-15  Richard Guenther  <rguenther@suse.de>
10847
10848         * fold-const.c (fold_truth_not_expr): Rename from
10849         invert_truthvalue.  Give it fold_* semantics to avoid
10850         generating garbage.
10851         (invert_truthvalue): New function.  Wrapper around
10852         fold_truth_not_expr.
10853         (optimize_minmax_comparison): Avoid creating garbage.
10854         (fold_unary): Use fold_truth_not_expr for folding
10855         TRUTH_NOT_EXPR.
10856         (fold_ternary): Replace uses of invert_truthvalue with
10857         fold_truth_not_expr where applicable.
10858         * tree.h (fold_truth_not_expr): Prototype.
10859
10860 2006-06-16  Richard Guenther  <rguenther@suse.de>
10861
10862         PR tree-optimization/27781
10863         * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
10864         * ipa-pure-const.c (target.h): Include.
10865         (analyze_function): Do not analyze functions that do not
10866         bind locally.
10867
10868 2006-06-15  Andrew MacLeod  <amacleod@redhat.com>
10869
10870         PR middle-end/27793
10871         * tree-dfa.c (referenced_vars_dup_list): Remove.
10872         (find_referenced_vars): Remove assert.
10873         (referenced_var_check_and_insert): Replace dup list with assert.
10874         * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
10875         * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
10876
10877 2006-06-15  Richard Guenther  <rguenther@suse.de>
10878
10879         * tree-ssa-structalias.c (alias_get_name): Avoid creating
10880         extra unused identifiers if not dumping.
10881         (create_variable_info_for): Likewise.
10882
10883 2006-06-15  Zdenek Dvorak <dvorakz@suse.cz>
10884
10885         * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
10886         (derive_constant_upper_bound): Derive more precise upper bound in
10887         common cases.  Return type changed to double_int.
10888         (record_estimate): Reflect the changed return type of
10889         derive_constant_upper_bound.
10890         * double-int.c (double_int_zext, double_int_sext): Fix.
10891
10892 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
10893
10894         * configure.ac (CFLAGS): Get them from the toplevel or from the
10895         configure invocation.
10896         * configure: Regenerate.
10897         * Makefile.in (CFLAGS): Substitute value provided by configure.
10898
10899 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
10900
10901         PR c++/26559
10902         * c-common.h (c_finish_omp_atomic): Adjust declaration.
10903         * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
10904         rather than calling add_stmt on it.
10905         * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
10906
10907 2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10908
10909         PR middle-end/27959
10910         * reload1.c (reload): Remove registers returned by update_eliminables
10911         from used_spill_regs.
10912
10913 2006-06-13  DJ Delorie  <dj@redhat.com>
10914
10915         * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
10916
10917 2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>
10918
10919         * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
10920         html__strip_dir, html__mkdir_p. Enhance install-html target.
10921         * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
10922         * configure: Regenerate.
10923
10924 2006-06-13  Fariborz Jahanian <fjahanian@apple.com>
10925
10926         * fold-const.c (fold_cond_expr_with_comparison): Check for
10927         Objective-C++ as language in deciding COND_EXPR transformation.
10928
10929 2006-06-06  J"orn Rennecke <joern.rennecke@st.com>
10930
10931         PR target/28014:
10932         * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
10933         * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
10934         * config/sh/lib1funcs.h (SL, SL1): Define.
10935         * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
10936         * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
10937         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
10938         (OBJS_Os_4_200): New variable.
10939         ($(T)libgcc-Os-4-200.a): Use it.
10940         * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
10941         when dividing 1 and/or by 0.
10942
10943 2006-06-13  Roger Sayle  <roger@eyesopen.com>
10944
10945         * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
10946         before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
10947         * configure: Regenerate.
10948
10949 2006-06-13  Jie Zhang  <jie.zhang@analog.com>
10950
10951         * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
10952         for real instruction.
10953
10954 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
10955
10956         PR middle-end/26807
10957         * haifa-sched.c (check_cfg): Handle special case.
10958
10959 2006-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10960
10961         PR debug/26754
10962         * gimplify.c (declare_tmp_vars): Rename into declare_vars.
10963         Add debug_info parameter.  Chain the vars to the BLOCK instead
10964         of the BIND_EXPR if debug info are requested for them.
10965         (pop_gimplify_context): Adjust for above change.
10966         (gimple_add_tmp_var): Likewise.
10967         * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
10968         Add bool parameter.
10969         * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
10970         (convert_local_reference): Likewise.
10971         (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
10972         (finalize_nesting_tree_1): Request that debug info be emitted
10973         for debug_var_chain.
10974
10975 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
10976
10977         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
10978         for PR target/27863.
10979
10980 2006-06-13  Richard Guenther  <rguenther@suse.de>
10981
10982         PR middle-end/27536
10983         * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
10984
10985 2006-06-13  Richard Guenther  <rguenther@suse.de>
10986
10987         PR tree-optimization/27830
10988         * tree-inline.c (copy_body_r): For copying the operand
10989         of an ADDR_EXPR make sure to fold &* afterwards.
10990
10991 2006-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10992
10993         * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
10994         lvalues in the fb_none case with side-effects.
10995
10996 2006-06-12  Kazu Hirata  <kazu@codesourcery.com>
10997
10998         * tree-flow.h: Remove the prototype for
10999         compute_phi_arg_on_exit.
11000         * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
11001         protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
11002         Remove.
11003
11004 2006-06-12  Mark Shinwell  <shinwell@codesourcery.com>
11005
11006         * builtins.c (expand_builtin_return_addr): Only use
11007         frame_pointer_rtx when count == 0 and we are expanding
11008         __builtin_return_address.
11009
11010 2006-06-12  Fred Fish  <fnf@specifix.com>
11011
11012         * config/mips/mips.c (mips_file_start): Create special section
11013         ".gcc_compiled_longXX" for o64 ABI as well as EABI.
11014
11015 2006-06-11  Eric Christopher  <echristo@apple.com>
11016
11017         PR middle-end/27948
11018         * stor-layout.c (place_field): Remove check for
11019         remaining_in_alignment when aligning at the end of a run.
11020
11021 2006-06-11  Eric Christopher  <echristo@apple.com>
11022
11023         PR 27542
11024         * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
11025         pragma.
11026
11027 2006-06-11  Roger Sayle  <roger@eyesopen.com>
11028
11029         PR target/27858
11030         Revert incorrect fix for PR target/27158
11031         2006-05-08  Roger Sayle  <roger@eyesopen.com>
11032         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
11033         of a reg_equiv_constant if the result is a legitimate constant.
11034
11035 2006-06-11  Roger Sayle  <roger@eyesopen.com>
11036
11037         PR target/27158
11038         * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
11039         extract a CONST_VECTOR element and interpret it as an integer.
11040         (vspltis_constant): Use const_vector_elt_as_int instead of the
11041         macro CONST_VECTOR_ELT in order to handle FP vector modes.
11042         * config/rs6000/predicates.md (easy_vector_const): Consider
11043         floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
11044
11045 2006-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
11046
11047         PR middle-end/27942
11048         * stor-layout.c (update_alignment_for_field): Don't add extra
11049         alignment for packed non-bitfield fields in ms_bitfield_layout_p
11050         code.
11051
11052 2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>
11053
11054         * config/mips/t-rtems: Add EL/EB multilib variants.
11055
11056 2006-06-09  Mike Stump  <mrs@apple.com>
11057
11058         * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
11059
11060 2006-06-09  David Daney  <ddaney@avtrex.com>
11061
11062         * doc/install.texi: Add binutils version recommendation for mips-*-*.
11063
11064 2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>
11065
11066         * reload.c (find_reloads): Unset force_reload for 'X' constraint.
11067
11068 2006-06-09  Richard Guenther  <rguenther@suse.de>
11069
11070         PR tree-optimization/26998
11071         * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
11072         of signed types, only TYPE_MIN_VALUE is special, but for both,
11073         minimum and maximum value.  Likewise VR_ANTI_RANGE is special
11074         in this case, as is -fwrapv.
11075
11076 2006-06-08  Mike Stump  <mrs@apple.com>
11077
11078         PR target/26427
11079         * config/darwin.c (darwin_asm_output_anchor): Disable
11080         -fsection-anchors on darwin for now.
11081         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
11082         * rs6000/rs6000.c (optimization_options): Likewise.
11083
11084 2006-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11085
11086         PR target/27421
11087         * config/i386/i386.c (classify_argument): Skip fields with invalid
11088         types in unions.
11089
11090 2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
11091
11092         * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
11093         (cse_insn): Likewise for the stack_pointer_rtx.
11094
11095 2006-06-08  Roger Sayle  <roger@eyesopen.com>
11096
11097         * tree-ssa-dom.c (record_conditions): Only record "unordered"
11098         conditions from floating point comparisons.
11099
11100 2006-06-08  Paolo Bonzini  <bonzini@gnu.org>
11101
11102         PR middle-end/27733
11103         * expmed.c (struct alg_hash_entry): Fix type of field T
11104         to match synth_mult argument.
11105         (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
11106
11107 2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
11108
11109         PR target/27863
11110         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
11111         block boundaries.
11112
11113 2006-06-08  Richard Guenther  <rguenther@suse.de>
11114
11115         PR middle-end/27116
11116         * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
11117         only, if overflow is defined and not trapping.
11118         (negate_expr): Likewise.
11119
11120 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
11121
11122         PR tree-optimization/27872
11123         * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
11124         flag on the new exit edge of the unrolled loop.
11125
11126 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
11127
11128         PR rtl-optimization/26449
11129         * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
11130
11131 2006-06-07  Andrew MacLeod  <amacleod@redhat.com>
11132
11133         PR middle-end/27793
11134         * tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
11135         referenced_variables with matching DECL_UID's.
11136         (find_referenced_vars): Make sure duplicate list is empty to start.
11137         (referenced_var_p): Remove.
11138         (referenced_var_check_and_insert): Renamed from referenced_var_insert.
11139         Check if var is in the list, and add if needed.  Update the duplicate
11140         list if a different var is in the list with the same DECL_UID.
11141         (add_referenced_var): Call routine to check and insert.
11142         * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
11143         * tree-flow.h (referenced_vars_dup_list): External declaration.
11144
11145 2006-06-07  Fred Fish  <fnf@specifix.com>
11146
11147         * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
11148         into single entry.
11149
11150 2006-06-07  Paolo Bonzini  <bonzini@gnu.org>
11151
11152         PR target/27390
11153         * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
11154         the imaginary and real parts of a clobbered register.
11155         Emit insn to set the imaginary part.
11156
11157 2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>
11158
11159         * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
11160         in lieu of unwind-dw2-fde.c.
11161
11162 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11163
11164         * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
11165
11166 2006-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
11167
11168         PR target/27842
11169         * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
11170         ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
11171         ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
11172         V4SImode temporaries and operations instead.
11173
11174 2006-06-06  Joseph S. Myers  <joseph@codesourcery.com>
11175
11176         * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
11177         dp-bit.c.
11178
11179 2006-06-06  Mike Stump  <mrs@apple.com>
11180
11181         * Makefile.in: Rename to htmldir to build_htmldir to avoid
11182         installing during build.
11183
11184 2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
11185
11186         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
11187         value to 0.
11188         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
11189         * config/ia64/ia64.c (params.h): New header.
11190         (ia64_optimization_options): New function to adjust parameters.
11191         * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
11192         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
11193         * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
11194
11195 2006-06-05  Kazu Hirata  <kazu@codesourcery.com>
11196
11197         * stor-layout.c (debug_rli): Fix a typo in a debug message.
11198
11199 2006-06-05  Steve Ellcey  <sje@cup.hp.com>
11200
11201         PR target/27051
11202         * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
11203
11204 2006-06-05  Dorit Nuzman  <dorit@il.ibm.com>
11205             Victor Kaplansky  <victork@il.ibm.com>
11206
11207         PR tree-optimization/26360
11208         * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
11209         stmts.
11210
11211 2006-06-04  Roger Sayle  <roger@eyesopen.com>
11212             Andrew Pinski  <pinskia@physics.uc.edu>
11213
11214         PR middle-end/27382
11215         * c-common.c (c_common_truthvalue_conversion): Explicitly check
11216         for LABEL_DECL before calling DECL_WEAK.
11217
11218         PR c/27150
11219         * c-typeck.c (build_binary_op): Likewise, explicitly check for
11220         LABEL_DECL and PARM_DECL.
11221
11222 2006-06-05  Joseph S. Myers  <joseph@codesourcery.com>
11223
11224         PR c/25161
11225         PR c/27020
11226         * c-decl.c (grokdeclarator): Disallow variably modified types at
11227         file scope.  Avoid marking shared array type of constant size as
11228         VLA.
11229
11230 2006-06-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11231
11232         PR c++/27601
11233         * c-common.c (fold_offsetof_1): Handle static members.
11234
11235 2006-06-04 Eric Christopher <echristo@apple.com>
11236
11237         * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
11238         (debug_rli): Output value for remaining_in_alignment.
11239         (update_alignment_for_field): Unconditionalize
11240         ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
11241         extra alignment code.
11242         (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
11243         ms_bitfield_layout_p code. Rewrite handling of structure fields.
11244         * tree.h (record_layout_info_s): Remove prev_packed.
11245         * doc/extend.texi (ms_struct): Add documentation of format.
11246
11247 2006-06-04  Mark Shinwell  <shinwell@codesourcery.com>
11248
11249         * tree.h: Declare folding_initializer.
11250         * builtins.c (fold_builtin_constant_p): Give definite answer
11251         if folding inside an initializer.
11252         * fold-const.c: Define folding_initializer.
11253         (START_FOLD_INIT): Save and then set folding_initializer.
11254         (END_FOLD_INIT): Restore folding_initializer.
11255
11256 2006-06-04  Richard Guenther  <rguenther@suse.de>
11257
11258         PR tree-optimization/27039
11259         * fold-const.c (fold_comparison): Handle pointer comparison
11260         again for all comparison codes.  Compare offsets in signed
11261         size type.
11262         (fold_binary): Move code from here.
11263
11264 2006-06-03  Roger Sayle  <roger@eyesopen.com>
11265
11266         PR target/26223
11267         * config/i386/i386.c (construct_container): Split static issued_error
11268         flag into issued_sse_arg_error, issued_sse_ret_error and
11269         issued_x87_ret_error.  Issue a daignostic if the x86-64 ABI
11270         requires the use of x87 registers and the user explicitly
11271         specified the -mno-80387 command line option.
11272
11273 2006-06-02  Geoffrey Keating  <geoffk@apple.com>
11274
11275         * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
11276         HAVE_DECL_SIGALTSTACK.
11277         (MC_FLD): New.
11278         (segv_handler): Use MC_FLD.
11279         * configure.ac: Check for a sigaltstack declaration.
11280         Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
11281         * configure: Regenerate.
11282         * config.in: Regenerate.
11283
11284 2006-06-03  J"orn Rennecke <joern.rennecke@st.com>
11285
11286         PR other/27850
11287         * Makefile.in (stmp-fixinc): Fix typo.
11288
11289 2006-06-02  Roger Sayle  <roger@eyesopen.com>
11290
11291         * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
11292         are type correct.  Clean-up.
11293         <REALPART_EXPR>: Likewise.  Optimize creal(~z) as creal(z).
11294         <IMAGPART_EXPR>: Likewise.  Optimize cimag(~z) as -cimag(z).
11295
11296 2006-06-01  DJ Delorie  <dj@redhat.com>
11297
11298         * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
11299         shift, as we've disabled the "switch" insn that needs it.
11300
11301 2006-06-01  Per Bothner  <bothner@bothner.com>
11302
11303         Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
11304         * c-opts.c (finish_options): Use internal line 0 for <command-line>.
11305         * c-ppoutput.c (cb_define): Don't increment line 0.
11306
11307 2006-06-01  Pete Steinmetz  <steinmtz@us.ibm.com>
11308
11309         * doc/invoke.texi: Add cpu_type power6.
11310         * config.gcc: Add cpu_type power6.
11311         * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
11312         to power5+ with Altivec.
11313         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
11314         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
11315
11316 2006-05-30  Anatoly Sokolov <aesok@post.ru>
11317
11318         * config/avr/avr.h (SET_ASM_OP): Define.
11319
11320 2006-06-01  Kazu Hirata  <kazu@codesourcery.com>
11321
11322         * config/bfin/bfin.c: Fix comment typos.
11323
11324 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
11325
11326         PR 25453
11327         * doc/install.texi: Document --enable-bootstrap and
11328         --disable-bootstrap.
11329
11330 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
11331
11332         * doc/install.texi: Document that InfoZIP can replace jar.
11333
11334 2006-05-31  Roger Sayle  <roger@eyesopen.com>
11335
11336         * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
11337         isn't available, directly generate the simpler x87 patterns without
11338         the (use (const_int 0)).
11339         * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
11340         implementation isn't available.
11341         (*negdf2_1): Likewise.
11342         (*negxf2_1): XF mode negation is always done using the x87.
11343         (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
11344
11345 2006-05-31  Roger Sayle  <roger@eyesopen.com>
11346
11347         * builtins.c (fold_builtin_cabs): Delete prototype.  Require an
11348         additional FNDECL argument.  Optimize cabs(-z) and cabs(~z) as
11349         cabs(z).
11350         (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
11351
11352 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
11353
11354         * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
11355         * config/bfin/bfin.c (basic-block.h): Include.
11356         (struct machine_function): New.
11357         (bfin_init_machine_status): New.
11358         (override_options): Initialize init_machine_status.
11359         (bfin_hardware_loop): New.
11360         (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
11361         (DEF_VEC_P (loop_info)): New.
11362         (DEF_VEC_ALLOC_P (loop_info,heap)): New.
11363         (struct loop_info): New.
11364         (loop_info): New typedef.
11365         (struct loop_work): New.
11366         (loop_work): New typedef.
11367         (DEF_VEC_O (loop_work)): New.
11368         (DEF_VEC_ALLOC_O (loop_work,heap)): New.
11369         (bfin_dump_loops): New.
11370         (bfin_bb_in_loop): New.
11371         (bfin_scan_loop): New.
11372         (bfin_optimize_loop): New.
11373         (bfin_reorg_loops): New.
11374         (bfin_reorg): Use bfin_reorg_loops.
11375         * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
11376         loop registers.
11377         (I_REGNO_P): Simplify.
11378         (DP_REGNO_P, DPREG_P): New macros.
11379         (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
11380         REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
11381         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
11382         Add LT_REGS, LC_REGS, LB_REGS.
11383         (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
11384         'l' for LB_REGS.
11385         (REGNO_REG_CLASS): Deal with loop registers.
11386         * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
11387         letters.
11388         (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
11389         New constants for loop registers.
11390         (UNSPEC_LSETUP_END): New.
11391         (seq_insns): New define_attr. Set it for appropriate insns.
11392         (movsi_insn): Add alternatives for move from/to
11393         loop count registers.
11394         (doloop_end): New define_expand.
11395         (loop_end): New define_insn.
11396         (define_split for bad doloop_end): New.
11397         (lsetup_with_autoinit): New define_insn.
11398         (lsetup_without_autoinit): New define_insn.
11399         (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
11400         * config/bfin/predicates.md (lc_register_operand): New.
11401         (lt_register_operand): New.
11402         (lb_register_operand): New.
11403         (nondp_register_operand): New.
11404         (nondp_reg_or_memory_operand): New.
11405         * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
11406
11407 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
11408
11409         * config/bfin/bfin.c (bfin_delegitimize_address): New.
11410         (TARGET_DELEGITIMIZE_ADDRESS): Define.
11411
11412 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
11413
11414         * Makefile.in (CATALOGS): Add po/ prefix.
11415         * configure: Regenerated.
11416
11417 2006-05-31  Richard Earnshaw  <richard.earnshaw@arm.com>
11418
11419         PR target/27829
11420         * arm.c (arm_print_operand case 'S'): Validate that the operand is
11421         a shift operand before calling shift_op.  Avoid redundant call of
11422         shift_op.
11423
11424 2006-05-30  Naveen.H.S  <naveenh@kpitcummins.com>
11425             DJ Delorie  <dj@redhat.com>
11426
11427         * config/m32c/m32c.c (m32c_expand_insv): Check that the value
11428         we're inserting is a singlt-bit constant.
11429
11430 2006-05-30  Roger Sayle  <roger@eyesopen.com>
11431
11432         * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
11433         width to HOST_WIDE_INT to avoid comparison warnings on some targets.
11434
11435 2006-05-30  Roger Sayle  <roger@eyesopen.com>
11436
11437         PR tree-optimization/23452
11438         * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
11439         to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
11440         (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
11441         complex values and with -ffast-math for FP complex values.
11442
11443 2006-05-30  Kazu Hirata  <kazu@codesourcery.com>
11444
11445         * c-common.h: Remove the prototype for yyparse.
11446         * rtl.h: Remove the prototype for init_loop.
11447
11448 2006-05-30  Andreas Krebbel  <krebbel1@de.ibm.com>
11449
11450         * cse.c (validate_canon_reg, cse_insn): Don't change insns without
11451         calling recog.
11452
11453 2006-05-30  Roger Sayle  <roger@eyesopen.com>
11454
11455         * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
11456         and rotate cases.
11457         <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
11458         log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
11459
11460 2006-05-30  Dirk Mueller  <dmueller@suse.de>
11461
11462         PR c/27273
11463         * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
11464         for CONSTANT_CLASS_P expresisons.
11465
11466 2006-05-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11467
11468         PR c/27718
11469         * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
11470
11471 2006-05-30  Zdenek Dvorak <dvorakz@suse.cz>
11472
11473         PR tree-optimization/27779
11474         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
11475         initial_condition instead of CHREC_LEFT.
11476
11477 2006-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11478
11479         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
11480         * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
11481         Make prototypes ISO C90.
11482
11483 2006-05-30  Mircea Namolaru  <namolaru@il.ibm.com>
11484             Leehod Baruch    <leehod.baruch@weizmann.ac.il>
11485
11486         * see.c (see_analyze_one_def): Correct check.
11487         (see_get_extension_data): Check if extension is parallel.
11488         (see_get_extension_reg): Likewise.
11489
11490 2006-05-30  Uros Bizjak  <uros@kss-loka.si>
11491
11492         PR target/27790
11493         * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
11494         into register for (code == GTU).
11495
11496 2006-05-29  Roger Sayle  <roger@eyesopen.com>
11497
11498         PR tree-optimization/24964
11499         * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
11500         <MULT>: Minor clean-up.  Don't convert x*-1.0 into -x if we honor
11501         signaling NaNs.  Optimize -x*-x as x*x for all float modes, and
11502         abs(x)*abs(x) as x*x for scalar floating point modes.
11503
11504 2006-05-29  Sebastian Pop  <pop@cri.ensmp.fr>
11505
11506         PR middle-end/27745
11507         * lambda-code.c (perfect_nestify): Don't copy statements
11508         in the inner loop: move them to the inner loop header.
11509
11510 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
11511
11512         PR 26237
11513         * c-tree.texi: Document OpenMP directives and clauses.
11514
11515 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
11516
11517         * varasm.c (globalize_decl): Fix indentation.
11518
11519 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
11520
11521         PR 26242
11522         * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
11523         pass_fre, pass_store_ccp, pass_copy_prop,
11524         pass_store_copy_prop, pass_merge_phi, pass_nrv,
11525         pass_return_slot, pass_object_size, pass_lim,
11526         pass_linear_transform, pass_empty_loop, pass_complete_unroll,
11527         pass_loop_prefetch and pass_stdarg.
11528
11529 2005-05-29  Bernd Schmidt  <bernd.schmidt@analog.com>
11530
11531         * config/bfin/bfin.opt (mfdpic): New option.
11532         * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
11533         (EXTRA_MULTILIB_PARTS): Likewise.
11534         (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
11535         (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
11536         multilib.
11537         * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
11538         (CRT_CALL_STATIC_FUNCTION): New.
11539         * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
11540         -shared.
11541         (CRT_CALL_STATIC_FUNCTION): New.
11542         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Handle
11543         FD-PIC moves.
11544         (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
11545         (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
11546         (initialize_trampoline): Changed to handle FD-PIC code generation.
11547         (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
11548         (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
11549         (override_options): Disallow -mid-shared-library -mfdpic combination.
11550         Can't do unaligned ops if FD-PIC.
11551         Turn off flag_pic if trying to generate non-id-shared-library
11552         non-fdpic code, since it's not supported.
11553         (bfin_assemble_integer): New function.
11554         (TARGET_ASM_INTEGER): Define.
11555         * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
11556         __BFIN_FDPIC__.
11557         * config/bfin/crtn.s: Restore them.
11558         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
11559         if TARGET_FDPIC.
11560         (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
11561         LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
11562         (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
11563         (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
11564         (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
11565         call-used.
11566         (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
11567         FDPIC_REGS and FDPIC_FPTR_REGS.
11568         (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
11569         * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
11570         UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
11571         (load_funcdescsi): New pattern.
11572         (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
11573         sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
11574         call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
11575
11576 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
11577
11578         * gcse.c, rtlanal.c: Remove obsolete comments associated with
11579         loop.c.
11580
11581         * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
11582
11583         * tree-flow.h: Remove the prototype for add_type_alias.
11584         * tree-ssa-alias.c (add_type_alias): Remove.
11585
11586 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
11587
11588         * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
11589         config/fr30/fr30.md, config/i386/i386-interix.h,
11590         config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
11591         config/sh/superh64.h, config/v850/v850.c, df-core.c,
11592         df-problems.c, df.h, except.c, final.c, haifa-sched.c,
11593         lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
11594         reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
11595         tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
11596         Follow spelling conventions.
11597         * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
11598         Follow spelling conventions.
11599
11600 2006-05-27  Richard Guenther  <rguenther@suse.de>
11601
11602         PR middle-end/27773
11603         * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
11604         to produce a constant of value 1 of generic type.
11605
11606 2006-05-27  Dirk Mueller  <dmueller@suse.de>
11607
11608         * cgraphunit.c (decide_is_function_needed): Fix wrong
11609         PR reference.
11610
11611 2006-05-26  Ulrich Weigand  <uweigand@de.ibm.com>
11612
11613         PR rtl-optimization/27661
11614         * reload.c (find_reloads): When reloading a VOIDmode constant
11615         as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
11616         use Pmode as mode of the reload register.
11617
11618 2006-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11619
11620         * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
11621         is enabled at -O and above.
11622
11623 2006-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11624
11625         PR target/27571
11626         * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
11627         table data.
11628
11629 2006-05-25  Mark Mitchell  <mark@codesourcery.com>
11630
11631         PR c++/20103
11632         * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
11633         for anonymous variables explicitly declared by front ends.
11634
11635 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11636
11637         * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
11638         (struct alias_info): Add new field ref_all_symbol_mem_tag.
11639         * tree-ssa-alias.c (compute_may_aliases): If the program contains
11640         ref-all pointers, run a finalization pass for them.
11641         (compute_flow_insensitive_aliasing): Skip ref-all pointers.
11642         (finalize_ref_all_pointers): New function.
11643         (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
11644         regular pointer type to a ref-all pointer type.
11645         (get_tmt_for): Return the special memory tag for ref-all pointers.
11646
11647 2006-05-25  Richard Guenther  <rguenther@suse.de>
11648
11649         PR middle-end/27743
11650         * fold-const.c (fold_binary): Do not look at the stripped
11651         op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
11652
11653 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11654
11655         * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
11656         for LT and GT if the computed range is effectively empty.
11657
11658 2006-05-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11659
11660         PR target/27627
11661         * pa/pa-modes.def: Use mips_single_format, mips_double_format and
11662         mips_quad_format formats instead of ieee_single_format,
11663         ieee_double_format and ieee_quad_format formats, respectively.
11664
11665 2006-05-24  Zdenek Dvorak <dvorakz@suse.cz>
11666
11667         PR tree-optimization/27639
11668         PR tree-optimization/26719
11669         * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
11670         call to scev_probably_wraps_p.
11671         * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
11672         used_in_pointer_arithmetic_p, convert_step): Removed.
11673         (nowrap_type_p): New function.
11674         (scev_probably_wraps_p): Rewritten.
11675         * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
11676         chrec_convert if chrec_convert_aggressive might have been used.
11677         * tree-chrec.c (convert_affine_scev, chrec_convert_1,
11678         scev_direction): New functions.
11679         (chrec_convert): Changed to a wrapper over chrec_convert_1.
11680         * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
11681         instead of convert_step.
11682         * tree-flow.h (scev_probably_wraps_p): Declaration changed.
11683         (convert_step): Declaration removed.
11684         (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
11685
11686 2006-05-23  Kenneth Zadeck <zadeck@naturalbridge.com>
11687
11688         * df-core.c: Added to header comments.
11689         * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
11690         df_ur_bb_info, df_urec_bb_info): Added comments.
11691         * df-problems (df_ref_bitmap, ru, rd, lr, ur,
11692         urec, ri problems): Fixed header comments.
11693         (df_ru_transfer_function): Fixed in-out set dyslexia when copying
11694         code from df_rd_transfer_function.
11695
11696 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
11697
11698         * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
11699         (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
11700         MIN_UNITS_PER_WORD to set the default.  Also use it in the guard.
11701
11702 2006-05-23  Joseph Myers  <joseph@codesourcery.com>
11703
11704         * expr.c (undefined_operand_subword_p): New.
11705         (emit_move_multi_word): Do not generate move from undefined bits
11706         of a paradoxical subreg.
11707
11708 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
11709
11710         PR rtl-optimization/27736
11711         * combine.c (replaced_rhs_value): New variable.
11712         (combine_instructions): Set it.
11713         (distribute_notes): When distributing a note in replaced_rhs_insn,
11714         check whether the value was used in replaced_rhs_value.
11715
11716 2006-05-23  Andrew MacLeod  <amacleod@redhat.com>
11717
11718         PR c++/26757
11719         * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
11720         add_referenced_var instead of add_referenced_tmp_var.
11721         * tree-complex.c (create_one_component_var): Use add_referenced_var.
11722         * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
11723         add_referenced_var.
11724         * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
11725         tree_optimize_tail_calls_1): Use add_referenced_var.
11726         * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
11727         * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
11728         Use add_referenced_var.
11729         * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
11730         * gimplify.c (force_gimple_operand): Use add_referenced_var.
11731         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
11732         Use add_referenced_var.
11733         * tree-dfa.c (struct walk_state): Remove.
11734         (find_referenced_vars): Remove walk state and vars_found hash table.
11735         (make_rename_temp): Use add_referenced_var.
11736         (find_vars_r): Pass less parameters to add_referenced_var.
11737         (referenced_var_p): New.  Is var in referenced_var hash table.
11738         (referenced_var_insert): Assert var isn't already in hash table.
11739         (add_referenced_var): Don't need walk_state parameter.  Add var if it
11740         isn't already in the hash table.
11741         (add_referenced_tmp_var): Remove.
11742         (find_new_referenced_vars_1): Use add_referenced_var.
11743         * tree-ssa-pre.c (create_expression_by_pieces,
11744         insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
11745         Use add_referenced_var.
11746         * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
11747         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
11748         lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
11749         add_referenced_var.
11750         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11751         vect_create_data_ref_ptr, vect_create_destination_var,
11752         vect_init_vector, vect_build_loop_niters,
11753         vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
11754         vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
11755         Use add_referenced_var.
11756         * tree-outof-ssa.c (create_temp): Use add_referenced_var.
11757         * tree-flow.h (add_referenced_tmp_var): Remove prototype
11758         (add_referenced_var): Add prototype.
11759         * tree-ssa-structalias.c (get_constraint_for,
11760         intra_create_variable_infos): Use add_referenced_var.
11761
11762 2006-05-23  Alexandre Oliva  <aoliva@redhat.com>
11763
11764         * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
11765         big-endian paradoxical subregs.
11766         * var-tracking.c (struct micro_operation_def): Document that,
11767         for modify micro operations, insn is the subsequent instruction.
11768         (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
11769         (var_reg_set, var_mem_set): ... new functions.
11770         (add_stores): Record subsequent insn.
11771         (compute_bb_dataflow): Use new functions for MO_USE.
11772         (emit_notes_in_bb): Use new functions for MO_USE.  Emit use
11773         notes after the insn, and modify notes before the insn known
11774         to be the subsequent one.
11775         (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
11776
11777 2006-05-23  Kazu Hirata  <kazu@codesourcery.com>
11778
11779         PR target/27696
11780         * config/i386/i386.c (ix86_expand_builtin): Use
11781         gen_sse3_monitor64 for TARGET_64BIT.
11782
11783 2006-05-22  Kenneth Zadeck <zadeck@naturalbridge.com>
11784
11785         PR rtl-optimization/26375
11786         PR rtl-optimization/26855
11787         * df-problems (df_ru_bb_local_compute_process_def): Removed update
11788         to gen set.
11789         (df_ru_bb_local_compute): Reversed statements and removed bogus
11790         comment explaining why they should be in wrong order.
11791         (df_ru_dump, df_rd_dump): Enhanced debug info.
11792         * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
11793         debug info.
11794         * ddg.c (add_deps_for_def): Converted use of reaching defs to
11795         reaching uses and fixed space problem.
11796
11797 2006-05-23  Jan Hubicka  <jh@suse.cz>
11798
11799         * cgraphunit.c (decide_is_function_needed): Also nested functions
11800         and functions declared inline can be optimized out at -O0.
11801
11802 2006-05-22  Gerald Pfeifer  <gerald@pfeifer.com>
11803
11804         * doc/install.texi (Configuration): Remove reference to CrossGCC
11805         FAQ which was gone.
11806         (Building): Ditto.
11807
11808 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
11809
11810         PR target/27266
11811         * config/i386/i386.c (ix86_expand_branch): Jump to simple if
11812         ix86_compare_emitted is non-NULL.
11813
11814 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11815
11816         PR c++/27451
11817         * stmt.c (expand_asm_operands): Skip asm statement with erroneous
11818         clobbers.
11819
11820 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
11821
11822         PR rtl-optimization/25514
11823         * combine.c (replaced_rhs_insn): New variable.
11824         (combine_instructions): Set replaced_rhs_insn when trying to replace
11825         a SET_SRC with a REG_EQUAL note.
11826         (distribute_notes): Use replaced_rhs_insn when determining the live
11827         range of a REG_DEAD register.
11828
11829 2006-18-05  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
11830             Anatoly Sokolov <aesok@post.ru>
11831
11832         * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
11833         attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
11834         attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
11835         atmega164p, atmega324p, atmega644p, atmega644, atmega329,
11836         atmega3290, atmega649, atmega6490, atmega406, atmega640,
11837         atmega1280, atmega1281, at90can32, at90can64, at90usb646,
11838         at90usb647, at90usb1286 and at90usb1287 devices.
11839         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11840         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11841
11842 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
11843
11844         * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
11845
11846 2006-05-22  Richard Guenther  <rguenther@suse.de>
11847
11848         Revert
11849         2006-01-31  Richard Guenther  <rguenther@suse.de>
11850         Paolo Bonzini  <bonzini@gnu.org>
11851
11852         * doc/install.texi (--disable-libgcc-math): Document.
11853
11854 2006-05-22  Richard Guenther  <rguenther@suse.de>
11855
11856         Revert
11857         2006-01-31  Richard Guenther  <rguenther@suse.de>
11858
11859         * doc/invoke.texi (-msselibm): Document.
11860         * target.h (expand_library_builtin): New target hook.
11861         * builtins.c (expand_builtin): Use expand_library_builtin.
11862         (default_expand_library_builtin): New function.
11863         * gcc.c (LINK_GCC_MATH_SPEC): Define.
11864         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
11865         (link_gcc_math_spec): Declare.
11866         (static_specs): Add link_gcc_math_spec.
11867         * expr.h (default_expand_library_builtin): Declare.
11868         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11869         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
11870         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
11871         * config/i386/i386.opt (msselibm): New target option.
11872         * config/i386/i386.c (ix86_builtin_function_variants): New array.
11873         (ix86_init_sse_abi_builtins): New function.
11874         (ix86_expand_library_builtin): Likewise.
11875         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11876         (override_options): Handle error conditions wrt -msselibm.
11877         (ix86_builtins): Add function codes for SSE2 ABI builtins.
11878         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
11879         * doc/extend.texi (__builtin_sse2_*): Document new target specific
11880         builtins.
11881
11882 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11883
11884         PR c/27420
11885         * c-common.c (self_promoting_args_p): Skip erroneous args.
11886
11887         PR c/26818
11888         * c-decl.c (finish_struct): Skip erroneous fields.
11889
11890 2006-05-22  Nick Clifton  <nickc@redhat.com>
11891
11892         * config/cris/cris.opt (march): Remove VarExists attribute.
11893         (max-stackframe=): Likewise.
11894
11895 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
11896
11897         * doc/rtl.texi: Fix a typo.
11898         * see.c: Fix comment typos.
11899
11900         * tree-ssa-structalias.h (alias_info): Remove num_references.
11901
11902 2006-05-21  Mike Stump  <mrs@apple.com>
11903
11904         * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
11905         (BAD2): Add.
11906         (darwin_pragma_options): Use BAD instead.
11907         (darwin_pragma_unused): Likewise.
11908         (darwin_pragma_ms_struct): Likewise.
11909
11910 2006-05-21  David Edelsohn  <edelsohn@gnu.org>
11911
11912         * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
11913
11914 2006-05-21  Kazu Hirata  <kazu@codesourcery.com>
11915
11916         PR rtl-optimization/27671
11917         * simplify-rtx.c (simplify_relational_operation_1): Fix
11918         simplifications of (eq/ne (xor x y) y) and
11919         (eq/ne (xor x y) x).
11920
11921         PR tree-optimization/26622.
11922         * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
11923         on arg1.
11924
11925 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
11926
11927         * tree-cfg.c: Prune whitespace.
11928         (debug_tree_cfg): Point to correct header containing the
11929         TDF_* defines.
11930
11931 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
11932
11933         PR middle-end/25776
11934         * cgraphunit.c (verify_cgraph_node): Typo in error message.
11935
11936 2006-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
11937
11938         PR middle-end/25776
11939         * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
11940         or sorry count is non zero.
11941
11942 2006-05-20  Andreas Schwab  <schwab@suse.de>
11943
11944         * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
11945
11946 2006-05-19  Daniel Berlin  <dberlin@dberlin.org>
11947             Kenneth Zadeck <zadeck@naturalbridge.com>
11948
11949         PR rtl-optimization/26855
11950
11951         * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
11952         multiword refs.
11953         (df_scan_alloc): Added code to properly handle multiword hard
11954         registers and add all_blocks parameter.
11955         (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
11956         code to properly handle multiword hard registers.
11957         (df_rescan_blocks): Added code to remove deleted blocks from
11958         bitmap.
11959         (df_ref_create_structure, df_ref_record): Added code to properly
11960         handle subregs.
11961         (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
11962         and set DF_REF_PARTIAL.
11963         (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
11964         (df_uses_record): Added DF_REF_PARTIAL for subreg.
11965         (df_scan_add_problem): Added flags parameter.
11966         (df_ref_create_structure): Changed switching structure.
11967         (df_bb_refs_record): Fixed case where duplicate artificial refs
11968         were created.  Changed location of flags.
11969         (df_record_entry_block_defs): Added code to make stack pointer
11970         live in entry block.  Refined cases where frame pointer is needed.
11971         Changed location of flags.
11972         (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
11973         (df_set_state): Removed function.
11974         (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
11975         df_insn_create_insn_record, df_insn_refs_delete,
11976         df_ref_create_structure): Formatting changes.
11977         * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
11978         df_delete_basic_block): New function.
11979         (df_init): Changed location of flags.
11980         (df_add_problem): Added flags parameter and the way flags are
11981         processed.
11982         (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
11983         debug_df_chain): Improved debugging output.
11984         (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
11985         (df_refs_chain_dump): Removed df parameter.
11986         (df_iterative_dataflow): Added consistency check.
11987         (df_prune_to_subcfg): Made public.
11988         (df_analyze_problem): Added blocks_to_init parameter and made
11989         public.
11990         (df_ref_record, df_bb_refs_record, df_mark_reg,
11991          df_record_exit_block_uses): Whitespace changes.
11992         (df_dump): Whitespace changes.
11993         * df.h: Some reordering to remove forward references.
11994         (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
11995         DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
11996         (df_ref_flags.DF_REF_CLOBBER): Deleted field.
11997         (dataflow.flags): New field.
11998         (df.flag): Deleted field.
11999         (df_alloc_function): Added additional bitmap parameter.
12000         (df_dependent_problem_function): New type.
12001         (df_problem.changeable_flags): New field.
12002         (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
12003         DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
12004         (df_mw_hardreg): New struct.
12005         (DF_INSN_UID_MWS): New macro.
12006         (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
12007         parameter.
12008         (df_add_problem, df_ru_add_problem, df_rd_add_problem,
12009         df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
12010         df_ri_add_problem, df_scan_add_problem): Added flags parameter.
12011         (df_set_state): Removed function.
12012         (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
12013         * df-problems.c (df_chain_dump): Removed df parameter.
12014         (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
12015         df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
12016         parameter.
12017         (df_ru_alloc, df_rd_alloc): Now resets all blocks.
12018         (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
12019         df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
12020         Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
12021         DF_REF_MUST_CLOBBER cases.
12022         (df_ru_bb_local_compute_process_def,
12023         df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
12024         df_lr_bb_local_compute, df_ur_bb_local_compute,
12025         df_chain_create_bb): Made subreg aware.
12026         (df_ru_bb_local_compute, df_rd_bb_local_compute,
12027         df_lr_bb_local_compute, df_lr_bb_local_compute,
12028         df_chain_create_bb): Cleanup to use proper macros.
12029         (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
12030         code to fixup bitvectors.
12031         (df_ri_alloc): Cleared lifetime.
12032         (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
12033         df_create_unused_note): New function.
12034         (df_ri_bb_compute, df_ri_compute): Added code to create/update
12035         REG_DEAD and REG_UNUSED notes as well as register information.
12036         (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
12037         df_chains_dump): Fixed crash if problem was never run.
12038         (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
12039         df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
12040         df_ri_add_problem): Processes flags in uniform manner.
12041         (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
12042         df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
12043         df_rd_dump, df_urec_free_bb_info): Formatting changes.
12044         (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
12045         df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
12046         df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
12047         df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
12048         df_ur_dump, df_urec_free_bb_info, df_urec_dump,
12049         df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
12050         * modulo-sched.c (sms_schedule): Added flag parameter to calls.
12051         * see.c (see_initialize_data): Ditto.
12052         * final.c (rest_of_clean_state) Added regstack_completed.
12053         * rtl.h (regstack_completed): Ditto.
12054         * reg-stack.c (regstack_completed): Ditto.
12055
12056 2006-05-19  Mike Stump  <mrs@apple.com>
12057
12058         * c-tree.h (default_conversion): Remove.
12059         * c-common.h (default_conversion): Add.
12060
12061 2006-05-19  Zdenek Dvorak <dvorakz@suse.cz>
12062
12063         * tree-vrp.c (valid_value_p): New function.
12064         (adjust_range_with_scev): Fail if the value of bound is not
12065         simple.
12066
12067 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
12068
12069         * config/mips/linux-unwind.h: Include <asm/unistd.h>
12070         (mips_fallback_frame_state): Use syscall numbers to determine
12071         the appropriate li instruction for the current ABI.  Only use
12072         __NR_sigreturn for o32.
12073
12074 2006-05-19  Nicolas Setton  <setton@adacore.com>
12075
12076         * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
12077         * langhooks.c (lhd_dwarf_name): New function.
12078         * langhooks-def.h (lhd_dwarf_name): Declare.
12079         (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
12080         * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
12081
12082 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
12083
12084         * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
12085         libgcc2.h.
12086         (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
12087         MIN_UNITS_PER_WORD logic from libgcc2.h.  Do nothing if
12088         LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
12089         * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
12090         Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
12091         determine the size of Wtype, etc.
12092         * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
12093         (swfloatfuncs): New variable.
12094         (dwfloatfuncs): Likewise.
12095         (lib2funcs): Remove floating-point conversion functions from
12096         initial assignment.  Use LIB2_SIDITI_CONV_FUNCS to determine
12097         the set of conversion routines needed.  Allow entries to specify
12098         an object name, filename and word size.  Update users accordingly.
12099         * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
12100         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
12101
12102         Revert:
12103
12104         2006-02-08  Roger Sayle  <roger@eyesopen.com>
12105
12106         PR target/22209
12107         * config/fixtfdi.c: New libgcc source file.
12108         * config/fixunstfdi.c: New source file.
12109         * config/floatditf.c: New source file.
12110         * config/floatunditf.c: New souce file.
12111         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
12112         files above instead of config/mips/_tilib.c.
12113         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
12114
12115 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12116
12117         * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
12118         * pa/pa-hpux11.h (LIB_SPEC): Update comment.
12119
12120 2006-05-18  Mike Stump  <mrs@apple.com>
12121
12122         Fix up vla, vm and [*] sematics.
12123
12124         PR c/18740
12125         PR c/7948
12126         PR c/25802
12127         PR c/27673
12128         * c-tree.h (struct c_arg_info): Add had_vla_unspec.
12129         (c_vla_unspec_p): Add.
12130         (c_vla_type_p): Add.
12131         * c-decl.c (struct c_scope): Add had_vla_unspec.
12132         (build_array_declarator): Add support for [*].
12133         (grokdeclarator): Likewise.
12134         (grokparms): Likewise.
12135         (get_parm_info): Likewise.
12136         * c-objc-common.c (c_vla_unspec_p): Likewise.
12137         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
12138         * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
12139         typeof when argument is a variably modified type not inside sizeof or alignof.
12140         (c_parser_direct_declarator_inner): Propagate errors.
12141         (c_parser_sizeof_expression): Add support for [*].
12142         (c_parser_parms_declarator): Initialize had_vla_unspec.
12143         (c_parser_parms_list_declarator): Likewise.
12144         * c-typeck.c (c_vla_type_p): Add.
12145         (composite_type): Add support for vla compositing.
12146         (comptypes_internal): Add support for vla compatibility.
12147         (c_expr_sizeof_expr): Evaluate vla arguments.
12148         * tree.c (variably_modified_type_p): Update comment for [*].
12149
12150 2006-05-18  Michael Matz  <matz@suse.de>
12151
12152         PR target/27599
12153         * config.host: Make assignments to host_xmake_file cumulative.
12154         * config.host (*-darwin*): Test $host, not $target.
12155
12156 2006-05-12  Stuart Hastings  <stuart@apple.com>
12157
12158         * config/i386/i386.opt (-mstackrealign): New flag.
12159         * config/i386/i386.c (force_align_arg_pointer): New attribute.
12160         (ix86_handle_cconv_attribute): Emit error when
12161         force_align_arg_pointer attribute collides with too many regparms.
12162         (ix86_function_regparm): Limit regparms when used with
12163         force_align_arg_pointer attribute.  (ix86_internal_arg_pointer):
12164         Support stack-realigning prologue in non-main functions.  Emit
12165         warning for nested functions under -mstackrealign, emit error for
12166         nested functions with force_align_arg_pointer attribute.
12167         * doc/extend.texi (force_align_arg_pointer): Document it.
12168         * doc/invoke.texi (-mstackrealign): Document it.
12169
12170 2006-05-17  Kazu Hirata  <kazu@codesourcery.com>
12171
12172         PR rtl-optimization/27477
12173         * combine.c (try_combine): Don't split a parallel consisting
12174         of two sets into two individual sets if both sets reference
12175         cc0.
12176
12177 2006-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12178
12179         * config/arm/arm.opt (target_fpe_name): Remove VarExists.
12180         * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
12181
12182         * doc/options.texi (VarExists): Updated.
12183
12184 2006-05-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12185
12186         * unwind-dw2.c: Add declarations for uw_update_context and
12187         uw_frame_state_for.
12188         * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
12189         detected, advance frame state and context once to skip over stub.
12190
12191 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
12192
12193         PR middle-end/20256
12194         PR middle-end/26435
12195         * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
12196         Call rewrite_into_loop_closed_ssa only when something changed.
12197         * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
12198         * lambda-code.c (can_convert_to_perfect_nest): Declared.
12199         (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
12200         Test for perfect_nest_p here.  Fix formating.
12201         (replace_uses_equiv_to_x_with_y): Fix formating.
12202         (stmt_uses_op): Removed.
12203         (can_convert_to_perfect_nest): Removed loopivs parameter.
12204         Complete the test by checking the scalar dependences.
12205         (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
12206         Fix formating.
12207
12208 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
12209
12210         PR bootstrap/22541
12211         From Dan Kegel <dank@kegel.com>:
12212         * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
12213
12214 2006-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12215
12216         * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
12217         if the element type is variably modified without recursing.
12218
12219 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
12220
12221         PR middle-end/27332
12222         * tree-loop-linear.c (try_interchange_loops): Test for
12223         no data dependences.
12224
12225 2006-05-17  Zdenek Dvorak <dvorakz@suse.cz>
12226
12227         PR tree-optimization/27548
12228         * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
12229         range of ssa names that appear on abnormal edges.
12230         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
12231         * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
12232
12233 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
12234
12235         PR middle-end/27620
12236         * expr.c (safe_from_p): Handle CONSTRUCTOR again.
12237
12238 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12239
12240         PR middle-end/27415
12241         * tree.h (OMP_PARALLEL_COMBINED): Define.
12242         * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
12243         (new_omp_context): Add is_combined_parallel argument.
12244         (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
12245         new_omp_context caller.
12246         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
12247         Adjust gimplify_scan_omp_clauses callers.
12248         (omp_is_private): Issue errors if iteration variable is firstprivate
12249         or reduction in the current context.
12250         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
12251         on combined parallel workshare constructs.
12252
12253 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12254
12255         * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
12256         (gcc-options.o): New rule.
12257
12258         * optc-gen.awk: Protect variables for gcc-options.o with
12259         #ifdef GCC_DRIVER/#endif.
12260
12261 2006-05-16  Daniel Berlin <dberlin@dberlin.org>
12262
12263         Fix PR tree-optimization/27373
12264         * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
12265          (forward_propagate_addr_expr): Update call.
12266
12267 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12268
12269         * doc/options.texi: Move the Negative option.
12270
12271 2006-05-16  Richard Guenther  <rguenther@suse.de>
12272
12273         PR tree-optimization/22303
12274         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
12275         from STRING_CSTs.
12276         (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
12277         ccp_fold did not simplify the statement.
12278
12279 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12280
12281         PR driver/26885
12282         * Makefile.in (GCC_OBJS): New.
12283         (OBJS-common): Add opts-common.o.
12284         (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
12285         (cpp$(exeext)): Likewise.
12286         (gcc.o): Also depend on opts.h.
12287         (opts-common.o): New.
12288
12289         * common.opt (gcoff): Add Negative(gdwarf-2).
12290         (gdwarf-2): Add Negative(gstabs).
12291         (gstabs): Add Negative(gstabs+).
12292         (gstabs+): Add Negative(gvms).
12293         (gvms): Add Negative(gxcoff).
12294         (gxcoff): Add Negative(gxcoff+).
12295         (gxcoff+): Add Negative(gcoff).
12296         * config/i386/i386.opt (m32): Add Negative(m64).
12297         (m64): Add Negative(m32).
12298
12299         * doc/options.texi: Document the Negative option.
12300
12301         * gcc.c: Include "opts.h".
12302         (main): Call prune_options after expandargv.
12303
12304         * optc-gen.awk: Generate common declarations for all flag
12305         variables in options.c. Output the neg_index field.
12306
12307         * opts.c (find_opt): Moved to ...
12308         * opts-common.c: Here. New file.
12309
12310         * opts.h (cl_option): Add a neg_index field.
12311         (find_opt): New.
12312         (prune_options): Likewise.
12313
12314 2006-05-16  Jakub Jelinek  <jakub@redhat.com>
12315
12316         PR middle-end/27573
12317         * omp-low.c (expand_omp_parallel): Don't assert
12318         .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
12319         instead search for it.
12320
12321         PR c/27499
12322         * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
12323         is signed.
12324
12325 2006-05-16  Andreas Schwab  <schwab@suse.de>
12326
12327         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
12328         defmac.
12329
12330 2006-05-15  Roger Sayle  <roger@eyesopen.com>
12331
12332         PR target/26600
12333         * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
12334         integer constants other than zero are only legitimate on TARGET_64BIT.
12335         <CONST_VECTOR> Only zero vectors are legitimate.
12336         (ix86_cannot_force_const_mem): Integral and vector constants can
12337         always be put in the constant pool.
12338
12339 2006-05-16  DJ Delorie  <dj@redhat.com>
12340
12341         * crtstuff.c (__dso_handle): Set section from
12342         TARGET_LBIGCC_SDATA_SECTION if defined.
12343         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
12344         * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
12345
12346 2006-05-16  Danny Smith  <dannysmith@users.sourceforge.net>
12347
12348         PR target/27599
12349         * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
12350         host_xmake_file.
12351
12352 2006-05-16  Ben Elliston  <bje@au.ibm.com>
12353
12354         * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
12355
12356 2006-05-15  Per Bothner  <per@bothner.com>
12357
12358         * tree.c: (last_annotated_node): Use source_locus typedef.
12359         This permits bootstrapping with --enable-mapped-location.
12360
12361 2006-05-15  Zdenek Dvorak <dvorakz@suse.cz>
12362
12363         PR tree-optimization/26830
12364         * tree-into-ssa.c (struct ssa_name_info): Add age field.
12365         (info_for_ssa_name, current_info_for_ssa_name_age,
12366         blocks_to_update): New variables.
12367         (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
12368         (clear_ssa_name_info, initialize_flags_in_bb,
12369         mark_block_for_update): New functions.
12370         (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
12371         (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
12372         prepare_def_site_for): Use mark_block_for_update.
12373         (mark_def_interesting): Assert that the processed block is marked in
12374         blocks_to_update.  Do not take blocks argument.
12375         (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
12376         argument.
12377         (rewrite_update_init_block, rewrite_update_stmt): Only process
12378         blocks with statements to rewrite.
12379         (delete_update_ssa): Do not clear SSA_NAME_AUX.
12380         (update_ssa): Initialize and free blocks_to_update.  Do not
12381         clear flags on statements.  Do not use blocks bitmap.
12382         * tree.h (SSA_NAME_AUX): Removed.
12383         (struct tree_ssa_name): Removed aux field.
12384         * print-tree.c (print_node): Do not print SSA_NAME_AUX.
12385
12386 2006-05-15  Richard Guenther  <rguenther@suse.de>
12387
12388         PR tree-optimization/27603
12389         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
12390         Do computations in original type.
12391
12392 2006-05-15  Mircea Namolaru  <namolaru@il.ibm.com>
12393
12394         * see.c: Code style changes such as redundant paranthesis,
12395         redundant intialization of local variables etc.
12396         (see_main): Declared now as static.
12397         * doc/invoke.texi: Update that -fsee is not enabled by
12398         default at -O3.
12399
12400 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12401
12402         * omp-low.c (check_omp_nesting_restrictions): New function.
12403         (scan_omp_1): Call it.
12404
12405         PR middle-end/27416
12406         * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
12407         construct, return *VAR.
12408
12409 2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
12410
12411         PR rtl-optimization/27406
12412         * bt-load.c (migrate_btr_def): Skip the block having abnormal
12413         edges.
12414
12415 2006-05-14  Roger Sayle  <roger@eyesopen.com>
12416
12417         PR rtl-optimization/27538
12418         * combine.c (expand_compound_operation): Call gen_lowpart
12419         before calling simplify_shift_const.
12420
12421 2006-05-14  Roger Sayle  <roger@eyesopen.com>
12422
12423         PR rtl-optimization/22563
12424         * expmed.c (store_fixed_bit_field): When using AND and IOR to store
12425         a fixed width bitfield, always force the intermediates into psuedos.
12426
12427 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
12428
12429         PR 27501
12430         * mkconfig.sh: Use operator = instead of == for test.
12431
12432 2006-05-13  Nick Clifton  <nickc@redhat.com>
12433
12434         * dwarf2out.c (dbx_reg_number): Check return value from
12435         LEAF_REG_REMAP and only use it if it is valid.
12436         (multiple_reg_loc_descriptor): Likewise.
12437
12438 2006-05-13  Richard Guenther  <rguenther@suse.de>
12439
12440         * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
12441         host_xmake_file.
12442
12443 2006-05-13  Steven Bosscher  <stevenb.gcc@gmail.com>
12444
12445         * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
12446         information attached to non-INSNs such as NOTEs.
12447         (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
12448
12449 2006-05-12  Andreas Krebbel  <krebbel1@de.ibm.com>
12450
12451         * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
12452         On contraint.
12453         * config/s390/s390.md: Adjust comment describing On constraint.
12454
12455 2006-05-11  Jan Hubicka  <jh@suse.cz>
12456
12457         * cgraphunit.c (decide_is_function_needed): Don't force always_inline
12458         to be output at -O0.
12459
12460 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12461
12462         PR middle-end/27384
12463         * fold-const.c (size_binop): Move sanity check for arguments to
12464         the beginning of the function.
12465
12466         PR middle-end/27488
12467         * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
12468         expression.
12469
12470 2006-05-11  Richard Guenther  <rguenther@suse.de>
12471
12472         PR middle-end/27529
12473         * fold-const.c (fold_unary): Handle intermediate conversion
12474         to a pointer type like intermediate conversion to an integer
12475         type in folding of (T1)(T2)var to var.
12476         Match the code to the comment in the final conversion for
12477         (T1)(T2)var to (T1)var regarding to type precision.  Rather
12478         than disallow T1 being of pointer type, assert that both T1
12479         and var are of pointer type or not.  Make sure not to fall
12480         over the frontends lazyness wrt array to pointer decay though.
12481
12482 2006-05-10  Richard Earnshaw  <rearnsha@arm.com>
12483
12484         * arm.c (arm_struct_value_rtx): Delete.
12485         (TARGET_STRUCT_VALUE_RTX): Use the default definition.
12486         (arm_init_cumulative_args): Always initialize nregs to zero.
12487
12488 2006-05-10  Richard Guenther  <rguenther@suse.de>
12489
12490         PR tree-optimization/27532
12491         * tree-object-size.c (plus_expr_object_size): Fix typo.
12492
12493 2006-05-10  Kazu Hirata  <kazu@codesourcery.com>
12494
12495         PR target/24949
12496         * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
12497         ashrdi_const, ashrdi3): Use a scratch register.
12498
12499 2006-05-10  Richard Guenther  <rguenther@suse.de>
12500
12501         PR tree-optimization/27302
12502         * fold-const.c (operand_equal_p): For two comparisons,
12503         try comparison of one comparison code swapped if that yields
12504         the same code.
12505
12506 2006-05-10  Ben Elliston  <bje@au.ibm.com>
12507
12508         * tree-pretty-print.c (pretty_print_string): No need to handle
12509         '\0' as a special character.
12510
12511         * tree.h: Include "hashtab.h".
12512         (iterative_hash_expr): Use hashval_t in its prototype.
12513         * Makefile.in (TREE_H): Add $(HASHTAB_H).
12514
12515 2006-05-09  Steve Ellcey  <sje@cup.hp.com>
12516
12517         PR bootstrap/26872
12518         * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
12519         (hppa*64*-*-hpux11*): Ditto.
12520         (hppa[12]*-*-hpux11*): Ditto.
12521
12522 2006-05-09  David Edelsohn  <edelsohn@gnu.org>
12523
12524         PR target/26545
12525         * config/rs6000/aix41.h (TARGET_64BIT): Define.
12526
12527 2006-05-09  Michael Matz  <matz@suse.de>
12528
12529         * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
12530         host_extra_gcc_objs and host_xmake_file.
12531         (<*-*-linux*>): Don't overwrite host_xmake_file.
12532         * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
12533         * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
12534         (host_detect_local_cpu): Declare.
12535         (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
12536         * config/i386/i386.c (override_options): Handle -mtune=native
12537         as -mtune=generic.
12538         * config/i386/x-i386: New file.
12539         * config/i386/driver-i386.c: New file.
12540         * doc/invoke.texi (<i386 and x86-64 Options>): Describe
12541         cpu-type "native".
12542
12543 2006-05-09  Dirk Mueller  <dmueller@suse.de>
12544         Richard Guenther  <rguenther@suse.de>
12545
12546         PR middle-end/27498
12547         * fold-const.c (fold_read_from_constant_string): Relax check
12548         for matching types to matching modes.
12549
12550 2006-05-09  Zdenek Dvorak <dvorakz@suse.cz>
12551
12552         PR rtl-optimization/27335
12553         * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
12554         loops.
12555
12556 2006-05-08  Chao-ying Fu  <fu@mips.com>
12557             Richard Sandiford  <richard@codesourcery.com>
12558
12559         * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
12560         (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
12561         * config/mips/mips.md (UNSPEC_SCC): New constant.
12562         * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
12563         * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
12564         (mips_emit_compare): Use it.
12565         (mips_expand_vcondv2sf): New function.
12566
12567 2006-05-08  Daniel Berlin  <dberlin@dberlin.org>
12568
12569         Fix PR tree-optimization/27093
12570         * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
12571         renaming when they become not-used_alone.
12572
12573 2006-05-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12574
12575         * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
12576         relocation and relocation stubs.
12577
12578 2006-05-08  Eric Christopher  <echristo@apple.com>
12579
12580         * unwind-dw2-fde-darwin.c (examine_objects): Only check data
12581         section for ppc.
12582
12583 2006-05-08  Jan Hubicka  <jh@suse.cz>
12584
12585         PR middle-end/24561
12586         * cgraphunit.c (decide_is_function_needed): When not optimizing even
12587         unused static functions are needed.
12588
12589 2006-05-08  Roger Sayle  <roger@eyesopen.com>
12590
12591         PR target/27158
12592         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
12593         of a reg_equiv_constant if the result is a legitimate constant.
12594
12595 2006-05-08  Uros Bizjak  <uros@kss-loka.si>
12596
12597         PR target/27277
12598         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
12599         standard 80387 constants, raise the cost to prevent
12600         compress_float_constant() to generate load from memory.
12601
12602 2006-05-08  Kazu Hirata  <kazu@codesourcery.com>
12603
12604         * config/arm/constraints.md (c): Fix a typo.
12605
12606         * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
12607         typos.
12608
12609 2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>
12610
12611         PR target/24879
12612         * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
12613         inline function.
12614         (_mm_mwait): Likewise.
12615
12616         * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
12617         "mwait".
12618         (sse3_monitor): Make it 32bit only.
12619         (sse3_monitor64): New. 64bit monitor.
12620
12621 2006-05-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12622
12623         PR target/27421
12624         * config/i386/i386.c (classify_argument): Skip fields with invalid
12625         types.
12626
12627 2006-05-07  Richard Guenther  <rguenther@suse.de>
12628
12629         PR tree-optimization/27409
12630         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12631         Do not try to find zero-sized subvars.
12632
12633 2006-05-07  Richard Guenther  <rguenther@suse.de>
12634
12635         PR tree-optimization/27136
12636         * tree-ssa-loop-niter.c (get_val_for): Correct function
12637         comment, assert requirements.
12638         (loop_niter_by_eval): Stop processing if the iterated
12639         value did not simplify.
12640
12641 2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>
12642
12643         * opts.c (flag_see): remove its setting at -O3.
12644
12645 2006-05-07  Richard Earnshaw  <rearnsha@arm.com>
12646
12647         * genpeep.c (main): Make insn-peep.c depend on flags.h.
12648         * arm/constraints.md: New file.
12649         * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
12650         (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
12651         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
12652         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
12653         (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
12654         (EXTRA_MEMORY_CONSTRAINT): Likewise.
12655         * arm.md: Include constraints.md.
12656         (thumb_movsi_insn): Use satisfies_constraint_J.
12657         (movhi, movqi): Use satisfies_constraint_I.
12658
12659 2006-04-29 Anatoly Sokolov <aesok@post.ru>
12660
12661         * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
12662         for atmeg a645 device.
12663
12664 2006-05-06   Richard Guenther  <rguenther@suse.de>
12665
12666         PR tree-optimization/27151
12667         * tree-vect-transform.c (vectorizable_condition): Punt on
12668         values that have a different type than the condition.
12669
12670 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
12671
12672         PR/21391
12673         * c-parser.c (c_parser_cast_expression): Only insert casts into
12674         hash table if pointer.
12675         * function.c (used_types_insert_helper): Rename from
12676         used_types_insert.
12677         (used_types_insert): Call used_types_insert_helper.
12678         * function.h (used_types_insert): Accept only one argument.
12679
12680 2006-05-05  David Edelsohn  <edesohn@gnu.org>
12681
12682         * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
12683         scratch with output modifier.
12684
12685 2006-05-04  David Edelsohn  <edelsohn@gnu.org>
12686
12687         PR target/26481
12688         * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
12689         with output modifier.
12690
12691 2006-05-04  Richard Sandiford  <richard@codesourcery.com>
12692
12693         PR target/26765
12694         * config/mips/mips.c (mips_symbolic_address_p): Return true
12695         for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
12696         SYMBOL_GOTTPREL, and SYMBOL_TLS.
12697
12698 2006-05-04  Richard Guenther  <rguenther@suse.de>
12699
12700         PR tree-optimization/14287
12701         PR tree-optimization/14844
12702         PR tree-optimization/19792
12703         PR tree-optimization/21608
12704         PR tree-optimization/27090
12705         * tree-ssa-pre.c (try_combine_conversion): New function.
12706         (compute_avail): After constructing the value-handle
12707         expression, use try_combine_conversion to combine NOP_EXPRs
12708         with previous value-handle expressions and use the result if it
12709         is available.
12710
12711 2006-05-04  Joseph S. Myers  <joseph@codesourcery.com>
12712
12713         * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
12714
12715 2006-05-04  Jan Hubicka  <jh@suse.cz>
12716
12717         PR middle-end/25962
12718         * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
12719
12720 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
12721
12722         * config/bfin/predicates.md (const01_rtx): Tell generator programs
12723         that this only matches CONST_INTs.  All users changed to VOIDmode
12724         operands.
12725
12726         * config/bfin/bfin.c: Include "optabs.h".
12727         (bfin_rtx_costs): Some costs for vector operations, to allow combine
12728         to do more work.
12729         (enum bfin_builtins): Add a number of fractional and vector builtins.
12730         (bfin_init_builtins): Likewise.
12731         (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
12732         (safe_vector_operand, bfin_expand_binop_builtin,
12733         bfin_expand_unop_builtin): New functions.
12734         (bfin_expand_builtin): Handle the new builtins.
12735         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12736         __ADSPBLACKFIN__.
12737
12738 2006-05-04  Leehod Baruch  <leehod@il.ibm.com>
12739
12740         * see.c: New file.
12741         * Makefile.in (OBJS-common): Add see.o.
12742         (see.o): Add dependencies.
12743         * common.opt (fsee): New flag for the see optimization was added.
12744         * opts.c (flag_see): Initialized.
12745         * passes.c (init_optimization_passes, pass_see): New pass.
12746         * rtl.h (see_main): Declaration as extern.
12747         * timevar.def (TV_SEE): New.
12748         * tree-pass.h (pass_see): Declaration as extern.
12749         * invoke.texi (-fsee): Document.
12750         * recog.c (validate_simplify_insn): New function.
12751         * recog.h (validate_simplify_insn): Declaration as extern.
12752         * df-problems.c (df_chain_dump): Check for NULL.
12753
12754 2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
12755             Daniel Berlin  <dberlin@dberlin.org>
12756
12757         * cfgrtl.c (insert_insn_bb_end_new): New function.
12758         * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
12759
12760 2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>
12761
12762         * df.h (struct web_entry): Moved from web.c.
12763         (union_defs): Declaration as extern.
12764         (unionfind_root): Likewise.
12765         (unionfind_union): Likewise.
12766         * web.c (struct web_entry): Moved to df.h.
12767         (unionfind_root): Remove static declaration.
12768         (unionfind_union): Likewise.
12769         (union_defs): Likewise and generalize to use callback function.
12770         (web_main): Update arguments for union_defs function call.
12771
12772 2006-05-04  Richard Guenther  <rguenther@suse.de>
12773
12774         PR tree-optimization/26447
12775         * tree-ssa-pre.c (realify_fake_stores): For necessary loads
12776         produce SSA_NAME copies before the store stmt to avoid
12777         breaking exception handling.
12778
12779 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
12780
12781         PR middle-end/27388
12782         * gimplify.c (omp_is_private): If var is shared in some outer context,
12783         return false instead of true.  Stop searching on parallel context
12784         boundary.
12785
12786 2006-05-03  Alexandre Oliva  <aoliva@redhat.com>
12787
12788         PR java/8260
12789         * coverage.c: Use get_gcov_unsigned_t() instead of
12790         unsigned_type_node all over.
12791
12792 2006-05-02  Andrew MacLeod  <amacleod@redhat.com>
12793
12794         PR tree-optimization/27381
12795         * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
12796         maintain the same immediate_use links.
12797         * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
12798         node rather than segfaulting.
12799
12800 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
12801
12802         PR fortran/27395
12803         * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
12804         rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
12805         bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
12806
12807 2006-05-02  Daniel Berlin  <dberlin@dberlin.org>
12808
12809         Fix PR tree-optimization/26626
12810         * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
12811         always.
12812         * tree-ssa-operands.c (access_can_touch_variable): Allow
12813         typecasting through union pointers.
12814
12815 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12816
12817         PR c++/26943
12818         * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
12819         (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
12820         to find if var will be a global variable even in the nested context.
12821         (omp_copy_decl): Only check for global variable at the end, it might
12822         be overridden in outer contexts.
12823         (scan_sharing_clauses): For global variables don't create a field.
12824         (lower_rec_input_clauses): Do nothing for global shared variables.
12825         Emit a barrier at the end of ILIST if there were any decls in both
12826         firstprivate and lastprivate clauses.
12827         (lower_send_clauses): Do nothing for global variables except for
12828         COPYIN.
12829
12830 2006-05-02  Zdenek Dvorak <dvorakz@suse.cz>
12831
12832         * tree.c (unsigned_type_for, signed_type_for): Make sure a type
12833         of the correct signedness is returned.
12834
12835 2006-05-02  Jeff Law  <law@redhat.com>
12836
12837         PR tree-optimization/27364
12838         * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
12839         multiply expressions.
12840
12841 2006-05-02  Tom Tromey  <tromey@redhat.com>
12842
12843         * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
12844
12845 2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
12846
12847         PR target/27387
12848         * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
12849         -mthumb -fPIC are used.
12850
12851 2006-05-02  Stanislaw Skowronek  <skylark@linux-mips.org>
12852             Joshua Kinard  <kumba@gentoo.org>
12853
12854         PR target/25871
12855         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
12856         with 64-bit pointers.
12857
12858 2006-05-02  Paul Brook  <paul@codesourcery.com>
12859
12860         * config/arm/arm.c (add_minipool_forward_ref): Check if insn
12861         and pool overlap.
12862         (create_fix_barrier): Check that a suitable barrier location is
12863         found.
12864         (arm_reorg): Include ftmp->address in allowable range of addresses.
12865
12866 2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
12867
12868         PR ada/27366
12869         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
12870         on Cygwin.
12871
12872 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12873
12874         PR middle-end/27337
12875         * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
12876         around RESULT_DECL for result passed by reference.
12877         (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
12878         * omp-low.c (use_pointer_for_field): Don't look at
12879         DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
12880         (scan_omp_1): Call remap_decl on RESULT_DECLs.
12881         (lower_rec_input_clauses): Don't allocate VLA memory for the second
12882         time or var for passing by reference for
12883         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
12884         TREE_ADDRESSABLE variables when passing by reference.
12885
12886         * omp-low.c (dump_omp_region): Fix output formatting.
12887
12888         PR middle-end/27328
12889         * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
12890         (expand_omp_parallel): Likewise.
12891         * tree-cfg.c (move_sese_region_to_fn): Likewise.
12892
12893         PR middle-end/27325
12894         * omp-low.c (lower_omp_sections): Call maybe_catch_exception
12895         on statement list containing also constructors and destructors.
12896         (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
12897
12898         PR middle-end/27310
12899         * except.c (duplicate_eh_regions): Fix clearing of
12900         cfun->eh->region_array entries.
12901
12902 2006-05-01  DJ Delorie  <dj@redhat.com>
12903
12904         * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
12905         build!=host.
12906         (gcc_cv_objdump): Likewise.
12907         * configure: Regenerated.
12908
12909 2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
12910
12911         PR target/27374
12912         * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
12913         templates for case 3 and 4.
12914
12915 2006-05-01  DJ Delorie  <dj@redhat.com>
12916
12917         * vec.c: Include bconfig.h when appropriate.
12918         * Makefile.in (build/vec.o): Adjust dependencies.
12919         * mkconfig.sh: Make sure config.h isn't used for build machine
12920         compiles.
12921
12922 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
12923
12924         * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
12925         variables.
12926         (mark_phi_for_rewrite): New function.
12927         (insert_phi_nodes_for, mark_use_interesting): Call
12928         mark_phi_for_rewrite.
12929         (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
12930         (update_ssa): Initialize and free phis_to_rewrite.
12931
12932 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
12933
12934         PR rtl-optimization/27291
12935         * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
12936         folded to a constant.
12937
12938 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
12939
12940         PR tree-optimization/27283
12941         * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
12942         not whole # of iteration descriptions.
12943         (niter_for_exit): Return just # of iterations.  Fail if # of iterations
12944         uses abnormal ssa name.
12945         (niter_for_single_dom_exit): Ditto.
12946         (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
12947         return just the number of iterations.
12948
12949 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
12950
12951         PR tree-optimization/27144
12952         * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
12953         (record_estimate): Only record constant upper bound.
12954         (infer_loop_bounds_from_undefined): Call
12955         compute_estimated_nb_iterations just once.
12956         (proved_non_wrapping_p): Renamed to ...
12957         (n_of_executions_at_most): ... this.  Expect bound to be a constant.
12958         (convert_step_widening, scev_probably_wraps_p): Call
12959         n_of_executions_at_most instead of proved_non_wrapping_p.
12960         (substitute_in_loop_info): Do not replace values in bounds.
12961         * cfgloop.h (struct nb_iter_bound): Remove "additional" field.  Update
12962         comments.
12963
12964 2006-05-01  Richard Henderson  <rth@redhat.com>
12965
12966         PR c/27358
12967         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
12968         c_parser_skip_to_pragma_eol.  Convert to switch statement.  Handle
12969         CPP_PRAGMA.
12970
12971 2006-05-01  Roger Sayle  <roger@eyesopen.com>
12972
12973         * c-typeck.c (parser_build_binary_op): Don't call the function
12974         unsigned_conversion_warning to spot operand/result type overflow.
12975         (build_binary_op): Instead, call convert_and_check instead of
12976         convert to report the problem when the operands are promoted.
12977         * c-common.c (unsigned_conversion_warning): Make static.
12978         * c-common.h (unsigned_conversion_warning): Delete prototype.
12979
12980 2006-05-01  Richard Guenther  <rguenther@suse.de>
12981
12982         PR tree-optimization/26726
12983         * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
12984         problem ...
12985         (find_interesting_uses_address): ... we work around here
12986         by folding INDIRECT_REFs in the substituted base.
12987
12988 2006-05-01  Diego Novillo  <dnovillo@redhat.com>
12989
12990         * omp-low.c (dump_omp_region): Add newlines.
12991
12992 2006-04-30  Roger Sayle  <roger@eyesopen.com>
12993
12994         * common.opt (Woverflow): New command line option.
12995         * c-common.c (constant_expression_warning): Check warn_overflow.
12996         (overflow_waring): Pass OPT_Woverflow to warning.
12997         (unsigned_conversion_warning): Likewise.
12998         (convert_and_check): Likewise.
12999         * doc/invoke.texi: Document new command line option.
13000
13001 2006-04-30  David Edelsohn  <edelsohn@gnu.org>
13002
13003         * config/rs6000/rs6000.c (rs6000_override_options): Enable
13004         TARGET_NO_FP_IN_TOC for section anchors.
13005         (optimization_options): Enable section anchors for all
13006         non-"Objective" languages.
13007
13008 2006-04-28  Eric Christopher  <echristo@apple.com>
13009
13010         * config/darwin-c.c (darwin_ms_struct): Move this
13011         (darwin_set_default_type_attributes): and this...
13012         * config/darwin.c: ... here.
13013         * config/darwin.h (darwin_ms_struct): Declare.
13014
13015 2006-04-28  Andrew MacLeod  <amacleod@redhat.com>
13016
13017         * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
13018
13019 2006-04-28  Roger Sayle  <roger@eyesopen.com>
13020
13021         PR c/25309
13022         * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
13023         (push_array_bounds): Delete prototype.  Change BOUNDS argument to
13024         an unsigned HOST_WIDE_INT.
13025         (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
13026         array index.
13027         (really_start_incremental_init): No need to call convert because
13028         bitsize_zero_node is already of type bitsizetype.
13029         (push_init_level): Extract the value of constructor_index as an
13030         unsigned HOST_WIDE_INT quantity, using tree_low_cst.
13031         (process_init_element): Likewise.
13032
13033 2006-04-28  Joseph S. Myers  <joseph@codesourcery.com>
13034
13035         * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
13036         value before passing to make_relative_prefix.
13037
13038 2006-04-28  Alan Modra  <amodra@bigpond.net.au>
13039
13040         PR middle-end/27260
13041         * builtins.c (expand_builtin_memset): Expand val in original mode.
13042
13043 2006-04-27  Eric Christopher  <echristo@apple.com>
13044
13045         * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
13046         with #ifndef/#endif.
13047         * config/darwin-c.c (darwin_ms_struct): New.
13048         (darwin_pragma_ms_struct): Ditto.
13049         (darwin_set_default_type_attributes): Ditto.
13050         * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
13051         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
13052         Register ms_struct pragma.
13053         * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
13054         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
13055         * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
13056         darwin_set_default_type_attributes if TARGET_MACHO.
13057
13058 2006-04-27  Andrew MacLeod  <amacleod@redhat.com>
13059
13060         PR tree-optimization/26854
13061         * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
13062         * doc/tree-ssa.texi: Update immuse iterator documentation.
13063         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
13064         * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
13065         * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
13066         first_safe_imm_use, next_safe_imm_use): Remove.
13067         (end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
13068         (end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
13069         (move_use_after_head): New.  Helper function to sort immuses in a stmt.
13070         (link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
13071         (first_imm_use_stmt): New.  Get first stmt in an immuse list.
13072         (next_imm_use_stmt): New.  Get next stmt in an immuse list.
13073         (first_imm_use_on_stmt): New.  Get first immuse on a stmt.
13074         (end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
13075         (next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
13076         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
13077         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
13078         (perfect_nestify): Use new iterator.
13079         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
13080         iterator.
13081         * tree-flow.h (struct immediate_use_iterator_d): Add comments.
13082         (next_imm_name): New field in struct immediate_use_iterator_d.
13083         (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
13084         (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
13085         FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
13086         * tree-cfg.c (replace_uses_by): Use new iterator.
13087         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
13088         * tree-ssa-operands.c (correct_use_link): Remove.
13089         (finalize_ssa_use_ops): No longer call correct_use_link.
13090
13091 2006-04-27  Stuart Hastings  <stuart@apple.com>
13092
13093         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
13094         * config/t-darwin (crt3.o): Use it.
13095         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
13096         'pmode', use Pmode instead of SImode for SYMBOL_REF.
13097         * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
13098         call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
13099         call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
13100         support.
13101
13102 2006-04-27  Roger Sayle  <roger@eyesopen.com>
13103
13104         * expmed.c (store_fixed_bit_field): If we're not optimizing for
13105         size, force the intermediate into a new pseudo rather instead of
13106         performing both a bitwise AND and a bitwise IOR in memory.
13107
13108 2006-04-27  Richard Guenther  <rguenther@suse.de>
13109
13110         PR rtl-optimization/26685
13111         * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
13112         this one "max-flow-memory-locations".
13113
13114 2006-04-27  Richard Guenther  <rguenther@suse.de>
13115
13116         PR tree-optimization/25148
13117         * tree-vrp.c (compare_values): Remove code dealing with
13118         comparisons against type min/max value.  Honour overflow
13119         and negative constants in code dealing with comparisons
13120         of plus and minus expressions.
13121         (value_inside_range): Use fold_binary with LE_EXPR and
13122         GE_EXPR rather than compare_values.
13123
13124 2006-04-27  Dirk Mueller  <dmueller@suse.de>
13125
13126         * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
13127         prototype for SSE.
13128
13129 2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>
13130
13131         * basic-block.h (safe_insert_insn_on_edge): Removed.
13132         * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
13133
13134 2006-04-26  David Edelsohn  <edelsohn@gnu.org>
13135             Paolo Bonzini  <bonzini@gnu.org>
13136
13137         PR middle-end/27282
13138         * combine.c (simplify_and_const_int_1): Use gen_int_mode.
13139         (simplify_and_const_int): Same.
13140
13141 2006-04-26  Aldy Hernandez  <aldyh@redhat.com>
13142
13143         * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
13144
13145 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
13146
13147         PR c/26171
13148         * cgraph.c (cgraph_varpool_finalize_decl): Don't call
13149         cgraph_varpool_assemble_pending_decls if -fopenmp, unless
13150         cgraph_global_info_ready.
13151
13152         PR middle-end/26913
13153         * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
13154
13155         PR c/25996
13156         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
13157         either decl or init is error_mark_node.
13158
13159         PR middle-end/25989
13160         * tree-flow.h (struct omp_region): Add sched_kind.
13161         * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
13162         instead of extracting omp for data.
13163         (expand_omp_for): Save extracted sched_kind.
13164
13165 2006-04-25  Roger Sayle  <roger@eyesopen.com>
13166
13167         * expmed.c (store_bit_field): Also check whether the bitsize is
13168         valid for the machine's "insv" instruction before moving the
13169         target into a pseudo for use with the insv.
13170         * config/i386/predicates.md (const8_operand): New predicate.
13171         * config/i386/i386.md (extv, extzv, insv): Use the new
13172         const8_operand predicate where appropriate.
13173
13174 2006-04-25  DJ Delorie  <dj@redhat.com>
13175
13176         * doc/install.texi (Specific): Clarify that this is not a list of
13177         supported hosts or targets.
13178
13179 2006-04-25  Richard Sandiford  <richard@codesourcery.com>
13180
13181         PR rtl-optimization/26725
13182         * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
13183         block's BB_DIRTY flag.
13184
13185 2006-04-25  Geoffrey Keating  <geoffk@apple.com>
13186
13187         * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
13188         are no branches.
13189
13190         * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
13191         to print an integer.
13192
13193 2006-04-25  David Edelsohn  <edelsohn@gnu.org>
13194
13195         * varasm.c (align_variable): New function.
13196         (get_block_for_decl): Apply align_variable to DECL before
13197         calculating section information.
13198         (assemble_variable): Split out alignment computation.
13199
13200 2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>
13201
13202         * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
13203         machines.
13204
13205 2006-04-25  Bernd Schmidt  <bernd.schmidt@analog.com>
13206
13207         * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
13208         MODE_PARTIAL_INT mode.
13209         * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
13210         * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
13211         for CONST_INTs.
13212         (hard_regno_mode_ok): V2PDImode is ok for accumulators.
13213         * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
13214         V2PDImode.
13215         * config/bfin/predicates.md (const01_operand, vec_shift_operand):
13216         New predicates.
13217         * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
13218         New constants.
13219         (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
13220         MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
13221         MACFLAG_IH): Likewise.
13222         (movstricthi_1): Renamed from "*movstricthi".
13223         (load_accumulator, load_accumulator_pair, movsi_insv, insv,
13224         ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
13225         abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
13226         movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
13227         movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
13228         movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
13229         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
13230         sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
13231         addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
13232         mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
13233         ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
13234         flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
13235         flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
13236         flag_macv2hi_parts, flag_macv2hi_parts_acconly,
13237         flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
13238
13239         * doc/rtl.texi (ss_ashift): Improve wording.
13240
13241 2006-04-24  Geoffrey Keating  <geoffk@apple.com>
13242
13243         * dwarf2out.c (verify_marks_clear): New.
13244         (prune_unused_types): Call verify_marks_clear initially, not
13245         prune_unmark_dies.
13246
13247 2006-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
13248
13249         * rtl.def (SS_ASHIFT, SS_NEG): New codes.
13250         * doc/rtl.texi: Document them.
13251         * simplify-rtx.c (simplify_unary_operation,
13252         simplify_binary_operation_1): Don't abort when we see them.
13253
13254 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
13255
13256         Revert:
13257         2006-04-23  Mark Mitchell  <mark@codesourcery.com>
13258         * configure.ac: Completely disregard languages that are not
13259         enabled.
13260         * configure: Regenerated.
13261
13262 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
13263         Richard Guenther  <rguenther@suse.de>
13264
13265         PR tree-optimization/27236
13266         * tree-inline.c (copy_body_r): Make sure to copy
13267         TREE_THIS_VOLATILE flag.
13268
13269 2006-04-24  Richard Guenther  <rguenther@suse.de>
13270
13271         PR middle-end/26869
13272         * tree-complex.c (update_parameter_components): Don't handle
13273         unused parameters which have no default def.
13274
13275 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
13276         Richard Guenther  <rguenther@suse.de>
13277
13278         PR tree-optimization/27218
13279         * tree-inline.c (expand_call_inline): Strip useless type
13280         conversions for the return slot address.
13281
13282 2006-04-24  Richard Guenther  <rguenther@suse.de>
13283
13284         * cfgloop.h (struct loops): Remove unused field array.  Reorder
13285         state after num.
13286         (LOOP_PREFETCH): Remove.
13287
13288 2006-04-24  Richard Guenther  <rguenther@suse.de>
13289
13290         PR tree-optimization/22525
13291         * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
13292         variable, adjust types of generated expressions.
13293
13294 2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
13297         (tree-vect-patterns.o): Likewise.
13298         (jump.o): Likewise.
13299         (cselib.o): Likewise.
13300         (loop-doloop.o): Likewise.
13301         (regclass.o): Likewise.
13302         (reload1.o): Likewise.
13303         (explow.o): Replace target.h with $(TARGET_H).
13304         (ipa-prop.o): Likewise.
13305         (ipa-cp.o): Likewise.
13306         (ipa-inline.o): Likewise.
13307         (reorg.o): Likewise.
13308         (reg-stack.o): Likewise.
13309
13310 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
13311
13312         * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
13313
13314 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
13315
13316         * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
13317
13318         * configure.ac: Completely disregard languages that are not
13319         enabled.
13320         * configure: Regenerated.
13321
13322         PR c++/26534
13323         * c-common.h (c_build_bitfield_integer_type): Declare.
13324         * c-decl.c (c_build_bitfield_integer_type): Move to ...
13325         * c-common.c (c_build_bitfield_integer_type): ... here.
13326
13327 2006-04-23  Roger Sayle  <roger@eyesopen.com>
13328
13329         PR target/21283
13330         * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
13331         a SImode SUBREG of a floating point register after no_new_pseudos.
13332
13333 2006-04-23  Roger Sayle  <roger@eyesopen.com>
13334
13335         * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
13336         identify potentially eliminable registers to additionally catch
13337         VIRTUAL_INCOMING_ARGS_REGNUM.
13338         (addsi3): Update the conditions on when to use addsi_small_int.
13339
13340 2006-04-23  Roger Sayle  <roger@eyesopen.com>
13341
13342         PR target/16641
13343         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
13344         STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
13345         rtx to stack_pointer_rtx or frame_pointer_rtx directly.
13346
13347 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
13348
13349         * fold-const.c (range_predecessor): Use operand_equal_p
13350         as the predicate for equality.
13351         (range_successor): Likewise.
13352
13353 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
13354
13355         Revert:
13356         * config/soft-fp/op-common.h: Fix a typo.
13357
13358 2006-04-22  Frank Ch. Eigler  <fche@redhat.com>
13359
13360         PR libmudflap/26864
13361         * common.opt (flag_mudflap_threads): Overload flag_mudflap.
13362         * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
13363
13364 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
13365
13366         * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
13367         Fix comment typos.
13368         * doc/tm.texi: Fix a typo.
13369
13370 2006-04-21  Geoffrey Keating  <geoffk@apple.com>
13371
13372         * dwarf2out.c (struct die_struct): Document that die_sib makes
13373         a circular linked list.
13374         (FOR_EACH_CHILD): New.
13375         (reverse_die_lists): Delete.
13376         (reverse_all_dies): Delete.
13377         (add_dwarf_attr): Correct documentation.
13378         (remove_child_with_prev): New.
13379         (remove_child_TAG): Update for change to die_struct, use
13380         remove_child_with_prev.
13381         (add_child_die): Update for change to die_struct.
13382         (splice_child_die): Use remove_child_with_prev and add_child_die.
13383         (print_die): Use FOR_EACH_CHILD.
13384         (die_checksum): Likewise.
13385         (assign_symbol_names): Likewise.
13386         (output_location_lists): Likewise.
13387         (build_abbrev_table): Likewise.
13388         (calc_die_sizes): Likewise.
13389         (mark_dies): Likewise.
13390         (unmark_dies): Likewise.
13391         (unmark_all_dies): Likewise.
13392         (output_die): Likewise.
13393         (prune_unused_types_mark): Likewise.
13394         (prune_unused_types_walk): Likewise.
13395         (same_die_p): Update for change to die_struct.
13396         (break_out_includes): Likewise.
13397         (prune_unused_types_prune): Likewise.
13398         (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
13399         (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
13400         it's already clear.
13401         (dwarf2out_finish): Don't call reverse_all_dies.
13402
13403 2006-04-21  Eric Christopher  <echristo@apple.com>
13404
13405         * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
13406         in comments and function names.
13407
13408 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13409
13410         PR c/25875
13411         * c-typeck.c (digest_init): Robustify.
13412
13413         * c-typeck.c (pop_init_level): Simplify.
13414
13415 2006-04-21  Steve Ellcey  <sje@cup.hp.com>
13416
13417         * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
13418
13419 2006-04-21  Paul Brook  <paul@codesourcery.com>
13420
13421         * config/arm/arm.c (arm_override_options): Error on iWMMXt and
13422         hardware floating point.
13423
13424 2006-04-21  David Edelsohn  <edelsohn@gnu.org>
13425
13426         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
13427         NON_FLOAT_REGS.
13428
13429 2006-04-21  Nick Clifton  <nickc@redhat.com>
13430
13431         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
13432         OPT_EXTRA_PARTS.
13433
13434 2006-04-21  Alan Modra  <amodra@bigpond.net.au>
13435
13436         PR target/27230
13437         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
13438         C++ lang type in traceback table for Objective-C++.
13439
13440         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
13441
13442 2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13443
13444         * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
13445
13446 2006-04-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13447
13448         PR mudflap/26789
13449         * tree-mudflap.c (mudflap_finish_file): Skip function when there
13450         were errors.  Remove check for erroneous objects.
13451
13452 2006-04-20  Jeff Law  <law@redhat.com>
13453
13454         PR tree-optimization/26854
13455         * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
13456         checking for zero or one use.
13457         * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
13458         * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
13459         * tree-ssa-reassoc.c (negate_value): Similarly.
13460         (reassociate_bb): Similarly.
13461
13462 2006-04-20  Jakub Jelinek  <jakub@redhat.com>
13463
13464         PR C/27558
13465         * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
13466         TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
13467         than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
13468
13469 2006-04-20  Alan Modra  <amodra@bigpond.net.au>
13470
13471         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
13472         fp regs if the last fp arg doesn't fit in regs.
13473
13474 2006-04-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13475
13476         PR target/27182
13477         * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
13478         that the last insn has the REG_INC note.
13479
13480 2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
13481             Nathan Sidwell  <nathan@codesourcery.com>
13482
13483         PR c/26774
13484         * stor-layout.c (update_alignment_for_field): Do not align
13485         ERROR_MARK nodes.
13486         (place_union_field): Place union field at the start of the union.
13487         (place_field): Move ERROR_MARK check later, and use the current
13488         allocation position to maintain monotonicity.
13489
13490 2006-04-19  Zdenek Dvorak <dvorakz@suse.cz>
13491
13492         * dominance.c: Include timevar.h.
13493         (calculate_dominance_info): Use TV_DOMINANCE.
13494         * timevar.def (TV_DOMINANCE): New timevar.
13495         * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
13496
13497 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
13498
13499         PR rtl-optimization/14261
13500         * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
13501         move would be an INSV insn.
13502         (noce_process_if_block): Don't optimize if the destination is a
13503         ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
13504
13505 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
13506
13507         * config/s390/s390.md: Add comments with the instructions emitted
13508         by an insn pattern if macros are used.
13509
13510 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
13511
13512         PR rtl-optimization/26026
13513         * fold-const.c (fold_binary): Optimize div and mod where the divisor
13514         is a known power of two shifted left a variable amount.
13515
13516 2006-04-18  Geoffrey Keating  <geoffk@apple.com>
13517
13518         * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
13519         to hash table twice when the debug_str section has SECTION_MERGE.
13520
13521 2006-04-18  Joseph S. Myers  <joseph@codesourcery.com>
13522
13523         * config/soft-fp: New directory.  From glibc.
13524         * config/soft-fp/t-softfp: New.
13525         * config/soft-fp/README: New.
13526         * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
13527         * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
13528         (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
13529         (LIBGCC_DEPS): Add $(SFP_MACHINE).
13530         * config.gcc: Use rs6000/t-fprules-fpbit or
13531         rs6000/t-fprules-softfp and soft-fp/t-softfp together with
13532         rs6000/t-fprules.
13533         * config/rs6000/sfp-machine.h: New.  Based on glibc.
13534         * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
13535         New.
13536         * config/rs6000/t-fprules: Remove fp-bit rules.
13537         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
13538         * config/rs6000/t-linux64: Likewise.  Remove duplicates from
13539         LIB2FUNCS_EXTRA.  Remove fp-bit rules.
13540         (softfp_wrap_start, softfp_wrap_end): New.
13541
13542 2006-04-18  DJ Delorie  <dj@redhat.com>
13543
13544         * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
13545
13546 2006-04-18  Devang Patel  <dpatel@apple.com>
13547
13548         * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
13549
13550 2006-04-18  Nick Clifton  <nickc@redhat.com>
13551
13552         * config/sh/t-symbian: Add rule to build sh-c.o
13553         * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
13554         of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
13555         (sh_symbian_encode_section_info): Likewise.
13556
13557 2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>
13558
13559         * builtins.c (expand_builtin_strcmp): Cover label definition of
13560         do_libcall with HAVE_cmpstrnsi.
13561
13562 2006-04-18  Kazu Hirata  <kazu@codesourcery.com>
13563
13564         * function.c (temp_slots_at_level, max_slot_level): Use VEC
13565         instead of VARRAY.
13566         * function.h (temp_slot_p): New.
13567         (function): Change the type of x_used_temp_slots to
13568         VEC(temp_slot_p,gc) *.
13569
13570 2006-04-18  Nick Clifton  <nickc@redhat.com>
13571
13572         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
13573         flag_strength_reduce.
13574
13575         * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
13576
13577 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
13578
13579         PR target/27117
13580
13581         Partial revert of revision 112637
13582         2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
13583                     Dale Johannesen  <dalej@apple.com>
13584
13585         PR target/19653
13586         * regclass.c (struct reg_pref): Update documentation.
13587         (regclass): Set prefclass to NO_REGS if memory is the best option.
13588         (record_reg_classes): Cope with a prefclass set to NO_REGS.
13589
13590 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
13591
13592         PR tree-optimization/26821
13593         * tree-ssa-math-opts.c (get_constant_one): New.
13594         (insert_reciprocals): Use it.
13595
13596 2006-04-17  Geoffrey Keating  <geoffk@apple.com>
13597
13598         * dwarf2out.c (free_AT): Delete.
13599         (remove_AT): Update string ref counts.
13600         (remove_child_TAG): Don't call free_die.
13601         (free_die): Delete.
13602         (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
13603         or DW_TAG_GNU_EINCL.
13604         (prune_unused_types_walk_attribs): Reset string refcounts.
13605         (prune_unused_types_update_strings): New.
13606         (prune_unused_types_prune): Don't make unnecessary stores.  Don't
13607         call free_die.  Do call prune_unused_types_update_strings.
13608         (prune_unused_types): Empty debug_str_hash.
13609
13610 2006-04-17  Roger Sayle  <roger@eyesopen.com>
13611
13612         * expr.c (expand_assignment): Optimize away no-op moves where the
13613         source and destination are equal and have no side-effects.
13614
13615 2006-04-17  Richard Guenther  <rguenther@suse.de>
13616
13617         PR target/26826
13618         * reload.c (push_reload): Guard calls to get_secondary_mem
13619         for memory subregs.
13620
13621 2006-04-16  Kazu Hirata  <kazu@codesourcery.com>
13622
13623         * alias.c (reg_base_value, old_reg_base_value): Change the
13624         type to VEC(rtx,gc) *.
13625         (REG_BASE_VALUE, find_base_value, record_set,
13626         init_alias_analysis): Use VEC instead of VARRAY.
13627
13628         * alias.c (alias_sets): Change the type to
13629         VEC(alias_set_entry,gc) *.
13630         (get_alias_set_entry, new_alias_set, record_alias_subset): Use
13631         VEC instead of VARRAY.
13632         (last_alias_set): Remove.
13633
13634         * cgraph.h (cgraph_edge_p): New.
13635         Update the prototype of cgraph_function_versioning.
13636         * cgraphunit.c (cgraph_copy_node_for_versioning,
13637         cgraph_function_versioning): Use VEC instead of VARRAY.
13638         * ipa-cp.c (ipcp_insert_stage): Likewise.
13639
13640 2006-04-16  Roger Sayle  <roger@eyesopen.com>
13641
13642         PR target/26961
13643         * fold-const.c (fold_ternary): When converting "A ? B : C" into either
13644         "A op B" or "A op C", we may need to convert A to the type of B and C.
13645
13646 2006-04-16  Adam Nemet  <anemet@caviumnetworks.com>
13647
13648         * target.h (struct gcc_target): Add mode_rep_extended.
13649         * rtlanal.c (num_sign_bit_copies_in_rep): New global.
13650         (init_num_sign_bit_copies_in_rep): Initialize it using
13651         mode_rep_extended.
13652         (truncate_to_mode): Use it.
13653         (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
13654         * targhooks.h (default_mode_rep_extended): Declare it.
13655         * targhooks.c (default_mode_rep_extended): Define it.
13656         * target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
13657         default_mode_rep_extended.
13658         (TARGET_INITIALIZER): Include it.
13659         * doc/tm.texi (Misc): Document it.
13660         * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
13661         (mips_truncated_to_mode): New function.
13662
13663 2006-04-16  Roger Sayle  <roger@eyesopen.com>
13664
13665         PR middle-end/25474
13666         * expr.c (compress_float_constant): Copy the narrow constant into
13667         a new pseudo before extending it to its final width.
13668
13669 2006-04-16  Roger Sayle  <roger@eyesopen.com>
13670             Andrew Pinski  <pinskia@gcc.gnu.org>
13671             Dale Johannesen  <dalej@apple.com>
13672
13673         PR target/24076
13674         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
13675         special case code to implement V8HImode and V16QImode with SSE2.
13676
13677 2006-04-15  Roger Sayle  <roger@eyesopen.com>
13678
13679         * config/i386/i386.c (ix86_va_start): Ensure all integer constant
13680         trees are constructed with a suitable tree type.
13681
13682 2006-04-15  Roger Sayle  <roger@eyesopen.com>
13683
13684         * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
13685         (integer_onep): Likewise.
13686         (integer_all_onesp): Likewise.
13687         (integer_pow2p): Likewise.
13688         (integer_nonzerop): Likewise.
13689         (real_zerop): Likewise.
13690         (real_onep): Likewise.
13691         (real_twop): Likewise.
13692         (real_minus_onep): Likewise.
13693         (int_size_in_bytes): Likewise.
13694         (host_integerp): Likewise.
13695
13696 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
13697
13698         * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
13699         jump.c, mips-tfile.c, omp-low.c, sched-int.h,
13700         tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
13701
13702         * tree-ssa-structalias.h (alias_info): Remove num_references.
13703
13704 2006-04-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13705
13706         * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
13707         (output_bvb patterns): Likewise.
13708         * pa.c (output_bb): Use 'bb' insn for long branch case.
13709         (output_bvb): Likewise use '{bvb|bb}' for long branch case.
13710         (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
13711         1.  Correct length operand for alternatives 1 and 2.
13712         (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
13713         1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.
13714
13715 2006-04-14  Roger Sayle  <roger@eyesopen.com>
13716
13717         * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
13718         is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
13719         were accidentally reverted by r112959.
13720
13721 2006-04-15  Jakub Jelinek  <jakub@redhat.com>
13722
13723         PR middle-end/26823
13724         * except.h (eh_region_outermost): New prototype.
13725         * except.c (eh_region_outermost): New function.
13726         * tree-cfg.c (find_outermost_region_in_block): Use it.
13727
13728 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
13729
13730         * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
13731         of VARRAY.
13732         * reload1.c (reg_equiv_memory_loc_varray): Rename to
13733         reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
13734         (init_reload, reload): Use VEC instead of VARRAY.
13735         * reload.h: Update the prototype for
13736         reg_equiv_memory_loc_varray.
13737
13738 2006-04-14  Alexey Starovoytov  <alexey.starovoytov@sun.com>
13739             Eric Botcazou  <ebotcazou@libertysurf.fr>
13740
13741         * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
13742         register save area.
13743
13744 2005-04-13  Uros Bizjak  <uros@kss-loka.si>
13745
13746         PR middle-end/27134
13747         * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
13748         to expand fallback builtin function call.
13749
13750 2006-04-14  Alan Modra  <amodra@bigpond.net.au>
13751
13752         PR middle-end/27095
13753         * builtins.c: (expand_builtin_memset): Stabilize args before expansion
13754         and emit libcall here in case the builtin fails.
13755         (expand_builtin_strcmp): Always emit the libcall here on failure.
13756
13757 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
13758
13759         * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
13760         * flow.c (reg_n_info): Change the type to
13761         VEC(reg_info_p,heap) *.
13762         * regclass.c (allocate_reg_info, free_reg_info): Use VEC
13763         instead of VARRAY.
13764         * regs.h (reg_info_p): New.
13765         (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
13766         REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
13767         REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
13768         instead of VARRAY.
13769
13770 2006-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13771
13772         * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
13773         defaulting to 100.
13774         * params.h (MAX_SCHED_READY_INSNS): New macro.
13775         * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
13776         past MAX_SCHED_READY_INSNS during the first scheduling pass.
13777         (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
13778         the ready list for 1 cycle during the first scheduling pass.
13779         * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
13780
13781 2006-04-13  Richard Henderson  <rth@redhat.com>
13782
13783         PR libgomp/26651
13784         * gimple-low.c (lower_omp_directive): Remove dead code.
13785         (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
13786         * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
13787         * omp-low.c (struct omp_region): Move to tree-flow.h.
13788         (root_omp_region): Export.
13789         (omp_regions, lookup_omp_region): Remove.
13790         (determine_parallel_type): Update for struct omp_region changes.
13791         (dump_omp_region): Dump regions with block numbers.
13792         (new_omp_region): Take type and block instead of stmt; malloc
13793         instead of ggc.
13794         (free_omp_region_1, free_omp_regions): New.
13795         (expand_parallel_call): Take entry_stmt as argument; update for
13796         changes to omp_region.
13797         (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
13798         (remove_exit_barriers): New.
13799         (expand_omp_parallel): Update for struct omp_region changes.
13800         (expand_omp_synch): Likewise.
13801         (expand_omp): Likewise.
13802         (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
13803         (expand_omp_for_static_chunk): Likewise.
13804         (expand_omp_for): Likewise.
13805         (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
13806         (expand_omp_sections): Similarly, with GOMP_sections_end.
13807         (expand_omp_single): New.
13808         (build_omp_regions_1): Update for OMP_CONTINUE.
13809         (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
13810         (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
13811         OMP_SECTIONS_SECTIONS.
13812         (lower_omp_single_simple): Don't emit barrier here.
13813         (lower_omp_single_copy): Likewise.
13814         (lower_omp_single): Fix bindings, and lower to straightline now.
13815         (lower_omp_master, lower_omp_ordered): Likewise.
13816         (lower_omp_critical): Likewise.
13817         (lower_omp_for): Likewise.  Emit OMP_CONTINUE.
13818         * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
13819         omp edges, free it afterward.
13820         (make_omp_sections_edges): Remove.
13821         (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
13822         (move_stmt_r): Handle OMP_CONTINUE.
13823         * tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
13824         statement pointers to basic blocks.  Add type member.
13825         (root_omp_region, new_omp_region, free_omp_regions): Declare.
13826         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
13827         * tree-inline.c (estimate_num_insns_1): Likewise.
13828         * tree-pretty-print.c (dump_generic_node): Likewise.
13829         * tree-ssa-operands.c (get_expr_operands): Likewise.
13830         * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
13831         (OMP_RETURN): Rename from OMP_RETURN_EXPR.
13832         (OMP_CONTINUE): New.
13833         * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
13834         (OMP_SECTIONS_SECTIONS): Remove.
13835         (OMP_SECTION_LAST): New.
13836         (OMP_RETURN_NOWAIT): New.
13837
13838 2006-04-13  Roger Sayle  <roger@eyesopen.com>
13839
13840         * fold-const.c (native_encode_vector, native_interpret_real):
13841         Correct obvious mistakes in the previous check-in.
13842
13843 2006-04-13  Roger Sayle  <roger@eyesopen.com>
13844
13845         * fold-const.c (native_encode_expr): New function to encode
13846         the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
13847         or VECTOR_CST into a specified buffer.
13848         (native_encode_int): New function.
13849         (native_encode_real): New function.
13850         (native_encode_complex): New function.
13851         (native_encode_vector): New function.
13852         (native_interpret_expr): Inverse of native_encode_expr to convert
13853         a target representation into an INTEGER_CST, REAL_CST etc...
13854         (native_interpret_int): New function.
13855         (native_interpret_real): New function.
13856         (native_interpret_complex): New function.
13857         (native_interpret_vector): New function.
13858         (fold_view_convert_expr): New function to constant fold/evaluate
13859         a VIEW_CONVERT_EXPR of a suitable constant expression.
13860         (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
13861         Change call of build1 to fold_build1 when constructing a
13862         VIEW_CONVERT_EXPR.
13863
13864 2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
13865             Ulrich Weigand  <uweigand@de.ibm.com>
13866
13867         PR target/27006
13868         * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
13869         to be even.
13870
13871 2006-04-13  Alan Modra  <amodra@bigpond.net.au>
13872
13873         PR target/26459
13874         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13875         optimize to lo_sum for DFmode if !TARGET_FPRS.
13876
13877 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
13878
13879         * tree-ssa-alias.c (set_initial_properties, init_alias_info,
13880         delete_alias_info, compute_flow_sensitive_aliasing,
13881         group_aliases): Use VEC instead of VARRAY.
13882         * tree-ssa-structalias.c (update_alias_info): Likewise.
13883         * tree-ssa-structalias.h (alias_info): Change the type of
13884         processed_ptrs to VEC(tree,heap) *.
13885
13886 2006-04-12  J"orn Rennecke <joern.rennecke@st.com>
13887
13888         PR target/27060
13889         * config/sh/lib1funcs.h: New file, broken out of:
13890         * config/sh/lib1funcs.asm.
13891         * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
13892         New macros.
13893         * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
13894         * config/sh/lib1funcs-Os-4-200.asm: New file.
13895         * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
13896         * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
13897         (EXTRA_MULTILIB_PARTS): Include it.
13898         ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
13899         ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
13900         * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
13901         * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
13902         TARGET_SH2.
13903
13904 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
13905
13906         * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
13907         * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
13908         tpa_compact, root_var_init, type_var_init): Use VEC instead of
13909         VARRAY.
13910         * tree-ssa-live.h: Include vecprim.h.
13911         (tree_partition_associator_d): Change the type of
13912         first_partition to VEC(int,heap) *.
13913         (tpa_first_partition): Use VEC instead of VARRAY.
13914
13915         * Makefile.in (GTFILES): Move functions.h after tree.h.
13916         * function.c (reset_block_changes, record_block_change,
13917         check_block_change, free_block_changes): Use VEC instead of
13918         VARRAY.
13919         * function.h (function): Change the type of
13920         ib_boundaries_block to VEC(tree,gc) *.
13921         * tree-inline.c (copy_cfg_body): Initialize
13922         ib_boundaries_block to NULL instead of (varray_type) 0.
13923
13924 2006-04-12  Roger Sayle  <roger@eyesopen.com>
13925
13926         * expr.c (emit_group_store): Correct operand order in call to
13927         subreg_lowpart_offset.  Always create paradoxical SUBREGs with
13928         a SUBREG_BYTE of zero.
13929
13930 2006-04-12  Richard Guenther  <rguenther@suse.de>
13931
13932         * profile.c (compute_branch_probabilities): Remove code
13933         encapsulated in !ir_type (), which are remanents of the
13934         removed RTL profiling code.
13935         * rtl-profile.c: Remove.
13936
13937 2006-04-12  Alan Modra  <amodra@bigpond.net.au>
13938
13939         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
13940         magic NULL_RTX comment.
13941         (function_arg): Store entire fp arg to mem if any part should go
13942         on stack.
13943         (rs6000_arg_partial_bytes): Adjust for above change.
13944
13945 2006-04-11  Roger Sayle  <roger@eyesopen.com>
13946
13947         * dwarf2out.c (output_call_frame_info): Create debug_frame_section
13948         if it hasn't been initialized by dwarf2out_init.
13949
13950 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
13951
13952         * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
13953         symbolic constants in branch patterns.
13954
13955 2006-04-11  Roger Sayle  <roger@eyesopen.com>
13956
13957         * caller-save.c: #include "addresses.h" after #include "tm_p.h".
13958
13959 2006-04-11  Richard Sandiford  <richard@codesourcery.com>
13960
13961         PR rtl-optimization/27073
13962         * gcse.c (try_replace_reg): Revert last change.  Continue to search
13963         for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
13964         on the former.
13965
13966 2006-04-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
13967
13968         * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
13969         aggregate types other than record and union types.
13970         (function_arg): Likewise.
13971         (function_arg_pass_by_reference): In 64-bit mode, return 0 for
13972         small arrays.
13973         (function_value): In 64-bit mode, return objects that require it
13974         in FP registers.
13975
13976 2006-04-11  Roger Sayle  <roger@eyesopen.com>
13977
13978         * dwarf2out.c (premark_used_types): Remove problematic prototype.
13979
13980 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
13981
13982         * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
13983
13984 2006-04-03  Jeff Law  <law@redhat.com>
13985
13986         PR/27087
13987         * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
13988         alias information too.
13989
13990 2006-04-10  Mike Frysinger  <vapier@gentoo.org>
13991
13992         * Makefile.in (gcc-cross): Add $(exeext) to target name.
13993
13994 2006-04-10  Aldy Hernandez  <aldyh@redhat.com>
13995
13996         PR/21391
13997         * dwarf2out.c (struct die_struct): Add die_perennial_p field.
13998         (premark_used_types_helper): New.
13999         (premark_used_types): New.
14000         (gen_subprogram_die): Call premark_used_types.
14001         (prune_unused_types_walk): Do not prune perennial dies.
14002         * function.c (used_types_insert): New.
14003         * function.h (struct function): Add used_types_hash field.
14004         (used_types_insert): Add prototype.
14005         * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
14006         * c-parser.c (c_parser_cast_expression): Save casted types in used
14007         types hash table.
14008
14009 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
14010
14011         PR target/26459
14012         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
14013         rs6000_explicit_options.float_gprs.
14014
14015 2006-04-10  Roger Sayle  <roger@eyesopen.com>
14016
14017         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
14018         from ix86_expand_vector_init_low_nonzero.  Take an additional
14019         one_var argument indicating which element is non-zero.  Support
14020         one_var != 0 for V4SFmode and V4SImode by permuting the result.
14021         (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
14022         with one_var instead of ix86_expand_vector_init_low_nonzero.
14023
14024 2006-04-10  Kazu Hirata  <kazu@codesourcery.com>
14025
14026         * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
14027         tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
14028         global.o, cfglayout.o, lambda-code.o, reg-stack.o,
14029         build/genextract.o): Depend on vecprim.h.
14030         * cfglayout.c, df-problems.c, function.c, genextract.c,
14031         global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
14032         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
14033         vecprim.h.
14034         * vecprim.h: New.
14035
14036 2006-04-10  Geoffrey Keating  <geoffk@apple.com>
14037
14038         * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
14039         Declare VECs of this type.
14040         (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
14041         (remove_children): Delete.
14042         (add_dwarf_attr): Use VEC routines.
14043         (add_AT_flag): Update for changes to add_dwarf_attr.
14044         (add_AT_int): Likewise.
14045         (add_AT_unsigned): Likewise.
14046         (add_AT_long_long): Likewise.
14047         (add_AT_vec): Likewise.
14048         (add_AT_string): Likewise.
14049         (add_AT_die_ref): Likewise.
14050         (add_AT_fde_ref): Likewise.
14051         (add_AT_loc): Likewise.
14052         (add_AT_loc_list): Likewise.
14053         (add_AT_addr): Likewise.
14054         (add_AT_lbl_id): Likewise.
14055         (add_AT_lineptr): Likewise.
14056         (add_AT_macptr): Likewise.
14057         (add_AT_offset): Likewise.
14058         (add_AT_range_list): Likewise.
14059         (get_AT): Use VEC_iterate.
14060         (remove_AT): Use VEC_ordered_remove.
14061         (free_die): Fold remove_children into here; have it use VEC_iterate.
14062         (print_die): Use VEC_iterate on attrs.
14063         (reverse_die_lists): Don't reverse attr lists.
14064         (die_checksum): Use VEC_iterate on attrs.
14065         (same_die_p): Likewise.
14066         (output_location_lists): Likewise.
14067         (build_abbrev_table): Likewise.
14068         (size_of_die): Likewise.
14069         (unmark_all_dies): Likewise.
14070         (output_abbrev_section): Likewise.
14071         (output_die): Likewise.
14072         (prune_unused_types_walk_attribs): Likewise.
14073
14074 2006-04-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
14075
14076         * doc/install.texi (*-*-solaris2*): Point to the configure page.
14077
14078 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
14079
14080         PR debug/27057
14081         * dwarf2out.c (is_symbol_die): Return true also for namespaces.
14082
14083 2006-04-09  Roger Sayle  <roger@eyesopen.com>
14084
14085         * expr.c (store_constructor): Don't bother clearing target if
14086         we're about to assign a vector to it using vec_init_optab.
14087
14088 2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
14089
14090         * tree-ssa-alias.c (lhs_may_store_to): New function.
14091         (recalculate_used_alone): Handle LHS of calls.
14092
14093 2006-04-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14094
14095         PR target/27034
14096         PR target/26508
14097         * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
14098         * pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
14099         (LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
14100         (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
14101         (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
14102         (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
14103         section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
14104         stubs.  Add ".align 8" directives before all ".dword" directives.
14105         (GTHREAD_USE_WEAK): Revise comment.
14106         (TARGET_ATTRIBUTE_WEAK): Define.
14107         * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
14108         dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
14109         * stublib.c: New file.
14110
14111         PR target/26743
14112         PR target/11254
14113         PR target/10274
14114         * pa.md (cbranch patterns): Revise arguments used in calls to
14115         output_cbranch, output_bb and output_bvd.  Add long branch length
14116         attributes.
14117         (fbranch patterns): Handle long branches.
14118         (jump): Revise length check.  Revise arguments for output_lbranch call.
14119         Add long branch length attributes.
14120         (decrement_and_branch_until_zero): Add long branch length attributes.
14121         (output_movb, output_parallel_addb and output_parallel_movb patterns):
14122         Likewise.  Revise arguments for output_parallel_addb and
14123         output_parallel_movb calls.
14124         * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
14125         output_parallel_movb and output_parallel_addb): Update prototypes.
14126         * pa.c (output_cbranch): Revise arguments.  Correct handling of
14127         nullification in long branches.
14128         (output_lbranch): Add new argument to control extraction of delay
14129         instruction.
14130         (output_bb): Handle long branches.
14131         (output_bvb, output_dbra, output_movb, output_parallel_movb,
14132         output_parallel_addb): Likewise.
14133
14134 2006-04-09  Richard Sandiford  <richard@codesourcery.com>
14135
14136         PR rtl-optimization/27073
14137         * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
14138         not REG_EQUIVs.
14139
14140 2006-04-08  Daniel Berlin  <dberlin@dberlin.org>
14141
14142         * tree.h (tree_memory_tag): Add old_used_alone.
14143         (SMT_OLD_USED_ALONE): New macro.
14144         * tree-ssa-alias.c (recalculate_used_alone): Stop
14145         marking things for renaming unnecessarily.
14146
14147 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
14148
14149         * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
14150         config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
14151         config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
14152         haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
14153         sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
14154         tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
14155         tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
14156         spelling convensions.
14157         * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
14158         doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
14159         typos.  Follow spelling conventions.
14160
14161 2006-04-07  DJ Delorie  <dj@redhat.com>
14162
14163         * config/m32c/m32c.c (m32c_function_arg): Structures are always
14164         passed on the stack.
14165         (m32c_init_cumulative_args): When a function returns a structure,
14166         always pass the pointer to that return area on the stack.
14167         (m32c_function_arg_advance): Don't increment the parameter number
14168         if we're processing the returned structure pointer.
14169         (pushm_info): Reverse order of registers.
14170
14171 2006-04-07  Sebastian Pop  <pop@cri.ensmp.fr>
14172
14173         * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
14174         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
14175         number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
14176         estimate_numbers_of_iterations_loop): Use build_int_cst instead of
14177         build_int_cst_type.
14178         * tree-chrec.c (chrec_fold_multiply_poly_poly,
14179         chrec_fold_multiply): Same.
14180         * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
14181         force_expr_to_var_cost): Same.
14182         * tree-mudflap.c (mf_xform_derefs_1): Same.
14183         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
14184
14185 2006-04-07  David Edelsohn  <edelsohn@gnu.org>
14186
14187         * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
14188         treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
14189         insn.
14190
14191 2006-04-07  Jan Hubicka  <jh@suse.cz>
14192
14193         * ipa-inline.c (cgraph_early_inlining): Collect garbage.
14194
14195 2006-04-07  Richard Guenther  <rguenther@suse.de>
14196
14197         PR tree-optimization/26135
14198         * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
14199         loads for store copy-prop.
14200         (copy_prop_visit_stmt): Likewise.
14201
14202 2006-04-05  Robert Millan  <robertmh@gnu.org>
14203
14204         * config/i386/linux.h: Add a comment to mark macros that are
14205         being overriden in config/k*bsd-gnu.h.
14206         * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
14207         DYNAMIC_LINKER.
14208         * config/knetbsd-gnu.h: Ditto.
14209
14210 2006-04-06  Jan Hubicka  <jh@suse.cz>
14211
14212         PR profile/20815
14213         PR profile/26399
14214         * coverage.c (coverage_checksum_string): Reorganize loop to not read
14215         after buffer.
14216
14217 2006-04-06  Mike Stump  <mrs@apple.com>
14218
14219         * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
14220         for HAVE_nonlocal_goto to be consistent.
14221         (expand_builtin_nonlocal_goto): Likewise.
14222         (expand_builtin_strcmp): Use #ifdef instead of #if
14223         for HAVE_cmpstrnsi to be consistent.
14224
14225 2006-04-05  DJ Delorie  <dj@redhat.com>
14226
14227         * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
14228         vs m32c.
14229
14230 2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
14231
14232         * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
14233         got-relative addressing for anything but SImode.
14234
14235         * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
14236         even if the calling function doesn't modify them.
14237
14238 2006-04-05  Richard Guenther  <rguenther@suse.de>
14239
14240         PR tree-optimization/26919
14241         * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
14242         to cgraph_estimate_size_after_inlining.
14243
14244 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
14245
14246         * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
14247
14248 2006-04-05  Sebastian Pop  <pop@cri.ensmp.fr>
14249
14250         PR tree-optimization/26996
14251         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
14252         VECTOR_TYPE variables.
14253
14254 2006-04-05  Richard Guenther  <rguenther@suse.de>
14255
14256         PR tree-optimization/26763
14257         * fold-const.c (fold_comparison): Move folding of
14258         PTR + CST CMP PTR + CST ...
14259         (fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
14260
14261 2006-04-05  Gerald Pfeifer  <gerald@pfeifer.com>
14262
14263         * doc/install.texi (Prerequisites): Refine some wording on
14264         bootstrapping and ksh.
14265         Move the version numbers of DejaGnu here from the testing section
14266         and fix casing of names.
14267         Fix markup and clarify wording for autogen requirements.
14268         Refer to GCJ instead of just java.
14269         Refer to SVN instead of CVS.
14270         Describe diffutils as useful instead of necessary.
14271         (Downloading the source): Refer to SVN instead of CVS.
14272         Adjust a link to our web site accordingly.
14273         (Configuration): Fix casing of Bison.
14274         (Building): Refer to SVN instead of CVS.
14275         Fix a sentence on the use of Bison and remove duplicate (and
14276         incorrect) version number of Bison requirement.
14277         Remove one redundant list of packages needed for building.
14278         (Specific): Avoid reference to CVS.
14279
14280 2006-04-04  Eric Christopher  <echristo@apple.com>
14281
14282         * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
14283         (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
14284         (rs6000_handle_struct_attribute): New.
14285         (rs6000_ms_bitfield_layout_p): Ditto.
14286
14287 2006-04-04  Geoffrey Keating  <geoffk@apple.com>
14288
14289         * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
14290         NULL for dso parameter to atexit_common.
14291
14292 2006-04-04  Eric Christopher  <echristo@apple.com>
14293
14294         * config/i386/i386.c (machopic_output_stub): Output \t
14295         between instructions and operands.
14296
14297 2006-04-04  David Edelsohn  <edelsohn@gnu.org>
14298
14299         * config/rs6000/rs6000.c (num_insns_constant_wide): Change
14300         satisfies_constraint_[IL] to explicit tests on value.
14301
14302 2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
14303
14304         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
14305         set_nb_iterations_in_loop): Use build_int_cst instead of
14306         build_int_cst_type.
14307         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
14308         build_int_cst instead of convert.
14309
14310 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
14311
14312         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
14313         new value 2 for incoming.
14314         * function.c (expand_function_start): Call struct_value_rtx
14315         with incoming as 2.
14316         * config/sparc/sparc.md: Comment updated_return.
14317         * config/sparc/sparc.opt: Add -mstd-struct-return option.
14318         * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
14319         struct return if sparc_std_struct_return and incoming is 2.
14320         (print_operand): Do not adjust return if
14321         sparc_std_struct_return.
14322
14323 2006-04-04  Roger Sayle  <roger@eyesopen.com>
14324
14325         * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
14326         convert in the middle-end.
14327         * expr.c (store_expr, store_constructor, get_inner_reference,
14328         expand_expr_real_1, string_constant, try_casesi, try_tablejump):
14329         Likewise.
14330         * tree.c (build_range_type): Likewise.
14331
14332 2006-04-04  Tom Tromey  <tromey@redhat.com>
14333
14334         * doc/install.texi (Prerequisites): Mention jar.
14335
14336 2006-04-04  Daniel Berlin  <dberlin@dberlin.org>
14337
14338         * doc/tree-ssa.texi (Preserving the virtual ssa form): New
14339         subsection.
14340
14341 2006-04-04  Matthias Klose  <doko@debian.org>
14342
14343         * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
14344
14345         PR bootstrap/26764
14346         PR bootstrap/27334
14347         * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
14348         strings.
14349
14350 2006-04-03  Geoffrey Keating  <geoffk@apple.com>
14351
14352         * doc/extend.texi (Function Attributes): Rewrite visibility
14353         attribute documentation.
14354         * doc/invoke.texi (C++ Dialect Options): Rewrite
14355         -fvisibility-inlines-hidden documentation to describe something
14356         entirely different, although in practise compatible.
14357         (Code Gen Options): Warn about system headers in -fvisibility=
14358         documentation.
14359
14360         * doc/extend.texi (Other Builtins): Document that
14361         __builtin_nan is a compile-time constant only when its argument
14362         is valid.
14363
14364 2006-04-03  Adam Nemet  <anemet@caviumnetworks.com>
14365
14366         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
14367         trying to remove TRUNCATE check if all bits outside the new mode
14368         are identical to the sign bit.
14369
14370 2006-04-03  Jeff Law  <law@redhat.com>
14371
14372         * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
14373         and operand scanning in some common cases.
14374
14375 2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
14376             Dale Johannesen  <dalej@apple.com>
14377
14378         PR target/19653
14379         * regclass.c (struct reg_pref): Update documentation.
14380         (regclass): Set prefclass to NO_REGS if memory is the best option.
14381         (record_reg_classes): Cope with a prefclass set to NO_REGS.
14382         * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
14383         into account.  For non-registers, equate an empty preferred
14384         reload class to a `!' in the constraint; move the if clause to
14385         do so after those that reject the insn.
14386         (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
14387         return NO_REGS.
14388         (find_dummy_reload): Likewise.
14389         * doc/tm.texi (Register Classes): Document what it means
14390         if PREFERRED_*_RELOAD_CLASS return NO_REGS.
14391         * config/i386/i386.c (ix86_preferred_reload_class): Force
14392         using SSE registers (and return NO_REGS for floating-point
14393         constants) if math is done with SSE.
14394         (ix86_preferred_output_reload_class): New.
14395         * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
14396         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
14397         * config/i386/i386.md: Remove # register preferences.
14398
14399 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
14400
14401         PR bootstrap/26992
14402         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
14403         chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
14404         the type of nb_iter.
14405         (instantiate_parameters_1): Convert the operands before calling
14406         chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
14407         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
14408
14409 2006-04-02  Roger Sayle  <roger@eyesopen.com>
14410
14411         * builtins.c (dummy_object): Use build_int_cst instead of convert.
14412         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
14413         instead of convert.
14414         * dojump.c (do_jump): Likewise.
14415         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
14416         * gimplify.c (gimple_boolify, gimplify_init_constructor,
14417         gimplify_boolean_expr): Likewise.
14418         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14419         * varasm.c (array_size_for_constructor): Likewise.
14420         * tree-object-size.c (compute_object_offset): Likewise.
14421
14422 2006-04-02  Roger Sayle  <roger@eyesopen.com>
14423
14424         PR middle-end/26977
14425         * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
14426         NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
14427
14428 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
14429
14430         PR tree-optimization/26939
14431         * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
14432
14433 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
14434
14435         * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
14436         at_stmt.  Convert the type of operands before calling
14437         build_polynomial_chrec.
14438         (add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
14439         add_to_evolution_1.
14440         (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
14441         (instantiate_parameters_1): Convert the type of operands before calling
14442         build_polynomial_chrec.
14443         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
14444         chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
14445         reset_evolution_in_loop): Insert asserts to check the types of the
14446         operands.
14447         (chrec_type): Moved...
14448         (eq_evolutions_p): Use operand_equal_p.
14449         * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
14450         the types of the operands.
14451         (chrec_type): ...here.
14452         * tree-data-ref.c (create_data_ref): Convert the operands before
14453         calling chrec_replace_initial_condition.
14454         (same_access_functions, analyze_subscript_affine_affine,
14455         analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
14456         (compute_subscript_distance, analyze_ziv_subscript,
14457         analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
14458         analyze_miv_subscript): Convert the operands before calling
14459         chrec_fold_minus or chrec_fold_plus.
14460
14461 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
14462
14463         * tree-data-ref.c (compute_all_dependences): Use a pointer to
14464         the dependence_relations vector.
14465         (compute_data_dependences_for_loop): Adjust call to
14466         compute_all_dependences.
14467
14468 2006-04-01  Roger Sayle  <roger@eyesopen.com>
14469             Richard Henderson  <rth@redhat.com>
14470
14471         * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
14472         gimple_boolify on the condition before calling gimplify_expr.
14473
14474 2006-03-31  Bob Wilson  <bob.wilson@acm.org>
14475
14476         * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
14477         to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
14478         the frame size.  Update to use the new macros.
14479         * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
14480         * config/xtensa/ieee754-df.S: Likewise.
14481
14482 2006-03-31  Richard Henderson  <rth@redhat.com>
14483
14484         * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
14485         (make_edges): ... here.  Control fallthru creation with a local
14486         variable.  Do not play with fake edges.
14487         (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
14488         (make_goto_expr_edges): Don't play with fake edges.  Make for_call
14489         a boolean.
14490
14491 2006-04-01  Joseph S. Myers  <joseph@codesourcery.com>
14492
14493         * dwarf2.h (DW64_CIE_ID): Define.
14494         * dwarf2out.c (DWARF_CIE_ID): Define.
14495         (output_call_frame_info): Output 0xffffffff before standard 8-byte
14496         length header.  Use DWARF_CIE_ID.
14497         (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
14498         dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
14499
14500 2006-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14501
14502         * config/sh/linux-atomic.asm: New file.
14503         * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
14504
14505 2006-03-31  DJ Delorie  <dj@redhat.com>
14506
14507         * config/m32c/cond.md: Set condition flags properly throughout.
14508         * config/m32c/minmax.md: Likewise.
14509         * config/m32c/prologue.md: Likewise.
14510         * config/m32c/bitops.md: Likewise.
14511         * config/m32c/muldiv.md: Likewise.
14512         * config/m32c/mov.md: Likewise.
14513         * config/m32c/addsub.md: Likewise.
14514         * config/m32c/m32c.md: Likewise.
14515         * config/m32c/jump.md: Likewise.
14516         * config/m32c/shift.md: Likewise.
14517
14518         * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
14519         conditionally output the pattern for this.
14520         * config/m32c/m32c.c (flags_needed_for_conditional): New.
14521         (m32c_compare_redundant): New.
14522         (m32c_output_compare): New.
14523         * config/m32c/m32c-protos.h (m32c_output_compare): New.
14524
14525         * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
14526         dest, not src.  Allow other 4-byte modes.
14527
14528 2006-03-30  Denis Chertykov  <denisc@overta.ru>
14529
14530         * doc/md.texi: Refer to avr/constraints.md instead of
14531         avr/avr.h.
14532
14533 2006-03-30  Roger Sayle  <roger@eyesopen.com>
14534
14535         * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
14536         signed vs. unsigned comparison failures on some hosts.
14537
14538 2006-03-31  Alan Modra  <amodra@bigpond.net.au>
14539
14540         PR target/26459
14541         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
14542         change to FLOAT_REGS.
14543
14544         * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
14545         (rs6000_override_options): Use it.
14546         (rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
14547         only for -mabi=spe/no-spe and -mabi=altivec.
14548
14549 2006-03-30  Geoffrey Keating  <geoffk@apple.com>
14550
14551         * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
14552         !Zdynamiclib.
14553
14554 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
14555
14556         * Makefile.in: Rename docdir to gcc_docdir.
14557
14558 2006-03-30  Roger Sayle  <roger@eyesopen.com>
14559
14560         PR target/17959
14561         * expr.c (emit_group_store): Optimize group stores into a pseudo
14562         register by using a paradoxical subreg to initialize the destination
14563         if the first or last member of the group specifies a "low part".
14564
14565 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14566
14567         PR target/26734
14568         * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
14569         * target.h (struct gcc_target.speculate_insn): Change type of the
14570         second parameter to 'int'.
14571         * lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
14572         the second operand of the DEPS_LIST.
14573         (copy_DEPS_LIST_list): Update reference to the second operand of the
14574         DEPS_LIST.
14575         * rtl.h (alloc_DEPS_LIST): Update signature.
14576         * sched-int.h (ds_t): Change typedef to 'int'.
14577         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
14578
14579 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14580
14581         * haifa-sched.c (try_ready): Change condition to restore
14582         non-speculative pattern of the instruction.
14583         (process_insn_depend_be_in_spec): Code to keep probability of the
14584         speculative dependence non-decreasing.
14585
14586 2006-03-30  Jie Zhang  <jie.zhang@analog.com>
14587
14588         * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
14589         (single_move_for_movmem): ... this. Also change all uses.
14590         (bfin_expand_strmov): Renamed to...
14591         (bfin_expand_movmem): ... this. Also change all uses.
14592         * config/bfin/bfin.md (movstrsi): Renamed to...
14593         (movstrsi): ...this.
14594
14595 2006-03-30  Paolo Bonzini  <bonzini@gnu.org>
14596
14597         PR tree-optimization/26830
14598
14599         * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
14600         (copy_prop_visit_stmt): Remove write-only variable ann.
14601         (init_copy_prop): Check variable loop depth here.  Do not simulate
14602         memory-tag and virtual operand PHIs except for store copy prop.
14603
14604 2006-03-30  Richard Guenther  <rguenther@suse.de>
14605
14606         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
14607         variants with double arguments.
14608
14609 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
14610
14611         * genpreds.c (write_tm_constrs_h): Delete variable p.
14612         * genconditions.c (write_header): Add tm-constrs.h to included
14613         headers.
14614         * genpeep.c (main): Add toplev.h to included headers.
14615         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
14616         (build/genpeep.o): Add toplev.h dependency.
14617         * config/rs6000/constraints.md: Add "W" constraint.
14618
14619 2006-03-29  Roger Sayle  <roger@eyesopen.com>
14620
14621         * stor-layout.c (mode_for_size_tree): Remove restiction on type
14622         sizes by correctly testing whether the size fits a host integer.
14623         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
14624         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
14625         SImode range for the default sizetype and bitsizetype.
14626
14627 2006-03-29  Roger Sayle  <roger@eyesopen.com>
14628
14629         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
14630         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
14631         quickly if the argument is already of the correct type.
14632         Call fold_build1 instead of build1.  Tidy up blank lines.
14633
14634 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
14635
14636         * genemit.c (main): Add tm-constrs.h to included headers.
14637         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
14638         * genpeep.c (main): Add tm-constrs.h to included headers.
14639         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
14640         (write_tm_constrs_h): this and write complete file.
14641         (write_tm_preds_h): Do not emit satisfies_constraint fns.
14642         (write_insn_preds_c): Add tm-constrs.h to included headers.
14643         (gen_constrs): New variable.
14644         (parse_option): Parse "-c".
14645         (main): Invoke write_tm_constrs_h.
14646         * genrecog.c (write_header): Add tm-constrs.h to included headers.
14647         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
14648         (object_out_file): Add tm-constrs.h dependency.
14649         (insn-emit.o): Same.
14650         (insn-output.o): Same.
14651         (insn-peep.o): Same.
14652         (insn-preds.o): Same.
14653         (insn-recog.o): Same.
14654         (tm-constsr.h): New target.
14655         (s-constrs-h): New target.
14656
14657         * config/rs6000/constraints.md: New file.
14658         * config/rs6000/rs6000.c: Include tm-constrs.h.
14659         (num_insn_constant_wide): Convert to satisfies_constraint.
14660         (rs6000_rtx_costs): Convert to satisfies_constraint.
14661         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
14662         (CONST_OK_FOR_LETTER_P): Delete.
14663         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14664         (EXTRA_CONSTRAINT): Delete.
14665         (EXTRA_MEMORY_CONSTRAINT): Delete.
14666         (EXTRA_ADDRESS_CONSTRAINT): Delete.
14667         * config/rs6000/predicates.md: Convert to satisfies_constraint.
14668         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
14669         satisfies_constraint.
14670
14671         * config/i386/i386.c: Include tm-constrs.h.
14672
14673 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
14674
14675         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
14676         * tree-data-ref.c (find_data_references_in_loop,
14677         compute_data_dependences_for_loop): Use pointers to VEC.
14678         (analyze_all_data_dependences): Adjust calls.
14679         * tree-data-ref.h (find_data_references_in_loop,
14680         compute_data_dependences_for_loop): Adjust declarations.
14681         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
14682         compute_data_dependences_for_loop.
14683
14684 2006-03-29  Paul Brook  <paul@codesourcery.com>
14685
14686         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
14687         (movdf_vfp): Ditto.
14688
14689 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
14690
14691         PR tree-optimization/26859
14692         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
14693         division by zero.
14694         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
14695         for the step after fold_convert.
14696
14697 2006-03-29  Paul Brook  <paul@codesourcery.com>
14698
14699         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
14700         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
14701
14702 2006-03-29  Paul Brook  <paul@codesourcery.com>
14703
14704         PR middle-end/23623
14705         * targhooks.c (default_narrow_bitfield): New fuction.
14706         * targhooks.h (default_narrow_bitfield): add prototype.
14707         * target.h (gcc_target): Add narrow_volatile_bitfield.
14708         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
14709         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
14710         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
14711         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
14712
14713 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
14714
14715         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
14716         tmake_file.
14717         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
14718         (NR_C_MODES): Add TDmode, DDmode and SDmode.
14719         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
14720         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
14721         (s390_function_arg_float): Allow SDmode and DDmode values to be
14722         passed in floating point registers.
14723         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
14724         check with SCALAR_FLOAT_MODE_P.
14725         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
14726
14727 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
14728
14729         PR tree-optimization/25985
14730         * tree-ssa-loop-niter.c (number_of_iterations_le,
14731         number_of_iterations_ne): Make comments more precise.
14732         (number_of_iterations_cond): Add only_exit argument.  Use the
14733         fact that signed variables do not overflow only when only_exit
14734         is true.
14735         (loop_only_exit_p): New.
14736         (number_of_iterations_exit): Pass result of loop_only_exit_p to
14737         number_of_iterations_cond.
14738
14739 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
14740
14741         PR tree-optimization/26643
14742         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
14743         bit_field_refs.
14744
14745 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
14746
14747         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
14748         (divsi3_i4_int): Likewise.
14749
14750 2006-03-28  Roger Sayle  <roger@eyesopen.com>
14751
14752         * expr.c (emit_group_store): Only create a new pseudo reg if the
14753         quantity it needs to hold isn't already a suitable pseudo.
14754
14755 2006-03-28  Jeff Law  <law@redhat.com>
14756
14757         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
14758         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
14759
14760 2006-03-28  Roger Sayle  <roger@eyesopen.com>
14761
14762         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
14763         the equivalent ~X & Y, and the symmetry related transformations.
14764         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
14765         ~X & Y, and symmetry related transforms.
14766
14767 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14768
14769         Revert my 2006-03-27 patches.
14770
14771 2006-03-28  Roger Sayle  <roger@eyesopen.com>
14772
14773         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
14774         ~(T1)X, when T1 and T2 are integer types of the same precision
14775         and (T2)X isn't an extension.
14776
14777 2006-03-28  Jeff Law  <law@redhat.com>
14778
14779         PR tree-optimization/26796
14780         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
14781         need EH edge cleanups rather than purging them immediately.
14782         (eliminate_degenerate_phis): Handle queued EH cleanups.
14783
14784 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
14785
14786         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
14787         from parent_var.
14788
14789 2006-03-27  Roger Sayle  <roger@eyesopen.com>
14790
14791         PR middle-end/22524
14792         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
14793         cast BIT_NOT_EXPR operand to the correct type.
14794
14795 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
14796
14797         * tree-loop-linear.c: Don't include varray.h.
14798         (gather_interchange_stats, try_interchange_loops,
14799         linear_transform_loops): Use VEC instead of VARRAY.
14800         * lambda-mat.c: Don't include varray.h.
14801         * tree-chrec.c: Same.
14802         * lambda-trans.c: Same.
14803         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
14804         VEC instead of VARRAY.
14805         * tree-vectorizer.h: Idem.
14806         * tree-data-ref.c (dump_data_references,
14807         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
14808         initialize_data_dependence_relation, finalize_ddr_dependent,
14809         compute_all_dependences, find_data_references_in_loop,
14810         compute_data_dependences_for_loop, analyze_all_data_dependences,
14811         free_dependence_relation, free_dependence_relations,
14812         free_data_refs): Idem.
14813         * tree-data-ref.h (data_reference_p, subscript_p): New.
14814         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
14815         VEC instead of VARRAY.
14816         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
14817         (find_data_references_in_loop, compute_data_dependences_for_loop,
14818         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
14819         dump_data_dependence_relations, free_dependence_relations,
14820         free_data_refs): Adjust declaration.
14821         (lambda_transform_legal_p): Move declaration here...
14822         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
14823         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
14824         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
14825         vect_analyze_data_refs): Use VEC instead of VARRAY.
14826         * lambda.h (lambda_transform_legal_p): ...from here.
14827         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
14828         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
14829         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
14830         tree-chrec.o): Don't depend on VARRAY_H.
14831
14832 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14833
14834         * rtl.def (Copyright): Update date.
14835         (DEPS_LIST): Change type of the second operand to 'int'.
14836         * target.h (Copyright): Update date.
14837         (struct gcc_target.speculate_insn): Change type of the second parameter
14838         to 'int'.
14839         * lists.c (Copyright): Update date.
14840         (alloc_DEPS_LIST): Change signature.  Update reference to the second
14841         operand of the DEPS_LIST.
14842         (copy_DEPS_LIST_list): Update reference to the second operand of the
14843         DEPS_LIST.
14844         * rtl.h (Copyright): Update date.
14845         (alloc_DEPS_LIST): Update signature.
14846         * sched-int.h (Copyright): Update date.
14847         (ds_t): Change typedef to 'int'.
14848         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
14849
14850 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14851
14852         * haifa-sched.c (Copyright): Update date.
14853         (try_ready): Change condition to restore non-speculative pattern
14854         of the instruction.
14855         (process_insn_depend_be_in_spec): Code to keep probability of the
14856         speculative dependence non-decreasing.
14857
14858 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
14859
14860         * regrename.c (replace_oldest_value_addr): Initialize a variable to
14861         shut up the compiler.
14862
14863 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
14864
14865         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
14866         to use lib prefix for target.
14867         ($(T)libic_invalidate_array_4-200.a): Likewise.
14868         ($(T)libic_invalidate_array_4a.a): Likewise.
14869
14870 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
14871             J"orn Rennecke <joern.rennecke@st.com>
14872
14873         * superh.opt: New file.
14874         * sh.c (boardtype, osruntime): Remove.
14875         * superh.h (SUBTARGET_OPTIONS): Remove.
14876         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
14877
14878         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
14879         arguments with ^ and/or [].
14880
14881         * config.gcc (sh-*-*): Add quoting to account for quirk of
14882         Solaris /bin/sh.
14883         Replace == with = in enable_incomplete_targets test.
14884
14885         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
14886         with MASK_LITTLE_ENDIAN.
14887
14888         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
14889         * config/sh/sh.opt: Added to some comments.
14890         * config/sh/superh.h: Removed some chaff.
14891
14892         * config/sh/sh.opt: Add m4-[1234]00* options.
14893         * config/sh/sh.c (sh_handle_option): Likewise.
14894         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
14895         (ic_invalidate_array_4-100.o): New rule.
14896         ($(T)libic_invalidate_array_4-100.a): Likewise.
14897         (ic_invalidate_array_4-200.o): Likewise.
14898         ($(T)libic_invalidate_array_4-200.a): Likewise.
14899         (ic_invalidate_array_4a.o): Likewise.
14900         ($(T)libic_invalidate_array_4a.a): Likewise.
14901         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
14902         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
14903         m4-200*, and m4a*.
14904         * config/sh/crt1.asm: Merged in profiling code.
14905         * config/sh/superh.h (STARTFILE_SPEC): Override.
14906         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
14907         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
14908         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
14909
14910         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
14911         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
14912         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
14913
14914         * sh.opt (mpretend-cmove): New option.
14915         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
14916         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
14917         (movsicc): Add TARGET_PRETEND_CMOVE code.
14918
14919 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14920
14921         * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
14922         s390_class_max_nregs): New function prototypes.
14923         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
14924         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
14925         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
14926         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
14927
14928 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
14929
14930         * dwarf2out.c (add_location_or_const_value_attribute): Call
14931         tree_add_const_value_attribute if nothing else works.
14932         (reference_to_unused): New.
14933         (rtl_for_decl_init): Use reference_to_unused to decide whether
14934         to output an initializer.
14935
14936 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
14937
14938         PR target/26459
14939         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
14940         peephole removing spe frob_di_df_2.
14941
14942 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
14943
14944         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
14945         (subscript_dependence_tester_1): Declared.
14946         (print_dir_vectors, print_dist_vectors): New.
14947         (debug_data_dependence_relation): New.
14948         (dump_data_dependence_relation): Print more details.
14949         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
14950         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
14951         (save_dist_v, save_dir_v, add_outer_distances,
14952         build_classic_dist_vector_1): New.
14953         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
14954         Don't test for lambda_vector_lexico_pos.
14955         (same_access_functions, add_multivariate_self_dist,
14956         add_other_self_distances, dir_from_dist): New.
14957         (build_classic_dir_vector): Replace implementation almost identical to
14958         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
14959         dir_from_dist.
14960         (subscript_dependence_tester_1): New.
14961         (subscript_dependence_tester): Handle the lexicographically negative
14962         distance vectors by recomputing the dependence relation.
14963         (compute_affine_dependence): Remove parameter loop_nest_depth.
14964         (compute_self_dependence): Don't call compute_subscript_distance.
14965         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
14966         Add a parameter for the loop_nest.
14967         (find_loop_nest_1, find_loop_nest): New.
14968         (compute_data_dependences_for_loop): Compute the loop nest, and give
14969         up if the nest is not well formed.
14970         * tree-data-ref.h (loop_p): New.
14971         (struct data_dependence_relation): Replace size_vect field with
14972         loop_nest, a vec of loops.
14973         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
14974         (DDR_LOOP_NEST): New.
14975         (print_dir_vectors, print_dist_vectors,
14976         debug_data_dependence_relation): Declared.
14977         (index_in_loop_nest): New.
14978         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
14979         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
14980         distance.
14981
14982 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
14983
14984         * simplify-rtx.c (simplify_relational_operation): Call
14985         simplify_relational_operation_1 even if mode is VOIDmode.
14986
14987 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
14988
14989         PR tree-optimization/26804
14990         * tree.h (DECL_CALL_CLOBBERED): New macro.
14991         (tree_decl_common): Add call_clobbered_flag.
14992         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
14993         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
14994         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
14995         (mark_non_addressable): Ditto.
14996         * tree-ssa.c (verify_call_clobbered): New function.
14997         (verify_alias_info): Use it.
14998         * tree-pass.h (pass_reset_cc_flags): New prototype.
14999         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
15000         (reset_cc_flags): New function.
15001         * passes.c (init_optimization_passes): Call reset_cc_flags after
15002         initializing referenced_vars.
15003
15004 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
15005             Roger Sayle  <roger@eyesopen.com>
15006
15007         PR middle-end/26717
15008         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
15009         to 1.0 for non-real operands. Implement A / A optimization for
15010         complex operands.
15011
15012 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
15013
15014         * config/i386/i386.c (size_cost): Correct the comment for
15015         cost of storing fp registers.
15016         (i386_cost): Likewise.
15017         (i486_cost): Likewise.
15018         (pentium_cost): Likewise.
15019         (pentiumpro_cost): Likewise.
15020         (k6_cost): Likewise.
15021         (athlon_cost): Likewise.
15022         (k8_cost): Likewise.
15023         (pentium4_cost): Likewise.
15024         (nocona_cost): Likewise.
15025         (generic64_cost): Likewise.
15026         (generic32_cost): Likewise.
15027
15028 2006-03-24  Denis Chertykov  <denisc@overta.ru>
15029
15030         * config/avr/avr-protos.h (extra_constraint): Delete.
15031         (extra_constraint_Q): New declaration.
15032         * config/avr/constraints.md: New file.
15033         * config/avr/avr.md: Include it.
15034         (REG_X, REG_Y, REG_Z, REG_W): New constants.
15035         (TMP_REGNO, ZERO_REGNO): Likewise.
15036         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
15037         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
15038         (extra_constraint): Delete.
15039         (extra_constraint_Q): Test for memory constraint 'Q'.
15040         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
15041         (REG_CLASS_FROM_LETTER): Delete.
15042         (CONST_OK_FOR_LETTER_P): Delete.
15043         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15044         (EXTRA_CONSTRAINT): Delete.
15045         (TMP_REGNO): Delete.
15046         (ZERO_REGNO): Delete.
15047
15048 2006-03-24  Jeff Law  <law@redhat.com>
15049
15050         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
15051         directly.  Call mark_new_vars_to_rename slightly earlier.
15052
15053 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
15054
15055         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
15056         (is_cxx): Likewise.
15057         (gen_compile_unit_die): Use new language types for Objective-C and
15058         Objective-C++.
15059         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
15060         DW_LANG_C_plus_plus.
15061
15062         PR 26793
15063         * config/t-darwin (crt3.o): Work around bug 26840.
15064         * config/darwin-crt3.c: Rewrite.
15065         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
15066
15067 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
15068
15069         * doc/invoke.texi: Document -femit-class-debug-always
15070         * common.opt: Add -femit-class-debug-always.
15071
15072 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15073
15074         * config/s390/s390.c (s390_decompose_address): Allow SImode for
15075         index and base register.
15076         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
15077         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
15078         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
15079         REGNO_OK_FOR_INDEX_P.
15080         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
15081         ADDR_REGNO_P.
15082         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
15083         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
15084         REG_OK_FOR_BASE_P): Definitions removed.
15085
15086 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
15087
15088         PR middle-end/26611
15089         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
15090         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
15091         set yet or weren't marked as local yet.
15092
15093 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
15094
15095         * regrename.c (scan_rtx_address): Initialize a variable to shut up
15096         the compiler.
15097
15098 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
15099
15100         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
15101         (rs6000_legitimate_small_data_p): Delete.
15102         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
15103         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
15104         and make static.  Add forward declaration.  Update uses.
15105         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
15106         of offsettable_memref_p.
15107         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
15108         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
15109
15110 2006-03-24  Jeff Law  <law@redhat.com>
15111
15112         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
15113         around bug in immediate-use iterator.
15114
15115 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
15116
15117         PR target/26607
15118         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
15119         or __LITTLE_ENDIAN__.
15120
15121 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
15122
15123         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
15124         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
15125         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
15126         * config/sh/sh.opt (mdiv=): Amend description.
15127         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
15128         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
15129         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
15130         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
15131         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
15132         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
15133         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
15134         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
15135         TARGET_DIVIDE_CALL_FP.
15136
15137 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
15138
15139         * haifa-sched.c (choose_ready): Fix type of the local variable.
15140         Move local variables.  Add comment.
15141         (check_reg_live): Change signature.  Make callable from debugger.
15142         * sched-int.h (check_reg_live): Update signature.
15143         * sched-ebb.c (check_reg_live): Update parameters.
15144         * sched-rgn.c (check_reg_live): Ditto.
15145         (region_head_or_leaf_p): Check pointer before dereferencing.
15146         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
15147         before reload on optimization levels below 1.
15148
15149 2006-03-23  Richard Henderson  <rth@redhat.com>
15150
15151         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
15152         tls symbols.
15153
15154         PR target/26347
15155         * config/alpha/predicates.md (local_symbolic_operand): Reject
15156         weak symbols.
15157
15158 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
15159
15160         PR tree-opt/26795
15161         * tree-ssa-pre.c (create_value_expr_from): Don't reject
15162         expressions which have overflowed constants.
15163
15164 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
15165
15166         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
15167
15168 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
15169
15170         * cfgloopmanip.c (create_loop_notes): Removed.
15171         * final.c (final_scan_insn): Do not handle loop notes.
15172         * jump.c (squeeze_notes): Ditto.
15173         * cfglayout.c (skip_insns_after_block,
15174         duplicate_insn_chain): Ditto.
15175         * cfgcleanup.c (rest_of_handle_jump2): Do not call
15176         create_loop_notes.
15177         * cfgloop.h (create_loop_notes): Declaration removed.
15178
15179 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
15180
15181         * varasm.c (output_constant_pool): Restore fnname and fndecl
15182         arguments.
15183         (assemble_start_function): Adjust call accordingly.
15184         (assemble_end_function): Likewise.
15185
15186 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15187
15188         PR mudflap/26789
15189         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
15190
15191         PR mudflap/26790
15192         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
15193
15194 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15195
15196         PR driver/22600
15197         * system.h (ICE_EXIT_CODE): New macro.
15198         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
15199         (diagnostic_action_after_output): Likewise.
15200         * gcc.c (fatal_ice): New function.
15201         (execute): Use it instead of fatal.
15202         (fancy_abort): Likewise.
15203         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
15204
15205 2006-03-22  Jeff Law  <law@redhat.com>
15206
15207         * loop-unroll.c (analyze_iv_to_split_insn): Handle
15208         iv_analyze_result returning false.
15209
15210 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
15211
15212         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
15213
15214 2006-03-22  Richard Henderson  <rth@redhat.com>
15215
15216         PR middle-end/26084
15217         * except.c (duplicate_eh_regions_0): New.
15218         (duplicate_eh_region_1): Duplicate the children of the node as
15219         well as the node itself.  Link them up properly.
15220         (duplicate_eh_region_2): Merge into ...
15221         (duplicate_eh_regions): ... here.  Take copy_region argument, and
15222         copy only a sub-tree if asked.  Simplify copying and fixup.
15223         (eh_region_outer_p): New.
15224         * except.h (duplicate_eh_regions): Update decl.
15225         (eh_region_outer_p): Declare.
15226         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
15227         (lower_omp_master): Likewise.
15228         (lower_omp_ordered): Likewise.
15229         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
15230         (move_stmt_r): Use it to remap labels.  Handle recursion vs
15231         remap_decls_p properly.
15232         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
15233         (find_outermost_region_in_block): New.
15234         (new_label_mapper): New.
15235         (move_sese_region_to_fn): Copy eh information to the new function
15236         properly.
15237         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
15238         argument.
15239         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
15240         number.
15241
15242 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
15243
15244         * doc/md.texi (-mshared): Mention that -mshared code can be linked
15245         into shared libraries.
15246
15247 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
15248
15249         * doc/md.texi: Refer to i386/constraints.md instead of
15250         i386/predicates.md.
15251         * config/i386/constraints.md: New file, extracted from...
15252         * config/i386/predicates.md: ...here.
15253         * config/i386/i386.md: Include constraints.md.
15254
15255 2006-03-21  Jason Merrill  <jason@redhat.com>
15256
15257         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
15258
15259         PR middle-end/20297
15260         * expr.c (init_block_move_fn): Force default visibility.
15261         (init_block_clear_fn): Likewise.
15262         * builtins.c (expand_builtin_fork_or_exec): Likewise.
15263         * targhooks.c (default_external_stack_protect_fail): Likewise.
15264
15265 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
15266
15267         * config/mips/predicates.md (const_call_insn_operand): Allow direct
15268         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
15269         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
15270         Use TARGET_OLDABI instead of !TARGET_NEWABI.
15271         (loadgp): Use mips_current_loadgp_style.
15272         (loadgp_noshared): New pattern.
15273         (sibcall_internal): Use MIPS_CALL.
15274         (sibcall_value_internal): Likewise.
15275         (sibcall_value_multiple_internal): Likewise.
15276         (call_internal): Likewise.
15277         (call_value_internal): Likewise.
15278         (call_value_multiple_internal): Likewise.
15279         (call_split): Use MIPS_CALL and add an 'S' constraint.
15280         (call_value_split): Likewise.
15281         (call_value_multiple_split): Likewise.
15282         * config/mips/mips.opt (-mabicalls): Tweak docstring.
15283         (-mshared): New option.
15284         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
15285         (mips_current_loadgp_style): Declare.
15286         * config/mips/mips.c (mips_classify_symbol): Avoid using
15287         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
15288         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
15289         TARGET_ABSOLUTE_ABICALLS.
15290         (override_options): Adjust comments.  Improve the warning that is
15291         issued when -mabicalls and -G are used together.
15292         (mips_file_start): Remove comment.
15293         (mips_current_loadgp_style): New function.
15294         (mips_gnu_local_gp): New variable.
15295         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
15296         LOADGP_ABSOLUTE.
15297         (mips_output_function_prologue): Use mips_current_laodgp_style.
15298         (mips_expand_prologue): Call mips_emit_loadgp before emitting
15299         the cprestore instruction.
15300         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
15301         live for TARGET_ABSOLUTE_ABICALLS.
15302         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
15303         (ASM_SPEC): Pass down -mshared and -mno-shared.
15304         (MIPS_CALL): New macro.
15305         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
15306         definition.
15307         * doc/invoke.texi (-mabicalls): Update documentation.
15308         (-mshared): Document.
15309
15310 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
15311
15312         * config/ia64/unwind-hpux.c: New file.
15313         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
15314
15315 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
15316
15317         PR libgomp/26384
15318         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
15319
15320 2006-03-21  Jeff Law  <law@redhat.com>
15321
15322         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
15323         type conversions of a VR_VARYING source to a wider type.
15324
15325 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
15326
15327         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
15328         tm_file on Solaris 10 and later.
15329         (sparc64-*-solaris2*): Likewise.
15330         (sparc-*-solaris2*): Likewise.
15331         * config/sol26.h: Rename to config/sol2-6.h.
15332         * config/sol2-10.h: New file.
15333
15334 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
15335
15336         PR tree-opt/26781
15337         * tree-ssa-pre.c (create_component_ref_by_pieces):
15338         Handle STRING_CST.
15339
15340 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15341
15342         PR c++/26690
15343         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
15344         return it immediately.
15345
15346 2006-03-21  Michael Matz  <matz@suse.de>
15347
15348         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
15349         New members.
15350         (remove_arc, add_arc): Update num_out_arcs member.
15351         (set_out_arc_insns_equiv_num): Returns nothing instead of number
15352         of out arcs.
15353         (cache_presence): New function.
15354         (compare_states_for_equiv): New function.
15355         (state_is_differed): Don't take number of outargs, adjust callers.
15356         Use new invariant for speeding up.
15357         (init_equiv_class): Create initial classes based on sorted
15358         input.
15359         (partition_equiv_class): Don't track out_arcs_num.
15360         (evaluate_equiv_classes): Call cache_presence on all states and
15361         sort them.
15362
15363 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
15364
15365         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
15366         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
15367         (bfin_valid_reg_p): Test for pseudos explicitly and use only
15368         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
15369         callers changed.
15370         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
15371         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
15372         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
15373         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15374         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
15375         macros.
15376         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
15377         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
15378         (REGNO_REG_CLASS): ARGP is in PREGS.
15379         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
15380         IREGS.
15381         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
15382         to deal with those addresses.
15383         * addresses.h: New file.
15384         * caller-save.c: Include "addresses.h".
15385         (init_caller_save): Use new base_reg_class function.
15386         * rtl-factoring.c: Include "addresses.h".
15387         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
15388         * recog.c: Include "addresses.h".
15389         (preprocess_constraints): Use new base_reg_class function.
15390         * regrename.c: Include "addresses.h".
15391         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
15392         functions.  Keep track of a new var INDEX_CODE to compute valid
15393         classes.
15394         (replace_oldest_value_addr): Likewise.
15395         (replace_oldest_value_mem): Use base_reg_class.
15396         * reload.c: Include "addresses.h".
15397         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
15398         (find_reloads): Use new base_reg_class function.
15399         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
15400         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
15401         all callers and prototype changed.
15402         * reload1.c: Include "addresses.h".
15403         (maybe_fix_stack_asms): Use base_reg_class.
15404         * regclass.c: Include "addresses.h".
15405         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
15406         (init_reg_autoinc): Use new base_reg_class function.
15407         (record_reg_classes): Likewise.
15408         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
15409         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
15410         Use new args to compute necessary class.
15411
15412         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
15413         regrename.o, rtl-factoring.o): Update dependencies.
15414         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
15415         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
15416         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
15417         REG_OK_FOR_INDEX_P): Delete documentation.
15418
15419 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
15420
15421         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
15422         from V7 to V9 for Solaris 7 and above.
15423
15424 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
15425
15426         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
15427         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
15428         argument pointers may not alias any other storage.
15429         * common.opt: Define option -fargument-noalias-anything.
15430         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
15431         alias semantics is specified by flag_argument_noalias > 2.
15432
15433 2006-03-20  Jeff Law  <law@redhat.com>
15434
15435         * tree-pass.h (pass_phi_only_copy_prop): Delete.
15436         (pass_phi_only_cprop): Declare.
15437         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
15438         with phi_only_cprop
15439         * tree-ssa-dom.c (degenerate_phi_result): New function.
15440         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
15441         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
15442         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
15443         (eliminate_degenerate_phis): Likewise.
15444         (pass_phi_only_cprop): New pass descriptor.
15445         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
15446         support code.  Callers updated.
15447         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
15448         (store_copy_prop): Likewise.
15449         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
15450
15451 2006-03-20  Jason Merrill  <jason@redhat.com>
15452
15453         PR c++/21764
15454         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
15455         (push_visibility, pop_visibility): Likewise.
15456         * c-pragma.h: Declare them.
15457
15458 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15459
15460         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
15461
15462         * config/sh/sh.c (find_regmode_weight): Change the type of the first
15463         parameter and use get_ebb_head_tail.
15464         (sh_md_init_global): Adjust uses of find_regmode_weight.
15465
15466 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
15467
15468         * function.h (struct function) <x_tail_recursion_reentry>:
15469         Rename to x_stack_check_probe_note.
15470         (tail_recursion_reentry): Rename to stack_check_probe_note.
15471         * function.c: Replace tail_recursion_reentry with
15472         stack_check_probe_note everywhere.
15473         (expand_function_start): Only emit a note for
15474         stack_check_probe_note with -fstack-protect.
15475         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
15476
15477         * emit-rtl.c (remove_unnecessary_notes): Remove.
15478         (pass_remove_unnecessary_notes): Remove.
15479         * rtl.h (remove_unnecessary_notes): Remove prototype.
15480         * final.c (final_start_function): Don't call remove_unnecessary_notes.
15481         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
15482         * passes.c (pass_remove_unnecessary_notes): Don't run it.
15483
15484 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
15485
15486         PR tree-opt/26629
15487         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
15488         (valid_in_set): Handle ARRAY_REF.
15489         Change "if min_variant or VH" to asserts.
15490         (create_component_ref_by_pieces): Handle ARRAY_REF.
15491         (create_expression_by_pieces): Likewise.
15492         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
15493
15494 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
15495
15496         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
15497         is operand of switch, not str[0].
15498
15499 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
15500
15501         * config/rs6000/rs6000.c (rs6000_handle_option): Use
15502         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
15503
15504 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
15505
15506         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
15507         end of insn_extra_address_constraint declaration.
15508
15509 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
15510
15511         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
15512         (no-sum-in-toc): Same.
15513         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
15514         variables.
15515         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
15516         NO_FP_IN_TOC for -fPIC instead of mask.
15517
15518         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
15519         (BOOT_LDFLAGS): Delete.
15520         (LDFLAGS): Delete.
15521         * config/rs6000/t-aix52: Same.
15522
15523         * config/rs6000/rs6000.md (store_multiple_power): Delete.
15524         (stmsi[345678]_power): New.
15525
15526 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
15527
15528         * config/ia64/ia64.opt: Add empty line to end of file.
15529
15530 2006-03-17  Richard Guenther  <rguenther@suse.de>
15531
15532         PR middle-end/26721
15533         * builtins.c (get_pointer_alignment): For component style references
15534         adjust alignment to the component type alignment.  Make sure
15535         to adjust alignment for component access of constants.
15536
15537 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
15538
15539         * config/rs6000/rs6000.md (strlensi): Emit barrier after
15540         unconditional jump.
15541
15542 2006-03-17  Paul Brook  <paul@codesourcery.com>
15543
15544         * doc/install.texi: Docuemnt --with-mode.
15545         * config.gcc: Add --with-mode for arm*-*-*.
15546         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
15547
15548 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
15549
15550         * sh.c (max_labelno_before_reorg): New variable.
15551         (sh_reorg): Initialize it.
15552         (find_barrier): Check max_labelno_before_reorg before using
15553         label_to_alignment.  Take length of explicit alignment insns
15554         into account.  When seeing a UNSPECV_CONST_END, return it.
15555
15556         * sh.c (fixup_mova): Set mode of affected label to QImode.
15557         (untangle_mova): New function.
15558         (find_barrier): Use it.  Check mode of label before decrementing
15559         num_mova.
15560         (sh_reorg): Likewise.
15561         Set mode of all insns back to VOIDmode.
15562
15563         * sh.c (MOVA_LABELREF): New macro.
15564         (mova_p, fixup_mova, sh_reorg): Use it.
15565         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
15566         ADDR_DIFF_VEC matches mova.
15567
15568 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
15569
15570         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
15571         with ATTRIBUTE_UNUSED.
15572
15573 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
15574
15575         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
15576         pointer, instead of assuming it is possible to derive the
15577         correct args size from a call insn.
15578
15579 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15580
15581         * rtl.h (CONST_INT_P): Define.
15582         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
15583         instead of GET_CODE(x) == CONST_INT.
15584         (vax_rtx_costs): Likewise.
15585         (vax_output_int_move): Likewise.
15586         (vax_output_int_add): Likewise.
15587         (legitimate_constant_address_p): Likewise.
15588         (index_term_p): Likewise.
15589         * config/vax/vax.h (PRINT_OPERAND): Likewise.
15590         * config/vax/vax.md (and<mode>3): Likewise.
15591         (ashrsi3): Likewise.
15592         (extv): Likewise.
15593         (movstricthi): Likewise.
15594         (movstrictqi): Likewise.
15595         (rotrsi3): Likewise.
15596         (five unnamed insns): Likewise.
15597
15598 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
15599
15600         * doc/tm.texi (SDB and DWARF): Add extra parameter to
15601         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
15602         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
15603         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
15604         Pass to ASM_OUTPUT_DWARF_OFFSET.
15605         * dwarf2out.c (debug_frame_section): New.
15606         (output_call_frame_info): Use debug_frame_section.  Pass it to
15607         dw2_asm_output_offset.
15608         (output_die): Pass appropriate section to dw2_asm_output_offset.
15609         (output_compilation_unit_header): Likewise.
15610         (output_pubnames): Likewise.
15611         (output_aranges): Likewise.
15612         (enum dw_val_class): Break dw_val_class_lbl_offset into
15613         dw_val_class_lineptr and dw_val_class_macptr.
15614         (add_AT_lbl_offset): Delete.
15615         (add_AT_lineptr): New.
15616         (add_AT_macptr): New.
15617         (AT_lbl): Expect a lineptr or macptr.
15618         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
15619         (attr_checksum): Likewise.
15620         (same_dw_val_p): Likewise.
15621         (size_of_die): Likewise.
15622         (value_format): Likewise.
15623         (output_die): Likewise.
15624         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
15625         add_AT_lbl_offset.
15626         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
15627         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
15628         * config/darwin-protos.h (darwin_file_start): New.
15629         (darwin_asm_output_dwarf_offset): New.
15630         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
15631         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
15632         darwin_file_start.
15633         * config/darwin.c (darwin_emit_unwind_label): Don't output label
15634         if not EH section; simplify.
15635         (darwin_file_start): New.
15636         (darwin_asm_output_dwarf_offset): New.
15637         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
15638         mark as 'debug'.
15639         (DEBUG_INFO_SECTION): Likewise.
15640         (DEBUG_ABBREV_SECTION): Likewise.
15641         (DEBUG_ARANGES_SECTION): Likewise.
15642         (DEBUG_MACINFO_SECTION): Likewise.
15643         (DEBUG_LINE_SECTION): Likewise.
15644         (DEBUG_LOC_SECTION): Likewise.
15645         (DEBUG_PUBNAMES_SECTION): Likewise.
15646         (DEBUG_STR_SECTION): Likewise.
15647         (DEBUG_RANGES_SECTION): Likewise.
15648         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
15649         (ASM_OUTPUT_DWARF_OFFSET): New.
15650
15651 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
15652
15653         * config.gcc (tm_defines): Always add to previous value rather
15654         than replacing it.
15655
15656 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
15657
15658         * config/mips/predicates.md (splittable_const_int_operand): New,
15659         split from move_operand.
15660         (splittable_symbolic_operand): New.
15661         (move_operand): Add commentary.  Use splittable_const_int_operand.
15662         Inline mips_atomic_symbolic_constant_p.
15663         * config/mips/mips.md: Add combine splitters for handling moves
15664         of splittable_const_int_operands and splittable_symbolic_operands.
15665         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
15666         (mips_split_symbol): Declare.
15667         (mips_move_integer): Declare.
15668         * config/mips/mips.c (mips_split_p): Make global.
15669         (TARGET_MIN_ANCHOR_OFFSET): Override default.
15670         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
15671         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
15672         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
15673         (mips_offset_within_object_p): Handle block symbols.
15674         (mips_atomic_symbolic_constant_p): Delete.
15675         (mips_cannot_force_const_mem): Return false for constants that
15676         mips_legitimize_move can handle.
15677         (mips_use_blocks_for_constant_p): New function.
15678         (mips_split_symbol): Make global.
15679         (mips_move_integer): Likewise.  Add a temporary register argument.
15680         (mips_legitimize_const_move): Use splittable_const_int_operand and
15681         splittable_symbolic_operand.
15682         (mips_use_anchors_for_symbol_p): New function.
15683         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
15684         (mips_split_p): Declare.
15685
15686 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
15687
15688         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
15689         (mips*-*-linux*): Likewise.
15690
15691 2006-03-16  Roger Sayle  <roger@eyesopen.com>
15692             Daniel Speyer  <dspeyer@wam.umd.edu>
15693
15694         PR middle-end/18259
15695         * tree-dump.c (dump_real): New function.
15696         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
15697         * Makefile.in (REAL_H): New macro for dependencies on real.h.
15698         (tree-dump.o): Add $(REAL_H) to the dependencies.
15699
15700 2006-03-16  Roger Sayle  <roger@eyesopen.com>
15701
15702         PR middle-end/21781
15703         * real.c (real_from_string): If the mantissa is zero, don't bother
15704         parsing the exponent as the result should always be zero.
15705
15706 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
15707
15708         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
15709
15710 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15711
15712         * config/ia64/ia64.c (stops_p): Added explicit initialization.
15713         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
15714         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
15715         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
15716         ia64_sched_finish_global): New static functions to implement
15717         hooks from gcc_target.sched.
15718         (spec_check_no, max_uid, pending_data_specs): New static variables.
15719         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
15720         ia64_spec_check_src_p): New static functions.
15721         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
15722         (TARGET_SCHED_ADJUST_COST): Removed.
15723         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
15724         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
15725         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
15726         TARGET_SCHED_GEN_CHECK,
15727         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15728         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
15729         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
15730         Fixed to handle speculation checks.
15731         (rtx_needs_barrier): Fixed to handle speculative loads and
15732         their checks.
15733         (ia64_variable_issue): Added code to count speculative loads and their
15734         checks.
15735         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
15736         speculative loads.
15737         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
15738         New enumerations.
15739         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
15740         New constants.
15741         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
15742         (ia64_reorg): Reset stops_p to NULL after it is freed.
15743         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
15744         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
15745         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
15746         chk_a.
15747         (data_speculative, control_speculative, check_load): New attributes.
15748         (mov<mode>_advanced, mov<mode>_speculative,
15749         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
15750         zero_extend<mode>di2_speculative,
15751         zero_extend<mode>di2_speculative_advanced): New patterns for
15752         data and control speculative loads.
15753         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
15754         check loads.
15755         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
15756         New pattern for data and control speculation checks.
15757         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
15758         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
15759         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
15760         Auxiliary definitions for the patterns.
15761         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
15762         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
15763         constraints.
15764         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
15765         for speculation.
15766         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
15767         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
15768         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
15769         New resource constraints.
15770         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
15771         for speculation.
15772         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
15773         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
15774         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
15775         msched-in-control-spec, msched-ldc, msched-control-ldc,
15776         msched-spec-verbose, msched-prefer-non-data-spec-insns,
15777         msched-prefer-non-control-spec-insns,
15778         msched-count-spec-in-critical-path): New flags to tune speculative
15779         scheduling.
15780         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
15781         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
15782         msched-in-control-spec, msched-ldc, msched-control-ldc,
15783         msched-spec-verbose, msched-prefer-non-data-spec-insns,
15784         msched-prefer-non-control-spec-insns,
15785         msched-count-spec-in-critical-path): Document new flags.
15786
15787 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15788
15789         * target.h (struct spec_info_def): New opaque declaration.
15790         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
15791         speculate_insn, needs_block_p, gen_check,
15792         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
15793         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
15794         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
15795         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
15796         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15797         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
15798         gcc_target.sched.
15799         (TARGET_SCHED): Use new macros.
15800         * rtl.h (copy_DEPS_LIST_list): New prototype.
15801         * sched-int.h (struct sched_info): Change signature of new_ready field,
15802         adjust all initializations. New fields: add_remove_insn,
15803         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
15804         region_head_or_leaf_p.
15805         (struct spec_info_def): New structure declaration.
15806         (spec_info_t): New typedef.
15807         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
15808         recovery_block, orig_pat.
15809         (glat_start, glat_end): New variables declaraions.
15810         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
15811         New access macros.
15812         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
15813         DETACH_LIFE_INFO, USE_GLAT.
15814         (enum SPEC_SCHED_FLAGS): New enumeration.
15815         (NOTE_NOTE_BB_P): New macro.
15816         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
15817         attach_life_info, debug_spec_status, check_reg_live): New functions.
15818         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
15819         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
15820         sched-ebb.c
15821         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
15822         * ddg.c (get_block_head_tail): Adjust all uses.
15823         * modulo-sched.c (get_block_head_tail): Adjust all uses.
15824         (sms_sched_info): Initialize new fields.
15825         (contributes_to_priority): Removed.
15826         * haifa-sched.c (params.h): New include.
15827         (get_block_head_tail): Adjust all uses.
15828         (ISSUE_POINTS): New macro.
15829         (glat_start, glat_end): New global variables.
15830         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
15831         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
15832         old_last_basic_block, before_recovery, current_sched_info_var,
15833         rgn_n_insns, luid): New static variables.
15834         (insn_cost1): New function.  Move logic from insn_cost to here.
15835         (find_insn_reg_weight1): New function.  Move logic from
15836         find_insn_reg_weight to here.
15837         (reemit_notes, move_insn, max_issue): Change signature.
15838         (move_insn1): Removed.
15839         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
15840         extend_bb): New static functions to support extension of scheduler's
15841         data structures.
15842         (generate_recovery_code, process_insn_depend_be_in_spec,
15843         begin_speculative_block, add_to_speculative_block,
15844         init_before_recovery, create_recovery_block, create_check_block_twin,
15845         fix_recovery_deps): New static functions to support
15846         generation of recovery code.
15847         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
15848         restore_bb_notes, move_block_after_check, move_succs): New static
15849         functions to support ebb scheduling.
15850         (init_glat, init_glat1, attach_life_info1, free_glat): New static
15851         functions to support handling of register live information.
15852         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
15853         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
15854         add_jump_dependencies): New static functions.
15855         (check_cfg, has_edge_p, check_sched_flags): New static functions for
15856         consistancy checking.
15857         (debug_spec_status): New function to call from debugger.
15858         (priority): Added code to handle speculation checks.
15859         (rank_for_schedule): Added code to distinguish speculative instructions.
15860         (schedule_insn): Added code to handle speculation checks.
15861         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
15862         Fixed to handle ebbs.
15863         (move_insn): Added code to handle ebb scheduling.
15864         (max_issue): Added code to use ISSUE_POINTS of instructions.
15865         (choose_ready): Added code to choose between speculative and
15866         non-speculative instructions.
15867         (schedule_block): Added code to handle ebb scheduling and scheduling of
15868         speculative instructions.
15869         (sched_init): Initialize new variables.
15870         (sched_finish): Free new variables.  Print statistics.
15871         (try_ready): Added code to handle speculative instructions.
15872         * lists.c (copy_DEPS_LIST_list): New function.
15873         * sched-deps.c (extend_dependency_caches): New function.  Move logic
15874         from create_dependency_caches to here.
15875         (get_dep_weak, ds_merge): Make global.
15876         * genattr.c (main): Code to output prototype for
15877         dfa_clear_single_insn_cache.
15878         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
15879         (output_dfa_clean_insn_cache_func): Code to output
15880         dfa_clear_single_insn_cache function.
15881         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
15882         n_insns.
15883         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
15884         Removed.
15885         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
15886         New static variables.
15887         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
15888         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
15889         struct sched_info.
15890         (ebb_sched_info): Initialize new fields.
15891         (get_block_head_tail): Adjust all uses.
15892         (compute_jump_reg_dependencies): Fixed to use glat_start.
15893         (schedule_ebb): Code to remove unreachable last block.
15894         (schedule_ebbs): Added code to update register live information.
15895         * sched-rgn.c (region_sched_info): Initialize new fields.
15896         (get_block_head_tail): Adjust all uses.
15897         (last_was_jump): Removed.  Adjust users.
15898         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
15899         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
15900         Implement new hooks.
15901         (check_dead_notes1): New static function.
15902         (struct region): New fields: dont_calc_deps, has_real_ebb.
15903         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
15904         (BB_TO_BLOCK): Fixed to handle EBBs.
15905         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
15906         (ebb_head): New static variable.
15907         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
15908         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
15909         new fields.
15910         (compute_dom_prob_ps): New assertion.
15911         (check_live_1, update_live_1): Fixed to work with glat_start instead of
15912         global_live_at_start.
15913         (init_ready_list): New assertions.
15914         (can_schedule_ready_p): Split update code to begin_schedule_ready.
15915         (new_ready): Add support for BEGIN_CONTROL speculation.
15916         (schedule_insns): Fixed code that updates register live information
15917         to handle EBBs.
15918         (schedule_region): Fixed to handle EBBs.
15919         (init_regions): Use extend_regions and check_dead_notes1.
15920         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
15921         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
15922         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
15923         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
15924         TARGET_SCHED_GEN_CHECK,
15925         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15926         TARGET_SCHED_SET_SCHED_FLAGS): Document.
15927         * doc/invoke.texi (max-sched-insn-conflict-delay,
15928         sched-spec-prob-cutoff): Document.
15929
15930 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15931
15932         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
15933         inter_tick, queue_index.
15934         (struct sched_info): Change signature of init_ready_list field.
15935         Adjust all initializations.
15936         (RESOLVED_DEPS): New access macro.
15937         (ready_add): Remove prototype.
15938         (try_ready): Add prototype.
15939         * sched-rgn.c (init_ready_list): Use try_ready.
15940         (schedule_region): Initialize
15941         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
15942         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
15943         (init_ready_list): Use try_ready.
15944         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
15945         * lists.c (remove_list_elem): Remove `static'.
15946         (remove_free_INSN_LIST_elem): New function.
15947         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
15948         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
15949         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
15950         New constants.
15951         (readyp): New variable.
15952         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
15953         change_queue_index, resolve_dep): New static functions.
15954         (try_ready): New function.  Adjust callers in sched-rgn.c and
15955         sched-ebb.c to use it instead of ready_add.
15956         (clock_var): Move at the begining of file.
15957         (rank_for_schedule): Fix typo.
15958         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
15959         (ready_lastpos): Enforce assertion.
15960         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
15961         update all callers.
15962         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
15963         (schedule_insn): Rewrite to use try_ready and resolve_dep.
15964         (queue_to_ready): Use free_INSN_LIST_list.
15965         (early_queue_to_ready): Fix typo.
15966         (schedule_block): Init readyp.  Move init_ready_list call after the
15967         initialization of clock_var.  Fix error in rejecting insn by
15968         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
15969         that previously corrected INSN_TICKs.  Add code for handling
15970         QUEUE_INDEX.
15971         (set_priorities): Fix typo.
15972         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
15973         Clarify comment and code that keeps current_sched_info->next_tail
15974         non-null.
15975
15976 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15977
15978         * sched-rgn.c (extend_rgns): New static function.
15979         (find_rgns): Use it.
15980         (gather_region_statistics, print_region_statistics): New static
15981         functions.
15982         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
15983         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
15984
15985 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15986             Andrey Belevantsev <abel@ispras.ru>
15987
15988         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
15989         * lists.c (unused_deps_list): New variable.
15990         (free_list): Add assertions to verify the proper distinguishing
15991         between INSN_LISTs and DEPS_LISTs.
15992         (find_list_elem, remove_list_elem, remove_list_node): New static
15993         functions.
15994         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
15995         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
15996         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
15997         (alloc_INSN_LIST): Assert that the list we're working on is indeed
15998         an INSN_LIST.
15999         (free_INSN_LIST_node): Likewise.
16000         * modulo-sched.c (current_sched_info): Initialize flags field.
16001         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
16002         * rtl.def (DEPS_LIST): Define.
16003         * rtl.h: Declare new functions from lists.c.
16004         * sched-deps.c (spec_dependency_cache): New static variable.
16005         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
16006         (add_dependence): Change return type to void.  Move the logic to ...
16007         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
16008         (delete_all_dependences): Add comment about forward_dependency_cache.
16009         Handle spec_dependency_cache.  Handle DEPS_LISTs.
16010         (fixup_sched_groups): Clarify the change of priority of output
16011         and anti dependencies.
16012         (sched_analyze_2): Adjust add_dependence calls to create data
16013         speculative dependence.
16014         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
16015         Adjust all callers.  Handle DEPS_LISTS.
16016         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
16017         presence of speculation.
16018         (init_dependency_caches, free_dependency_caches):
16019         Handle spec_dependency_cache.
16020         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
16021         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
16022         New static functions.
16023         (add_or_update_back_dep, add_or_update_back_forw_dep,
16024         add_back_forw_dep, delete_back_forw_dep): New functions.
16025         * sched-int.h (ds_t, dw_t): New typedefs.
16026         (struct sched_info): Add new field flags.
16027         (struct haifa_insn_data): Add new bitfield has_internal_dep.
16028         Prototype new sched-deps.c functions.
16029         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
16030         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
16031         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
16032         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
16033         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
16034         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
16035         New constants.
16036         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
16037         New enums.
16038         * sched-rgn.c (current_sched_info): Initialize flags field.
16039         (schedule_insns): Initialize current_sched_info before the sched_init
16040         call.
16041         * sched-ebb.c (current_sched_info): Initialize flags field.
16042         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
16043         Call add_or_update_back_dep instead of add_dependence.
16044         Create control speculative dependencies.
16045         (schedule_insns): Initialize current_sched_info before the sched_init
16046         call.
16047
16048 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16049
16050         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
16051         fs->signal_frame.
16052         (sh_fallback_frame_state): Likewise.
16053
16054 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
16055
16056         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
16057         Do switch on default_use_cxa_atexit.
16058         (powerpc*-*-darwin*): Build crt2.o on powerpc.
16059         * config/darwin-crt3.o: New.
16060         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
16061         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
16062         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
16063         OS version.
16064         * config/rs6000/t-darwin: Move crt2.o building to here.
16065         * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
16066         Mac OS version for using __cxa_get_exception_ptr.  Don't test versions
16067         of __cxa_atexit.
16068
16069 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16070
16071         * config/vax/vax.c (nonindexed_address_p): Change logical negation
16072         from '! xxx' to '!xxx' for coding-style conformance.
16073         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
16074         (EXTRA_CONSTRAINT): Likewise.
16075         * config/vax/vax.md (four unnamed insns): Likewise.
16076
16077 2006-03-15  Paul Brook  <paul@codesourcery.com>
16078
16079         * config/arm/arm.c (minipool_pad): New.
16080         (add_minipool_forward_ref): Include pool alignment padding in address
16081         calculation.
16082         (push_minipool_fix): Set minipool_pad.
16083         (minipool_pad): Ditto.
16084
16085 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16086
16087         * config/vax/vax.c (split_quadword_operands): Use MEM_P()
16088         instead of GET_CODE() == MEM and REG_P() instead of
16089         GET_CODE() == REG.
16090         (print_operand_address): Likewise.
16091         (vax_address_cost): Likewise.
16092         (vax_rtx_costs): Likewise.
16093         (vax_notice_update_cc): Likewise.
16094         (vax_output_int_add): Likewise.
16095         (INDEX_REGISTER_P): Likewise.
16096         (BASE_REGISTER_P): Likewise.
16097         (nonindexed_address_p): Likewise.
16098         (vax_mode_dependent_address_p): Likewise.
16099         * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
16100         (PRINT_OPERAND): Likewise.
16101         * config/vax/vax.md (ashlsi3): Likewise.
16102         (ashlsi3): Likewise.
16103         (some more unnamed insns): Likewise.
16104
16105 2006-03-15  Kazu Hirata  <kazu@codesourcery.com>
16106
16107         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
16108         iterator-style macro.
16109         (mark_control_dependent_edges_necessary): Update the use of
16110         EXECUTE_IF_CONTROL_DEPENDENT.
16111
16112 2006-03-15  J"orn Rennecke <joern.rennecke@st.com>
16113
16114         * config/sh/predicates.md (cache_address_operand): Special.
16115         (ua_address_operand): Likewise.
16116
16117 2006-03-15  Zdenek Dvorak <dvorakz@suse.cz>
16118
16119         * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
16120         loop notes.
16121         * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
16122
16123 2006-03-15  Andreas Schwab  <schwab@suse.de>
16124
16125         * gensupport.c (identify_predicable_attribute): Don't free p_false
16126         when it is still in use.
16127
16128 2006-03-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
16129
16130         * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
16131         the default setting here.
16132
16133 2006-03-14  Steven Bosscher  <stevenb.gcc@gmail.com>
16134
16135         * tree-pass.h (pass_cfg): Remove.
16136         * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
16137         * passes.c (pass_cfg): Don't run it.
16138
16139 2006-03-14  Kazu Hirata  <kazu@codesourcery.com>
16140
16141         * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
16142         * reg-stack.c (stack_regs_mentioned_data): Change the type to
16143         VEC(char,heap) *.
16144         (stack_regs_mentioned): Update the uses of
16145         stack_regs_mentioned_data.  Don't access the array beyond its
16146         end.
16147         (reg_to_stack): Update the uses of stack_regs_mentioned_data.
16148         Don't include gt-reg-stack.h.
16149
16150         * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
16151         * system.h (UNALIGNED_WORD_ASM_OP): Poison.
16152
16153         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
16154
16155         PR middle-end/26684
16156         * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
16157         STACK_REGS.
16158
16159 2006-03-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16160
16161         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
16162
16163 2006-03-14  Richard Guenther  <rguenther@suse.de>
16164
16165         PR tree-optimization/26672
16166         * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
16167         SSA form.
16168
16169 2006-03-14  Richard Guenther  <rguenther@suse.de>
16170
16171         PR tree-optimization/26667
16172         * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
16173         node for the callees.  Always allow inlining if it will shrink
16174         the function size.
16175
16176 2006-03-14  Richard Guenther  <rguenther@suse.de>
16177
16178         PR middle-end/26659
16179         * builtins.c (get_pointer_alignment): Prefer alignment
16180         information from decls over that from types.
16181
16182 2006-03-14  Andrew Pinski  <pinskia@physics.uc.edu>
16183
16184         PR target/26657
16185         * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
16186
16187 2006-03-14  Joseph S. Myers  <joseph@codesourcery.com>
16188
16189         * config/rs6000/rs6000.opt (mdlmzb): New option.
16190         (msched-prolog, msched-epilog): Use Var not Mask.
16191         * doc/invoke.texi (-mdlmzb): Document.
16192         * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
16193         MASK_SCHED_PROLOG.
16194         (rs6000_override_options): Enable -mdlmzb for 405 and 440.
16195         * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
16196
16197 2006-03-13  Uttam Pawar  <uttamp@us.ibm.com>
16198
16199         PR rtl-optimization/25739
16200         * bt-load.c (augment_live_range): Free tos pointer.
16201
16202         * gensupport.c (identify_predicable_attribute): Free
16203         p_false pointer.
16204         * gcov.c (create_file_names): Free name pointer.
16205
16206 2006-03-13  Roger Sayle  <roger@eyesopen.com>
16207
16208         PR middle-end/26557
16209         * stmt.c (emit_case_nodes): Handle the case where the index is a
16210         CONST_INT, where the comparison mode is specified by the index type.
16211
16212 2006-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16213
16214         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
16215         is defined.
16216
16217 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
16218
16219         * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
16220         (*branch_fp_inverted): Likewise.
16221
16222 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
16223
16224         PR middle-end/25989
16225         * omp-low.c (expand_omp_for_generic): Mark istart0
16226         and iend0 as addressable.
16227
16228 2006-03-13  Jie Zhang  <jie.zhang@analog.com>
16229
16230         * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
16231
16232 2006-03-13  Jeff Law  <law@redhat.com>
16233
16234         * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
16235         virtual operands are interesting.
16236         (vrp_visit_stmt): Corresponding changes.
16237
16238 2006-03-13  Bernd Schmidt  <bernd.schmidt@analog.com>
16239
16240         * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
16241         of RETS.
16242         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
16243         TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
16244         * config/bfin/crti.S: Use it instead of __PIC__.
16245         * config/bfin/crtn.S: Likewise.
16246
16247         * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
16248         call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
16249         not if flag_pic.
16250         Lose 'G' modifier for call operand.
16251         * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
16252         recognize 'G' modifier.
16253
16254 2006-03-13  Eric Botcazou  <ebotcazou@adacore.com>
16255
16256         PR middle-end/18859
16257         * gimplify.c (gimplify_switch_expr): Discard empty ranges.
16258         * stmt.c (expand_case): Likewise.
16259
16260 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
16261
16262         PR rtl-optimization/26254
16263         * loop-invariant.c (seq_insns_valid_p): New function.
16264         (move_invariant_reg): Only emit new code if it is valid.
16265
16266 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
16267
16268         * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
16269         Removed.
16270         (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
16271         (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
16272         (commit_one_edge_insertion): Do not look for loop notes.
16273
16274 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
16275
16276         * jump.c (follow_jumps): Do not check for loop notes.  Move check for
16277         flag_test_coverage out of loop.
16278
16279 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
16280
16281         * final.c (shorten_branches): Remove outdated comment, and turn
16282         the if branch that guards it to continue.
16283
16284 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
16285
16286         * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
16287         * cfgloop.h (struct loop): Remove unused fields.
16288
16289 2006-03-13  Kazu Hirata  <kazu@codesourcery.com>
16290
16291         * doc/invoke.texi (-fdump-rtl-loop): Remove.
16292         (-dL, -fdump-rtl-loop2): Update the dump file names
16293
16294         * doc/invoke.texi: Update dump file names.
16295
16296 2006-03-12  Steven Bosscher  <stevenb.gcc@gmail.com>
16297
16298         * predict.c (estimate_probability): Remove.
16299         * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
16300         * basic-block.h (estimate_probability): Remove prototype.
16301         * passes.c (finish_optimization_passes): Dump branch prediction or
16302         profiling heuristics to the .profile tree dump.
16303         (init_optimization_passes): Unqueue pass_branch_prob.
16304
16305         * doc/invoke.texi (-fdump-rtl-bp): Remove.
16306
16307 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16308
16309         * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
16310         * rtl.h (LABEL_NEXTREF): Remove field accessor.
16311
16312 2006-03-11  Eric Botcazou  <ebotcazou@adacore.com>
16313
16314         * function.h (frame_offset_overflow): Declare.
16315         * function.c (frame_offset_overflow): New function.
16316         (assign_stack_local_1): Call it to detect that the offset overflows.
16317         * cfgexpand.c (alloc_stack_frame_space): Likewise.
16318
16319 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16320
16321         * config/sh/sh.c: Include alloc-pool.h.
16322         (label_ref_list_pool): New alloc pool.
16323         (label_ref_list_t): New type for lists of labels.
16324         (struct pool_node): Make wend a label_ref_list_t.
16325         (add_constant): Use the new type, eradicate LABEL_NEXTREF
16326         references.
16327         (dump_table): Likewise.
16328         (sh_reorg): Set up the alloc pool before using add_constant and
16329         dump_table, and destroy it when finishing.
16330
16331 2006-03-11  Richard Sandiford  <richard@codesourcery.com>
16332
16333         * config/mips/mips.c: Remove redundant comment.
16334
16335 2006-03-10  Jason Merrill  <jason@redhat.com>
16336
16337         PR c/26004
16338         * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
16339         the target was declared 'register'.
16340
16341 2006-03-10  Adam Nemet  <anemet@caviumnetworks.com>
16342
16343         * genpreds.c (write_insn_constraint_len): Change definition of
16344         insn_constraint_len to return size_t to match the declaration.
16345
16346 2006-03-10  DJ Delorie  <dj@redhat.com>
16347
16348         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
16349         start at zero.
16350         (m32c_expand_insv): Fix test for an AND mask.
16351
16352 2006-03-10  Richard Guenther  <rguenther@suse.de>
16353
16354         PR middle-end/26565
16355         * builtins.c (get_pointer_alignment): Handle component
16356         references for field alignment.
16357
16358 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
16359
16360         * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
16361         when building with libgloss.
16362         (sh*elf): Implement --without-fp option.
16363         (sh64-superh-linux*): Don't multilib.
16364
16365 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
16366
16367         * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
16368
16369 2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>
16370
16371         * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
16372         Set it when one of the replacement functions returned true.
16373         Return TODO_cleanup_cfg if cfgchanged is true.
16374         (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
16375
16376 2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
16377
16378         * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
16379         instead of gen_lowpart.
16380
16381 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
16382
16383         * config/mips/mips-protos.h (mips_output_conditional_branch): Change
16384         interface.
16385         (mips_output_order_conditional_branch): Declare.
16386         * config/mips/mips.h (MIPS_BRANCH): New macro.
16387         * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
16388         for the comparison.  Use gen_condjump.
16389         (mips_output_conditional_branch): Rework interface to take the
16390         asm templates for a direct branch and the inverse of a direct branch.
16391         (mips_output_order_conditional_branch): New function.
16392         (mips_builtin_branch_and_move): New function.
16393         (mips_expand_builtin_compare): Use it.  Use VOIDmode for the
16394         branch condition.  Use gen_single_cc as the condition for
16395         __builtin_mips_upper_* or __builtin_mips_lower_*.
16396         (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
16397         Use VOIDmode for the branch condition.
16398         * config/mips/predicates.md (order_operator): New predicate.
16399         * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
16400         (branch_fp): Rename to...
16401         (*branch_fp): ...this.  Remove mode from comparison operator.
16402         Use new mips_output_conditional_branch interface.
16403         (branch_fp_inverted): Rename to...
16404         (*branch_fp_inverted): ...this and update as for *branch_fp.
16405         (*branch_zero<mode>): Rename to...
16406         (*branch_order<mode>): ...this.  Remove mode from comparison operator.
16407         Use mips_output_order_conditional_branch.  Only accept ordered
16408         comparisons.
16409         (*branch_zero<mode>_inverted): Rename to...
16410         (*branch_order<mode>_inverted): ...this and update as for
16411         *branch_order<mode>.
16412         (*branch_equality<mode>): Accept zero as the second operand to
16413         the equality operator.  Use the new mips_output_conditional_branch
16414         interface.
16415         (*branch_equality<mode>_inverted): Likewise.
16416         (condjump): New expander.
16417         * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
16418         operator.
16419         * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
16420         (bc1any2t, bc1any2f): Likewise.
16421         (single_cc): New expander.
16422         (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
16423
16424 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
16425
16426         * doc/md.texi: Update documentation of MIPS constraints.
16427         * config/mips/constraints.md: New file.
16428         * config/mips/mips.md: Include it.
16429         * config/mips/mips.c (mips_char_to_class): Delete.
16430         (override_options): Don't initialize mips_char_to_class.
16431         * config/mips/mips.h (mips_char_to_class): Delete.
16432         (REG_CLASS_FROM_LETTER): Delete.
16433         (CONST_OK_FOR_LETTER_P): Delete.
16434         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16435         (EXTRA_CONSTRAINT_Y): Delete.
16436         (EXTRA_CONSTRAINT_STR): Delete.
16437         (CONSTRAINT_LEN): Delete.
16438         (EXTRA_MEMORY_CONSTRAINT): Delete.
16439
16440 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
16441
16442         * tree-cfg.c (move_block_to_fn): Remove the statements from the
16443         original fn's eh regions.
16444
16445 2006-03-09  Eric Botcazou  <ebotcazou@adacore.com>
16446
16447         * fold-const.c (build_range_check): Make sure to use a valid type to
16448         apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
16449         transformation.
16450
16451         (range_predecessor): New static function.
16452         (range_successor): Likewise.
16453         (merge_ranges): Use them to compute predecessors and successors of
16454         range bounds.
16455
16456 2006-03-09  Roger Sayle  <roger@eyesopen.com>
16457
16458         PR middle-end/26561
16459         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
16460         X op C3, consider whether C3 overflows towards +Inf or -Inf.
16461
16462 2006-03-08  DJ Delorie  <dj@redhat.com>
16463
16464         * config/m32c/addsub.md (addqi3): Disparage a0/a1.
16465         (addpsi3): Expand to include memory operands.  Remove
16466         reload-specific splits.
16467         * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
16468         (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
16469         (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
16470         (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
16471         (shift1_qi, shift1_hi, insv): New.
16472         * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
16473         (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
16474         cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
16475         cond_to_int): New.
16476         * config/m32c/m32c-protos.h: Update as needed.
16477         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
16478         default the Rcr, Rcl, Raw, and Ral constraints.  Add Ra0 and Ra1.
16479         Fail for unrecognized R* constraints.
16480         (m32c_cannot_change_mode_class): Be more picky about pseudos.
16481         (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
16482         (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
16483         Add Sp constraint.
16484         (m32c_init_libfuncs): New.
16485         (m32c_legitimate_address_p): Add debug wrapper.
16486         (m32c_rtx_costs): New.
16487         (m32c_address_cost): New.
16488         (conversions): Add 'B' prefix.
16489         (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
16490         operands, or word regnames for QI operands.  'B' prints bit
16491         position.
16492         (m32c_expand_setmemhi): New.
16493         (m32c_expand_movmemhi): New.
16494         (m32c_expand_movstr): New.
16495         (m32c_expand_cmpstr): New.
16496         (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
16497         (m32c_expand_neg_mulpsi3): Handle non-ints.
16498         (m32c_cmp_flg_0): New.
16499         (m32c_expand_movcc): New.
16500         (m32c_expand_insv): New.
16501         (m32c_scc_pattern): New.
16502         * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS.  Take
16503         a0/a1 out of SIregs.
16504         (STORE_FLAG_VALUE): New.
16505         * config/m32c/m32c.md: Add unspecs for string moves.  Define various mode and
16506         code macros.
16507         (no_insn): New.
16508         * config/m32c/mov.md: Make constraints more liberal.
16509         (zero_extendqihi2): Optimize r0/r1 case.
16510         * config/m32c/muldiv.md (mulpsi3): Check for intvals.
16511         * config/m32c/predicates.md (m32c_any_operand): New.
16512         (m32c_nonimmediate_operand): New.
16513         (m32c_hl_operand): New.
16514         (m32c_r3_operand): New.
16515         (ap_operand): New.
16516         (ma_operand): New.
16517         (memsym_operand): New.
16518         (memimmed_operand): New.
16519         (a_qi_operand): New.
16520         (m32c_eqne_operator): New.
16521         (m32c_1bit8_operand): New.
16522         (m32c_1bit16_operand): New.
16523         (m32c_1mask8_operand): New.
16524         (m32c_1mask16_operand): New.
16525         * config/m32c/blkmov.md: New file.
16526         * config/m32c/t-m32c (MD_FILES): Add blkmov.
16527
16528 2006-03-08  Andreas Tobler  <a.tobler@schweiz.ch>
16529
16530         * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
16531         unsigned to fix signed/unsigned comparison issue in
16532         DWARF2_FRAME_REG_OUT.
16533         (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
16534         unsigned comparison issue in DWARF2_FRAME_REG_OUT.
16535
16536         * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
16537         of ptr into the ENABLE_CHECKING section.
16538
16539 2006-03-08  Jeff Law  <law@redhat.com>
16540
16541         * tree-vrp.c (infer_value_range): Only count pointer uses
16542         and dereferences if -fdelete-null-pointer-checks is enabled.
16543
16544         * tree-vrp.c (find_assert_locations): Infer value ranges for
16545         single use pointers, but do not create ASSERT_EXPRs for them.
16546         When a non-null range is inferred for a pointer, backwards
16547         propagate that range to other equivalent pointers through the
16548         use-def chain.
16549
16550 2006-03-08  Paolo Bonzini  <bonzini@gnu.org>
16551
16552         PR bootstrap/26500
16553         * Makefile.in (dvi, html, install-info): Invoke the corresponding
16554         language hook targets.
16555         * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
16556         objcp/Make-lang.in: Create stub rules for dvi, html, install-info
16557         if language hook targets were missing.
16558
16559 2006-03-07  Zdenek Dvorak <dvorakz@suse.cz>
16560
16561         * tree-ssa-opfinalize.h: Removed.
16562         * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
16563         dependency.
16564         * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
16565         (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
16566         INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
16567         add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
16568         finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
16569         finalize_ssa_v_must_def_ops): New.
16570
16571 2006-03-07  Kenneth Zadeck <zadeck@naturalbridge.com>
16572
16573         * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
16574         block as parameter.
16575
16576 2006-03-07  Geoffrey Keating  <geoffk@apple.com>
16577
16578         * varasm.c (assemble_end_function): Say that 'fnname' is unused.
16579
16580         * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
16581         addresses with offsets; reorganize.
16582
16583         * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
16584         (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
16585         (expand_builtin_init_dwarf_reg_sizes): Likewise.
16586
16587 2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
16588
16589         PR target/26588
16590         * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
16591
16592 2006-03-08  Ben Elliston  <bje@au.ibm.com>
16593
16594         * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
16595
16596 2006-03-07  Aldy Hernandez  <aldyh@redhat.com>
16597
16598         PR gomp/26238
16599         * doc/passes.texi (Tree-SSA passes): Document omp lowering and
16600         expansion.
16601
16602 2006-03-07  Richard Guenther  <rguenther@suse.de>
16603
16604         PR tree-optimization/26587
16605         * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
16606
16607 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
16608
16609         * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
16610
16611 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
16612
16613         * hooks.c (hook_bool_mode_rtx_true): New function.
16614         * hooks.h (hook_bool_mode_rtx_true): Declare.
16615         * toplev.c (compile_file): Call output_shared_constant_pool.
16616         * varasm.c (shared_constant_pool): New variable.
16617         (assemble_start_function, assemble_end_function): Remove arguments
16618         from call to output_constant_pool.
16619         (create_constant_pool): New function, split out from...
16620         (init_varasm_status): ...here.
16621         (force_const_mem): Choose between the shared and per-function constant
16622         pools.  Set current_function_uses_const_pool when reusing old entries
16623         as well as when creating new ones.
16624         (mark_constant): Ignore data argument.
16625         (mark_constants): Remove pool argument.
16626         (mark_constant_pool): Likewise.  Use current_function_uses_const_pool
16627         to decide whether the function uses a constant pool.
16628         (output_constant_pool_contents): New function, split out from...
16629         (output_constant_pool): ...here.
16630         (output_shared_constant_pool): New function.
16631         (init_varasm_once): Initialize shared_constant_pool.
16632         * output.h (output_constant_pool): Delete.
16633         (output_shared_constant_pool): Declare.
16634         * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
16635         * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
16636
16637 2006-03-06  Nick Clifton  <nickc@redhat.com>
16638
16639         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
16640         flag_strength_reduce.
16641
16642 2006-03-06  Ben Elliston  <bje@au.ibm.com>
16643
16644         * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
16645         x86_64-*-linux* configurations.
16646
16647         * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
16648         (LIBGCC2_WORDS_BIG_ENDIAN): Define.
16649
16650 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
16651
16652         * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
16653         Remove.
16654         * basic-block.h: Remove the extern for
16655         rediscover_loops_after_threading.
16656
16657         * cfgloop.c (cancel_loop): Make it static.
16658         * cfgloop.h: Remove the prototype for cancel_loop.
16659
16660         * flow.c (recompute_reg_usage): Make it static.
16661         * rtl.h: Remove the prototype for recompute_reg_usage.
16662
16663         * function.c (use_return_register): Make it static.
16664         * function.h: Remove the prototype.
16665
16666 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
16667
16668         * recog.c (volatile_mem_p, validate_change_maybe_volatile):
16669         Remove.
16670         * recog.h: Remove the prototype for
16671         validate_change_maybe_volatile.
16672
16673 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
16674
16675         * rtlanal.c (replace_reg): Remove.
16676         * rtl.h: Remove the prototype for replace_reg.
16677
16678 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
16679
16680         * regclass.c (reg_scan_update): Remove.
16681         (reg_scan_mark_refs): Remove the last argument.
16682         * rtl.h: Remove the prototype for reg_scan_update.
16683
16684 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
16685
16686         * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
16687         combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
16688         config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
16689         config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
16690         df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
16691         loop-invariant.c, omp-low.c, opts.c, passes.c,
16692         rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
16693         tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
16694         tree-ssa-structalias.c, tree-ssa-threadedge.c,
16695         tree-ssa-threadupdate.c, tree-vect-patterns.c,
16696         tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
16697         unwind-dw2.c: Fix comment typos.  Follow spelling conventions.
16698
16699 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
16700
16701         * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
16702         * dwarf2out.h: Remove the prototype for
16703         dwarf2out_add_library_unit_info.
16704
16705 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
16706
16707         * tree.c (add_var_to_bind_expr): Remove.
16708         * tree.h: Remove the prototype for add_var_to_bind_expr.
16709
16710 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
16711
16712         * regclass.c (n_non_fixed_regs): Remove.
16713         (init_reg_sets_1, globalize_reg): Remove all uses of
16714         n_non_fixed_regs.
16715         * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
16716
16717 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
16718
16719         * rtlanal.c (insns_safe_to_move_p): Remove.
16720         * rtl.h: Remove the prototype for insns_safe_to_move_p.
16721
16722 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
16723
16724         * expmed.c (expand_mult_add): Remove.
16725         * expr.h: Remove the prototype for expand_mult_add.
16726
16727 2006-03-04  Jakub Jelinek  <jakub@redhat.com>
16728
16729         * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
16730         and REG_SAVED_VAL_EXP constants.
16731         * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
16732         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
16733         Handle regs stored by value.
16734         (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
16735         (execute_cfa_program): Handle DW_CFA_val_offset,
16736         DW_CFA_val_offset_sf and DW_CFA_val_expression.
16737         (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
16738         value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
16739         (uw_install_context_1): Handle target regs stored by value.
16740
16741 2006-03-03  Daniel Berlin  <dberlin@dberlin.org>
16742
16743         * tree-sra.c (tree_sra): Return todoflags;
16744         (generate_one_element): Set TODO_update_smt_usage if needed.
16745         (pass_sra): Remove TODO_update_smt_usage.
16746         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
16747         parameter.
16748         (tree_ssa_forward_propagate_single_use_vars): Return
16749         TODO_update_smt_usage if we need to update SMT usage.
16750         (pass_forwprop): Remove TODO_update_smt_usage.
16751
16752 2006-03-03  Diego Novillo  <dnovillo@redhat.com>
16753
16754         * tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
16755         (correct_use_link): Remove reference to get_stmt_operands.
16756         (update_stmt_operands): Likewise.
16757         (get_modify_expr_operands): New function factored out of
16758         parse_ssa_operands and get_expr_operands.
16759         Try to create V_MUST_DEFs for LHS by default.
16760         (get_expr_operands) <case MODIFY_EXPR>: Call
16761         get_modify_expr_operands.
16762         <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
16763         <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
16764         (parse_ssa_operands) <case MODIFY_EXPR>: Call
16765         get_modify_expr_operands.
16766
16767 2006-03-03  Kazu Hirata  <kazu@codesourcery.com>
16768
16769         * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
16770         * tree-flow.h: Remove the prototype for
16771         referenced_var_lookup_if_exists.
16772
16773 2006-03-03  Steve Ellcey  <sje@cup.hp.com>
16774
16775         PR rtl-optimization/26345
16776         PR target/19061
16777         * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
16778
16779 2006-03-03  Roger Sayle  <roger@eyesopen.com>
16780
16781         PR tree-optimization/26524
16782         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
16783         fold_convert to create a constant of the appropriate type.
16784
16785 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
16786
16787         * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16788         SYMBOL_REF_IN_BLOCK_P.
16789         * doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
16790         of SYMBOL_FLAG_IN_BLOCK.
16791         * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
16792         instead of SYMBOL_REF_IN_BLOCK_P.
16793         * explow.c (use_anchored_address): Likewise.
16794         * rtl.c (rtx_size): Likewise.
16795         * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
16796         instead of SYMBOL_FLAG_IN_BLOCK.
16797         (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16798         SYMBOL_REF_IN_BLOCK_P.
16799         (assemble_variable): Likewise.
16800         (output_constant_def_contents): Likewise.
16801         (output_constant_pool): Likewise.
16802         (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
16803         instead of SYMBOL_FLAG_IN_BLOCK.
16804         * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16805         SYMBOL_REF_IN_BLOCK_P.
16806         (SYMBOL_REF_BLOCK): Likewise.
16807         (SYMBOL_REF_OFFSET): Likewise.
16808         (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16809         SYMBOL_REF_IN_BLOCK_P.
16810         (SYMBOL_FLAG_IN_BLOCK): Replace with...
16811         (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
16812         (SYMBOL_REF_IN_BLOCK_P): Replace with...
16813         (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
16814
16815 2006-03-03  Jakub Jelinek  <jakub@redhat.com>
16816
16817         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
16818
16819 2006-03-02  Roger Sayle  <roger@eyesopen.com>
16820
16821         * simplify-rtx.c (simplify_unary_operation): When simplifying
16822         (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
16823         that we perform the right shift in the appropriate mode, and
16824         then extend or truncate the result to requested mode.
16825
16826 2006-03-03  Zdenek Dvorak <dvorakz@suse.cz>
16827
16828         * gengtype.c (main): Handle double_int type.
16829         * tree.h (struct tree_int_cst): Make type of int_cst double_int.
16830         * double-int.c: New file.
16831         * double-int.h: New file.
16832         * system.h: Include doubleint.h.
16833         * Makefile.in (SYSTEM_H): Include double-int.h.
16834         (double-int.o): Add.
16835
16836 2006-03-03  Joseph S. Myers  <joseph@codesourcery.com>
16837
16838         PR bootstrap/26478
16839         * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
16840         copying over it.
16841
16842 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
16843
16844         * tree-vrp.c (remove_range_assertions): Do not update statements
16845         unnecessarily.
16846
16847 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
16848
16849         * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
16850         cleanup.
16851         * gcse.c (rest_of_handle_gcse): Ditto.
16852         * except.c (gate_handle_eh): Ditto.
16853         * cfgcleanup.c (rest_of_handle_jump2): Ditto.
16854         * basic-block.h (CLEANUP_PRE_LOOP): Remove.
16855
16856 2006-03-02  Eric Christopher  <echristo@apple.com>
16857
16858         * config/i386/i386.c (machopic_output_stub): Add indirection to
16859         jump.
16860
16861 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
16862
16863         * loop.c: Removed.
16864
16865 2006-03-02  David S. Miller  <davem@sunset.davemloft.net>
16866
16867         Sun Niagara specific optimizations.
16868         * config.gcc: Recognize niagara as target.
16869         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
16870         (TARGET_CPU_niagara): Define.
16871         (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
16872         (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
16873         (CPP_CPU_SPEC): Handle -mcpu=niagara.
16874         (ASM_CPU_SPEC): Likewise.
16875         (PROCESSOR_NIAGARA): New enum entry.
16876         (REGISTER_MOVE_COST): Handle Niagara.
16877         (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
16878         * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
16879         (sparc_override_options): Recognize "niagara", set appropriate
16880         default MASK_* values for it, and align functions to 32-bytes
16881         by default just like ULTRASPARC/ULTRASPARC3.
16882         (sparc_initialize_trampoline): Handle niagara like ultrasparc.
16883         (sparc64_initialize_trampoline): Likewise.
16884         (sparc_use_sched_lookahead): Use zero for niagara.
16885         (sparc_issue_rate): Use one for niagara.
16886         * config/sparc/niagara.md: New file.
16887         * config/sparc/sparc.md: Include it.
16888         * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
16889         ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
16890         when default cpu is niagara.
16891         (CPP_CPU_SPEC): Handle -mcpu=niagara.
16892         (ASM_CPU_SPEC): Likewise.
16893         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
16894         when default cpu is niagara.
16895         (ASM_CPU_SPEC): Handle -mcpu=niagara.
16896         * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
16897         just like v9/ultrasparc/ultrasparc3.
16898         * doc/invoke.texi: Add documentation for "niagara" and improve
16899         existing documentation for ultrasparc variants.
16900
16901 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
16902
16903         * tree-ssa-operands.c (update_stmt_operands): Update documentation.
16904
16905 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
16906
16907         * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
16908         (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
16909         and say that only one is needed.
16910         * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
16911         * target.h (have_switchable_bss_sections): New hook.
16912         * explow.c (use_anchored_address): Check that the symbol is in a block.
16913         * varasm.c (tls_comm_section, comm_section, lcomm_section)
16914         (bss_noswitch_section): New variables.
16915         (get_unnamed_section): Add SECTION_UNNAMED to the flags.
16916         (get_noswitch_section): New function.
16917         (get_block_for_section): Allow SECT to be null.
16918         (unlikely_text_section_p): Use SECTION_STYLE.
16919         (bss_initializer_p): New function.
16920         (get_variable_section): Move earlier in file.  Take a new argument,
16921         prefer_noswitch_p.  Move bss checks from assemble_variable to here.
16922         Return one of the new *_sections in such cases.
16923         (get_block_for_decl): New function, extracting some logic from
16924         use_blocks_for_decl_p.
16925         (change_symbol_section): Remove in favor of...
16926         (change_symbol_block): ...this new function.
16927         (use_blocks_for_decl_p): Remove checks now performed by
16928         get_block_for_decl.
16929         (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
16930         (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
16931         (emit_local, emit_bss, emit_common): ...these new functions.
16932         Return true if the alignment was honored.
16933         (emit_tls_common): New function.
16934         (asm_emit_uninitialised): Delete.
16935         (assemble_variable_noswitch): New function, split out from...
16936         (assemble_variable): ...here.  Don't make decisions about common
16937         variables here.  Globalize all public decls that go into non-common
16938         sections.  Check whether SYMBOL_REF_BLOCK is null.
16939         (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
16940         (output_constant_pool): Likewise.
16941         (init_varasm_once): Initialize the new section variables.
16942         (have_global_bss_p): New function.
16943         (categorize_decl_for_section): Use bss_initializer_p.
16944         (switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
16945         (place_block_symbol): Assert that the symbol must be in a block.
16946         * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
16947         (TARGET_INITIALIZER): Include it.
16948         * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
16949         * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
16950         (SECTION_MACH_DEP): Bump by two.
16951         (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
16952         (unnamed_section): Mention SECTION_UNNAMED in comment.
16953         (named_section): Likewise SECTION_NAMED.
16954         (noswitch_section_callback): New type.
16955         (noswitch_section): New structure.
16956         (section): Add a noswitch_section alternative.
16957         (SECTION_STYLE): New macro.
16958         (tls_comm_section, comm_section, lcomm_section): Declare.
16959         (bss_noswitch_section, have_global_bss_p): Declare.
16960         * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
16961         * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
16962         Override.
16963         * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
16964         * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
16965         Override.
16966
16967 2006-03-02  Daniel Berlin <dberlin@dberlin.org>
16968
16969         * tree-vrp.c (execute_vrp): Return value.
16970         * regrename.c (rest_of_handle_regrename): Ditto.
16971         * tree-into-ssa.c (rewrite_into_ssa): Ditto.
16972         * tree-complex.c (tree_lower_complex): Ditto.
16973         (tree_lower_complex_O0): Ditto.
16974         * tracer.c (rest_of_handle_tracer): Ditto.
16975         * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
16976         * postreload.c (rest_of_handle_postreload): Ditto.
16977         * tree-tailcall.c (execute_tail_recursion): Ditto.
16978         (execute_tail_calls): Ditto.
16979         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16980         * tree.h (init_function_for_compilation): Ditto.
16981         * ipa-cp.c (ipcp_driver): Ditto.
16982         * tree-scalar-evolution.c (scev_const_prop): Ditto.
16983         * tree-scalar-evolution.h (scev_const_prop): Ditto.
16984         * final.c (compute_alignments): Ditto.
16985         (rest_of_handle_final): Ditto.
16986         (rest_of_handle_shorten_branches): Ditto.
16987         (rest_of_clean_state): Ditto.
16988         * omp-low.c (execute_expand_omp): Ditto.
16989         (execute_lower_omp): Ditto.
16990         * tree-ssa-dse.c (tree_ssa_dse): Ditto.
16991         * ipa-reference.c (static_execute): Ditto.
16992         * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
16993         * reorg.c (rest_of_handle_delay_slots): Ditto.
16994         (rest_of_handle_machine_reorg): Ditto.
16995         * cgraphunit.c (rebuild_cgraph_edges): Ditto.
16996         * flow.c (recompute_reg_usage): Ditto.
16997         (rest_of_handle_remove_death_notes): Ditto.
16998         (rest_of_handle_life): Ditto.
16999         (rest_of_handle_flow2): Ditto.
17000         * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
17001         * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
17002         (do_ssa_store_ccp): Ditto.
17003         (execute_fold_all_builtins): Ditto.
17004         * mode-switching.c (rest_of_handle_mode_switching): Ditto.
17005         * modulo-sched.c (rest_of_handle_sms): Ditto.
17006         * ipa-pure-const.c (static_execute): Ditto.
17007         * cse.c (rest_of_handle_cse): Ditto.
17008         (rest_of_handle_cse2): Ditto.
17009         * web.c (rest_of_handle_web): Ditto.
17010         * tree-stdarg.c (execute_optimize_stdarg): Ditto.
17011         * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
17012         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
17013         * tree-nrv.c (tree_nrv): Ditto.
17014         (execute_return_slot_opt): Ditto.
17015         * tree-ssa-alias.c (compute_may_aliases): Ditto.
17016         (create_structure_vars): Ditto.
17017         * loop-init.c (rtl_loop_init): Ditto.
17018         (rtl_loop_done): Ditto.
17019         (rtl_move_loop_invariants): Ditto.
17020         (rtl_unswitch): Ditto.
17021         (rtl_unroll_and_peel_loops): Ditto.
17022         (rtl_doloop): Ditto.
17023         * gimple-low.c (lower_function_body): Ditto.
17024         (mark_used_blocks): Ditto.
17025         * tree-ssa-sink.c (execute_sink_code): Ditto.
17026         * ipa-inline.c (cgraph_decide_inlining): Ditto.
17027         (cgraph_early_inlining): Ditto.
17028         * global.c (rest_of_handle_global_alloc): Ditto.
17029         * jump.c (cleanup_barriers): Ditto.
17030         (purge_line_number_notes): Ditto.
17031         * ifcvt.c (rest_of_handle_if_conversion): Ditto.
17032         (rest_of_handle_if_after_reload): Ditto.
17033         * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
17034         (tree_ssa_loop_im): Ditto.
17035         (tree_ssa_loop_unswitch): Ditto.
17036         (tree_vectorize): Ditto.
17037         (tree_linear_transform): Ditto.
17038         (tree_ssa_loop_ivcanon): Ditto.
17039         (tree_ssa_empty_loop): Ditto.
17040         (tree_ssa_loop_bounds): Ditto.
17041         (tree_complete_unroll): Ditto.
17042         (tree_ssa_loop_prefetch): Ditto.
17043         (tree_ssa_loop_ivopts): Ditto.
17044         (tree_ssa_loop_done): Ditto.
17045         * predict.c (tree_estimate_probability): Ditto.
17046         * recog.c (split_all_insns_noflow): Ditto.
17047         (rest_of_handle_peephole2): Ditto.
17048         (rest_of_handle_split_all_insns): Ditto.
17049         * tree-eh.c (lower_eh_constructs): Ditto.
17050         * regmove.c (rest_of_handle_regmove): Ditto.
17051         (rest_of_handle_stack_adjustments): Ditto.
17052         * local-alloc.c (rest_of_handle_local_alloc): Ditto.
17053         * function.c (instantiate_virtual_regs): Ditto.
17054         (init_function_for_compilation): Ditto.
17055         (rest_of_handle_check_leaf_regs): Ditto.
17056         * gcse.c (rest_of_handle_jump_bypass): Ditto.
17057         (rest_of_handle_gcse): Ditto.
17058         * ipa-type-escape.c (type_escape_execute): Ditto.
17059         * alias.c (rest_of_handle_cfg): Ditto.
17060         * tree-if-conv.c (main_tree_if_conversion): Ditto.
17061         * profile.c (rest_of_handle_branch_prob): Ditto.
17062         * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
17063         * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
17064         * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
17065         * tree-dfa.c (find_referenced_vars): Ditto.
17066         * except.c (set_nothrow_function_flags): Ditto.
17067         (convert_to_eh_region_ranges): Ditto.
17068         (rest_of_handle_eh): Ditto.
17069         * emit-rtl.c (unshare_all_rtl): Ditto.
17070         (remove_unnecessary_notes): Ditto.
17071         * except.h (set_nothrow_function_flags): Ditto.
17072         (convert_to_eh_region_ranges): Ditto.
17073         * cfgexpand.c (tree_expand_cfg): Ditto.
17074         * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
17075         * tree-ssa-pre.c (do_pre): Ditto.
17076         (execute_fre): Ditto.
17077         * cfgcleanup.c (rest_of_handle_jump): Ditto.
17078         (rest_of_handle_jump2): Ditto.
17079         * tree-sra.c (tree_sra): Ditto.
17080         * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
17081         (execute_mudflap_function_decls): Ditto.
17082         * tree-ssa-copy.c (do_copy_prop): Ditto.
17083         (do_store_copy_prop): Ditto.
17084         * ipa-prop.h (ipcp_driver): Ditto.
17085         * cfglayout.c (insn_locators_initialize): Ditto.
17086         * tree-ssa-forwprop.c
17087         (tree_ssa_forward_propagate_single_use_vars): Ditto.
17088         * cfglayout.h (insn_locators_initialize): Ditto.
17089         * tree-ssa-dce.c (tree_ssa_dce): Ditto.
17090         * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
17091         (execute_late_warn_uninitialized): Ditto.
17092         * rtl.h (cleanup_barriers): Ditto.
17093         (split_all_insns_noflow): Ditto.
17094         (purge_line_number_notes): Ditto.
17095         (unshare_all_rtl): Ditto.
17096         (remove_unnecessary_notes): Ditto.
17097         (recompute_reg_usage): Ditto.
17098         (variable_tracking_main): Ditto.
17099         * integrate.c (emit_initial_value_sets): Ditto.
17100         * integrate.h (emit_initial_value_sets): Ditto.
17101         * tree-optimize.c (execute_free_datastructures): Ditto
17102         (execute_free_cfg_annotations): Ditto.
17103         (execute_fixup_cfg): Ditto.
17104         (execute_cleanup_cfg_pre_ipa): Ditto.
17105         (execute_cleanup_cfg_post_optimizing): Ditto.
17106         (execute_init_datastructures): Ditto.
17107         * tree-object-size.c (compute_object_sizes): Ditto.
17108         * combine.c (rest_of_handle_combine): Ditto.
17109         * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
17110         * bb-reorder.c (duplicate_computed_gotos): Ditto.
17111         (rest_of_handle_reorder_blocks): Ditto.
17112         (rest_of_handle_partition_blocks): Ditto.
17113         * var-tracking.c (variable_tracking_main): Ditto.
17114         * tree-profile.c (tree_profiling): Ditto.
17115         * tree-vect-generic.c (expand_vector_operations): Ditto.
17116         * reg-stack.c (rest_of_handle_stack_regs): Ditto.
17117         * sched-rgn.c (rest_of_handle_sched): Ditto.
17118         (rest_of_handle_sched2): Ditto.
17119         * basic-block.h (free_bb_insn): Ditto.
17120         * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
17121         * tree-cfg.c (execute_build_cfg): Ditto.
17122         (remove_useless_stmts): Ditto.
17123         (split_critical_edges): Ditto.
17124         (execute_warn_function_return): Ditto.
17125         (execute_warn_function_noreturn): Ditto.
17126         * tree-ssa-reassoc.c (execute_reassoc): Ditto.
17127         * cfgrtl.c (free_bb_for_insn): Ditto.
17128         * passes.c (execute_one_pass): Run additional
17129         todos returned by execute function.
17130         * tree-pass.h (struct tree_opt_pass): Make execute
17131         return a value.
17132
17133 2006-03-02  Richard Guenther  <rguenther@suse.de>
17134
17135         * tree-ssa-alias.c (find_used_portions): Consider taking
17136         the address as making the variable not write-only.
17137
17138 2006-03-02  Nick Clifton  <nickc@redhat.com>
17139
17140         * config.gcc (default_use_cxa_atexit): Extend the description of
17141         this configure variable.  Set its default value to "yes" for
17142         Linux, NetBSD and ELF targets on the assumption that they will
17143         use C libraries with the __cxa_atexit function.
17144
17145 2006-03-02  Ben Elliston  <bje@au.ibm.com>
17146
17147         * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
17148         parameter as unused to suppress a build warning.
17149
17150 2006-03-02  Ben Elliston  <bje@au.ibm.com>
17151
17152         * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
17153         config/dfp-bit.c.
17154
17155 2006-03-01  Roger Sayle  <roger@eyesopen.com>
17156
17157         PR other/26489
17158         * gthr-posix.h (__gthrw2): Define to take three parameters, the
17159         declared name, the weak reference name, and the typeof name.
17160         (__gthrw): Avoid expanding the declared name suffix.
17161         (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
17162
17163 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
17164
17165         * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
17166         from DWARF 3.
17167         (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
17168         DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
17169         DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
17170         DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
17171         DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
17172         (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
17173         (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
17174         DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
17175         (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
17176         DW_DS_leading_separate, DW_DS_trailing_separate): New.
17177         (DW_END_default, DW_END_big, DW_END_little): New.
17178         (DW_END_lo_user, DW_END_hi_user): Define.
17179         (DW_LNE_lo_user, DW_LNE_hi_user): Define.
17180         (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
17181         (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
17182         DW_LANG_D): New.
17183
17184 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
17185
17186         * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
17187         Update all users.
17188         * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
17189         Update all users.
17190         (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
17191         Update all users.
17192         * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
17193         Update all users.
17194         * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
17195         to 'symbol_mem_tag'.
17196         Update all users.
17197         * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
17198         rename.
17199
17200 2006-03-01  Roger Sayle  <roger@eyesopen.com>
17201
17202         * builtins.c (fold_builtin_copysign): Delete unreachable code.
17203
17204 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
17205
17206         PR target/25761
17207         * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
17208         MACHO_DYNAMIC_NO_PIC_P.
17209         (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
17210
17211 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
17212
17213         PR target/26389
17214         * config/darwin-protos.h (darwin_asm_output_anchor):
17215         Declare.
17216         * config/darwin-sections.def (cstring_section):
17217         Add SECTION_MERGE to the flags.
17218         (literal4_section): Likewise.
17219         (literal8_section): Likewise.
17220         (objc_selector_refs_section): Likewise.
17221         (objc_cls_refs_section): Likewise.
17222         * config/darwin.c (darwin_asm_output_anchor): New
17223         function.
17224         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
17225
17226 2006-03-01  Daniel Berlin  <dberlin@dberlin.org>
17227
17228         Fix PR tree-optimization/26443
17229         * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
17230         to todo and PROP_tmt_usage to properties_destroyed.
17231         * tree-ssa-ccp.c (pass_ccp): Ditto.
17232         (pass_store_ccp): Ditto.
17233         * tree-ssa-dom.c (pass_dominator): Ditto.
17234
17235 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
17236
17237         * tree-ssa-operands.c: Cleanup whitespace.
17238         (get_asm_expr_operands): Move before first invocation.
17239         (get_indirect_ref_operands): Likewise.
17240         (get_tmr_operands): Likewise.
17241         (get_call_expr_operands): Likewise.
17242         (append_def): Likewise.
17243         (append_use): Likewise.
17244         (append_v_may_def): Likewise.
17245         (append_v_must_def): Likewise.
17246         (add_call_clobber_ops): Likewise.
17247         (add_call_read_ops): Likewise.
17248         (add_stmt_operand): Likewise.
17249         (add_virtual_operand): Likewise.
17250         (build_ssa_operands): Likewise.
17251
17252 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
17253
17254         PR middle-end/26022
17255         Revert:
17256         PR middle-end/24437
17257         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
17258         with a call expr to ...
17259         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
17260
17261 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
17262
17263         * tree-vrp.c (extract_range_from_assert): Remove special
17264         handling for types with super-types.
17265
17266 2006-03-01  Ben Elliston  <bje@au.ibm.com>
17267
17268         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
17269         and powerpc64-*-linux* configurations.
17270         * config/t-dfprules: New file.
17271
17272         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
17273         Compile dfp-bit.c from the source directory using -DWIDTH and
17274         $DFP_CFLAGS to control the compilation of that file, rather than
17275         generating width-specific versions in the build directory.
17276         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
17277         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
17278
17279 2006-02-28  Zack Weinberg  <zackw@panix.com>
17280
17281         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
17282         continues to work.
17283
17284 2006-02-28  Eric Christopher  <echristo@apple.com>
17285
17286         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
17287         Set up IN_LIBGCC definition of TARGET_64BIT.
17288         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
17289
17290 2006-02-28  Roger Sayle  <roger@eyesopen.com>
17291
17292         PR middle-end/14752
17293         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
17294         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
17295         cases via the construction of "expr != 0".
17296
17297 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
17298
17299         * alias.c (alias_invariant, alias_invariant_size): Remove.
17300         (record_base_value): Remove.
17301         (memrefs_conflict_p): Don't look at alias_invariant.
17302         (end_alias_analysis): Don't free it.
17303         * alias.h (record_base_value): Remove prototype.
17304
17305 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
17306             Adam Nemet  <anemet@caviumnetworks.com>
17307
17308         * rtl.h (truncated_to_mode): Declare it.
17309         (struct rtl_hooks): Add reg_truncated_to_mode hook.
17310         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
17311         (RTL_HOOKS_INITIALIZER): Include it.
17312         * rtlhooks.c (reg_truncated_to_mode_general): New function.
17313         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
17314         reg_truncated_to_mode.
17315         * rtlanal.c (truncated_to_mode): Define it.
17316         * simplify-rtx.c (simplify_unary_operation_1): Use it.
17317
17318 2006-02-28  Jeff Law  <law@redhat.com>
17319
17320         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
17321         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
17322         the range allowed by TYPE_PRECISION.
17323
17324         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
17325
17326 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
17327
17328         PR tree-optimization/26419
17329         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
17330         values of n.
17331
17332 2006-02-27  Zack Weinberg  <zackw@panix.com>
17333
17334         * doc/md.texi: Fix typo in previous change.
17335
17336 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
17337
17338         * df.c: Remove.
17339
17340 2006-02-27  Zack Weinberg  <zackw@panix.com>
17341
17342         * rtl.def (define_constraint, define_register_constraint)
17343         (define_memory_constraint, define_address_constraint): New MD forms.
17344         * gensupport.c (process_rtx): Put define_constraint etc on the
17345         predicate queue.
17346         * genpreds.c (process_define_predicate): Adjust comment.  Validate
17347         the name, and call validate_exp to validate the expression.
17348         (mark_mode_tests, write_extract_subexp): Can assume correct input.
17349         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
17350         all callers changed.
17351         (validate_exp, needs_variable, struct constraint_data)
17352         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
17353         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
17354         (const_dbl_constraints, constraint_max_namelen)
17355         (have_register_constraints, have_memory_constraints)
17356         (have_address_constraints, have_address_constraints)
17357         (have_extra_constraints, have_const_int_constraints)
17358         (have_const_dbl_constraints, mangle, add_constraint)
17359         (process_define_constraint, process_define_register_constraint)
17360         (write_enum_constraint_num, write_lookup_constraint)
17361         (write_insn_constraint_len, write_regclass_for_constraint)
17362         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
17363         (write_insn_extra_memory_constraint)
17364         (write_insn_extra_address_constraint)
17365         (write_satisfies_constraint_fns): New.
17366         (write_tm_preds_h): If we have new-style constraint definitions,
17367         prototype the functions generated from them, and define the
17368         old constraint interface (still used by generic code) in terms of
17369         those functions.
17370         (write_insn_preds_c): If we have new-style constraint definitions,
17371         generate all relevant functions from those definitions.
17372         (main): Handle define_constraint etc.
17373         * genoutput.c (struct constraint_data, indep_constraints)
17374         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
17375         (mdep_constraint_len): New data structures and functions, defined
17376         #ifdef USE_MD_CONSTRAINTS.
17377         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
17378         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
17379         use new logic to validate operand constraints against constraint
17380         definitions.
17381         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
17382         defined.
17383         * defaults.h: If none of the old-style constraint macros are
17384         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
17385         old-style macros; and poison REG_CLASS_FROM_LETTER,
17386         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
17387         EXTRA_CONSTRAINT.
17388         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
17389         * doc/md.texi: Document new constraint-definition mechanism and the
17390         C interface it provides.  Remove references to old mechanism
17391         elsewhere in the document.
17392         (Machine Constraints): Use pathnames relative to gcc directory,
17393         i.e. config/ARCH/FILE.  Change i386 section to refer to
17394         config/i386/predicates.md; update that section to match docstrings.
17395         * doc/tm.texi: Move all documentation of the old constraint-
17396         definition macros to their own section, clearly mark as obsolete.
17397
17398         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
17399         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
17400         definitions.
17401         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17402         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
17403         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
17404         constraint strings.
17405         (splits and peepholes): Use satisfies_constraint_*.
17406         * config/i386/i386.c (memory_address_length)
17407         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
17408
17409 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
17410
17411         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
17412         scalar operation to be put back into the loop.
17413
17414 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
17415
17416         PR other/26208
17417         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
17418         (extract_cie_info): Handle S flag in augmentation string.
17419         (execute_cfa_program): If context->signal_frame, execute also
17420         fs->pc == context->ra instructions.
17421         (uw_frame_state_for): If context->signal_frame, don't subtract one
17422         from context->ra to find FDE.
17423         (uw_update_context_1): Set context->signal_frame to
17424         fs->signal_frame.
17425         (_Unwind_GetIPInfo): New function.
17426         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
17427         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
17428         of _Unwind_GetIP.
17429         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
17430         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
17431         * unwind-compat.c (_Unwind_GetIPInfo): New function.
17432         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
17433         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
17434         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
17435         * config/i386/linux-unwind.h (x86_fallback_frame_state,
17436         x86_64_fallback_frame_state): Set fs->signal_frame.
17437         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
17438         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
17439         (frob_update_context): Likewise.  Workaround missing S flag in
17440         Linux 2.6.12 - 2.6.16 kernel vDSOs.
17441         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
17442         Remove the psw_addr + 1 hack.
17443
17444 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
17445
17446         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
17447         with aggregates here.
17448         (find_func_aliases): Remove code for &<aggregate> from here.
17449
17450 2006-02-26  Roger Sayle  <roger@eyesopen.com>
17451
17452         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
17453         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
17454         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
17455         as (X & C) ne/eq 0.
17456
17457 2006-02-26  Roger Sayle  <roger@eyesopen.com>
17458
17459         PR middle-end/19983
17460         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
17461
17462 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
17463
17464         * opts.c (decode_options): Do not handle flag_strength_reduce.
17465         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
17466         and OPT_fstrength_reduce.
17467         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
17468         flag_prefetch_loop_arrays for being nonzero.
17469         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
17470         no-ops.
17471         (fprefetch-loop-arrays-rtl): Removed.
17472         (flag_prefetch_loop_arrays): Do not specify the value.
17473
17474         * doc/passes.texi: Update documentation of loop optimizer
17475         passes.
17476         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
17477         -frerun-loop-opt): Remove.
17478
17479 2006-02-26  Richard Guenther  <rguenther@suse.de>
17480
17481         PR tree-optimization/26421
17482         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
17483         in function calls that are ADDR_EXPRs as using the whole structure.
17484
17485 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
17486
17487         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
17488         * tree-pass.h (pass_loop_optimize): Remove.
17489         * passes.c (pass_loop_optimize): Never run it.
17490         * toplev.c (backend_init): Don't call init_loop.
17491         * opts.c (flag_loop_optimize_set): Remove.
17492         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
17493         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
17494         the old RTL loop optimizer when profiling enabled.
17495         * predict.c (tree_estimate_probability): Always strip builtin_expect.
17496         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
17497         pre-headers for the sake of the old RTL loop optimizer.
17498         * Makefile.in: Remove all references to loop.o.
17499
17500         * doc/invoke.texi: Remove all references to -floop-optimize
17501         and -frerun-loop-opt.
17502
17503 2006-02-26  Zack Weinberg  <zackw@panix.com>
17504
17505         * doc/md.texi (Machine Constraints): Refer to all files with paths
17506         relative to gcc directory (i.e. config/CPU/file).  Add missing
17507         @table @code ... @end table to M32C subsection.
17508
17509 2006-02-26  Roger Sayle  <roger@eyesopen.com>
17510
17511         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
17512         (X & 1) == 0.
17513         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
17514
17515 2006-02-26  Roger Sayle  <roger@eyesopen.com>
17516             James A. Morrison  <phython@gcc.gnu.org>
17517
17518         PR middle-end/21137
17519         * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
17520         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
17521         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
17522         signedness of the shift operation.
17523
17524 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
17525
17526         PR tree-optimization/26359
17527         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
17528
17529 2006-02-25  Roger Sayle  <roger@eyesopen.com>
17530
17531         * simplify-rtx.c (simplify_relational_operation_1): Simplify
17532         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
17533         as X == 0, and some symmetry related transformations.
17534         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
17535
17536 2006-02-25  Roger Sayle  <roger@eyesopen.com>
17537
17538         PR middle-end/23673
17539         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
17540         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
17541         symmetry related transformations.  Fold (X^C1) == C2 as
17542         X == (C1^C2).
17543
17544 2006-02-25  Juergen Weigert  <jw@suse.de>
17545         Richard Guenther  <rguenther@suse.de>
17546
17547         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
17548
17549 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
17550
17551         * combine.c (gen_lowpart_or_truncate): Call
17552         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
17553
17554 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
17555
17556         * doc/invoke.texi: Move -fopenmp description to "Options for
17557         Code Generation".
17558         Remove reference to -lgomp.
17559
17560 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
17561
17562         * doc/install.texi: Require GNU tar version 1.14.
17563
17564 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
17565
17566         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
17567         * doc/invoke.texi (C++ Dialect Options): Document
17568         -fno-use-cxa-get-exception-ptr.
17569         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
17570         * configure: Regenerate.
17571         * c.opt (fuse-cxa-get-exception-ptr): New.
17572         * c-opts.c (c_common_handle_option): Handle
17573         OPT_fuse_cxa_get_exception_ptr.
17574         * c-common.c (flag_use_cxa_atexit): Update documentation.
17575         (flag_use_cxa_get_exception_ptr): New.
17576         * c-common.h (flag_use_cxa_get_exception_ptr): New.
17577         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
17578         documentation.
17579         (C_COMMON_OVERRIDE_OPTIONS): New.
17580
17581 2006-02-24  Roger Sayle  <roger@eyesopen.com>
17582
17583         PR middle-end/24952
17584         * combine.c (try_combine): Explicitly check whether GET_CODE is
17585         a SET or a CLOBBER, instead on checking that it isn't a USE.
17586
17587 2006-02-24  Roger Sayle  <roger@eyesopen.com>
17588
17589         * fold-const.c (fold_comparison): New subroutine of fold_binary
17590         containing transformations common to both the equality and
17591         ordering relational operators, factored out of fold_binary.
17592         (fold_binary): Separate out the equality operators (EQ_EXPR
17593         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
17594         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
17595         transformations common to both.
17596         (fold_div_compare): Fix latent bugs in the previously unreachable
17597         LT_EXPR and GE_EXPR cases.
17598
17599 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
17600
17601         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
17602         decl libname for clog to __clog on AIX.
17603
17604         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
17605
17606 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
17607
17608         PR target/26453
17609         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
17610         output traceback table for thunks.  Localise rs6000_stack_info call.
17611
17612 2006-02-23  Roger Sayle  <roger@eyesopen.com>
17613             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17614
17615         * gthr-posix.h (__gthrw): Fix typo in comment.
17616
17617 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
17618
17619         * doc/cpp.texi (Character sets): Document that we do support
17620         input files to be in any character set.
17621
17622 2006-02-23  Jeff Law  <law@redhat.com>
17623
17624         * tree.h (PHI_ARG_NONZERO): Remove.
17625         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
17626         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
17627         node to the new node.
17628
17629         PR tree-optimization/26425
17630         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
17631         min/max, then assume its varying.
17632
17633 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
17634
17635         PR rtl-optimization/26316
17636         * rtlanal.c (enum may_trap_p_flags): New.
17637         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
17638         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
17639         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
17640         (may_trap_after_code_motion_p): New function.
17641         * loop-invariant.c (find_identical_invariants): Fix dump formating.
17642         (find_invariant_insn): Use may_trap_after_code_motion_p.
17643         * rtl.h (may_trap_after_code_motion_p): Declare.
17644
17645 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
17646
17647         * emit-rtl.c (immed_double_const): Cleanup.
17648
17649 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
17650
17651         Fix PR tree-optimization/26376
17652         * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
17653         remove assert.
17654
17655 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
17656
17657         PR middle-end/26412
17658         * gimplify.c (omp_add_variable): Guard variable size decl test with
17659         DECL_SIZE (decl) check.
17660
17661 2006-02-23  Richard Guenther  <rguenther@suse.de>
17662
17663         PR middle-end/26439
17664         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
17665         like aggregate types.
17666
17667 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
17668
17669         * configure.ac: Add --with{,out}-long-double-128 configure option.
17670         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
17671         * configure: Rebuilt.
17672         * config.in: Rebuilt.
17673         * doc/install.texi (Options specification): Document
17674         --with-long-double-128.
17675
17676         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
17677         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
17678         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
17679         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
17680
17681 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
17682
17683         * config/s390/s390.c (override_options): Handle
17684         TARGET_DEFAULT_LONG_DOUBLE_128.
17685
17686         * config/alpha/alpha.c (override_options): Handle
17687         TARGET_DEFAULT_LONG_DOUBLE_128.
17688
17689         * config/sparc/sparc.c (sparc_override_options): Handle
17690         TARGET_DEFAULT_LONG_DOUBLE_128.
17691
17692 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
17693
17694         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
17695         (real-install-headers-tar, real-install-headers-cpio)
17696         (real-install-headers-cp): New targets.
17697
17698 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
17699
17700         * tree.h (variable_section): Delete.
17701         * varasm.c (variable_section): Delete.
17702
17703 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
17704
17705         * install.texi: Add notes on install.texi2html.
17706         (Building in parallel): Do not use footnotes.
17707
17708 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
17709
17710         PR libgomp/26234
17711         * doc/install.texi (Configuration): Document --disable-libgomp.
17712
17713 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
17714
17715         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
17716
17717 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
17718
17719         * config/i386/sse.md (vec_extractv2df_1_sse): New.
17720         (vec_extractv2df_0_sse): New.
17721
17722 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
17723
17724         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
17725         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
17726         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
17727         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
17728         to the result of the expression.
17729         (def_cfa_1): Adjust.
17730         (frame_pointer_cfa_offset): Rename to...
17731         (frame_pointer_fb_offset): ... this.  Adjust all uses.
17732         (convert_cfa_to_loc_list): Rename to...
17733         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
17734         Pass it on to build_cfa_loc.
17735         (compute_frame_pointer_to_cfa_displacement): Rename to...
17736         (compute_frame_pointer_to_fb_displacement): ... this.  New
17737         offset parameter.  Use it in computation.
17738         (gen_subprogram_die): Compute cfa_fb_offset with the new
17739         macro, and use it to compute the fb loc list and the
17740         displacement.
17741
17742 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
17743
17744         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
17745         replaced with register_operand.
17746         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
17747         non-DREG is expensive.
17748         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
17749         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
17750         involving memory.
17751
17752 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
17753
17754         * doc/install.texi2html: Use set -e.
17755
17756 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
17757
17758         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
17759         (ASM_OUTPUT_SHARED_LOCAL): Delete.
17760         * doc/invoke.texi (-fshared-data): Delete.
17761         * common.opt (fshared-data): Delete.
17762         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
17763         (assemble_static_space): Remove #if 0 code.
17764         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
17765         (ASM_OUTPUT_SHARED_LOCAL): Poison.
17766         * config/cris/cris.h: Remove FIXME.
17767
17768 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
17769
17770         * doc/sourcebuild.texi (Front End Directory): No more double-colon
17771         hooks.
17772
17773 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
17774
17775         PR middle-end/26379
17776         * combine.c (simplify_shift_const_1): Disable nested shifts
17777         optimization for vector shifts.
17778
17779 2006-02-20  Roger Sayle  <roger@eyesopen.com>
17780
17781         PR tree-optimization/26361
17782         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
17783         of unsigned integer types.
17784
17785 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
17786
17787         * tree-chrec.c (eq_evolutions_p): New.
17788         * tree-chrec.h (eq_evolutions_p): Declared.
17789         * tree-data-ref.c: Fix formatting.
17790         (datadep_stats, dependence_stats): New.
17791         (gcd): Moved...
17792         (print_direction_vector): New.
17793         (dump_data_dependence_relation): Use print_direction_vector.
17794         (object_analysis, create_data_ref): Handle COMPONENT_REF.
17795         (compute_subscript_distance): Static.
17796         (initialize_data_dependence_relation): Static.  Get the number
17797         of loops surrounding the references from the callers, and initialize
17798         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
17799         base_object_differ_p analyzers.
17800         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
17801         compute_overlap_steps_for_affine_1_2,
17802         analyze_subscript_affine_affine): Count the classified dependences.
17803         Print a message when a test failed.
17804         (can_use_analyze_subscript_affine_affine): New.
17805         (analyze_siv_subscript): Compute the data dependences on symbolic
17806         scevs that verify can_use_analyze_subscript_affine_affine.
17807         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
17808         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
17809         Handle symbolic scevs.
17810         (analyze_overlapping_iterations): Let symbolic affine scevs to be
17811         analyzed.
17812         (subscript_dependence_tester): Moved...
17813         (build_classic_dist_vector, build_classic_dir_vector): Don't use
17814         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
17815         DDR_SIZE_VECT instead of getting it in parameter.
17816         (subscript_dependence_tester): ... here.  Take as a parameter
17817         loop_nest_depth.  Call build_classic_dist_vector and
17818         build_classic_dir_vector.
17819         (compute_affine_dependence): Update subscript_dependence_tester
17820         parameters.  Update datadep_stats counters.  Call
17821         compute_subscript_distance.
17822         (compute_self_dependence): Save the dist and dir vectors.  Call
17823         compute_subscript_distance.
17824         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
17825         (compute_all_dependences): Reorder parameters as they were before
17826         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
17827         compute_subscript_distance.  Update the use of
17828         compute_affine_dependence and initialize_data_dependence_relation.
17829         (find_data_references_in_loop): Handle COMPONENT_REF.
17830         (compute_data_dependences_for_loop): Initialize dependence_stats.
17831         Don't call build_classic_dist_vector and build_classic_dir_vector.
17832         Update the parameters of initialize_data_dependence_relation and
17833         compute_all_dependences.  Print the statistics from datadep_stats.
17834         (analyze_all_data_dependences): Static.  Not used until the pass for
17835         checking the data dependences is contributed.
17836         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
17837         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
17838         (initialize_data_dependence_relation, compute_affine_dependence,
17839         analyze_all_data_dependences, compute_subscript_distance): Removed.
17840         (print_direction_vector): New.
17841         * lambda.h (gcd): ... here.
17842         (lambda_vector_gcd): Moved here from gcd_vector.
17843         * lambda-code.c (gcd, gcd_vector): Removed.
17844         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
17845         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
17846
17847 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
17848
17849         * ipa-type-escape.c: Tidy some comments and white space.
17850         * tree-ssa-operands.c: Likewise.
17851
17852 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
17853
17854         PR tree-opt/25879
17855         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
17856         (dump_decl_name): Do not walk the decl tree chains.
17857         * tree-pass.h (TDF_CHAIN): Remove.
17858
17859 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17860
17861         * Makefile.in (C): Remove
17862         (PROTO): Remove
17863         (.PHONY): Remove C and PROTO
17864
17865 2006-02-20  Roger Sayle  <roger@eyesopen.com>
17866
17867         PR middle-end/26236
17868         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
17869         deprecated CHAR_TYPE tree code.
17870
17871 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
17872
17873         * configure.ac (target_list): Add install-info, dvi, html.
17874         * configure: Regenerate.
17875
17876         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
17877         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
17878         treelang/Make-lang.in: Do not use double-colon rules.
17879
17880 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
17881
17882         * tree.h (struct tree_memory_tag): Add is_used_alone member.
17883         (TMT_USED_ALONE): New macro.
17884         * tree-pass.h (PROP_tmt_usage): New property.
17885         (TODO_update_tmt_usage): New todo.
17886         * tree-ssa-alias.c (updating_used_alone): New variable.
17887         (recalculate_used_alone): New function.
17888         (compute_may_aliases): Set updating_used_alone, call
17889         recalculate_used_alone.
17890         * tree-sra.c (pass_sra): Note that this pass destroys
17891         PROP_tmt_usage, and add TODO_update_tmt_usage.
17892         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
17893         * tree-flow.h (updating_used_alone): Prototype.
17894         (recalculate_used_alone): Ditto.
17895         * passes.c (execute_todo): Add code to set updating_used_alone,
17896         and call recalculate.
17897         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
17898         for clobber if used alone, and add assert to verify used_alone
17899         status.
17900
17901 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
17902
17903         * config/s390/s390.c (legitimize_pic_address): Assertions checking
17904         for non tls symbols added.
17905         (legitimize_address): Do nothing for PLUS expressions if one of the
17906         addends is a tls symbol reference.
17907
17908 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
17909
17910         PR bootstrap/25476
17911
17912         * Makefile.in (LDFLAGS): Define from autoconf substitution.
17913
17914         * Makefile.in (BOOTSTRAPPING): New.
17915         (quickstrap): New definition if BOOTSTRAPPING=yes.
17916
17917         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
17918         * configure.ac: Substitute all_selected_languages with the languages
17919         that were configured.  For all the other variables except
17920         lang_specs_files, include all the languages in the tree.
17921         * configure: Regenerate.
17922
17923         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
17924         if there is one.  Run the commands to run fixincludes in the same
17925         subshell.
17926
17927         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
17928         * doc/install.texi: Document exact conventions for searching target tools.
17929         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
17930         something more about building an Ada cross-compiler.  Don't list GNU Make
17931         requirements which affect all platforms.
17932
17933 2006-02-19  Roger Sayle  <roger@eyesopen.com>
17934
17935         PR middle-end/19543
17936         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
17937         only equivalent if the have both the same mode and precision.
17938
17939 2006-02-20  Ben Elliston  <bje@au.ibm.com>
17940
17941         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
17942
17943 2006-02-19  Roger Sayle  <roger@eyesopen.com>
17944             Steven Bosscher  <stevenb.gcc@gmail.com>
17945
17946         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
17947         constant pool references to identify stack mode constants.
17948         * rtlanal.c (constant_pool_constant_p): New predicate to check
17949         whether operand is a floating point constant in the pool.
17950         * rtl.h (constant_pool_constant_p): Prototype here.
17951         * loop.c (scan_loop): Avoid hoisting constants from the constant
17952         pool on STACK_REGS targets.
17953         (load_mems): Likewise.
17954         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
17955         loads into x87 registers expensive in terms of register pressure.
17956
17957 2006-02-19  Roger Sayle  <roger@eyesopen.com>
17958
17959         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
17960         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
17961
17962 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
17963
17964         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
17965         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
17966
17967 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
17968
17969         * doc/invoke.texi: Document -fipa-pta.
17970         * common.opt: Add ipa-pta option.
17971         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
17972         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
17973         (do_ds_constraint): Ditto.
17974         (get_constraint_for): Only add to referenced_vars if
17975         referenced_vars exists.
17976         (insert_into_field_list): Rewrite to do this unsorted.
17977         (insert_into_field_list_sorted): Rename old insert_into_field_list
17978         to this.
17979         (create_function_info_for): Use insert_into_field_list_sorted.
17980         (create_variable_info_for): Rewrite so it uses unsorted version,
17981         since the field list is sorted.
17982         (intra_create_variable_infos): Only add to referenced_vars if
17983         referenced_vars exists.
17984         (ipa_pta_execute): Init heapvars, and delete when done.
17985         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
17986
17987 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17988
17989         * doc/install.texi: Add missing `@samp'.
17990
17991 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
17992
17993         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
17994         Use the arguments.
17995
17996 2006-02-18  Mark Wielaard  <mark@klomp.org>
17997
17998         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
17999         who added new 4.1 features, bug fixes and integration support.
18000
18001 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
18002
18003         PR target/26350
18004         * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
18005         MEM for ABI_V4 pic.
18006
18007 2006-02-18  Richard Sandiford  <richard@codesourcery.com>
18008
18009         * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
18010         * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
18011         (copy_insn_1): Likewise.  Don't copy each field individually.
18012         Reindent.
18013         * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
18014         of RTX_SIZE.
18015         * reload1.c (eliminate_regs): Use shallow_copy_rtx.
18016         * rtl.c (rtx_size): Rename variable to...
18017         (rtx_code_size): ...this.
18018         (rtx_size): New function.
18019         (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
18020         (copy_rtx): Use shallow_copy_rtx.  Don't copy each field individually.
18021         Reindent.
18022         (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
18023         * rtl.h (rtx_code_size): New variable.
18024         (rtx_size): Change from a variable to a function.
18025         (RTX_SIZE): Rename to...
18026         (RTX_CODE_SIZE): ...this.
18027
18028         PR target/9703
18029         PR tree-optimization/17106
18030         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
18031         (Anchored Addresses): New section.
18032         * doc/invoke.texi (-fsection-anchors): Document.
18033         * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
18034         (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
18035         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
18036         * hooks.c (hook_bool_mode_rtx_false): New function.
18037         * hooks.h (hook_bool_mode_rtx_false): Declare.
18038         * gengtype.c (create_optional_field): New function.
18039         (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
18040         SYMBOL_REF_IN_BLOCK_P is true.
18041         * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
18042         (min_anchor_offset, max_anchor_offset): Likewise.
18043         (use_anchors_for_symbol_p): New hook.
18044         * toplev.c (compile_file): Call output_object_blocks.
18045         (target_supports_section_anchors_p): New function.
18046         (process_options): Check that -fsection-anchors is only used on
18047         targets that support it and when -funit-at-a-time is in effect.
18048         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
18049         if the decl doesn't have one.
18050         * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
18051         * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
18052         of force_const_mem through use_anchored_address.
18053         (expand_expr_constant): New function.
18054         (expand_expr_addr_expr_1): Call it.  Use the same modifier when
18055         calling expand_expr for INDIRECT_REF.
18056         (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
18057         for all modifiers except EXPAND_INITIALIZER.  Use expand_expr_constant.
18058         * expr.h (use_anchored_address): Declare.
18059         * loop-unroll.c: Don't declare rtx vectors here.
18060         * explow.c: Include output.h.
18061         (validize_mem): Call use_anchored_address.
18062         (use_anchored_address): New function.
18063         * common.opt (-fsection-anchors): New switch.
18064         * varasm.c (object_block_htab, anchor_labelno): New variables.
18065         (hash_section, object_block_entry_eq, object_block_entry_hash)
18066         (use_object_blocks_p, get_block_for_section, create_block_symbol)
18067         (use_blocks_for_decl_p, change_symbol_section): New functions.
18068         (get_variable_section): New function, split out from assemble_variable.
18069         (make_decl_rtl): Create a block symbol if use_object_blocks_p and
18070         use_blocks_for_decl_p say so.  Use change_symbol_section if the
18071         symbol has already been created.
18072         (assemble_variable_contents): New function, split out from...
18073         (assemble_variable): ...here.  Don't output any code for
18074         block symbols; just pass them to place_block_symbol.
18075         Use get_variable_section and assemble_variable_contents.
18076         (get_constant_alignment, get_constant_section, get_constant_size): New
18077         functions, split from output_constant_def_contents.
18078         (build_constant_desc): Create a block symbol if use_object_blocks_p
18079         says so.  Or into SYMBOL_REF_FLAGS.
18080         (assemble_constant_contents): New function, split from...
18081         (output_constant_def_contents): ...here.  Don't output any code
18082         for block symbols; just pass them to place_section_symbol.
18083         Use get_constant_section and get_constant_alignment.
18084         (force_const_mem): Create a block symbol if use_object_blocks_p and
18085         use_blocks_for_constant_p say so.  Or into SYMBOL_REF_FLAGS.
18086         (output_constant_pool_1): Add an explicit alignment argument.
18087         Don't switch sections here.
18088         (output_constant_pool): Adjust call to output_constant_pool_1.
18089         Switch sections here instead.  Don't output anything for block symbols;
18090         just pass them to place_block_symbol.
18091         (init_varasm_once): Initialize object_block_htab.
18092         (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
18093         (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
18094         (place_block_symbol, get_section_anchor, output_object_block)
18095         (output_object_block_htab, output_object_blocks): New functions.
18096         * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
18097         (TARGET_ASM_OUT): Include it.
18098         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
18099         (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
18100         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
18101         (TARGET_INITIALIZER): Include them.
18102         * rtl.c (rtl_check_failed_block_symbol): New function.
18103         * rtl.h: Include vec.h.  Declare heap and gc rtx vectors.
18104         (block_symbol, object_block): New structures.
18105         (rtx_def): Add a block_symbol field to the union.
18106         (BLOCK_SYMBOL_CHECK): New macro.
18107         (rtl_check_failed_block_symbol): Declare.
18108         (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
18109         (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
18110         (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
18111         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
18112         * output.h (output_section_symbols): Declare.
18113         (object_block): Name structure.
18114         (place_section_symbol, get_section_anchor, default_asm_output_anchor)
18115         (default_use_anchors_for_symbol_p): Declare.
18116         * Makefile.in (RTL_BASE_H): Add vec.h.
18117         (explow.o): Depend on output.h.
18118         * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
18119         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
18120         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
18121         (rs6000_use_blocks_for_constant_p): New function.
18122
18123 2006-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18124
18125         * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
18126
18127 2006-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
18128
18129         PR tree-opt/25680
18130         * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
18131         IMAGPART_EXPR.
18132
18133 2006-02-18  Diego Novillo  <dnovillo@redhat.com>
18134
18135         * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
18136         is_aliased.
18137         Update all users.
18138
18139 2006-02-18  Jakub Jelinek  <jakub@redhat.com>
18140
18141         PR middle-end/26334
18142         * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
18143         instead of DECL_REGISTER.
18144
18145 2006-02-18  Olivier Hainque  <hainque@adacore.com>
18146
18147         PR ada/13408
18148         * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
18149
18150 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
18151
18152         PR target/24837
18153         * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
18154         * opth-gen.awk: Handle Var and InverseMask together.
18155         * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
18156         * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
18157         (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
18158         (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
18159         used together.
18160         (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18161         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
18162         * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
18163         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18164         LINUX_DYNAMIC_LINKER): Define.
18165         (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
18166         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
18167         TARGET_GLIBC.
18168         * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18169         (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
18170         * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18171         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18172         (TARGET_C99_FUNCTIONS): Don't define.
18173         * config/i386/linux.h (DYNAMIC_LINKER): Rename to
18174         GLIBC_DYNAMIC_LINKER.
18175         (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
18176         * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
18177         GLIBC_DYNAMIC_LINKER64): Define.
18178         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
18179         LINUX_DYNAMIC_LINKER64.
18180         * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18181         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18182         * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
18183         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18184         * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18185         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18186         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
18187         GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
18188         UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
18189         (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
18190         and LINUX_DYNAMIC_LINKER32.
18191         * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18192         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18193         * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
18194         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18195         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
18196         TARGET_GLIBC.
18197         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
18198         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
18199         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18200         CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18201         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
18202         (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
18203         (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
18204         * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
18205         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18206         LINUX_DYNAMIC_LINKER): Define.
18207         (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
18208         * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
18209         GLIBC_DYNAMIC_LINKER64): Define.
18210         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
18211         LINUX_DYNAMIC_LINKER64.
18212         * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18213         (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18214         * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
18215         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18216         LINUX_DYNAMIC_LINKER): Define.
18217         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18218         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
18219         * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
18220         GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
18221         UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
18222         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
18223         (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
18224         (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
18225         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
18226         * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18227         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18228         * doc/invoke.texi (-muclibc): Remove caveat about supported
18229         targets.
18230
18231 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
18232
18233         * doc/cpp.texi (__TIMESTAMP__): Document.
18234
18235 2006-02-17  Roger Sayle  <roger@eyesopen.com>
18236
18237         PR middle-end/25600
18238         * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
18239         C is one less than the width of X (and related transformations).
18240         * simplify-rtx.c (simplify_unary_operation_1): Transform
18241         (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
18242         depending on STORE_FLAG_VALUE, were C is one less then the
18243         width of X.
18244
18245 2006-02-17  Daniel Berlin  <dberlin@dberlin.org>
18246
18247         Fix PR tree-optimization/26341
18248         * tree-ssa-operands.c (add_virtual_operand): Remove assert
18249         about NAME_MEMORY_TAG's.
18250
18251 2006-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18252
18253         PR target/26255
18254         * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
18255         with hardware float support, and software float support.  Add fcpy
18256         alternative to hardware patterns.  Add alternatives to copy between
18257         general and floating-point registers to the 32-bit pattern.
18258         * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
18259         secondary reload to load a QI or HI mode constant into a floating
18260         point register.
18261         * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
18262         * pa64-regs.h (VALID_FP_MODE_P): Likewise.
18263
18264 2006-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
18265
18266         PR target/26272
18267         * config/rs6000/darwin.md (load_macho_picbase_si): Add
18268         pc to the pattern.
18269         (load_macho_picbase_di): Likewise.
18270
18271 2006-02-16  Jeff Law  <law@redhat.com>
18272
18273         * tree-vrp.c (set_value_range_to_nonnegative): New function.
18274         (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
18275         (ssa_name_nonzero_p): Likewise.
18276         (get_value_range): Return NULL if VRP is not running.
18277         (extract_range_from_expr): Fallback to tree_expr_XXX_p if
18278         VRP routines do not discover a range.
18279         (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
18280         * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
18281         * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
18282         (tree_expr_nonnegative_p): Similarly.
18283         * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
18284         (restore_nonzero_vars_to_original_value): Remove.
18285         (unsafe_associative_fp_binop): Remove.
18286         (tree_ssa_dominator_optimize): Remove initialization and
18287         finalization of nonzero_vars and nonzero_vars_stack.
18288         (dom_opt_initialize_block): No longer push marker on
18289         nonzero_vars_stack.
18290         (dom_opt_finalize_block): No longer call
18291         restore_nonzero_vars_to_original_value.
18292         (record_equivalences_from_phis): No longer look for
18293         nonzero PHI arguments.
18294         (cprop_into_successor_phis): No longer propagate nonzero
18295         property into PHI arguments.  Lose unused argument.  Caller
18296         updated.
18297         (record_equivalences_from_stmt): No longer record nonzero
18298         values for SSA_NAMEs.
18299         (lookup_avail_expr): No longer use nonzero_vars.
18300
18301         * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
18302         for sizetype when sizetype is unsigned.
18303
18304 2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
18305
18306         PR rtl-optimization/25603
18307         * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
18308         (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
18309         * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
18310         with new meaning of SETS.
18311
18312 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
18313
18314         PR target/20353
18315         PR target/24578
18316         PR target/24837
18317         * config/linux.opt: New file.
18318         * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18319         LINUX_DYNAMIC_LINKER): Define.
18320         (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
18321         * config.gcc (*-*-linux*): Define extra_options.
18322         (*-*-*uclibc*): Define UCLIBC_DEFAULT.
18323         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
18324         * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
18325         GLIBC_DYNAMIC_LINKER.
18326         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
18327         (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18328         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18329         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18330         * doc/invoke.texi (GNU/Linux Options): New section.
18331
18332 2006-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
18333
18334         * config/sparc/sparc.md (setjmp): Rewrite.
18335         (setjmp_32): Delete.
18336         (setjmp_64): Likewise.
18337
18338 2006-02-16  Daniel Berlin <dberlin@dberlin.org>
18339
18340         * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
18341          previous change.
18342
18343 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
18344
18345         * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
18346         read-write uses.
18347
18348 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
18349
18350         PR rtl-optimization/26296
18351         * Makefile.in (loop-invariant.c): Add except.h dependency.
18352         * loop-invariant.c: Include except.h.
18353         (find_invariant_insn): Ignore insns satisfying can_throw_internal.
18354
18355 2005-02-16  Paul Brook  <paul@codesourcery.com>
18356
18357         * reload1.c (emit_reload_insns): Invalidate dead input registers used
18358         for reloads.
18359
18360 2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>
18361
18362         PR rtl-optimization/25636
18363         * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
18364         when deciding whether an insn is an initializing insn.
18365
18366 2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
18367
18368         * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
18369         (tree_code_size): Ditto.
18370         * tree.h (struct tree_memory_tag): Remove parent_var.
18371         (struct tree_struct_field_tag): New.
18372         (SFT_OFFSET): New.
18373         (SFT_SIZE): New.
18374         (union tree_node): Add sft member.
18375         * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
18376         specially here.
18377         (create_sft): Add size and offset argument, set SFT_OFFSET and
18378         SFT_SIZE.
18379         (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
18380         * treestruct.def: Add TS_STRUCT_FIELD_TAG.
18381         * tree-flow-inline.h (get_subvar_at): Update for
18382         SFT_OFFSET/SFT_SIZE.
18383         (var_can_have_subvars): Ditto.
18384         (overlap_subvar): Ditto.
18385         * print-tree.c (print_node): Print out interesting things for
18386         SFT's.
18387         * tree-flow.h (struct subvar): Remove offset and size members.
18388         * tree-ssa-operands.c (get_expr_operands): Update for
18389         get_indirect_ref_operands changes.
18390         (get_indirect_ref_operands): Call add_virtual_operand instead of
18391         add_stmt_operand.  Only recurse on base var if requested.
18392         (access_can_touch_variable): New function.
18393         (add_stmt_operand): Split virtual operand handling into ...
18394         (add_virtual_operand): Here.  Add offset, size, and for_clobber
18395         arguments.  Prune alias sets.
18396         (add_call_clobber_ops): Call add_virtual_operand.
18397
18398 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
18399
18400         PR middle-end/26300
18401         * combine.c (make_extraction): Bail out if ORIG_POS is negative.
18402
18403         * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
18404         than TREE_CODE as index into omp_clause_num_ops array.
18405
18406 2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
18407
18408         PR rtl-optimization/26184
18409         * modulo-sched.c (generate_reg_moves): Free bitmap vector
18410         uses_of_defs.
18411         * modulo-sched.c (sms_schedule): Free g_arr pointer.
18412         * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
18413         must_precede, must_follow and tobe_scheduled.
18414
18415         PR other/26147
18416         * opts.c (common_handle_option): Free new_option pointer.
18417         * df-core.c (df_analyze): Free postorder pointer.
18418
18419 2006-02-15  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18420
18421         * Makefile.in: Fix the examples about the use of stamps
18422
18423 2006-02-15  Michael Matz  <matz@suse.de>
18424
18425         PR middle-end/22275
18426
18427         * stor-layout.c (layout_decl): Zero-width bitfields aren't
18428         influenced by maximum_field_alignment or DECL_PACKED.
18429         (update_alignment_for_field): Ditto.
18430         (place_field): Ditto.
18431         * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
18432         this behaviour.
18433
18434 2006-02-15  Paolo Bonzini  <bonzini@gnu.org>
18435
18436         * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
18437         (debug_flow_info): Pass it.
18438         * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
18439         * bb-reorder.c (reorder_basic_blocks): Likewise.
18440         * cfgcleanup.c (rest_of_handle_jump2): Likewise.
18441         * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
18442         * flow.c (life_analysis, recompute_reg_usage): Likewise.
18443         * gcse.c (gcse_main, bypass_jumps): Likewise.
18444         * ifcvt.c (rest_of_handle_if_conversion): Likewise.
18445         * local-alloc.c (rest_of_handle_local_alloc): Likewise.
18446         * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
18447         * profile.c (compute_branch_probabilities, branch_prob): Likewise.
18448         * rtl.h (dump_flow_info): Adjust prototype.
18449         * tracer.c (rest_of_handle_tracer, tracer): Likewise.
18450         * var-tracking.c (variable_tracking_main): Likewise.
18451         * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
18452         * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
18453         options.
18454
18455 2006-02-15  Marcin Dalecki <martin@dalecki.de>
18456
18457         * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
18458         construction.
18459
18460 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
18461
18462         PR tree-optimization/26209
18463         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
18464         * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
18465         eh edges.
18466         * tree-cfg.c (replace_uses_by): Do not alter cfg.
18467
18468 2006-02-14  Roger Sayle  <roger@eyesopen.com>
18469
18470         PR middle-end/23670
18471         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
18472         (X,Y) and the corresponding symmetry related transformations.
18473         (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
18474         (X,Y) and its symmetry related transformations.
18475
18476 2006-02-14  Roger Sayle  <roger@eyesopen.com>
18477
18478         * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
18479         and GEU.
18480
18481 2006-02-14  Adam Nemet  <anemet@caviumnetworks.com>
18482
18483         * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
18484
18485 2006-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18486
18487         PR bootstrap/26053
18488         * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
18489         support COMDAT group.
18490         * configure: Regenerate.
18491
18492 2006-02-14  Roger Sayle  <roger@eyesopen.com>
18493
18494         PR middle-end/26279
18495         PR middle-end/26280
18496         PR middle-end/26283
18497         * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
18498
18499 2006-02-14  Daniel Berlin  <dberlin@dberlin.org>
18500
18501         Fix PR tree-optimization/26260
18502
18503         * doc/invoke.texi (max-fields-for-field-sensitive): Document
18504         param.
18505         * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
18506         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
18507         * tree-ssa-structalias.c (create_variable_info_for): Use
18508         MAX_FIELDS_FOR_FIELD_SENSITIVE.
18509
18510 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
18511
18512         * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
18513         Document.
18514         * tree-ssa-loop-niter.c (number_of_iterations_ne,
18515         number_of_iterations_lt, number_of_iterations_cond): Remember the shape
18516         of the ending condition.
18517         * tree-ssa-loop-manip.c: Include params.h.
18518         (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
18519         tree_unroll_loop): New functions.
18520         * tree-pass.h (pass_loop_prefetch): Declare.
18521         * loop.c (rest_of_handle_loop_optimize): Test for
18522         -fprefetch-loop-arrays-rtl.
18523         * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
18524         * timevar.def (TV_TREE_PREFETCH): New timevar.
18525         * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
18526         pass_loop_prefetch): New.
18527         * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
18528         (cleanup_tree_cfg_loop): Call scev_reset.
18529         * common.opt (fprefetch-loop-arrays-rtl): Add.
18530         * tree-ssa-loop-prefetch.c: New file.
18531         * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
18532         (new_temp_expr_table): Initialize expr_vars.
18533         (free_temp_expr_table): Cleanup expr_vars.
18534         (check_replaceable, find_replaceable_in_bb): Prevent accumulating
18535         expressions from being merged into one.
18536         * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
18537         (struct tree_niter_desc): Add control, bound and cmp fields.
18538         (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
18539         Declare.
18540         * Makefile.in (tree-ssa-loop-prefetch.o): Add.
18541         (tree-cfgcleanup.o): Add SCEV_H dependency.
18542         (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
18543         * passes.c (init_optimization_passes): Add pass_loop_prefetch.
18544
18545 2006-02-14  Richard Guenther  <rguenther@suse.de>
18546
18547         PR tree-optimization/26258
18548         * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
18549         in PHI argument processing.
18550
18551 2006-02-13  Adam Nemet  <anemet@caviumnetworks.com>
18552
18553         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
18554         new expression in the requested machine mode.
18555
18556 2006-02-13  Roger Sayle  <roger@eyesopen.com>
18557
18558         * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
18559         directly, instead let do_compare_rtx_and_jump handle this for us.
18560         * expr.c (expand_expr_real_1): Likewise.
18561         * dojump.c (do_jump_by_parts_greater_rtx): Make static.  Move
18562         before do_jump_by_parts_greater.
18563         (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
18564         * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
18565
18566 2006-02-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18567
18568         * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
18569
18570 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
18571
18572         PR rtl-optimization/26235
18573         * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
18574         (invariant_expr_equal_p): Handle 'i' and 'n' formats.  Fail on unknown
18575         format.
18576
18577 2006-02-13  Jeff Law  <law@redhat.com>
18578
18579         * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
18580         TRUTH_XOR_EPR.
18581
18582 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
18583
18584         PR middle-end/26092
18585         * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
18586         twice if decl is a builtin.  When trying again, call get_callee_fndecl
18587         first to verify it is still a builtin.
18588
18589 2006-02-13  Geoffrey Keating  <geoffk@apple.com>
18590
18591         * dwarf2out.c (base_type_die): Don't add AT_name here.
18592         (subrange_type_die): Don't add AT_name here.
18593         (modified_type_die): Rearrange code flow.  Do add AT_name here.
18594
18595 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
18596
18597         PR rtl-optimization/26247
18598         PR rtl-optimization/26248
18599         * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
18600
18601 2006-02-13  Richard Sandiford  <richard@codesourcery.com>
18602
18603         * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
18604         * config/fixtfdi.c: Likewise.
18605         * config/fixunstfdi.c: Likewise.
18606         * config/floatditf.c: Likewise.
18607
18608 2006-02-13  Roger Sayle  <roger@eyesopen.com>
18609
18610         PR middle-end/24427
18611         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
18612         into (X,C2) if C1 is a subset of the bits of C2.  Transform
18613         (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
18614         (X&(C1&~C2))|C2.
18615         <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
18616
18617 2006-02-13  Josh Conner  <jconner@apple.com>
18618
18619         PR target/25376
18620         * varasm.c (function_section): Check for section name before
18621         calling select_section on targets that define
18622         USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
18623         unlikely_text_section instead of hot_function_section if
18624         first_function_block_is_cold.
18625
18626 2006-02-13  J"orn Rennecke <joern.rennecke@st.com>
18627
18628         PR middle-end/25335
18629         * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
18630
18631 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
18632
18633         PR rtl-optimization/26222
18634         * function.c (assign_stack_temp_for_type): Do not reuse stack slots
18635         after tree->rtl expansion.
18636         * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
18637         before passing it to emit_move_insn.
18638
18639 2006-02-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18640
18641         * doc/invoke.texi (-Write-strings): Document that it is enabled by
18642         default.
18643         * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
18644         Clarify documentation.
18645         * c-common.h (warn_write_strings): Remove.
18646         * c-common.c (warn_write_strings): Likewise.
18647         * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
18648         default for C++.
18649
18650 2006-02-12  Roger Sayle  <roger@eyesopen.com>
18651
18652         PR middle-end/25724
18653         * dojump.c (do_jump): Call do_compare_rtx_and_jump.
18654         (do_jump_parts_zero_rtx): New function renamed from
18655         do_jump_parts_equality_rtx.  Made static.  Add a mode argument.
18656         (do_jump_parts_equality_rtx): New function split out from
18657         do_jump_parts_equality.  Old implementation renamed as above.
18658         Call do_jump_parts_zero_rtx if either operand is zero.
18659         (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
18660         do all of the heavy lifting.
18661         (do_compare_rtx_and_jump): Handle multi-word comparisons by
18662         calling either do_jump_by_parts_greater_rtx or
18663         do_jump_by_parts_equality_rtx.
18664         * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
18665         * expmed.c (do_cmp_and_jump): Now multi-word optimization has
18666         moved to do_compare_rtx_and_jump, call it directly.
18667         * stmt.c (do_jump_if_equal): Remove static prototype.  Add a
18668         mode argument.  Call do_compare_rtx_and_jump.
18669         (emit_case_nodes): Update calls to do_jump_if_equal.
18670
18671 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
18672
18673         PR rtl-optimization/26225
18674         * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
18675
18676 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
18677
18678         PR rtl-optimization/26232
18679         * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
18680
18681 2006-02-11  Jason Merrill  <jason@redhat.com>
18682
18683         PR tree-opt/24365
18684         * tree-inline.c (declare_return_variable): Just don't use the
18685         modify target if it's a gimple complex reg and the return slot
18686         isn't.
18687
18688 2006-02-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18689
18690         * doc/contrib.texi: Update my entry.
18691
18692 2006-02-10  Geoffrey Keating  <geoffk@apple.com>
18693
18694         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
18695
18696 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
18697
18698         * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
18699         expensive.
18700
18701 2006-02-10  Zdenek Dvorak <dvorakz@suse.cz>
18702
18703         * doc/invoke.texi (-floop-optimize2): Removed.
18704         * toplev.c (process_options): Remove handling of flag_loop_optimize2.
18705         * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
18706         Test flag_branch_on_count_reg only if HAVE_doloop_end.
18707         * common.opt (floop-optimize2): Removed.
18708         (fmove-loop-invariants): Enabled by default.
18709
18710 2006-02-10  Sebastian Pop  <pop@cri.ensmp.fr>
18711
18712         * tree-if-conv.c (combine_blocks): Free the result of
18713         get_loop_exit_edges.
18714
18715 2006-02-10  Jeff Law  <law@redhat.com>
18716
18717         * fold-const.c (tree_expr_nonzero_p): Fix thinko.
18718
18719         PR tree-optimization/26213
18720         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
18721         loop trying to follow SSA_NAME_VALUE chains.
18722
18723 2006-02-10  Richard Guenther  <rguenther@suse.de>
18724
18725         * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
18726         deal with structures that end in implicitly variable sized arrays.
18727
18728 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
18729
18730         PR rtl-optimization/24762
18731         * df-scan.c (df_bb_refs_record): Record correct registers defined on
18732         eh edges.
18733
18734 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
18735
18736         * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
18737         (struct ivopts_data): Add regs_used field.
18738         (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
18739         (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
18740         instead of loop_data->regs_used;
18741         (free_loop_data): Do not free aux fields for loops.
18742         (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
18743         and tree_ssa_iv_optimize_finalize.
18744
18745 2006-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
18746
18747         * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
18748
18749 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
18750
18751         PR target/26141
18752         * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
18753         computing the effective result type.
18754
18755 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
18756
18757         PR inline-asm/16194
18758         * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
18759         (tree_overlaps_hard_reg_set): Declare.
18760         * stmt.c (decl_overlaps_hard_reg_set_p): Now static.  Change return
18761         type and signature to match function type expected by walk_tree.
18762         (tree_overlaps_hard_reg_set): New function.
18763         (decl_conflicts_with_clobbers_p): Rename to:
18764         (tree_conflicts_with_clobbers_p).  Take HARD_REG_SET * argument.
18765         Use tree_overlaps_hard_reg_set.  Changed caller.
18766         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
18767         decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
18768         * cris.c (cris_md_asm_clobbers): Likewise.
18769
18770 2006-02-09  Bernd Schmidt  <bernd.schmidt@analog.com>
18771
18772         * reload1.c (emit_input_reload_insns): Delete code that tries to
18773         inherit using find_equiv_reg.
18774
18775 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18776
18777         * c-common.h (flag_const_strings): Don't declare.
18778         * c-common.c (flag_const_strings): Remove.
18779         * c.opt (fconst_strings): Remove.
18780         * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
18781         <OPT_Wwrite_strings>: Don't set flag_const_strings.
18782         (c_common_init_options): Don't set flag_const_strings.
18783         * doc/invoke.texi (-fno-const-strings): Remove documentation.
18784
18785 2006-02-09  Richard Earnshaw  <richard.earnshaw@arm.com>
18786
18787         * arm.md (tlobits_cbranch): New pattern.
18788         * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
18789         testing a single bit.
18790
18791 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
18792
18793         PR tree-opt/26179
18794         * tree-ssa-pre.c (create_component_ref_by_pieces):
18795         Handle RETURN_DECL like VAR_DECL.
18796
18797 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
18798
18799         PR middle-end/26134
18800         * fold-const.c (fold_indirect_ref_1): Fold
18801         "*(foo *)&complexfoo" to "__real__ complexfoo"
18802         and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
18803
18804 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
18805
18806         * tree-flow-inline.h (var_can_have_subvars):
18807         Volatile variables should not have subvariables.
18808
18809 2006-02-09  Diego Novillo  <dnovillo@redhat.com>
18810
18811         PR 26180
18812         * tree-vrp.c (vrp_int_const_binop): Detect overflow when
18813         multiplying unsigned values.
18814         Tidy comments.
18815
18816 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
18817
18818         * config/sparc/sparc.c (tls_call_delay): Fix oversight.
18819
18820 2006-02-08  Jason Merrill  <jason@redhat.com>
18821
18822         PR c++/25979
18823         * tree.def: Elaborate on difference from MODIFY_EXPR.
18824         * doc/c-tree.texi (INIT_EXPR): Likewise.
18825         * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
18826         (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
18827         (gimplify_target_expr): Likewise.
18828         (gimplify_cond_expr): Remove target handling.
18829         (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
18830         (gimplify_expr): Clobber it here.
18831         (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
18832         Do return slot optimization if we have an INIT_EXPR.
18833
18834         PR tree-opt/24365
18835         * tree-inline.c (declare_return_variable): Also clear
18836         DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
18837
18838         PR c++/16405
18839         * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
18840
18841         PR middle-end/22439
18842         * gimplify.c (gimplify_one_sizepos): Fix typo.
18843
18844 2006-02-08  Jeff Law  <law@redhat.com>
18845
18846         PR tree-optimization/21417
18847         * tree-ssa-threadedge.c (thread_across_edge): Reject threading
18848         across a backedge if the control statement at the end of the
18849         block is data dependent on other statements in the same block.
18850         (record_temporary_equivalences_from_stmts): Remove over-conservative
18851         test for threading across backedges.
18852
18853         * tree-ssa-dce.c (remove_dead_statement): When removing a dead
18854         control statement, handle all three special cases in the same
18855         manner as they all have the same desired solution.  No longer
18856         special case edge flag updating when the post dominator is
18857         the exit block.
18858
18859 2006-02-08  Roger Sayle  <roger@eyesopen.com>
18860
18861         * tree.def (CHAR_TYPE): Remove.
18862         * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
18863         * dwarf2out.c (base_type_die, is_base_type): Likewise.
18864         (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
18865         (gen_string_type_die): Delete unreachable function.
18866
18867         * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
18868         * tree.c (build_int_cst_wide, type_contains_placeholder_1,
18869         type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
18870         * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
18871         * builtins.c (type_to_class): Likewise.
18872         * fold-const.c (fold_convert, build_range_check,
18873         merge_ranges): Likewise.
18874         * expr.c (count_type_elements): Likewise.
18875         * c-pretty-print.c (pp_c_type_specifier): Likewise.
18876         * stor-layout.c (layout_type): Likewise.
18877         * ipa-type-escape.c (type_to_consider): Likewise.
18878         * gimplify.c (omp_firstprivatize_type_sizes,
18879         gimplify_type_sizes): Likewise.
18880         * explow.c (promote_mode): Likewise.
18881         * tree-sra.c (is_sra_scalar_type): Likewise.
18882         * varasm.c (output_constant): Likewise.
18883         * tree-inline.c (remap_type_1): Likewise.
18884         * convert.c (convert_to_pointer, convert_to_real,
18885         convert_to_integer, convert_to_complex): Likewise.
18886
18887 2006-02-08  Daniel Berlin  <dberlin@dberlin.org>
18888
18889         * df-scan.c (df_def_record_1): A set destination may
18890         be a parallel regardless of mode.
18891
18892 2006-02-08  Roger Sayle  <roger@eyesopen.com>
18893
18894         PR target/22209
18895         * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
18896         * config/mips/_tilib.c: Remove.
18897         * config/fixtfdi.c: New libgcc source file.
18898         * config/fixunstfdi.c: New source file.
18899         * config/floatditf.c: New source file.
18900         * config/floatunditf.c: New souce file.
18901         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
18902         files above instead of config/mips/_tilib.c.
18903         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
18904
18905 2006-02-08  Jeff Law  <law@redhat.com>
18906
18907         PR tree-optimization/26169
18908         * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
18909         threading jumps.
18910
18911 2006-02-08  Zdenek Dvorak <dvorakz@suse.cz>
18912
18913         * df.h (DF_REG_SIZE): Return the length of the initialized
18914         part of the array.
18915
18916 2006-02-08  Nathan Sidwell  <nathan@codesourcery.com>
18917
18918         * config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
18919         __muldf3): Return a correctly signed zero.
18920
18921 2006-02-08  Paolo Bonzini  <bonzini@gnu.org>
18922
18923         * passes.c (register_one_dump_file): Accept the current properties
18924         instead of pass number.  Adjust call to dump_register.  Remove
18925         duplicated code.
18926         (register_dump_files): Now a wrapper around...
18927         (register_dump_files_1): ... this one.  Do not modify the pass
18928         structure.
18929         (next_pass_1): Cosmetic fix.
18930         (execute_todo): Keep second parameter only.  Use curr_properties
18931         instead of fetching it from the pass structure.  Check and set
18932         last_verified.
18933         (execute_one_pass): Handle TODO_set_props.  Use curr_properties
18934         instead of fetching it from the pass structure.  Fix calls to
18935         execute_todo.  Update curr_properties and initialize .vcg RTL dump
18936         after running the pass.  Reset last_verified.
18937         * tree-dump.c (dump_files): Renumber consecutively.  Put .cgraph dump
18938         at the beginning.
18939         (FIRST_AUTO_NUMBERED_DUMP): New.
18940         (dump_register): Remove "num" parameter, assign it within the
18941         function.
18942         (get_dump_file_name): Modify template for dumps.
18943         * tree-dump.h (dump_register): Adjust prototype.
18944         * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
18945         (PROP_trees): Add PROP_gimple_lomp.
18946         (TODO_set_props): New.
18947         * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
18948         * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
18949         * cfgexpand.c (pass_expand): Destroy PROP_trees.
18950
18951 2006-02-08  Jakub Jelinek  <jakub@redhat.com>
18952
18953         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
18954         (sparc64-*-linux*): Likewise.
18955         * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
18956         * config/sparc/t-linux: New file.
18957         * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
18958         __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
18959         (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
18960         -m32 -mlong-double-128.
18961
18962         * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
18963         * config/alpha/t-linux: New file.
18964         * config/alpha/libgcc-alpha-ldbl.ver: New file.
18965
18966         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
18967         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
18968         (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
18969         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
18970         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
18971         (CPP_ARCH32_SPEC): Remove.
18972
18973 2006-02-07  Uttam Pawar  <uttamp@us.ibm.com>
18974
18975         PR tree-optimization/26145
18976         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
18977         bbs pointer.
18978
18979 2006-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18980
18981         PR target/26109
18982         * pa.c (attr_length_indirect_call): Don't return length 8 for distances
18983         >= 240000 when generating code for SOM runtime.
18984         (output_indirect_call): Don't use "b,l" instruction for indirect calls
18985         to $$dyncall when generating code for SOM runtime..
18986
18987 2006-02-07  Dirk Mueller  <dmueller@suse.com>
18988
18989         PR c++/18150
18990         * doc/invoke.texi (-Wsequence-point): Update documentation
18991         that -Wsequence-point is implemented for C++ as well.
18992
18993 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
18994
18995         * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
18996         * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
18997         (LIB_SPEC): Likewise.
18998         * doc/invoke.texi (SPARC options): Document -pthread.
18999
19000 2006-02-07  Geoffrey Keating  <geoffk@apple.com>
19001
19002         * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
19003         PIC addresses.
19004
19005 2006-02-07  Roger Sayle  <roger@eyesopen.com>
19006
19007         * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
19008         Correct comment describing BOOLEAN_TYPE.
19009
19010 2006-02-07  Dirk Mueller  <dmueller@suse.com>
19011
19012         * c.opt: C++ frontend supports -Wdiv-by-zero.
19013         * c-opts.c (c_common_handle_option): Remove dead case.
19014
19015 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19016
19017         * configure.ac (TLS assembler check): Do not enable TLS by
19018         default on SPARC/Solaris before version 10.
19019         * configure: Regenerate.
19020
19021 2006-02-07  David Edelsohn  <edelsohn@gnu.org>
19022
19023         * doc/invoke.texi (xl-compat): Document conversion and support
19024         routine names.
19025
19026 2006-02-07  Jeff Law  <law@redhat.com>
19027
19028         * tree-vrp.c (find_conditional_asserts): Update comments.
19029         (simplify_stmt_for_jump_threading): New.
19030         (identify_jump_threads, finalize_jump_threads): New.
19031         (vrp_finalize): Call identify_jump_threads.
19032         (execute_vrp): Call finalize_jump_threads.
19033         * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
19034         (vrp_element, vrp_data, vrp_element_p): Remove.
19035         (vrp_hash_elt, vrp_variables_stack): Remove.
19036         (vrp_hash, vrp_eq, record_range): Remove.
19037         (simplify_cond_and_lookup_avail_expr): Remove.
19038         (extract_range_from_cond): Remove.
19039         (thread_across_edge): Relocated into tree-ssa-threadedge.c.
19040         (simplify_stmt_for_jump_threading): New.
19041         (dom_thread_across_edge): New wrapper.
19042         (tree_ssa_dominator_optimize): No longer initialize or
19043         finalize any of the VRP datastructures.  Remove iteration
19044         step and simplify as a result of removal of iteration step.
19045         (pass_dominator): Perform a cfg cleanup after DOM.
19046         (dom_opt_finalize_block): Use the new common routines
19047         for threading jumps.  Simplify stack management slightly.
19048         No longer need to unwind VRP state.
19049         (record_equivalences_from_incoming_edge): No longer record
19050         VRP information.
19051         (eliminate_redundant_computations): No longer call
19052         simplify_cond_and_lookup_avail_expr.
19053         * tree-flow.h (potentially_threadable_block): Prototype.
19054         (thread_across_edge): Likewise.
19055         * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
19056         (tree-ssa-threadedge.o): Add dependencies.
19057         * tree-ssa-threadedge.c: New file.
19058         * passes.c (init_optimization_passes): Merge PHIs before
19059         calling VRP.  Run VRP again late in the SSA optimization pipeline.
19060
19061 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19062
19063         * df-core.c (df_set_blocks): Do not dereference function pointers.
19064         (df_finish1): Likewise.
19065         (df_hybrid_search_forward): Likewise.
19066         (df_hybrid_search_backward): Likewise.
19067         (df_iterative_dataflow): Likewise.
19068         (df_analyze_problem): Likewise.
19069         (df_compact_blocks): Likewise.
19070         (df_dump): Likewise.
19071         * df-scan.c (df_rescan_blocks): Likewise.
19072         (df_record_entry_block_defs): Likewise.
19073
19074         * genconditions.c (write_conditions): Guard the definition of
19075         'insn_conditions' with the check on GCC version.
19076         (write_writer): Guard the traversal 'insn_conditions' with
19077         the check on GCC version.
19078
19079 2006-02-07  Richard Guenther  <rguenther@suse.de>
19080
19081         PR c++/26140
19082         Revert
19083         2006-01-30  Richard Guenther  <rguenther@suse.de>
19084         PR c++/23372
19085         * gimplify.c (gimplify_target_expr): Handle easy cases
19086         without creating a temporary.
19087
19088 2006-02-07  Pete Steinmetz  <steinmtz@us.ibm.com>
19089
19090         * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
19091         use of float in probability computations.  Use edge probabilities
19092         in place of statically computed probabilities.
19093         (min_spec_prob): New static variable.
19094         (schedule_insns): Initialize it.
19095         (GET_SRC_PROB): Removed.
19096         * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
19097
19098 2006-02-07  Alexandre Oliva  <aoliva@redhat.com>
19099
19100         PR debug/24444
19101         * config/ia64/unwind-ia64.c: Revert last change.
19102         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
19103         (INCOMING_FRAME_SP_OFFSET): Define.
19104
19105 2006-02-06  Roger Sayle  <roger@eyesopen.com>
19106
19107         * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
19108
19109 2006-02-07  Ben Elliston  <bje@au.ibm.com>
19110
19111         * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
19112         (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
19113         (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
19114         (ix86_return_in_memory): Handle TDmode.
19115         (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
19116         (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
19117
19118 2006-02-06  Richard Sandiford  <richard@codesourcery.com>
19119
19120         * reorg.c (dbr_schedule): Use dump_file instead of file.
19121
19122 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
19123
19124         PR target/25917
19125         * config/ia64/predicates.md (extr_len_operand): New predicate.
19126         * config/ia64/ia64.md (extv): Tighten constraints.
19127         (extzv): Ditto.
19128         (*tbit_and_2): Ditto.
19129         (*tbit_and_3): Ditto.
19130         (*tbit_or_2): Ditto.
19131         (*tbit_or_3): Ditto.
19132         (*bit_zero): Ditto.
19133         (*bit_one): Ditto.
19134
19135 2006-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
19136
19137         PR target/23359
19138         * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
19139
19140 2006-02-06  Zdenek Dvorak <dvorakz@suse.cz>
19141
19142         * tree-vrp.c (execute_vrp): Do not pass dump argument to.
19143         loop_optimizer_init and loop_optimizer_finalize
19144         * tree-ssa-sink.c (execute_sink_code): Ditto.
19145         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
19146         * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
19147         tree_ssa_loop_done): Ditto.
19148         * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
19149         * sched-ebb.c: Include output.h.
19150         (schedule_ebbs): Do not use dump argument.
19151         * value-prof.h (struct profile_hooks): Remove profile_dump_file.
19152         * loop.c (loop_dump_stream): Removed.
19153         (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
19154         argument.
19155         (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
19156         emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
19157         final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
19158         loop_iterations, strength_reduce, record_biv, record_giv,
19159         final_giv_value, check_final_value, check_ext_dependent_givs,
19160         combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
19161         try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
19162         dump_file instead of loop_dump_stream.
19163         * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
19164         argument dump_file.
19165         * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
19166         dump argument.
19167         * flow.c (life_analysis, rest_of_handle_life): Ditto.
19168         * haifa-sched.c: Include output.h
19169         (schedule_insns, sched_init): Do not use dump argument.
19170         * mode-switching.c (optimize_mode_switching): Ditto.
19171         * modulo-sched.c (stats_file): Removed.
19172         (print_node_sched_params): Do not call argument dump_file.
19173         (sms_schedule_by_order, loop_canon_p, sms_schedule,
19174         rest_of_handle_sms): Do not use dump argument.  Use dump_file instead
19175         of stats_file.
19176         * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
19177         use dump argument.
19178         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
19179         rtl_loop_init, rtl_loop_done): Ditto.
19180         * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
19181         * predict.c (combine_predictions_for_bb, tree_estimate_probability):
19182         Ditto.
19183         * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
19184         * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
19185         * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
19186         rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
19187         * emit-rtl.c (renumber_insns): Ditto.
19188         * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
19189         expand_gimple_basic_block, tree_expand_cfg): Ditto.
19190         * regclass.c (regclass): Ditto.
19191         * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
19192         remove_ssa_form, rewrite_out_of_ssa): Ditto.
19193         * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
19194         convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
19195         Ditto.
19196         * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
19197         * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
19198         to regclass.
19199         * gcse.c (gcse_file, debug_stderr): Removed.
19200         (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
19201         rest_of_handle_gcse): Do not use dump argument.
19202         (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
19203         one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
19204         pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
19205         compute_code_hoist_vbeinout, compute_code_hoist_data,
19206         one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
19207         compute_store_table, build_store_vectors, insert_insn_start_bb,
19208         insert_store, remove_reachable_equiv_notes, replace_store_insn,
19209         store_motion): Use dump_file instead of gcse_file.
19210         * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
19211         * profile.c (profile_dump_file): Removed.
19212         (branch_prob): Use dump_file instead of profile_dump_file.
19213         * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
19214         dump_file.
19215         * tree-ssa-copy.c (dump_copy_of): Ditto.
19216         * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
19217         dump file to life_analysis.
19218         * bt-load.c (branch_target_load_optimize): Ditto.
19219         * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
19220         renumber_insns.
19221         * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
19222         regclass, dbr_schedule): Declaration changed.
19223         * sched-int.h (sched_init): Declaration changed.
19224         * tree-profile.c (tree_profile_dump_file): Removed.
19225         (tree_profile_hooks): Removed profile_dump_file hook.
19226         * rtl-profile (rtl_profile_dump_file): Removed.
19227         (rtl_profile_hooks): emoved profile_dump_file hook.
19228         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
19229         changed.
19230         * c-gimplify.c (c_genericize): Do not call local variable dump_file.
19231         * tree-cfg.c (build_tree_cfg): Ditto.
19232         * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
19233         * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
19234         Declaration changed.
19235         * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
19236         life_analysis and schedule_insns.
19237         * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
19238         life_analysis.
19239         * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
19240         dbr_schedule.
19241         * config/mips/mips.c (mips_reorg): Ditto.
19242         * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
19243         schedule_ebbs.
19244
19245 2006-02-06  Aldy Hernandez  <aldyh@redhat.com>
19246
19247         * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
19248         (s390_mangle_fundamental_type): New.
19249         * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19250         Define.
19251
19252         * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
19253         (alpha_mangle_fundamental_type): New.
19254         * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19255         Define.
19256
19257         * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19258         Define.
19259         * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19260         Define.
19261         * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
19262         (sparc_mangle_fundamental_type): New.
19263
19264 2006-02-06  Jakub Jelinek  <jakub@redhat.com>
19265
19266         * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
19267         (s390x-*-linux*): Likewise.
19268         * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
19269         * config/s390/t-linux: New file.
19270
19271 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
19272
19273         * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
19274         sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
19275
19276 2006-02-06  Daniel Berlin  <dberlin@dberlin.org>
19277
19278         * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
19279         (ANTIC_SAFE_LOADS): New macro.
19280         (find_or_generate_expression): Add prototype.
19281         (set_contains_value): Allow null set for sake of not always having
19282         to allocate ANTIC_SAFE_LOADS.
19283         (phi_translate): Move placement of AGGREGATE_TYPE_P check.
19284         Allow COMPONENT_REF too.
19285         (valid_in_set): Allow COMPONENT_REF.
19286         Check ANTIC_SAFE_LOADS too.
19287         (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
19288         (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
19289         rename.
19290         (can_PRE_operation): Add COMPONENT_REF.
19291         (create_component_ref_by_pieces): New function.
19292         (create_expression_by_pieces): Use create_component_ref_by_pieces.
19293         (insert_aux): Move AGGREGATE_TYPE_P check here.
19294         (compute_avail): Set bb local stmt uids.
19295         (pass_pre): Use TODO_update_ssa_only_virtuals.
19296
19297 2006-02-06  Ben Elliston  <bje@au.ibm.com>
19298
19299         * configure.ac: Unconditionally disable decimal float by default.
19300         * configure: Regenerate.
19301
19302 2006-02-06  Ben Elliston  <bje@au.ibm.com>
19303
19304         * read-rtl.c (read_name): Terminate reading on EOF.
19305
19306 2006-02-06  Ben Elliston  <bje@au.ibm.com>
19307
19308         * dfp.c (decimal_real_arithmetic): Change second argument type
19309         from int to enum tree_code. Do not always return true, but now
19310         return result of any call to decimal_do helper functions.
19311         * dfp.h (decimal_real_arithmetic): Update prototype.
19312
19313 2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
19314
19315         * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
19316
19317 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
19318
19319         PR tree-opt/25251
19320         * tree-cfg.c (cleanup_dead_labels): Also don't remove
19321         forced labels.
19322
19323 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
19324
19325         * tree-vrp.c (cfg_loops): Removed.
19326         (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
19327         Use current_loops instead of cfg_loops.  Pass flags to
19328         loop_optimizer_init.
19329         * cfgloopmanip.c (fix_loop_structure): Update only available
19330         information.
19331         * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
19332         loop_optimizer_init.
19333         * modulo-sched.c (build_loops_structure): Removed.
19334         (sms_schedule): Use loop_optimizer_init.
19335         * loop-init.c (loop_optimizer_init): Use flags to determine
19336         which properties of loops to prepare.
19337         (rtl_loop_init): Pass flags to loop_optimizer_init.
19338         * tree-ssa-sink.c (execute_sink_code): Ditto.
19339         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
19340         * tree-ssa-pre.c (init_pre): Ditto.
19341         * cfgloop.h (LOOPS_NORMAL): New.
19342         (loop_optimizer_init): Declaration changed.
19343
19344 2006-02-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19345
19346         * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
19347         * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
19348         pa/t-pa.
19349         * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
19350         pa/t-pa.
19351         * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
19352         pa/x-ada.
19353         * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
19354         * pa/t-pa64: Delete quadlib.c rule.
19355         * pa/x-ada: Revert last change.
19356         * pa/t-pa: Revert last change.  Delete quadlib.c rule.
19357
19358 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
19359
19360         PR rtl-optimization/26087
19361         * rtlanal.c (canonicalize_condition): Do not cross basic block
19362         boundaries.
19363
19364 2006-02-04  Alexandre Oliva  <aoliva@redhat.com>
19365
19366         PR debug/24444
19367         * config/ia64/ia64.c: Include debug.h.
19368         (MAX_ARTIFICIAL_LABEL_BYTES): New.
19369         (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
19370         (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
19371         (process_epilogue, process_set, process_for_unwind_directive):
19372         Output unwind info only if requested.  Add CFA info if requested.
19373         Add new arguments as needed.  Adjust callers.
19374         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
19375         incorrect default.
19376         (DWARF2_FRAME_INFO): Define to zero.
19377         * config/ia64/unwind-ia64.c: Remove code that compensated for
19378         the CFA offset error fixed above.
19379         * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
19380         * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
19381         (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
19382         -funwind-tables and -fexceptions to enable frame info.
19383         (dwarf2out_frame_init): Define initial CFA even if
19384         DWARF2_UNWIND_INFO is disabled.  Call initial_return_save if
19385         DWARF2_UNWIND_INFO is nonzero, not just defined.
19386         (dwarf2out_frame_finish): Output non-EH call frame info only
19387         if DWARF2_FRAME_INFO is nonzero.
19388         (convert_cfa_to_loc_list,
19389         compute_frame_pointer_to_cfa_displacement): Define even if
19390         unwind info is not supported.
19391         (gen_subprogram_die): Use the above unconditionally.  Remove
19392         legacy alternate code.
19393         * toplev.c (compile_file): Compile in call to
19394         dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
19395         (lang_dependent_init): Ditto for dwarf2out_frame_init.
19396
19397 2006-02-04  David Edelsohn  <edelsohn@gnu.org>
19398             Jakub Jelinek  <jakub@redhat.com>
19399
19400         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
19401         IBM extended float format long double as "g" on powerpc*-linux.
19402
19403 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19404
19405         PR target/25926
19406         * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
19407         * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
19408
19409 2006-02-03  Jason Merrill  <jason@redhat.com>
19410
19411         PR c++/25979
19412         * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
19413
19414         PR middle-end/25977
19415         * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
19416         on the return slot if it's an NRV.
19417
19418 2006-02-03  Zdenek Dvorak <dvorakz@suse.cz>
19419
19420         * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
19421         (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
19422         rewrite_use): Do not handle USE_OUTER.
19423         (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
19424         add_iv_outer_candidates, may_replace_final_value,
19425         determine_use_iv_cost_outer, rewrite_use_outer): Removed.
19426         (find_interesting_uses_op): Functionality of
19427         find_interesting_uses_outer_or_nonlin moved here.
19428         (find_interesting_uses_outside): Use find_interesting_uses_op.
19429
19430 2006-02-03  Alan Modra  <amodra@bigpond.net.au>
19431
19432         PR target/25960
19433         * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
19434
19435 2006-02-03  Andreas Krebbel  <krebbel1@de.ibm.com>
19436             Ulrich Weigand  <uweigand@de.ibm.com>
19437
19438         PR target/25864
19439         * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
19440         "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
19441         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
19442         * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
19443         and dxr fields.
19444         (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
19445         (s390_rtx_costs): Use the new fields to calculate rtx costs.
19446         (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
19447         Define secondary reloads for TFmode moves.
19448         (constant_modes): Add TFmode.
19449         (NR_C_MODES): Set to 8.
19450         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
19451         builtin define.
19452         (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
19453         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
19454         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
19455         CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
19456         * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
19457         fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
19458         (FPR mode macro): Add TFmode.
19459         (DSF mode macro): New.
19460         (<de>, <dee> mode attributes): Removed.
19461         (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
19462         ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
19463         "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
19464         "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
19465         "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
19466         "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
19467         "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
19468         "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
19469         "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
19470         "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
19471         "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
19472         "*negabs<mode>2", "sqrt<mode>2"):
19473         Changed <de> to <xde>. R constraint replaced by <Rf>.
19474         ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
19475         <Rf>.
19476         ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
19477         ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
19478         ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
19479         splitters.
19480         ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
19481         "extenddftf2", "extendsftf2"): New expanders.
19482         ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
19483         "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
19484         "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
19485         * config/s390/s390.opt (mlong-double-128, mlong-double-64):
19486         New options.
19487         * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
19488         * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
19489         __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
19490         __floatditf): Add a GCC_4.1.0 symbol version tag.
19491         * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
19492         the new options.
19493
19494 2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>
19495
19496         PR target/25377
19497         * config/i386/i386.c (ix86_function_ok_for_sibcall):
19498         Use targetm.binds_local_p instead of TREE_PUBLIC.
19499
19500 2006-02-02  Roger Sayle  <roger@eyesopen.com>
19501
19502         * tree.h (TYPE_STRING_FLAG): Document that this field may be used
19503         on INTEGER_TYPEs to indicate that it denotes a character type.
19504         * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
19505         signed_char_type_node, unsigned_char_type_node and char_type_node.
19506         * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
19507         INTEGER_TYPE.  Use TYPE_STRING_FLAG to decide whether to emit
19508         a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
19509
19510 2006-02-02  Zdenek Dvorak <dvorakz@suse.cz>
19511             Daniel Berlin  <dberlin@dberlin.org>
19512
19513         * tree-tailcall.c (arg_needs_copy_p): New function.
19514         (eliminate_tail_call): Use arg_needs_copy_p.
19515         (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
19516         (add_virtual_phis): New function.
19517
19518 2006-02-02  Jakub Jelinek  <jakub@redhat.com>
19519
19520         * config/sparc/sparc.c (sparc_output_scratch_registers): Use
19521         #ignore instead of #scratch for %g7 .register directive.
19522
19523 2006-02-02  Andreas Tobler  <a.tobler@schweiz.ch>
19524
19525         * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
19526         object files.
19527
19528 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
19529
19530         * flow.c (calculate_global_regs_live): Assert that there aren't any
19531         EDGE_FAKE edges.
19532
19533 2006-02-02  Paolo Bonzini  <bonzini@gnu.org>
19534
19535         * tree-flow-inline.h (bsi_after_labels): Rewrite, return
19536         what its name says.
19537         * lambda-code.c (perfect_nestify): Use bsi_insert_before on
19538         bsi_after_labels iterator.
19539         * tree-if-conv.c (find_phi_replacement_condition,
19540         replace_phi_with_cond_modify_expr): Likewise.
19541         * tree-scalar-evolution.c (scev_const_prop): Likewise.
19542         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
19543
19544 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
19545
19546         * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
19547
19548 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
19549
19550         PR 25990
19551         * tree-cfg.c (move_block_to_fn): Clear out the basic block
19552         array after growing it.
19553
19554 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
19555
19556         PR middle-end/24901
19557         * fold-const.c (fold_checksum_tree): Change type of buf.
19558
19559 2006-02-01  Bernd Schmidt  <bernd.schmidt@analog.com>
19560
19561         * reload.c (push_secondary_reload): Initialize t_icode.
19562
19563 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
19564
19565         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
19566         -msoft-float -mlong-double-128 only issue a warning, but don't
19567         swich to DFmode long double.
19568
19569 2006-02-01  Hans-Peter Nilsson  <hp@axis.com>
19570
19571         * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
19572         has a constant equivalent, iterate over equivalents for arg0,
19573         calling simplify_relational_operation and if there's a result
19574         cheaper than X, apply fold_rtx and return the result.
19575
19576 2006-02-01  Jan Hubicka  <jh@suse.cz>
19577
19578         * opts.c (no_unit_at_a_time_default): New global variable.
19579         (decode_options): Use it.
19580         * opts.h (no_unit_at_a_time_default): Declare.
19581
19582 2006-02-01  Paul Brook  <paul@codesourcery.com>
19583
19584         * function.c (assign_parm_setup_reg): Use function argument promotion
19585         rules.
19586         * expr.c (expand_expr_real_1): Use function argument promotion rules
19587         for PARM_DECLs.
19588
19589 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
19590
19591         * gcc.c (process_command): Change j to 'unsigned int'.
19592
19593 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
19594
19595         PR middle-end/26001
19596         * expr.c (expand_expr_real_1) <case ARRAY_REF>:
19597         Use the corrected index for the character
19598         out of the string constant.
19599
19600 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
19601
19602         * mode-switching.c (optimize_mode_switching): Fix size
19603         allocated for bb_info[n_entities].
19604
19605 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
19606
19607         * gcc.c (main): Correct type that is allocated for
19608         explicit_link_files.
19609
19610 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
19611
19612         * config/s390/s390.c (init_alignment_context): Set
19613         ALIAS_SET_MEMORY_BARRIER on the MEM.
19614         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
19615
19616 2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>
19617
19618         PR middle-end/25933
19619         * loop-unroll.c (unroll_loop_runtime_iterations): Free
19620         dom_bbs pointer.
19621         * tree-ssa-live.c (type_var_init): Allocate bitmap after
19622         call to tpa_init.
19623
19624 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
19625
19626         * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
19627         * regrename.c: Ditto.
19628         * tree-ssa-loop-im.c: Ditto.
19629         * tree-dump.c: Ditto.
19630         * tree-complex.c: Ditto.
19631         * genrecog.c: Ditto.
19632         * tree-ssa-threadupdate.c: Ditto.
19633         * tracer.c: Ditto.
19634         * java/class.c: Ditto.
19635         * java/jcf-parse.c: Ditto.
19636         * java/resource.c: Ditto.
19637         * java/except.c: Ditto.
19638         * java/jvspec.c: Ditto.
19639         * java/jcf-write.c: Ditto.
19640         * java/jcf-path.c: Ditto.
19641         * java/gjavah.c: Ditto.
19642         * java/zextract.c: Ditto.
19643         * java/jcf-io.c: Ditto.
19644         * java/jcf.h: Ditto.
19645         * java/buffer.c: Ditto.
19646         * java/lang.c: Ditto.
19647         * java/parse-scan.y: Ditto.
19648         * java/lex.c: Ditto.
19649         * java/lex.h: Ditto.
19650         * cfgloopmanip.c: Ditto.
19651         * postreload-gcse.c: Ditto.
19652         * tree-ssa-loop-manip.c: Ditto.
19653         * postreload.c: Ditto.
19654         * tree-ssa-loop-ch.c: Ditto.
19655         * loop.c: Ditto.
19656         * ipa-cp.c: Ditto.
19657         * cppspec.c: Ditto.
19658         * diagnostic.c: Ditto.
19659         * final.c: Ditto.
19660         * genoutput.c: Ditto.
19661         * gcc.c: Ditto.
19662         * cfghooks.c: Ditto.
19663         * cfgloopanal.c: Ditto.
19664         * objc/objc-act.c: Ditto.
19665         * gcov.c: Ditto.
19666         * genextract.c: Ditto.
19667         * genautomata.c: Ditto.
19668         * pretty-print.c: Ditto.
19669         * genemit.c: Ditto.
19670         * cgraphunit.c: Ditto.
19671         * flow.c: Ditto.
19672         * df-scan.c: Ditto.
19673         * haifa-sched.c: Ditto.
19674         * dominance.c: Ditto.
19675         * dbxout.c: Ditto.
19676         * tree-ssa-loop-ivopts.c: Ditto.
19677         * df-core.c: Ditto.
19678         * mode-switching.c: Ditto.
19679         * modulo-sched.c: Ditto.
19680         * graph.c: Ditto.
19681         * ipa-pure-const.c: Ditto.
19682         * cse.c: Ditto.
19683         * fix-header.c: Ditto.
19684         * web.c: Ditto.
19685         * tree-stdarg.c: Ditto.
19686         * ipa-utils.c: Ditto.
19687         * loop-init.c: Ditto.
19688         * ipa-inline.c: Ditto.
19689         * cfganal.c: Ditto.
19690         * global.c: Ditto.
19691         * alloc-pool.c: Ditto.
19692         * dwarf2out.c: Ditto.
19693         * opts.c: Ditto.
19694         * genattrtab.c: Ditto.
19695         * tree-ssa-loop-ivcanon.c: Ditto.
19696         * predict.c: Ditto.
19697         * timevar.c: Ditto.
19698         * lcm.c: Ditto.
19699         * fortran/gfortranspec.c: Ditto.
19700         * regmove.c: Ditto.
19701         * local-alloc.c: Ditto.
19702         * langhooks.c: Ditto.
19703         * function.c: Ditto.
19704         * tree-vectorizer.c: Ditto.
19705         * gcse.c: Ditto.
19706         * ipa-type-escape.c: Ditto.
19707         * alias.c: Ditto.
19708         * tree-if-conv.c: Ditto.
19709         * profile.c: Ditto.
19710         * ipa.c: Ditto.
19711         * tree-data-ref.c: Ditto.
19712         * loop-unroll.c: Ditto.
19713         * treelang/treetree.c: Ditto.
19714         * calls.c: Ditto.
19715         * bt-load.c: Ditto.
19716         * ggc-common.c: Ditto.
19717         * except.c: Ditto.
19718         * coverage.c: Ditto.
19719         * cselib.c: Ditto.
19720         * tree-cfgcleanup.c: Ditto.
19721         * tree-ssa-pre.c: Ditto.
19722         * cfgcleanup.c: Ditto.
19723         * loop-invariant.c: Ditto.
19724         * loop-iv.c: Ditto.
19725         * ipa-prop.c: Ditto.
19726         * print-tree.c: Ditto.
19727         * conflict.c: Ditto.
19728         * ggc-page.c: Ditto.
19729         * sched-deps.c: Ditto.
19730         * regclass.c: Ditto.
19731         * tree-object-size.c: Ditto.
19732         * combine.c: Ditto.
19733         * bb-reorder.c: Ditto.
19734         * resource.c: Ditto.
19735         * var-tracking.c: Ditto.
19736         * cfgloop.c: Ditto.
19737         * df-problems.c: Ditto.
19738         * reg-stack.c: Ditto.
19739         * tlink.c: Ditto.
19740         * gccspec.c: Ditto.
19741         * sched-rgn.c: Ditto.
19742         * tree-ssa-structalias.c: Ditto.
19743         * tree-ssa-reassoc.c: Ditto.
19744         * config/darwin-c.c: Ditto.
19745         * config/darwin.c: Ditto.
19746         * config/arm/arm.c: Ditto.
19747         * cfgrtl.c: Ditto.
19748         * collect2.c: Ditto.
19749         * reload1.c: Ditto.
19750
19751 2006-01-31  Nicolas Pitre  <nico@cam.org>
19752
19753         * arm.md (smaxsi3): Make aware of smax_m1.
19754         (smax_m1): New.
19755
19756 2006-01-31  Nathan Sidwell  <nathan@codesourcery.com>
19757
19758         * config/m68k/lb1sf68.asm: Use moveq to load small constants.
19759
19760 2006-01-31  Richard Guenther  <rguenther@suse.de>
19761
19762         * doc/invoke.texi (-msselibm): Document.
19763         * target.h (expand_library_builtin): New target hook.
19764         * builtins.c (expand_builtin): Use expand_library_builtin.
19765         (default_expand_library_builtin): New function.
19766         * gcc.c (LINK_GCC_MATH_SPEC): Define.
19767         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
19768         (link_gcc_math_spec): Declare.
19769         (static_specs): Add link_gcc_math_spec.
19770         * expr.h (default_expand_library_builtin): Declare.
19771         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
19772         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
19773         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
19774         * config/i386/i386.opt (msselibm): New target option.
19775         * config/i386/i386.c (ix86_builtin_function_variants): New array.
19776         (ix86_init_sse_abi_builtins): New function.
19777         (ix86_expand_library_builtin): Likewise.
19778         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
19779         (override_options): Handle error conditions wrt -msselibm.
19780         (ix86_builtins): Add function codes for SSE2 ABI builtins.
19781         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
19782         * doc/extend.texi (__builtin_sse2_*): Document new target specific
19783         builtins.
19784
19785 2006-01-31  Richard Guenther  <rguenther@suse.de>
19786         Paolo Bonzini  <bonzini@gnu.org>
19787
19788         * doc/install.texi (--disable-libgcc-math): Document.
19789
19790 2006-01-30  Marcin Dalecki  <martin@dalecki.de>
19791
19792         * expr.h (expand_normal): new inline function.
19793         * builtins.c: use it, use EXPAND_NORMAL explicitely.
19794         * dojump.c: use it.
19795         * dwarf2out.c: use it.
19796         * expr.c: use it.
19797         * calls.c: use it.
19798         * expmed.c: use it.
19799         * except.c: use it.
19800         * config/sparc/sparc.c: use it.
19801         * config/i386/i386.c: use it.
19802         * config/rs6000/rs6000.c: use it.
19803         * config/arm/arm.c: use it.
19804         * config/mips/mips.c: use it.
19805         * stmt.c: use it, use EXPAND_NORMAL explicitely.
19806
19807 2006-01-30  Roger Sayle  <roger@eyesopen.com>
19808
19809         * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
19810         argv to the appropriate type.
19811
19812 2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
19813
19814         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
19815         unreachable code.
19816
19817 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
19818
19819         PR target/26018
19820         * config/s390/s390.c (struct machine_function): New flag
19821         decomposed_literal_pool_addresses_ok_p.
19822         (s390_reorg): Set it before final stage of literal pool transforms.
19823         (s390_decompose_address): Only accept displacements of the form
19824         (minus (label_ref ...) (label_ref ...)) if that flag is set.
19825
19826 2006-01-30  Carlos O'Donell  <carlos@codesourcery.com>
19827
19828         * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
19829         the comparison routine return.
19830
19831 2006-01-30  Michael Matz  <matz@suse.de>
19832
19833         * global.c (find_reg): Only evict for global regs.
19834         Take n_refs into account and dump more info.
19835
19836 2006-01-30  J"orn Rennecke <joern.rennecke@st.com>
19837
19838         PR target/14798:
19839         * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
19840         (pragma_trap, pragma_nosave_low_regs): Likewise.
19841         (current_function_anonymous_args): Likewise.
19842         (sh_deferred_function_attributes): New variable.
19843         (sh_deferred_function_attributes_tail): Likewise.
19844         (print_operand): For '@', look up trap_exit attribute.
19845         (calc_live_regs): Look up trapa_handler attribute.  For trapa
19846         handlers, save/restore fpscr, but don't do any other
19847         interrupt-specific saves.
19848         Don't save r0..r7 if the nosave_low_regs attribute is in effect.
19849         Fix check for partially saved registers to check for SHmedia.
19850         (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
19851         (sh_output_function_epilogue): Don't clear any of the removed
19852         variables.
19853         (sh_insert_attributes): Don't check pragma_interrupt.
19854         Insert deferred attributes.  Check that interrupt attribute is
19855         present for other attributes that require its presence.
19856         (sh_attribute_table): Add new attributes trapa_handler and
19857         nosave_low_regs.
19858         (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19859         Don't check for pragma_interrupt.  Don't store argument.
19860         * sh.h (pragma_interrupt, sp_switch): Don't declare.
19861         (sh_deferred_function_attributes): Declare.
19862         (sh_deferred_function_attributes_tail): Likewise.
19863         * sh.md (sp_switch_1): Add operand.  Change generator caller.
19864         (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
19865         (*return_i): Don't use when trap_exit attribute is in effect.
19866         (*return_trapa): New insn pattern.
19867         * sh-c.c: New file.
19868         * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
19869         setting c_target_objs and cxx_target_objs.
19870         * t-sh: Add rule for sh-c.o.
19871
19872 2006-01-30  Richard Guenther  <rguenther@suse.de>
19873
19874         PR c++/23372
19875         * gimplify.c (gimplify_target_expr): Handle easy cases
19876         without creating a temporary.
19877
19878 2006-01-30  Nathan Sidwell  <nathan@codesourcery.com>
19879
19880         * vec.h (safe_grow): Remove duplicated line.
19881
19882 2006-01-29  Diego Novillo  <dnovillo@redhat.com>
19883
19884         PR 25874
19885         * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
19886         (expand_omp): ... here.
19887         (expand_omp_parallel): Only remove barriers for combined
19888         parallel+workshare constructs.
19889
19890 2006-01-29  Eric Botcazou  <ebotcazou@adacore.com>
19891
19892         Revert
19893
19894         2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
19895         * tree.c (build_qualified_type): Chain the new type to the original
19896         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
19897         a POINTER_TYPE or a REFERENCE_TYPE respectively.
19898         (build_pointer_type_for_mode): Only return unqualified types.
19899         (build_reference_type_for_mode): Likewise.
19900
19901 2006-01-29  Gabriel Dos Reis  <gdr@integgrable-solutions.net>
19902
19903         * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
19904         * Makefile.in (CXX_COMPAT_WARN): Define.
19905         * configure: Regenerate.
19906
19907 2006-01-29  Dorit Nuzman  <dorit@il.ibm.com>
19908
19909         PR tree-opt/25911
19910         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
19911         to an if check.
19912
19913 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19914
19915         * toplev.c: Fix thinko.
19916
19917 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19918             Marcin Dalecki  <martin@dalecki.de>
19919
19920         * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
19921         (push_srcloc): Use XNEW.
19922         (init_asm_output, default_get_pch_validity): Use XNEWVEC.
19923
19924 2006-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
19925
19926         * df-core.c (df_set_blocks): Deleted all variable.
19927
19928 2006-01-28  Ian Lance Taylor  <ian@airs.com>
19929
19930         * cgraphunit.c (cgraph_assemble_pending_functions): Call
19931         cgraph_output_pending_asms.
19932
19933 2006-01-28  Zack Weinberg  <zackw@panix.com>
19934
19935         * c.opt: Add -W(no-)overlength-strings.
19936         * doc/invoke.texi: Document it.
19937         * c-opts.c (c_common_handle_option): -pedantic implies
19938         -Woverlength-strings, if not explicitly disabled already.
19939         (c_common_post_options): -Woverlength-strings defaults to off, and
19940         is always off for C++.
19941         * c-common.c (fix_string_type): Issue warning about strings longer
19942         than is portable only if warn_overlength_strings.  Rearrange code
19943         a little for clarity.
19944         * configure.in: Check for -Wno-overlength-strings as well before
19945         enabling -pedantic in stage 1.
19946         * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
19947         (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
19948
19949         * genconditions.c (write_header, write_one_condition)
19950         (write_conditions, write_writer): Consolidate very long strings
19951         that were broken up to fit in C89 portable limit.  Don't use
19952         printf when fputs will do.
19953
19954 2006-01-28  Adam Nemet  <anemet@caviumnetworks.com>
19955
19956         * combine.c (simplify_comparison <AND>): Check
19957         TRULY_NOOP_TRUNCATION before start using a subreg.
19958
19959         * config/mips/mips.md (*branch_zero<mode>,
19960         *branch_zero<mode>_inverted, *branch_equality<mode>,
19961         *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
19962         Remove mode check from comparisons.
19963
19964 2006-01-28  Kenneth Zadeck <zadeck@naturalbridge.com>
19965
19966         * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
19967
19968 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
19969
19970         * expmed.c (const_mult_add_overflow_p): Remove.
19971         * expr.h: Remove the prototype for const_mult_add_overflow_p.
19972
19973         * recog.c (validate_replace_rtx_subexp): Remove.
19974         * recog.h: Remove the prototype for
19975         validate_replace_rtx_subexp.
19976
19977         * integrate.h: Remove the prototype for
19978         copy_decl_for_inlining.
19979         * rtl.h: Remove the prototype for mark_constant_function.
19980         * tree-vectorizer.h: Remove the prototype for
19981         vect_strip_conversion.
19982
19983         * modulo-sched.c (create_partial_schedule,
19984         free_partial_schedule, reset_partial_schedule): Make them
19985         static.
19986
19987         * hooks.c (hook_bool_rtx_int_false): Remove.
19988         * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
19989
19990 2006-01-28  David Edelsohn  <edelsohn@gnu.org>
19991
19992         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
19993         and -mlong-double-128 are incompatible.
19994         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
19995         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
19996         (TARGET_LIBGCC2_CFLAGS): Define.
19997         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
19998         (TARGET_LIBGCC2_CFLAGS): Same.
19999         * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
20000
20001 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
20002
20003         PR c/19606.
20004         * c-typeck.c (build_binary_op): Perform implicit casts of
20005         operands before shortening them.
20006
20007         * cfgloopmanip.c (split_loop_bb): Remove.
20008         * cfgloop.h: Remove the prototype for split_loop_bb.
20009
20010         * cfgloop.c (flow_loop_outside_edge_p): Remove.
20011         * cfgloop.h: Remove the prototype for
20012         flow_loop_outside_edge_p.
20013
20014         * emit-rtl.c (init_virtual_regs): Make it static.
20015         * function.h: Remove the prototype for init_virtual_regs.
20016
20017         * recog.c (peephole2_optimize): Make it static.
20018         * recog.h: Remove the prototype for peephole2_optimize.
20019
20020 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
20021
20022         * df-scan.c (df_record_entry_block_defs): Check if
20023         INCOMING_RETURN_ADDR_RTX is defined.
20024
20025 2006-01-27  Daniel Berlin  <dberlin@dberlin.org>
20026             Kenneth Zadeck <zadeck@naturalbridge.com>
20027
20028         PR rtl-optimization/24762
20029         * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
20030         * targhooks.c (hook_void_bitmap): New hook prototype.
20031         * targhoohs.h (hook_void_bitmap): Ditto.
20032         * bitmap.h (bitmap_head_def): Moved to coretypes.h.
20033         * coretypes.h (bitmap_head_def): Moved from bitmap.h.
20034         * target.h (live_on_entry): New function pointer.
20035         * df-scan.c (df_all_hard_regs): Removed.
20036         (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
20037         (df_scan_free_internal): Added df->entry_block_defs.
20038         (df_scan_alloc): Ditto.
20039         (df_scan_dump): Ditto.
20040         (df_uses_record): Plumbed flag field properly thru calls.
20041         Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
20042         This part fixes PR24762.
20043         (df_bb_refs_record): Added code to make the frame and arg
20044         pointers live in EH blocks.
20045         (df_refs_record): Added call to df_record_entry_block_defs.
20046         (df_record_entry_block_defs): New function.
20047         * df-core.c: Added comments to describe new artifical defs.
20048         * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
20049         (entry_block_defs): New field in struct df.
20050         (df_all_hard_regs): Deleted.
20051         * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
20052         * df-problems.c (df_ru_bb_local_compute_process_def):
20053         Added code to handle artifical defs in the entry to a function.
20054         (df_ru_bb_local_compute): Ditto.
20055         (df_rd_bb_local_compute_process_def): Ditto.
20056         (df_rd_bb_local_compute): Ditto.
20057         (df_lr_bb_local_compute): Ditto.
20058         (df_ur_bb_local_compute): Ditto.
20059         (df_urec_bb_local_compute): Ditto.
20060         (df_chain_create_bb): Ditto.
20061         (df_ur_local_finalize): Removed entry.
20062         (df_urec_init): Ditto.
20063         (df_urec_local_finalize): Ditto.
20064         (df_ri_bb_compute): Added detection of last use of pseudos.
20065         * Makefile.in (df-scan.o): Updated dependencies.
20066         * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
20067         * config/mips/mips.c (mips_set_live_on_entry): Added.
20068         * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
20069         for target hook.
20070         * dce.c (marked_insn_p): Added code to handle artifical defs.
20071
20072 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
20073
20074         * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
20075         intrinsic.
20076         (_mm_cvtsi128_si64): Likewise.
20077         (_mm_cvtsd_si64): Likewise.
20078         (_mm_cvttsd_si64): Likewise.
20079         (_mm_cvtsi64_sd): Likewise.
20080         (_mm_cvtsi64_si128): Likewise.
20081         * config/i386/mmintrin.h (_m_from_int64): Likewise.
20082         (_mm_cvtsi64_m64): Likewise.
20083         (_m_to_int64): Likewise.
20084         (_mm_cvtm64_si64): Likewise.
20085         * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
20086         (_mm_cvttss_si64): Likewise.
20087         (_mm_cvtsi64_ss): Likewise.
20088         (_mm_cvtss_f32): Likewise.
20089
20090 2006-01-27  Carlos O'Donell  <carlos@codesourcery.com>
20091
20092         * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
20093         for pragma redefine_extname.
20094
20095 2006-01-27  Jakub Jelinek  <jakub@redhat.com>
20096
20097         PR target/25864
20098         * libgcc-std.ver: Add GCC_4.1.0 symbol version.
20099         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
20100         -mno-minimal-toc to previous content.
20101         (bispecs): Remove goal.
20102         * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
20103         * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
20104         compatibility aliases on powerpc-*-*gnu*.
20105         * config/rs6000/libgcc-ppc-glibc.ver: New file.
20106         * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
20107         libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
20108         (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
20109         (ldblspecs): New goal.
20110         * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
20111         * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
20112         _df_to_tf.
20113         * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
20114         L_sf_to_tf or L_df_to_tf is defined.
20115
20116 2006-01-27  David Edelsohn  <edelsohn@gnu.org>
20117             Alan Modra  <amodra@bigpond.net.au>
20118
20119         PR target/25864
20120         * config/rs6000/linux.h (POWERPC_LINUX): Define.
20121         * config/rs6000/linux64.h (POWERPC_LINUX): Define.
20122         * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
20123         * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
20124         * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
20125         * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
20126         (rs6000_override_options): Initialize rs6000_ieeequad.
20127         Initialize TFmode format to ibm_extended_format if not
20128         TARGET_IEEEQUAD.
20129         (rs6000_handle_option): Accept -mabi= ibmlongdouble and
20130         ieeelongdouble.
20131         (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
20132         (rs6000_return_in_memory): Only return IEEEQUAD in memory.
20133         (function_arg_advance): IBM long double passed in two FPRs, not
20134         split.
20135         (function_arg): IBM long double passed in FPRs.
20136         (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
20137         (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
20138         Only multireg GPR aligned.
20139         (rs6000_init_libfuncs): Enable IBM long double functions if not
20140         IEEEQUAD.
20141         (rs6000_generate_compare): Use IBM long double compare if not
20142         TARGET_IEEEQUAD.
20143         * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
20144         (TARGET_IEEEQUAD): Define.
20145         (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
20146         not TARGET_IEEEQUAD.
20147         * config/rs6000/rs6000.md: Enable TFmode patterns if
20148         !TARGET_IEEEQUAD.
20149         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
20150         * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
20151         and -mlong-double-128 are incompatible.
20152         * doc/invoke.texi (-mabi): Collect options together.  Add
20153         ibmlongdouble and ieeelongdouble.
20154
20155 2006-01-27  Richard Sandiford  <richard@codesourcery.com>
20156
20157         * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
20158         opaque type.
20159         * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
20160         * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
20161         (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
20162         * rtl.h (rtunion_def): Remove rt_ptr.
20163         (X0PTR): Delete.
20164         (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
20165         (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
20166         * config/i386/winnt.c (i386_pe_mark_dllexport)
20167         (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
20168
20169 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
20170
20171         * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
20172
20173 2006-01-26 Alexandre Oliva  <aoliva@redhat.com>
20174
20175         PR other/24829
20176         PR target/24831
20177         * gthr-dce.h: Do not gthrw-ify pthread_once_init,
20178         pthread_key_delete.  From John David Anglin.  gthrw-ify
20179         pthread_getunique_np only if it it's not a macro.  Delete
20180         UNUSED macro.
20181         (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
20182         __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
20183         __gthread_objc_condition_signal, __gthread_key_delete): Add
20184         "__attribute__ ((__unused__))" to unused arguments.
20185         (__gthread_recursive_mutex_init_function): Add missing return.
20186         * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
20187         gthr-posix95.h: Use macro-based approach for name redirection
20188         on targets missing weakref.
20189
20190 2006-01-26  Zack Weinberg  <zackw@panix.com>
20191
20192         * genconditions.c (write_header): In generated code, #ifdef out
20193         all includes and fake declarations, except includes of bconfig.h
20194         and system.h, unless GCC_VERSION >= 3001.  Do not include
20195         gensupport.h in any case.
20196         (write_conditions): Generate a definition of struct c_test.  Add
20197         a comment to the generated #endif.
20198         (write_one_condition): Escape backslashes in string too.
20199         (write_writer): Generated code must escape backslashes and quote
20200         marks (but not newlines) in the strings it writes.
20201         * Makefile.in (build/gencondmd.o): Update dependencies.
20202
20203 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
20204
20205         PR target/25961
20206         * Makefile.in (insn-automata.o): Add header file dependencies.
20207         * genautomata.c: Add includes.
20208
20209 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
20210
20211         PR target/25961
20212         * Makefile.in (insn-automata.o): Add -Wno-error flag.
20213
20214 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
20215
20216         * configure.ac: Expect target tools paths to be passed from the toplevel
20217         and wrap the detection into AS_SET_VAR_IF.  Extract side-effects out of
20218         AS_SET_VAR_IF.
20219         * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
20220
20221 2006-01-26  Alexandre Oliva  <aoliva@redhat.com>
20222
20223         PR c/25892
20224         * c.opt (Wpointer-sign): Init to -1.
20225         * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
20226         OPT_pedantic, to 0 otherwise.
20227         * doc/invoke.texi: Update.
20228
20229 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
20230
20231         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
20232         constants provided by 80387 instructions in the destination mode.
20233
20234 2006-01-26  Richard Guenther  <rguenther@suse.de>
20235             Andrew Pinski  <pinskia@physics.uc.edu>
20236
20237         PR tree-opt/21470
20238         partial PR tree-opt/17064
20239         * tree-ssa-structalias.c (intra_create_variable_infos):
20240         Create heap variables for incoming parameters if
20241         flag_argument_noalias > 1.
20242         (find_what_p_points_to): Look through default defs of
20243         parameter decls.
20244
20245 2006-01-26  Jeff Law  <law@redhat.com>
20246
20247         PR ada/25900
20248         * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
20249         with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
20250         within the VR_RANGE, use the VR_RANGE as the result, not the
20251         VR_ANTI_RANGE.
20252         (adjust_range_with_scev): Reject ranges from SCEV which are out of
20253         bounds for the type.
20254
20255 2006-01-26  Daniel Berlin  <dberlin@dberlin.org>
20256
20257         * tree-ssa-alias.c (maybe_create_global_var): Change
20258         subvar walking to an assertion that we don't have subvar'd variables.
20259
20260 2006-01-26  Andrew Pinski  <pinskia@physics.uc.edu>
20261
20262         PR C/25861
20263         * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
20264         Use a new variable, inner.  PARM_DECLs are always non-weak.
20265
20266 2006-01-26  Shantonu Sen  <ssen@opendarwin.org>
20267
20268         * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
20269         --disable-checking.
20270
20271 2006-01-26  Adam Nemet  <anemet@caviumnetworks.com>
20272
20273         * config/mips/mips.md (*clear_upper32): New combiner pattern.
20274
20275 2006-01-26  Richard Earnshaw  <richard.earnshaw@arm.com>
20276
20277         * arm.md (smaxsi3, sminsi3): Convert to define_expand.
20278         (smax_insn, smin_insn, smax_0, smin_0): New.
20279
20280 2006-01-26  Hans-Peter Nilsson  <hp@axis.com>
20281
20282         PR target/25947
20283         * config/cris/cris.c (cris_order_for_addsi3): New function.
20284         * config/cris/cris-protos.h: Prototype it.
20285         * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
20286         (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
20287         (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
20288         (split for "op.S1 [rx=rx+i],ry (swapped)")
20289         (split for "op(s|u).S1 [rx=rx+i],ry")
20290         (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
20291         Apply cris_order_for_addsi3 when generating addsi3 insns.
20292
20293 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
20294
20295         * tree.h (TREE_RANGE_CHECK): Fix range predicate.
20296         (TREE_BLOCK): Add call to EXPR_CHECK.
20297
20298 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
20299
20300         PR 25886
20301         * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
20302         * tree-pretty-print.c (dump_omp_clause): Extract from ...
20303         (dump_omp_clauses): ... here.
20304         (dump_generic_node): Handle OMP_CLAUSE.
20305         * tree.c (omp_clause_num_ops): New.
20306         (omp_clause_code_name): New.
20307         (tree_code_size): Handle OMP_CLAUSE.
20308         (tree_size): Likewise.
20309         (make_node): Document handling of OMP_CLAUSE.
20310         (tree_node_structure): Handle OMP_CLAUSE.
20311         (omp_clause_check_failed): New.
20312         (omp_clause_range_check_failed): New.
20313         (omp_clause_operand_check_failed): New.
20314         (build_omp_clause): New.
20315         (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
20316         * tree.h (enum omp_clause_code): Declare.
20317         (OMP_CLAUSE_SUBCODE_CHECK): Define.
20318         (OMP_CLAUSE_RANGE_CHECK): Define.
20319         (OMP_CLAUSE_ELT_CHECK): Define.
20320         (omp_clause_check_failed): Declare.
20321         (omp_clause_operand_check_failed): Declare.
20322         (omp_clause_range_check_failed): Declare.
20323         (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
20324         (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
20325         (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
20326         (OMP_CLAUSE_LASTPRIVATE): Likewise.
20327         (OMP_CLAUSE_IF_EXPR): Likewise.
20328         (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
20329         (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
20330         (OMP_CLAUSE_REDUCTION_CODE): Likewise.
20331         (OMP_CLAUSE_REDUCTION_INIT): Likewise.
20332         (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
20333         (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
20334         Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
20335         (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
20336         (OMP_CLAUSE_DEFAULT_KIND): Likewise.
20337         (OMP_CLAUSE_CODE): Define.
20338         (OMP_CLAUSE_SET_CODE): Define.
20339         (OMP_CLAUSE_CODE): Define.
20340         (OMP_CLAUSE_OPERAND): Define.
20341         (struct tree_omp_clause): Declare.
20342         (union tree_node): Add field 'omp_clause'.
20343         * treestruct.def (TS_OMP_CLAUSE): Define.
20344         * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
20345         OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
20346         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
20347         OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
20348         OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
20349         OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
20350         (OMP_CLAUSE): Define.
20351         * print-tree.c (print_node): Handle OMP_CLAUSE.
20352         * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
20353         * c-typeck.c: Likewise.
20354         * gimplify.c: Likewise.
20355         * c-omp.c: Likewise.
20356         * tree-nested.c: Likewise.
20357         * tree-inline.c: Likewise.
20358         * c-parser.c: Likewise.
20359         * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
20360         clauses.
20361
20362 2006-01-25  Roger Sayle  <roger@eyesopen.com>
20363
20364         PR rtl-optimization/25703
20365         * combine.c (try_combine): Handle zero_extract and strict_low_part
20366         of non-lowpart SUBREGs for constant reg_subword_p set optimization.
20367
20368 2006-01-25  Peter Bergner  <bergner@vnet.ibm.com>
20369
20370         * global.c: Fix comment typos.
20371
20372 2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
20373
20374         PR target/25758
20375         * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
20376         Use output_addr_const instead of assemble_name.
20377
20378 2006-01-25  Paolo Bonzini  <bonzini@gnu.org>
20379
20380         * Makefile.in (sched-vis.o): Update dependencies.
20381         * haifa-sched.c (sched_finish): Clear current_sched_info.
20382         * cfg.c (dump_bb_info): New, split from dump_flow_info.
20383         (dump_flow_info): Call it.
20384         * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
20385         a slim RTL dump.
20386         * basic-block.h (dump_bb_info): Declare.
20387         * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
20388         option, and apply options only for dump files whose TDF_RTL,
20389         TDF_TREE, or TDF_IPA bits match.
20390         * rtl.h: Declare new functions exported from sched-vis.c.
20391         * sched-vis.c: Enable also if scheduling is not used.
20392         (print_value): Print the mode of registers if not inside scheduling.
20393         (print_insn): Make it work outside the scheduler.  Beautify the output
20394         a bit.
20395         (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
20396
20397 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
20398
20399         * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
20400         * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
20401         a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
20402         depending on the value of CONSTANT_POOL_ADDRESS_P.
20403         * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
20404         SYMBOL_REF_DECL.
20405         * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
20406         rather than SYMBOL_REF_DECL.
20407         (rtx_constant_pool): Remove const_rtx_sym_htab.
20408         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
20409         (init_varasm_status): Don't initialize const_rtx_sym_htab.
20410         (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
20411         Remove handling of const_rtx_sym_htab.
20412         (find_pool_constant): Delete.
20413         (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
20414         rather than find_pool_constant.
20415         (get_pool_constant_for_function): Delete.
20416         (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
20417         find_pool_constant.
20418         * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
20419         (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
20420         (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
20421         (SYMBOL_REF_CONSTANT): New macro.
20422         (get_pool_constant_for_function): Delete.
20423         * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
20424         rather than SYMBOL_REF_DECL.
20425         (i386_pe_mark_dllimport): Likewise.
20426         * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
20427         rather than SYMBOL_REF_DECL.
20428         * config/darwin.c (machopic_indirect_data_reference): Likewise.
20429         (machopic_indirect_call_target): Likewise.
20430
20431 2006-01-25  Eric Botcazou  <ebotcazou@adacore.com>
20432
20433         * flow.c (delete_noop_moves): Add missing EOL to dump message.
20434
20435 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
20436
20437         * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
20438
20439 2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
20440
20441         * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
20442
20443 2006-01-24  David Daney  <ddaney@avtrex.com>
20444
20445         PR java/25816
20446         * configure.ac (enable_tls): New enable option.
20447         (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
20448         * configure: Regenerate.
20449         * doc/install.texi (--enable-tls): Document new option.
20450         (--disable-tls): Ditto.
20451
20452 2006-01-24  Richard Henderson  <rth@redehat.com>
20453
20454         * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
20455         * alias.c (true_dependence): Respect it.
20456         (canon_true_dependence, write_dependence_p): Likewise.
20457         * builtins.c (get_builtin_sync_mem): Set it.
20458
20459 2006-01-25  Zdenek Dvorak <dvorakz@suse.cz>
20460
20461         * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
20462         efficient way.
20463
20464 2006-01-24  DJ Delorie  <dj@redhat.com>
20465
20466         * expmed.c (store_bit_field): Don't arbitrarily deny using insv
20467         for storing constants in single-bit bitfields.
20468
20469 2006-01-25  Ben Elliston  <bje@au.ibm.com>
20470
20471         * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
20472
20473 2006-01-24  Andrew Pinski  <pinskia@physics.uc.edu>
20474
20475         PR tree-opt/25860
20476         * tree-ssa-pre.c (phi_translate): Return NULL
20477         for AGGREGATE_TYPE's.
20478
20479 2006-01-24  Zack Weinberg  <zackw@panix.com>
20480
20481         * genautomata.c (process_state_for_insn_equiv_partition):
20482         Use xcalloc for insn_arcs_array.
20483         * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
20484         (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
20485
20486 2006-01-24  Richard Henderson  <rth@redhat.com>
20487
20488         * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
20489         update all callers.
20490
20491 2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
20492
20493         PR rtl-optimization/25890
20494         PR rtl-optimization/25905
20495         * combine.c (expand_compound_operation, expand_field_assignment):
20496         Fail if the bitfield's final position is out of bounds.
20497
20498 2006-01-24  Ian Lance Taylor  <ian@airs.com>
20499
20500         PR middle-end/25930
20501         * cgraphunit.c (cgraph_output_in_order): Don't clear
20502         cgraph_asm_nodes until after asm strings have been output.
20503
20504 2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
20505
20506         * fix-header.c (read_scan_file): Add new parameter imultilib when
20507         calling register_include_chains.
20508
20509 2006-01-23  Diego Novillo  <dnovillo@redhat.com>
20510
20511         * omp-low.c: Update documentation.
20512
20513 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
20514             Daniel Berlin  <dberlin@dberlin.org>
20515
20516         PR tree-opt/25315
20517         PR tree-opt/25857
20518         * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
20519         return from the function.
20520
20521 2006-01-22  Zack Weinberg  <zackw@panix.com>
20522
20523         * rtl.def (match_code): Add second argument.
20524         * genpreds.c (write_extract_subexp): New function.
20525         (write_match_code): Add path argument.  Use write_extract_subexp.
20526         (write_predicate_expr): Pass path to write_match_code.
20527         (mark_mode_tests): MATCH_CODE applied to a subexpression does
20528         not perform a mode test.
20529         * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
20530         a subexpression does not constrain the top-level code set.
20531         * read-rtl.c (read_rtx_variadic): New function.
20532         (read_rtx_1): Use it; allow AND and IOR to be variadic.
20533         * doc/md.texi: Document new notation.
20534         * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
20535         (cmpsi_operand): ... here, using new notation.
20536
20537 2006-01-22  Zack Weinberg  <zackw@panix.com>
20538
20539         * varray.c: Remove GENERATOR_FILE #ifdefs.
20540
20541 2006-01-22  Zack Weinberg  <zackw@panix.com>
20542
20543         * genautomata.c (output_reserved_units_table): Emit nothing if
20544         description->query_units_num is zero.  Remove extra blank line.
20545         (output_cpu_unit_reservation_p): Short circuit
20546         if description->query_units_num is zero.
20547
20548 2006-01-22  Zack Weinberg  <zackw@panix.com>
20549
20550         * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
20551         and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
20552         nor any of the random handful of variables that used to be necessary
20553         when this program was linked with rtlanal.o.  Prune set of forward
20554         function declarations.
20555         (struct attr_desc): Remove static_p field.
20556         (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
20557         (check_attr_test, make_internal_attr, make_numeric_value): Make static.
20558         (attr_string): Do not read the character one past the length of
20559         the string.
20560         (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
20561         (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
20562         (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
20563         (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
20564         (make_automaton_attrs): New.
20565         (main): Do not call into genautomata.  Call local gen_bypass
20566         and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
20567         Remove special case for insn_alts.
20568         * genautomata.c: Include gensupport.h; not genattrtab.h nor
20569         varray.h (leftover from previous change).  Prune set of forward
20570         function declarations.  Remove state_alts fields from all
20571         structures.  Remove state_alts_table from struct automaton.
20572         Make everything except main static.  Do not maintain num_dfa_decls.
20573         Do not maintain state_alts fields of various structures.
20574         (process_decls): Don't validate condexp for dm_insn_reserv decls.
20575         (add_arc): Remove state_alts argument.  All callers updated.
20576         (output_reserved_units_table): Emit #ifdef here...
20577         (output_tables): ...not here.  Don't generate state_alts tables.
20578         (expand_automata): Don't generate attributes.
20579         (write_automata): Don't generate state_alts functions.
20580         (main): New function.
20581         (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
20582         (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
20583         (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
20584         (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
20585         (BYPASS_P_FUNC_NAME, output_state_alts_table)
20586         (output_automata_list_state_alts_code, output_internal_state_alts_func)
20587         (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
20588         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
20589         Delete.
20590         * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
20591         * genattrtab.h: Delete file.
20592         * Makefile.in (OBJS-common): Add insn-automata.o.
20593         (insn-automata.o): New rule.
20594         (simple_generated_c): Add insn-automata.c.
20595         (build/genattrtab.o, build/genautomata.o): Update dependencies.
20596         (genprogmd): Add automata.
20597         (build/genattrtab): Needs no extra objects nor libraries.
20598         (build/genautomata): Needs build/vec.o and -lm.
20599
20600 2006-01-22  Zack Weinberg  <zackw@panix.com>
20601
20602         * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
20603         (output_dfa_max_issue_rate, locked_states_num): Delete.
20604         (struct automaton): Add locked_states field.
20605         (output_dead_lock_vect): Save number of locked states in
20606         automaton->locked_states.  If it is zero, don't print anything.
20607         (output_max_insn_queue_index_def): Define max_insn_queue_index const.
20608         (output_internal_dead_lock_func): Only test the dead_lock_vect
20609         for automata that have locked states.
20610         (output_statistics): Always print the number of locked states for
20611         each automaton.  Calculate total number of locked states here.
20612         (write_automata): Don't call output_dfa_max_issue_rate.
20613         * genattrtab.c: Define length_unit_log as a const variable.
20614         * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
20615         max_insn_queue_index const.
20616         * final.c (length_unit_log): Declare const.
20617         * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
20618
20619 2006-01-22  Zack Weinberg  <zackw@panix.com>
20620
20621         * genautomata.c: Include vec.h, not varray.h.
20622         Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
20623         VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
20624         VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
20625         VEC_* macros operating on appropriately typed vectors, or to
20626         malloced arrays when the size is known in advance.  Const-ify
20627         many char* variables and function arguments.  No functional changes.
20628         * Makefile.in (build/varray.o): Delete rule.
20629         (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
20630         (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
20631
20632 2006-01-22  Zack Weinberg  <zackw@panix.com>
20633
20634         * gensupport.c: Define get_insn_name and record_insn_name here.
20635         (read_md_rtx): Call record_insn_name as appropriate.
20636         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
20637         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
20638         * genpreds.c, genrecog.c: Don't define get_insn_name nor
20639         record_insn_name.
20640         * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
20641         (BUILD_VARRAY): Delete.
20642         (genprognormal): Rename genprogmd.  Fold in all programs from
20643         genprognoprint; also attrtab.
20644         (build/genattrtab): Just mention genautomata.o and varray.o.
20645         Reorganize a bit, add comments to make the categories clearer.
20646
20647 2006-01-22  Zack Weinberg  <zackw@panix.com>
20648
20649         * genconditions.c (condition_table, add_condition): Delete.
20650         (write_conditions): Don't emit n_insn_conditions nor
20651         insn_elision_unavailable.  Issue the gcc version #ifdef here,
20652         inside the table, with no #else clause ...
20653         (write_header): ...not here.
20654         (write_writer): New function.
20655         (main): Don't initialize condition_table.  Use add_c_test.
20656         Call write_writer.
20657         * gensupport.c (init_md_reader_args_cb): Handle multiple input
20658         files on the command line.
20659         (maybe_eval_c_test): Don't check insn_elision_unavailable.
20660         Return -1 if there is no entry in the table, don't abort.
20661         (add_c_test, traverse_c_tests): New functions.
20662         * gensupport.h (insn_elision_unavailable, insn_conditions)
20663         (n_insn_conditions): Delete declarations.
20664         (add_c_test, traverse_c_tests): Declare.
20665         * read-rtl.c: Include gensupport.h.
20666         (read_conditions): New function.
20667         (read_rtx): If read_rtx_1 returns 0, treat as EOF.
20668         (read_rtx_1): If we get EOF when we were looking for an initial
20669         open paren, return 0.  Call read_conditions when appropriate.
20670         * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
20671         dummy-conditions.o.  Eliminate references to insn-conditions.o,
20672         or change them to build/gencondmd.o, as appropriate.  Remove
20673         insn-constants.h from $(simple_generated_h) and insn-conditions.c
20674         from $(simple_generated_c).  For all files remaining in those
20675         two lists, add insn-conditions.md to the generator command line.
20676         Give insn-constants.h/s-constants their own rules.  Add rules
20677         for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
20678         (build/read-rtl.o): Depend on gensupport.h.
20679         (genprognormal): Include preds.
20680         (genprogearly): Rename genprognoprint; only difference is now that
20681         they don't link with $(BUILD_PRINT).
20682         * dummy-conditions.c: Delete.
20683
20684 2006-01-22  Zack Weinberg  <zackw@panix.com>
20685
20686         * genextract.c: Don't include insn-config.h.  Do include vec.h.
20687         Declare vectors of int, char, and locstr.
20688         (locstr): New typedef.
20689         (struct extraction): Make all array fields into bare pointers.
20690         (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
20691         (insn_code_number): Delete.
20692         (accum_extract): New struct.
20693         (VEC_safe_set_locstr, VEC_char_to_string): New functions.
20694         (gen_insn): Take insn_code_number as an argument.  Use an
20695         accum_extract structure instead of loading data directly into
20696         a struct extraction, and having to know how big it might get.
20697         (walk_rtx): Operate entirely on an accum_extract structure.
20698         (print_path): Avoid unnecessary use of printf.
20699         (print_header): New function, split out of main.  Distinguish
20700         more carefully between an unrecognizable insn and an insn that
20701         has the code number of a define_expand.
20702         (main): Pass insn_code_number to gen_insn.  Call print_header
20703         only after parsing.  Avoid unnecessary use of printf.
20704         * Makefile.in (build/vec.o): New rule.
20705         (build/genextract): Depend on build/vec.o.
20706         (build/genextract.o): Don't depend on insn-config.h.
20707
20708 2006-01-22  Zack Weinberg  <zackw@panix.com>
20709
20710         * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
20711         $(RUN_GEN).  Use pattern rules to factor out as much boilerplate as
20712         practical.  Eliminate per-generator-program link rules.
20713
20714 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
20715
20716         PR middle-end/24437
20717         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
20718         with a call expr to ...
20719         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
20720
20721 2006-01-23  Richard Guenther  <rguenther@suse.de>
20722
20723         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
20724         before make_edge with conditional EDGE_TRUE_VALUE.
20725
20726 2006-01-23  Steven Bosscher  <stevenb.gcc@gmail.com>
20727         Jan Hubicka  <jh@suse.cz>
20728         Richard Guenther  <rguenther@suse.de>
20729
20730         PR rtl-optimization/25654
20731         * cfgexpand.c (aggregate_contains_union_type): New function.
20732         (add_alias_set_conflicts): Call it.  Make sure to add conflicts
20733         for structure variables that contain a union type.
20734
20735 2006-01-23  Richard Sandiford  <richard@codesourcery.com>
20736
20737         * gengtype.c (new_structure): Return the structure.
20738         (create_option): Add an extra "next" argument.
20739         (create_field): New function.
20740         (adjust_field_rtx_def): Use create_option and create_field.
20741         Remove a now-unnecessary call to find_structure.
20742         (adjust_field_tree_def): Likewise.
20743         (note_yacc_type): Remove an unnecessary call to find_structure.
20744         * gengtype.h (new_structure): Return the structure.
20745         (create_option): Add an extra argument.
20746         * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
20747         (option): Adjust calls to create_option.
20748
20749 2006-01-22  David Edelsohn  <edelsohn@gnu.org>
20750
20751         * config/rs6000/aix.h (STACK_BOUNDARY): Define.
20752
20753 2006-01-22  Paul Brook  <paul@codesourcery.com>
20754         Peter Barada  <peter@the-baradas.com>
20755
20756         * config/m68k/m68k.md: Add Coldfire FPU support.
20757         Define FP mode macro and associated attributes.
20758         Use it for float mode patterns.
20759         * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
20760         (LIBCALL_VALUE): Use m68k_libcall_value.
20761         * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
20762         (m68k_function_value): Ditto.
20763         (emit_move_sequence): Ditto.
20764         * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
20765         * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
20766         * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
20767         (MULTILIB_EXCEPTIONS): Ditto.
20768         * config/m68k/m68k.opt: Add mcfv4e.
20769         * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
20770         (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
20771         (m68k_output_function_prologue): Save ColdFire FPU registers.
20772         (m68k_output_function_epilogue): Restore ColdFire FPU registers.
20773         (force_mode, fp_reg_operand, emit_move_sequence): New functions.
20774         (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
20775         ColdFire FPU registers.
20776         (m68k_libcall_value, m68k_function_value): New functions.
20777         * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
20778         (LIBCALL_VALUE): Use m68k_libcall_value.
20779         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
20780         (MASK_COLDFIRE): Add MASK_CFV4E.
20781         (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
20782         (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
20783         (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
20784         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
20785         (GO_IF_LEGITIMATE_ADDRESS): Use it.
20786         (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
20787         * doc/invoke.tex: Document -mcfv4e on m68k.
20788
20789 2006-01-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
20790
20791         * doc/contribute.texi: Change CVS to SVN and update the corresponding
20792         URL.
20793
20794 2006-01-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20795
20796         PR c++/16190
20797         * c-opts.c (c_common_handle_option): Don't include
20798         -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
20799         * doc/invoke.texi (C++ Dialect Options): Document that
20800         -Wnon-virtual-dtor is no longer included in -Wall.
20801
20802 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
20803
20804         * gcov.c (print_version), gcov-dump.c (print_version),
20805         mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
20806         dates.
20807
20808 2006-01-21  Kenneth Zadeck <zadeck@naturalbridge.com>
20809
20810         * df-scan.c (problem_SCAN): Added NULL reset function.
20811         (df_scan_reset_blocks): Added code to call reset block function
20812         (df_bb_refs_delete) Fixed comment.
20813         (df_insn_refs_delete): Made tolerant of deleting non existent info
20814         for dataflow problems that need to be reset.
20815         * df-core.c (df_set_blocks): Ditto.
20816         * df.h (struct df_problem): Added reset_fun.
20817         * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
20818         problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
20819         (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
20820         functions to clear out all references to def-use or use-def chains.
20821
20822 2006-01-21  Ben Elliston  <bje@au.ibm.com>
20823
20824         * varasm.c (assemble_real): Initialise data array.
20825
20826 2006-01-20  Paul Brook  <paul@codesourcery.com>
20827
20828         Merge from csl-arm-branch.
20829         2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
20830         * config/arm/arm.md (movdi): Force operands[1] to a register
20831         if we have a non-register source.
20832         (*arm_movdi, *movdf_soft_insn): Require that one of the
20833         operands be a register.
20834         * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
20835         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
20836
20837 2006-01-20  DJ Delorie  <dj@redhat.com>
20838
20839         * varasm.c (initializer_constant_valid_p): Allow pointers
20840         initialized from integer constants of lesser precision.
20841         (output_constant): Allow non-int-sized pointer modes to be
20842         initialized from integer constants.
20843
20844 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
20845
20846         PR libstdc++/25524
20847         * cppdefault.h (struct default_include): Add multilib flag.
20848         * cppdefault.c (cpp_include_defaults): Set it.
20849         * c.opt (-imultilib): New option.
20850         * c-opts.c (imultilib): New.
20851         (c_common_handle_option): Handle -imultilib.
20852         (c_common_post_options): Likewise.
20853         * c-incpath.c (add_standard_paths, register_include_chains):
20854         Likewise.
20855         * c-incpath.h (register_include_chains): Add extra parameter.
20856         * gcc.c (do_spec_1): Generate -imultilib option.
20857         (The Specs Language): Update %I description.
20858         (process_command): Update copyright notice.
20859         * doc/cppopts.texi (-imultilib): Document.
20860         * doc/invoke.texi (-imultilib): Include in option summary.
20861         (%I): Update specs documentation.
20862
20863 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
20864
20865         * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
20866
20867 2006-01-20  Richard Sandiford  <richard@codesourcery.com>
20868
20869         * stmt.c (case_bit_test_cmp): Stabilize the sort using code
20870         label numbers.
20871
20872 2006-01-20  Richard Guenther  <rguenther@suse.de>
20873         Steven Bosscher <stevenb.gcc@gmail.com>
20874
20875         PR rtl-optimization/24626
20876         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
20877         EDGE_TRUE_VALUE if in RTL mode.
20878
20879         Revert
20880         2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
20881         * cfgrtl.c (rtl_verify_flow_info_1): Fix.
20882
20883 2006-01-20  Dirk Mueller  <dmueller@suse.com>
20884
20885         PR c++/5520
20886         * c-parser.c (c_parser_if_body): Use build_empty_stmt()
20887         instead of a special NOP marker.
20888         * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
20889         NOP marker handling.
20890         * c-common.h (empty_body_warning): Add forward declaration.
20891         * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
20892         Now uses IS_EMPTY_STMT() instead of special NOP markers.
20893
20894 2006-01-20  Paul Brook  <paul@codesourcery.com>
20895
20896         * Makefile.in (lang_checks): Keep going if mkdir fails.
20897
20898 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
20899
20900         * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
20901         be able to clean out basic block when not necessary.
20902         (df_scan_free): Fixed to properly delete information if df is
20903         unused before calling df_finish.
20904         (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
20905         df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
20906         or comment typos.
20907         (df_bb_refs_delete): New function.
20908         (df_refs_delete): Moved per block code to df_bb_refs_delete.
20909         * df-core.c (df_set_blocks): Added code to properly clean out
20910         unused blocks if they are not part of the blocks to consider.
20911         Added additional null check.
20912         (df_compact_blocks): Added basic block parameter to free_bb_fun to
20913         be able to clean out basic block when not necessary
20914         * df.h (df_free_bb_function): Ditto.
20915         (df_bb_refs_delete): New function.
20916         * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
20917         df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
20918         basic block parameter to be able to clean out basic block when not
20919         necessary.
20920         (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
20921         (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
20922         Fixed to properly delete information if df is unused before
20923         calling df_finish.
20924
20925 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
20926
20927         PR rtl-optimization/25799
20928         * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
20929         Corrected confluence operator to remove bits from op2 before oring
20930         with op1 rather than removing bits from op1.
20931         (df_ru_transfer_function): Corrected test on wrong bitmap which
20932         caused infinite loop.  Both of these problems were introduced in
20933         the dataflow rewrite.
20934
20935 2006-01-19  DJ Delorie  <dj@redhat.com>
20936
20937         * reload1.c (find_reload_regs): Note the details of reload
20938         failures in the dump file.
20939         (spill_failure): Likewise.
20940
20941 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
20942
20943         * loop-iv.c: Include df.h and hashtab.h.
20944         (enum iv_grd_result): New enum.
20945         (DF_REF_IV, DF_REF_IV_SET): New macros.
20946         (struct biv_entry): New.
20947         (df, bivs): New global variables.
20948         (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
20949         assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
20950         Removed.
20951         (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
20952         iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
20953         analyzed_for_bivness_p, record_biv): New functions.
20954         (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
20955         get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
20956         iv_analyze, biv_p, iv_analysis_done): Work with df representation of
20957         UD chains.
20958         (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
20959         analysed.
20960         (iv_number_of_iterations): Use new interface to iv analysis.
20961         * loop-unroll.c: Do not include varray.h.
20962         (analyze_iv_to_split_insn): Use new interface to iv
20963         analysis.
20964         * loop-unswitch.c (may_unswitch_on): Ditto.
20965         * df.c (df_bitmaps_free): Only work for bbs for that structures are
20966         allocated.
20967         (df_bb_modify): Realloc tables to the new index.
20968         (df_find_use): New function.
20969         * df.h (df_find_use): Declare.
20970         * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
20971         outmode.
20972         * cfgloop.h (struct rtx_iv): Remove analysed field.
20973         (iv_get_reaching_def): Removed.
20974         (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
20975         * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
20976         (loop-iv.o): Add df.h and hashtab.h dependency.
20977         * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
20978
20979 2006-01-20  Alan Modra  <amodra@bigpond.net.au>
20980
20981         PR target/25668
20982         * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
20983         Double TFmode.
20984         (__floatundisf, __floatundidf): Likewise.
20985         * libgcc2.h (IS_IBM_EXTENDED): Define.
20986
20987 2006-01-19  DJ Delorie  <dj@redhat.com>
20988
20989         * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
20990
20991 2006-01-19  Paul Brook  <paul@codesourcery.com>
20992
20993         * config/arm/arm.c (arm_compute_func_type): Treat all functions
20994         as nothrow when unwinding tables are disabled.
20995
20996 2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20997
20998         PR testsuite/25171
20999         * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
21000         of bit-field" when in system header.
21001
21002 2006-01-19  DJ Delorie  <dj@redhat.com>
21003
21004         * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
21005         the 16 bit shift limit of the m16c.
21006
21007 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
21008
21009         PR target/22099
21010         * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
21011         * config/i386/i386.c (output_set_got): Output the label if we have one
21012         for the TARGET_DEEP_BRANCH_PREDICTION case.
21013
21014 2006-01-19  Jan Hubicka  <jh@suse.cz>
21015             H.J. Lu  <hongjiu.lu@intel.com>
21016             Evandro Menezes <evandro.menezes@amd.com>
21017
21018         * invoke.texi (generic): Document
21019         (i686) Update.
21020         * config.gcc: Make x86_64-* and i686-* default to generic tunning.
21021         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
21022         TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
21023         (x86_use_incdec, x86_pad_returns): New variables
21024         (TARGET_CPU_DEFAULT_generic): New constant
21025         (TARGET_CPU_DEFAULT_NAMES): Add generic.
21026         (enum processor_type): Add generic32 and generic64.
21027         * i386.md (cpu attribute): Add generic32/generic64
21028         (movhi splitter): Behave sanely when both partial_reg_dependency and
21029         partial_reg_stall are set.
21030         (K8 splitters): Enable for generic as well.
21031         * predicates.md (incdec_operand): Use TARGET_INCDEC
21032         (aligned_operand): Avoid memory mismatch stalls.
21033         * athlon.md: Enable for generic64, new patterns for 128bit moves.
21034         * ppro.md: Enable for generic32
21035         * i386.c (generic64_cost, generic32_cost): New.
21036         (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
21037         (x86_use_leave): Enable for generic64.  (x86_use_sahf,
21038         x86_ext_80387_constants): Enable for generic32.  (x86_push_memory,
21039         x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
21040         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
21041         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
21042         x86_partial_reg_dependency, x86_memory_mismatch_stall,
21043         x86_accumulate_outgoing_args, x86_prologue_using_move,
21044         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
21045         x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
21046         Enable for generic.
21047         (x86_use_incdec, x86_pad_returns): New.
21048         (override_options): Add generic32 and generic64, translate "generic"
21049         to generic32/generic64 and "i686" to "generic32", refuse
21050         "generic32"/"generic64" as arch target.
21051         (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
21052         (ix86_reorg): Honor PAD_RETURNS.
21053
21054 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
21055
21056         * tree-pretty-print.c (dump_generic_node): Handle
21057         OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
21058         * cgraph.c (cgraph_expand_queue): Rename from
21059         cgraph_analyze_queue.  Update all users.
21060         * cgraphunit.c (cgraph_assemble_pending_functions): Process
21061         cgraph_expand_queue.
21062         (cgraph_expand_all_functions): Likewise.
21063         (cgraph_finalize_pending_functions): Remove.  Update callers.
21064
21065         * tree.h (OMP_DIRECTIVE_P): Define.
21066         (OMP_PARALLEL_FN): Define.
21067         (OMP_PARALLEL_DATA_ARG): Define.
21068         (OMP_SECTIONS_SECTIONS): Define.
21069         * tree-pass.h (pass_expand_omp): Declare.
21070         * omp-low.c (struct omp_region): Declare.
21071         (struct omp_context): Remove fields 'parallel_type',
21072         'parallel_start_ix' and 'parallel_start_additional_args'.
21073         Update all users.
21074         (struct omp_for_data): Rename from struct expand_omp_for_data.
21075         (omp_regions): New static variable.
21076         (root_omp_region): New static variable.
21077         (find_omp_clause): Make static.
21078         (is_in_combined_parallel_ctx): Remove.
21079         (is_combined_parallel): New.
21080         (extract_omp_for_data): Move earlier in the file.
21081         (workshare_safe_to_combine_p): New.
21082         (get_ws_args_for): New.
21083         (determine_parallel_type): Move earlier in the file.
21084         (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
21085         child function.
21086         (omp_copy_decl): Likewise.
21087         (create_omp_child_function): Likewise.
21088         (lookup_omp_region): New.
21089         (dump_omp_region): New.
21090         (debug_omp_region): New.
21091         (debug_all_omp_regions): New.
21092         (new_omp_region): New.
21093         (scan_omp_parallel): If parallel_nesting_level > 1, the
21094         directive is nested within another parallel directive.
21095         Set OMP_PARALLEL_FN.
21096         (scan_omp_for): Do not try to handle combined parallel+for
21097         cases.
21098         Remove FIXME comment.
21099         (scan_omp_nested): Remove.
21100         (scan_omp_1): Do not call scan_omp_nested when
21101         parallel_nesting_level is > 1.
21102         Do not change the DECL_CONTEXT of local variables found.
21103         (lookup_decl_in_outer_ctx): New.
21104         (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
21105         (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
21106         (lower_reduction_clauses): Rename from expand_reduction_clauses.
21107         (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
21108         If CTX is nested, lookup VAR in the outer context when
21109         building copy assignment.
21110         (lower_send_clauses): Rename from expand_send_clauses.
21111         If CTX is nested, lookup VAR in the outer context when
21112         building copy assignments.
21113         (lower_send_shared_vars): Rename from expand_send_shared_vars.
21114         If CTX is nested, lookup VAR in the outer context when
21115         building copy assignments.
21116         (expand_parallel_call): Rename from build_parallel_call.
21117         Handle combined parallel+workshare cases.
21118         Re-implement to emit code into the CFG.
21119         (list2chain): New.
21120         (expand_omp_parallel): Re-implement to emit code into the CFG.
21121         Call move_sese_region_to_fn to outline the sub-graph
21122         containing the parallel region.
21123         (expand_omp_for_1): Remove.
21124         (expand_omp_for_generic): Re-implement to emit code into the
21125         CFG.
21126         (expand_omp_for_static_nochunk): Likewise.
21127         (expand_omp_for_static_chunk): Likewise.
21128         (expand_omp_for): Likewise.
21129         (expand_omp_sections): Likewise.
21130         (remove_exit_barriers): New.
21131         (expand_omp_synch): New.
21132         (expand_omp): New.
21133         (build_omp_regions_1): New.
21134         (build_omp_regions): New.
21135         (execute_expand_omp): New.
21136         (gate_expand_omp): New.
21137         (pass_expand_omp): Define.
21138         (lower_omp_sections): Rename from expand_omp_sections.
21139         Set OMP_SECTIONS_SECTIONS.
21140         (lower_omp_single_simple): Rename from expand_omp_single_simple.
21141         (lower_omp_single_copy): Rename from expand_omp_single_copy.
21142         (lower_omp_single): Rename from expand_omp_simple.
21143         (lower_omp_master): Rename from expand_omp_master.
21144         (lower_omp_ordered): Rename from expand_omp_ordered.
21145         (lower_omp_critical): Rename from expand_omp_critical.
21146         (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
21147         (lower_omp_for): Re-implement.
21148         (lower_omp_parallel): Re-implement.
21149         (lower_regimplify): Rename from expand_regimplify.
21150         (lower_omp_1): Rename from expand_omp_1.
21151         If there are syntax errors in the program, replace every
21152         OpenMP directive with NOP.
21153         Call lower_omp_* instead of expand_omp_*.
21154         (lower_omp): Rename from expand_omp.
21155
21156         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
21157         * tree-gimple.h (enum omp_parallel_type): Remove.
21158         (gimple_boolify): Declare extern.
21159         (find_omp_clause, determine_parallel_type): Remove.
21160
21161         * gimple-low.c (lower_omp_directive): New.
21162         (lower_stmt): Call it.
21163         (record_vars_into): Move from ...
21164         (record_vars): ... here.
21165         Call record_vars_into with current_function_decl.
21166
21167         * gimplify.c (struct gimplify_ctx): Remove fields
21168         combined_pre_p and combined_ctxp.  Update users.
21169         (get_formal_tmp_var): Add documentation.
21170         (gimple_boolify): Make extern.
21171         (gimplify_expr_in_ctx): Remove.  Update callers.
21172         (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
21173         will always be a BIND_EXPR.
21174         (gimplify_expr): Handle OMP_RETURN_EXPR.
21175         * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
21176         (OMP_PARALLEL): Add 3 operands.
21177         (OMP_SECTIONS): Add 1 operand.
21178         (OMP_RETURN_EXPR): Define.
21179
21180         * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
21181         (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
21182         * tree-iterator.c (alloc_stmt_list): Assert that we are not
21183         creating a circular free list.
21184         (free_stmt_list): Assert that we are not freeing stmt_list_cache.
21185
21186         * tree-flow.h (move_sese_region_to_fn): Declare.
21187         (record_vars_into): Declare.
21188         * tree-cfg.c (make_omp_sections_edges): New.
21189         (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
21190         OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
21191         OMP_SECTIONS and OMP_SECTION.
21192         (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
21193         (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
21194         (verify_stmt): Do not handle OMP_DIRECTIVE_P.
21195         (gather_blocks_in_sese_region): New.
21196         (struct move_stmt_d): Declare.
21197         (move_stmt_r): New.
21198         (move_block_to_fn): New.
21199         (move_sese_region_to_fn): New.
21200
21201         * passes.c (init_optimization_passes): Schedule
21202         pass_expand_omp after pass_init_datastructures.
21203
21204         * tree-ssa-operands.c (get_expr_operands): Handle
21205         OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
21206         OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
21207
21208 2006-01-19  Jeff Law  <law@redhat.com>
21209
21210         * tree-vrp.c (extract_range_from_assert): Refine the result range
21211         if the variable referenced by the ASSERT_EXPR has a range and
21212         either the tentative result range or the previous range is a
21213         VR_ANTI_RANGE.
21214
21215 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
21216
21217         * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
21218
21219 2006-01-19  Jan Hubicka  <jh@suse.cz>
21220
21221         * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
21222
21223 2006-01-19  Paolo Bonzini  <bonzini@gnu.org>
21224
21225         * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
21226         (expand_compound_operation, expand_field_assignment): Fail if the
21227         bit lengths of an extract operation are out of range.
21228         (make_extraction): Compute wanted_inner_mode based on the position
21229         and length of the extraction.  Make it extraction_mode for non-constant
21230         positions, and do not modify offset in that case.  When generating a
21231         new MEM, use a mode that can hold the extraction while keeping correct
21232         alignment.  Remove code that supported MEMs wrapped by USEs.
21233         (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
21234
21235 2006-01-19  Andreas Krebbel  <krebbel1@de.ibm.com>
21236
21237         * config/s390/s390.md ("Y", "y"): New mode attribute.
21238         ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
21239         "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
21240         "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
21241         "*addsi3_imm_cc", "*addsi3_carry1_cc",
21242         "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
21243         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
21244         "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
21245         "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
21246         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
21247         "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
21248         "addsi3", "subsi3"): Insn patterns removed.
21249         ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
21250         "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
21251         "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
21252         "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
21253         "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
21254         "*sub<mode>3_cconly2"): New insn patterns.
21255         ("addsi3", "subsi3"): New expanders.
21256
21257 2006-01-19  Dorit Nuzman  <dorit@il.ibm.com>
21258
21259         * Makefile.in (tree-vect-patterns.o): Add rule for new file.
21260         * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
21261         existing STMT_VINFO_VECTYPE if available.
21262         (vect_mark_relevant): Add special handling for stmts that are
21263         marked as STMT_VINFO_IN_PATTERN_P.
21264         (vect_analyze_loop): Call vect_pattern_recog.
21265         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
21266         * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
21267         stmt_info.
21268         (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
21269         (vect_recog_func_ptr): New function-pointer type.
21270         * tree-vect-patterns.c: New file.
21271         (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
21272         (vect_recog_dot_prod_pattern, vect_pattern_recog):
21273         (vect_pattern_recog_1): New functions.
21274         (vect_pattern_recog_funcs): New array of function pointers.
21275
21276         * tree-vectorizer.h (ternary_op): New enum value.
21277         * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
21278         declaration. Revised documentation. Removed redundant dump prints.
21279         Removed redundant argument. Added support for reduction patterns.
21280         (vectorizable_reduction): Added support for reduction patterns.
21281         (vect_transform_stmt): Added support for patterns.
21282
21283         * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
21284         * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
21285         * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
21286         (expand_widen_pattern_expr): New function.
21287         (init_optabs): Initialize new optabs udot_prod_optab,
21288         sdot_prod_optab.
21289         * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
21290         (sdot_prod_optab, udot_prod_optab): Define new optabs.
21291         (expand_widen_pattern_expr): New function declaration.
21292         * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
21293         tree-codes.
21294         * tree-inline.c (estimate_num_insns_1): Added cases for new
21295         tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
21296         * tree-pretty-print.c (dump_generic_node): Likewise.
21297         (op_prio): Likewise.
21298         (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
21299         * tree-ssa-operands.c (get_expr_operands): Added case for
21300         DOT_PROD_EXPR.
21301         * tree-vect-patterns.c (widened_name_p): New function.
21302         (vect_recog_dot_prod_pattern): Added function implementation.
21303         * tree-vect-transform.c (get_initial_def_for_reduction): Added
21304         cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
21305         * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
21306         * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
21307
21308         * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
21309         * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
21310         * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
21311         (init_optabs): Initialize new optabs widen_ssum_optab,
21312         widen_usum_optab.
21313         * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
21314         (widen_ssum_optab, widen_usum_optab): Define new optabs.
21315         * tree-vect-generic.c: (expand_vector_operations_1): Check type of
21316         use instead of type of def.
21317         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
21318         function implementation.
21319         * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
21320         widen_ssumv8hi): New.
21321
21322         * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
21323         patterns.
21324
21325 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
21326
21327         PR c/25805
21328         * c-decl.c (add_flexible_array_elts_to_size): New function.
21329         (finish_decl): Use it.
21330
21331 2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
21332
21333         * diagnostic.h: Include options.h.
21334         * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
21335         dependancies for diagnostic.h.
21336         * Makefile.in (DIAGNOSTIC_H): Add options.h.
21337
21338 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
21339
21340         * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
21341         (ssa_ro_call_cache_valid): Ditto.
21342         * tree-ssa-alias.c (sort_tags_by_id): New function.
21343         (init_transitive_clobber_worklist): Ditto.
21344         (add_to_worklist): Ditto.
21345         (mark_aliases_call_clobbered): Ditto.
21346         (compute_tag_properties): Ditto.
21347         (set_initial_properties): Ditto.
21348         (compute_call_clobbered): Ditto.
21349         (compute_may_aliases):  Call compute_call_clobbered and grouping.
21350         (compute_flow_sensitive_aliasing): Remove clobbering related code.
21351         (compute_flow_insensitive_aliasing): Grouping now happens in our
21352         caller.
21353         (setup_pointers_and_addressables): Remove clobbering related code.
21354         (add_may_alias): Ditto.
21355         (replace_may_alias): Ditto.
21356         (get_nmt_for): Ditto.
21357         (create_global_var):
21358         (is_escape_site): Return an escape_type enumeration.
21359         * tree-flow-inline.h (is_call_clobbered): Global var does not
21360         imply call clobbered.
21361         (mark_call_clobbered): Take a reason for marking this. Remove
21362         marking of globalness, and cache invalidation.
21363         (clear_call_clobbered): Remove cache invalidation code.
21364         * tree-dfa.c (dump_variable): If details is on, dump the reason
21365         for escaping.
21366         * tree-outof-ssa.c (create_temp): Copy escape mask from original
21367         variable.
21368         * tree-flow.h (struct ptr_info_def): Add escape mask member.
21369         (struct var_ann_d): Ditto.
21370         (enum escape_type): New.
21371         (mark_call_clobbered): Adjust prototype.
21372         * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
21373         are never call clobbered.
21374         Record reasons for escaping.
21375         * tree-ssa-structalias.h (is_escape_site): Update prototype.
21376         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
21377         (ssa_ro_call_cache_valid): Ditto.
21378         (clobbered_v_may_defs): Ditto.
21379         (clobbered_vuses): Ditto.
21380         (ro_call_vuses): Ditto.
21381         (clobber_stats): New.
21382         (init_ssa_operands): Zero out clobber stats.
21383         (fini_ssa_operands): Print out clobber stats.
21384         (get_call_expr_operands): Pass callee fndecl to
21385         add_call_read_ops).
21386         (add_call_clobber_ops): Remove use of cache.
21387         Add use of PURE_CONST information.
21388         (add_call_read_ops): Remove use of cache.
21389         Add use of static not_read information.
21390
21391 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
21392
21393         Introduce TLS descriptors for i386 and x86_64.
21394         * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
21395         (TARGET_ANY_GNU_TLS): New macro.
21396         (enum tls_dialect): Added TLS_DIALECT_GNU2.
21397         (struct machine_function): Add tls_descriptor_call_expanded_p.
21398         (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
21399         (ix86_current_function_calls_tls_descriptor): Likewise.
21400         * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
21401         (override_options): Introduce gnu2 tls dialect.
21402         (ix86_frame_pointer_required): Functions containing TLSCALLs are
21403         not leaves.
21404         (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
21405         Likewise.
21406         (legitimize_tls_address): Adjust logic for GNU2 TLS.
21407         (ix86_init_machine_status): Initialize new field.
21408         (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
21409         (ix86_tls_module_base): New.
21410         * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
21411         * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
21412         (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
21413         (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
21414         (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
21415         (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
21416         (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
21417         (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
21418         * config/i386/predicates.md (tls_modbase_operand): New.
21419         (tp_or_register_operand): New.
21420
21421 2006-01-18  Daniel Berlin  <dberlin@dberlin.org>
21422
21423         * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
21424         (look_for_address_of): Ditto.
21425         (ipa_init): Walk the function decls.
21426         (static_execute): Don't set readonly on FUNCTION_DECL's.
21427
21428 2006-01-18  Roger Sayle  <roger@eyesopen.com>
21429
21430         * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
21431         for shifts where the source and destination registers are different.
21432
21433 2006-01-18  Paul Brook  <paul@codesourcery.com>
21434
21435         Merge from csl-arm-branch.
21436         2005-03-14  Julian Brown  <julian@codesourcery.com>
21437         * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
21438         (aeabi_llsl): Likewise.
21439         (ashrdi3): Likewise.
21440         (aeabi_lasr): Likewise.
21441         (lshrdi3): Likewise.
21442         (aeabi_llsr): Likewise.
21443         2005-03-10  Julian Brown  <julian@codesourcery.com>
21444         * config.gcc: Disable shared libgcc for SymbianOS.
21445         * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
21446
21447 2006-01-18  DJ Delorie  <dj@redhat.com>
21448
21449         * c-pragma.c (handle_pragma_diagnostic): New.
21450         (init_pragma): Register it.
21451         * doc/extend.texi: Document it.
21452
21453         * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
21454         * diagnostic.h (diagnostic_classify_diagnostic): Declare.
21455         (diagnostic_context): Add classify_diagnostic[].
21456         * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
21457         as errors if they're overridden to DK_WARNING.
21458         (diagnostic_initialize): Initialize classify_diagnostic[].
21459         (diagnostic_set_kind_override): New.
21460         (diagnostic_report_diagnostic): Check for kind changes.
21461         * opts.c (common_handle_option): Take lang_mask.  Update callers.
21462         Handle OPT_Werror_.
21463         * common.opt (Werror=): New.
21464         * doc/invoke.texi: Document -Werror=*
21465
21466 2006-01-18  Jeff Law  <law@redhat.com>
21467
21468         * tree-vrp.c (test_for_singularity): Correct test for new
21469         min limit.  Use operand_equal_p rather than pointer equality
21470         for testing if new min/max values are equal.
21471
21472         * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
21473         using range information until after propagation and folding.
21474
21475 2006-01-18  Richard Henderson  <rth@redhat.com>
21476             Aldy Hernandez  <aldyh@redhat.com>
21477             Jakub Jelinek  <jakub@redhat.com>
21478             Diego Novillo  <dnovillo@redhat.com>
21479
21480         * omp-low.c: New file.
21481         * c-omp.c: New file.
21482
21483 2006-01-18  Richard Henderson  <rth@redhat.com>
21484             Jakub Jelinek  <jakub@redhat.com>
21485             Diego Novillo  <dnovillo@redhat.com>
21486
21487         * doc/invoke.texi: Document -fopenmp.
21488         * tree-dump.h (debug_function): Declare.
21489         * hooks.c (hook_bool_tree_bool_false): New function.
21490         (hook_tree_tree_null): Remove.
21491         (hook_tree_tree_tree_null): New.
21492         * hooks.h: Update to match.
21493         * tree-pretty-print.c (debug_tree_chain): New.
21494         (print_generic_expr): Handle TDF_CHAIN.
21495         (dump_generic_node): Handle BLOCK.
21496         Do not abort with incomplete SWITCH_EXPRs.
21497         Do not dump body of an OpenMP directive if TDF_SLIM is given.
21498         <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
21499         print space after directive name.
21500         <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
21501         Handle OMP_MASTER and OMP_ORDERED.
21502         Handle printing of OMP_BODY just in one place, goto
21503         dump_omp_body in the rest of OMP_* nodes that have
21504         OMP_BODY.
21505         Don't handle clause nodes here.  Update omp statements to
21506         use dump_omp_clauses.
21507         Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
21508         OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
21509         OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
21510         GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
21511         GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
21512         GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
21513         Adjust output for GOMP_PARALLEL.
21514         (dump_omp_clauses): New.
21515         (print_declaration): Dump DECL_VALUE_EXPR.
21516         (op_symbol_1): Split out of op_symbol.
21517         (dumping_stmts): Remove.  Update all users.
21518         * cgraph.c (cgraph_analyze_queue): New.
21519         (cgraph_add_new_function): New.
21520         * cgraph.h (cgraph_analyze_queue): Declare.
21521         (cgraph_add_new_function): Declare.
21522         (cgraph_lower_function): Remove.
21523         * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
21524         nodes.  Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
21525         and TYPE_P nodes in its default clause.
21526         (empty_body_p): New.
21527         (tree_range_check_failed): New.
21528         (build5_stat): New.
21529         * tree.h (OMP_CLAUSE_REDUCTION_INIT,
21530         OMP_CLAUSE_REDUCTION_MERGE,
21531         OMP_CLAUSE_REDUCTION_PLACEHOLDER,
21532         OMP_CLAUSE_PRIVATE_DEBUG,
21533         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
21534         OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
21535         OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
21536         OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
21537         OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
21538         OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
21539         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
21540         OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
21541         OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
21542         OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
21543         OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
21544         OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
21545         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
21546         OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
21547         (TREE_RANGE_CHECK): New.
21548         (empty_body_p): Declare.
21549         (enum omp_clause_default_kind): New.
21550         (build_string_literal): Declare.
21551         (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
21552         (build5_stat, build5): Declare.
21553         * tree-pass.h (TDF_CHAIN): Define.
21554         * tree-pass.h (PROP_gimple_lomp): Define.
21555         (pass_lower_omp): Declare.
21556         * diagnostic.h (debug_tree_chain): Declare.
21557         * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
21558         mode_for_size.
21559         (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
21560         * builtins.c (build_string_literal): Make extern.
21561         * gcc.c (include_spec_function): New.
21562         (static_spec_functions): Add it.
21563         (main): Move load of libgomp.spec ...
21564         (LINK_COMMAND_SPEC): ... here.
21565         (link_gomp_spec): New.
21566         (static_specs): Include it.
21567         (LINK_COMMAND_SPEC): Add link_gomp.
21568         (GOMP_SELF_SPECS): New.
21569         (driver_self_specs): Include it.
21570         (switch_matches): Don't mark inline.
21571         (main): Load libgomp.spec.
21572         * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
21573         OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
21574         and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
21575         * tree-gimple.h (enum omp_parallel): Declare.
21576         (determine_parallel_type): Declare.
21577         (omp_firstprivatize_variable): Declare.
21578         (omp_reduction_init): Declare.
21579         (diagnose_omp_structured_block_errors): Declare.
21580         (struct walk_stmt_info): Add want_return_expr.
21581         (struct walk_stmt_info): Add want_bind_expr, want_locations.
21582         (find_omp_clause): Declare.
21583         (insert_field_into_struct): Declare.
21584         (struct walk_stmt_info): Move from tree-nested.c
21585         (walk_stmts): Declare.
21586         * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
21587         to 200505.
21588         * cgraphunit.c (cgraph_lower_function): Make static.
21589         (cgraph_finalize_pending_functions): New.
21590         (cgraph_finalize_function): Call it.
21591         (cgraph_finalize_compilation_unit): Likewise.
21592         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
21593         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
21594         (BT_FN_UINT_UINT): New.
21595         (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
21596         DEF_FUNCTION_TYPE_VAR_4): Document.
21597         (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
21598         BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
21599         BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
21600         BT_FN_VOID_OMPFN_PTR_UINT_UINT,
21601         BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
21602         BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
21603         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
21604         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
21605         * builtins.def: Update DEF_BUILTIN comment to include COND argument.
21606         Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
21607         into separate files.
21608         (DEF_GOMP_BUILTIN): New.
21609         (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
21610         BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
21611         BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
21612         BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
21613         BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
21614         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
21615         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
21616         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
21617         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
21618         BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
21619         BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
21620         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
21621         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
21622         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
21623         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
21624         BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
21625         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
21626         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
21627         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
21628         BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
21629         BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
21630         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
21631         BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
21632         BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
21633         BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
21634         BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
21635         * sync-builtins.def: New file, moved from builtins.def.
21636         * omp-builtins.def: New file, moved from builtins.def.
21637         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
21638         * gimple-low.c (lower_function_body): Clear data.
21639         (lower_stmt): Do not handle COMPOUND_EXPR.
21640         Remove call to print_node_brief.
21641         * c-tree.h (c_finish_omp_clauses): New prototype.
21642         (C_DECL_THREADPRIVATE_P): Define.
21643         (lookup_name_no_remap, c_omp_remap_private): Remove
21644         (c_begin_omp_parallel, c_finish_omp_parallel): Update.
21645         (check_for_loop_decls): Update decl.
21646         (lookup_name_no_remap, c_omp_remap_private): Declare.
21647         (build_indirect_ref, build_modify_expr, pushdecl,
21648         pushdecl_top_level): Move to c-common.h.
21649         * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
21650         before the switch, but just in the 2 places that need it.
21651         * c-decl.c (diagnose_mismatched_decls): Do not check for
21652         mismatched thread-local attributes when OLDDECL is marked
21653         threadprivate and NEWDECL has no thread-local attributes.
21654         (merge_decls): Merge C_DECL_THREADPRIVATE_P.
21655         (c_gimple_diagnostics_recursively): Rename from
21656         c_warn_unused_result_recursively.  Invoke
21657         diagnose_omp_structured_block_errors.
21658         (check_for_loop_decls): Return a singular decl found.
21659         * langhooks.c (lhd_omp_predetermined_sharing): Return
21660         OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
21661         (lhd_omp_firstprivatize_type_sizes): New.
21662         (lhd_omp_assignment): New.
21663         (lhd_omp_predetermined_sharing): New.
21664         * langhooks.h (struct gimplify_omp_ctx): Forward declare.
21665         (struct lang_hooks_for_types): Add
21666         omp_firstprivatize_type_sizes, omp_privatize_by_reference,
21667         omp_predetermined_sharing, omp_disregard_value_expr,
21668         omp_private_debug_clause, omp_clause_default_ctor,
21669         omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
21670         (c_finish_omp_clauses): New.
21671         (c_finish_bc_stmt): Diagnose break within omp for.
21672         (c_begin_omp_parallel, c_finish_omp_parallel): New.
21673         (build_unary_op): Return error_mark after reporting
21674         a readonly_error.
21675         (build_modify_expr): Likewise.
21676         * gimplify.c: Include optabs.h and pointer-set.h.
21677         (enum gimplify_omp_var_data): Declare.
21678         (struct gimplify_omp_ctx): Declare.
21679         (struct gimplify_ctx): Add fields prev_context, combined_pre_p
21680         and combined_ctxp.
21681         (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
21682         (push_gimplify_context, pop_gimplify_context): Allow nesting.
21683         (splay_tree_compare_decl_uid): New.
21684         (new_omp_context): New.
21685         (delete_omp_context): New.
21686         (gimple_add_tmp_var): Call omp_add_variable.
21687         (gimplify_bind_expr): Likewise.
21688         (gimplify_var_or_parm_decl): If omp_notice_variable returned
21689         true, disregard DECL_VALUE_EXPR on the decl if any.
21690         (gimplify_expr_in_ctx): New.
21691         (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
21692         omp_add_variable, omp_notice_variable, omp_is_private
21693         gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
21694         gimplify_adjust_omp_clauses, gimplify_omp_parallel
21695         gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
21696         gimplify_omp_atomic_fetch_op, goa_stabilize_expr
21697         gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
21698         gimplify_omp_atomic): New.
21699         (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
21700         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
21701         OMP_CRITICAL and OMP_ATOMIC.
21702         (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
21703         * c-pragma.h (enum pragma_kind): Add
21704         PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
21705         PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
21706         PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
21707         PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
21708         PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
21709         PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
21710         PRAGMA_OMP_THREADPRIVATE.
21711         * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
21712         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
21713         OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
21714         OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
21715         OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
21716         OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
21717         OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
21718         OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
21719         OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
21720         * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
21721         * tree-ssa-dce.c (find_control_dependence): Do not assume that
21722         ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
21723         * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
21724         OpenMP directives.
21725         (struct nesting_info): Add field_map,
21726         suppress_expansion, debug_var_chain.
21727         (create_nesting_tree): Initialize them.
21728         (lookup_field_for_decl): Use field_map.
21729         (get_nonlocal_debug_decl, get_local_debug_decl): New.
21730         (convert_local_omp_clauses): New.
21731         (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
21732         (walk_body): Split out of walk_function.
21733         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
21734         (convert_nonlocal_reference): Handle omp statements.
21735         (convert_local_reference): Likewise.
21736         (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
21737         (unnest_nesting_tree): New.
21738         (lower_nested_functions): Call it.
21739         (insert_field_into_struct): Make extern.
21740         (struct walk_stmt_info): Move to tree-gimple.h.
21741         (walk_stmts): Make extern.
21742         * omp-builtins.def: New file.
21743         * tree-iterator.c (expr_only): Clarify comment.
21744         * c-common.h (pushdecl_top_level, pushdecl,
21745         build_modify_expr, build_indirect_ref,
21746         c_finish_omp_master, c_finish_omp_critical,
21747         c_finish_omp_ordered, c_finish_omp_barrier,
21748         c_finish_omp_atomic, c_finish_omp_flush,
21749         c_finish_omp_for, c_split_parallel_clauses,
21750         omp_clause_default_kind, c_omp_sharing_predetermined,
21751         c_omp_remap_decl): Declare.
21752         * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
21753         (OBJS-common): Add omp-low.o.
21754         (c-omp.o, omp-low.o): Add.
21755         (gimplify.o): Add dependency on $(OPTABS_H).
21756         (GTFILES): Add omp-low.c.
21757         (gt-stringpool.h): Add.
21758         * tree-cfg.c (set_bb_for_stmt): Do not update the
21759         block-to-labels map if we are currently expanding to RTL.
21760         (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
21761         checks.
21762         Handle IDENTIFIER_NODE.
21763         (tree_verify_flow_info): Do not ICE when emitting error
21764         messages about invalid labels.
21765         (dump_function_to_file): Reset CFUN before emitting the body
21766         of the function.
21767         (debug_function): New.
21768         * passes.c (init_optimization_passes): Schedule
21769         pass_lower_omp.
21770         * langhooks-def.h (lhd_omp_predetermined_sharing,
21771         lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
21772         Declare.
21773         (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
21774         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
21775         (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
21776         LANG_HOOKS_OMP_PREDETERMINED_SHARING,
21777         LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
21778         LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
21779         LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
21780         LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
21781         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
21782         LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
21783         (LANG_HOOK_DECLS): Use them.
21784
21785 2006-01-18  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
21786             Richard Henderson  <rth@redhat.com>
21787             Jakub Jelinek  <jakub@redhat.com>
21788             Diego Novillo  <dnovillo@redhat.com>
21789
21790         * c-parser.c (pragma_omp_clause): Define.
21791         (c_parser_declaration_or_fndef): Document OpenMP syntax.
21792         (c_parser_compound_statement): Likewise.
21793         (c_parser_statement): Likewise.
21794         (c_parser_pragma): Handle omp pragmas.
21795         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
21796         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
21797         (c_parser_omp_clause_name, check_no_duplicate_clause,
21798         c_parser_omp_variable_list,
21799         c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
21800         c_parser_omp_clause_copyprivate,
21801         c_parser_omp_clause_default,
21802         c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
21803         c_parser_omp_clause_lastprivate,
21804         c_parser_omp_clause_nowait,
21805         c_parser_omp_clause_num_threads,
21806         c_parser_omp_clause_ordered, c_parser_omp_clause_private,
21807         c_parser_omp_clause_reduction,
21808         c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
21809         c_parser_omp_all_clauses, c_parser_omp_structured_block,
21810         c_parser_omp_atomic, c_parser_omp_barrier,
21811         c_parser_omp_critical, c_parser_omp_flush,
21812         c_parser_omp_for_loop, c_parser_omp_for,
21813         c_parser_omp_master, c_parser_omp_ordered,
21814         c_parser_omp_sections_scope, c_parser_omp_sections,
21815         c_parser_omp_parallel, c_parser_omp_single,
21816         c_parser_omp_construct, c_parser_omp_threadprivate): New.
21817         * c-pragma.c (init_pragma): Do omp pragma registration here.
21818         * c.opt (fopenmp): New flag.
21819
21820 2006-01-18  Eric Christopher  <echristo@apple.com>
21821
21822         * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
21823         * config/darwin.h (GOMP_SELF_SPECS): Define.
21824
21825 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
21826
21827         * rtl.h: Remove the prototype for reg_alloc.
21828
21829 2006-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21830
21831         PR target/25731
21832         * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
21833         hppa[12]*-*-hpux11*): Override default shared libgcc version for both
21834         sjlj and dwarf2 exception handling.
21835         * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
21836         Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
21837         * pa/pa.c (function_value): Treat complex and vector types as
21838         aggregates.
21839         (function_arg): Likewise.  Only pass scalar floats in the floating
21840         point argument registers.
21841         * pa/t-slibgcc-dwarf-ver: New file.
21842         * pa/t-slibgcc-sjlj-ver: New file.
21843         * pa/t-slibgcc-elf-ver: Delete file.
21844
21845 2006-01-19  Alan Modra  <amodra@bigpond.net.au>
21846
21847         * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
21848         unlikely_test_section_p test.
21849
21850 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
21851
21852         * mode-switching.c (optimize_mode_switching): Make it static.
21853         * basic-block.h: Remove the prototype for
21854         optimize_mode_switching.
21855
21856         * modulo-sched.c (sms_schedule): Make it static.
21857         * rtl.h: Remove the prototype for sms_schedule.
21858
21859         * postreload-gcse.c (gcse_after_reload_main): Make it static.
21860         * rtl.h: Remove the prototype for gcse_after_reload_main.
21861
21862         * reg-stack.c (reg_to_stack): Make it static.
21863         * rtl.h: Remove the prototype for reg_to_stack.
21864
21865         * regrename.c (regrename_optimize, copyprop_hardreg_forward):
21866         Make them static.
21867         * rtl.h: Remove the prototypes for regrename_optimize and
21868         copyprop_hardreg_forward.
21869
21870 2006-01-18  Eric Botcazou  <ebotcazou@adacore.com>
21871
21872         * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
21873         alpha_split_tmode_pair.  Add 'mode' and 'fixup_overlap' arguments.
21874         Test against the appropriate null constant for the mode.
21875         If 'fixup_overlap' is true, swap the operands if they overlap.
21876         (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
21877         * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
21878         alpha_split_tmode_pair and adjust for above change.
21879         * config/alpha/alpha.md (movtf_internal): Adjust call to
21880         alpha_split_tfmode_pair and rely on it to swap the operands.
21881         (movti_internal): New insn and post-reload splitter.
21882         (movti): New expander.
21883
21884 2006-01-18  Philippe De Muyter  <phdm@macqel.be>
21885
21886         * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
21887         operands.
21888
21889 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
21890
21891         * rtlanal.c (global_reg_mentioned_p_1,
21892         global_reg_mentioned_p): Remove.
21893         * rtl.h: Remove the prototype for global_reg_mentioned_p.
21894
21895         * flow.c (initialize_uninitialized_subregs): Make it static.
21896         * rtl.h: Remove the prototype for
21897         initialize_uninitialized_subregs.
21898
21899         * function.c (instantiate_virtual_regs): Make it static.
21900         * function.h: Remove the prototype for
21901         instantiate_virtual_regs.
21902
21903         * regmove.c (regmove_optimize, combine_stack_adjustments):
21904         Make them static.
21905         * rtl.h: Remove the prototypes for regmove_optimize and
21906         combine_stack_adjustments.
21907
21908 2006-01-17  Roger Sayle  <roger@eyesopen.com>
21909
21910         * config/i386/i386.c (COSTS_N_BYTES): New macro.
21911         (size_cost): Encode costs in bytes so that a reg-reg addition is
21912         equivalent to COSTS_N_INSNS(1).
21913         (override_options): Use the size_cost.branch_cost as the default
21914         ix86_branch_cost when optimizing for size.
21915
21916 2006-01-18  Ben Elliston  <bje@au.ibm.com>
21917
21918         * Makefile.in (D32PBIT_FUNCS): New.
21919         (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
21920         (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
21921         D64PBIT_FUNCS and D128PBIT_FUNCS.
21922         (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
21923         * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
21924         D128PBIT are set.
21925         (decnumber_dep): Define.
21926         * doc/libgcc.texi (Decimal float library routines): New node.
21927         * config/dfp-bit.h, config/dfp-bit.c: New files.
21928
21929 2006-01-18  Ben Elliston  <bje@au.ibm.com>
21930
21931         * expr.c (emit_move_change_mode): Always adjust addresses, not
21932         just during reload.  Copy replacements only during reload.
21933         (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
21934         emit_move_via_integer.
21935
21936 2006-01-17  Shantonu Sen  <ssen@opendarwin.org>
21937
21938         * Makefile.in (check-%, check-consistency): Use $${srcdir}
21939         instead of $(srcdir) and ${srcdir}.
21940
21941 2006-01-17  Richard Earnshaw  <rearnsha@arm.com>
21942
21943         PR target/592
21944         PR middle-end/11135
21945         * arm.h (struct machine_function): Add pic_reg.
21946         * arm.c (arm_pic_register): Make unsigned.
21947         (arm_override_options): Only set arm_pic_register if
21948         TARGET_SINGLE_PIC_BASE.
21949         (use_return_insn): Only test for a pic register if it is fixed.
21950         (arm_compute_save_reg0_reg12_mask): Likewise.
21951         (thumb_compute_save_reg_mask): Likewise.
21952         (legitimate_pic_operand): Factor out some known invariants.
21953         (legitimize_pic_address): If we don't have a fixed pic register,
21954         then set up a pseudo in the function entry sequence.  Handle the
21955         pic base being in a pseudo.
21956         (arm_load_pic_register): Handle the pic register being in a pseudo.
21957         (arm_expand_prologue): Only set up the pic register if it is fixed.
21958         (thumb_expand_prologue): Likewise.
21959         * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
21960         (pic_load_addr_based_insn): Likewise.
21961         (builtin_setjmp_receiver): Don't restore the pic base if it isn't
21962         fixed.
21963
21964 2006-01-18  Ben Elliston  <bje@au.ibm.com>
21965
21966         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
21967         decimal float modes for all floating point registers.
21968
21969         * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
21970         match_code "mem" with match_test "macho_lo_sum_memory_operand".
21971
21972 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
21973
21974         PR c/25682
21975         * c-typeck.c (build_unary_op): Fold offsetof-like expressions
21976         even when the pointer is not NULL.
21977
21978 2006-01-16  Ian Lance Taylor  <ian@airs.com>
21979
21980         * common.opt (ftoplevel-reorder): New option.
21981         * cgraph.c (cgraph_asm_nodes): New global variable.
21982         (cgraph_asm_last_node): New static variable.
21983         (cgraph_order): New global variable.
21984         (cgraph_create_node): Set new order field.
21985         (cgraph_varpool_node): Likewise.
21986         (decide_is_variable_needed): Return true if not
21987         flag_toplevel_reorder.
21988         (cgraph_add_asm_node): New function.
21989         * cgraph.h (struct cgraph_node): Add order field.
21990         (struct cgraph_varpool_node): Add order field.
21991         (struct cgraph_asm_node): Define.
21992         (cgraph_asm_nodes, cgraph_order): Declare.
21993         (cgraph_add_asm_node): Declare.
21994         * cgraphunit.c (cgraph_varpool_assemble_decl): New static
21995         function.
21996         (cgraph_varpool_assemble_pending_decls): Call it.
21997         (cgraph_output_pending_asms): New static function.
21998         (cgraph_finalize_compilation_unit): Call it.
21999         (struct cgraph_order_sort): Define.
22000         (cgraph_output_in_order): New static function.
22001         (cgraph_optimize): Call cgraph_output_pending_asms.  Add code for
22002         !flag_toplevel_reorder case.
22003         * c-parser.c: Include "cgraph.h".
22004         (c_parser_asm_definition): Call cgraph_add_asm_node rather than
22005         assemble_asm.
22006         * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
22007         than -fno-unit-at-a-time.
22008         * doc/invoke.texi (Option Summary): Mention
22009         -fno-toplevel-reorder.
22010         (Optimize Options): Document -fno-toplevel-reorder.  Mention it in
22011         -funit-at-a-time documentation.
22012
22013 2006-01-17  Hans-Peter Nilsson  <hp@axis.com>
22014             Kazu Hirata  <kazu@codesourcery.com>
22015
22016         * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
22017
22018 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
22019
22020         * Makefile.in (FUNCTION_H): New.  Use it instead of
22021         function.h throughout the file.
22022         * function.h: Include tree.h.
22023
22024 2006-01-17  Ben Elliston  <bje@au.ibm.com>
22025
22026         * recog.c: Separate some functions with whitespace.
22027
22028 2006-01-16  Richard Henderson  <rth@redhat.com>
22029
22030         Merge from gomp branch:
22031         * Makefile.in (TREE_INLINE_H): New.  Use it as needed.
22032         * tree-inline.h (struct copy_body_data): Move from tree-inline.c
22033         and rename from struct inline_data.  Rename callee* to dst*;
22034         caller* to src*; add copy_decl hook, transform_call_graph_edges,
22035         transform_new_cfg, transform_return_to_modify, and
22036         transform_lang_insert_block flags; remove cloning_p, versioning_p,
22037         update_clones_p.
22038         (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
22039         (copy_decl_for_dup): Remove.
22040         * tree-inline.c (struct inline_data): Move to header.
22041         (insert_decl_map): Export.
22042         (remap_decl): Update for member name changes.  Use copy_decl hook.
22043         Allow for replacement to be a non-decl.  Remove dead code.
22044         (remap_type_1): Check for existing mapping.
22045         (remap_type): Export.
22046         (remap_decls): Update for member name changes.
22047         (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
22048         (copy_body, setup_one_parameter, declare_return_variable): Likewise.
22049         (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
22050         (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
22051         (tree_function_versioning, build_duplicate_type): Likewise.
22052         (copy_body_r): Likewise.  Export.
22053         (copy_decl_for_dup): Split into ...
22054         (copy_decl_for_dup_finish, copy_decl_to_var,
22055         copy_decl_no_change, copy_decl_maybe_to_var): ... these.
22056         (replace_ref_tree, inlining_p): Remove.
22057
22058 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
22059
22060         * ifcvt.c (if_convert): Make it static.
22061         * rtl.h: Remove the prototype for if_convert.
22062
22063         * local-alloc.c (local_alloc): Make it static.
22064         * rtl.h: Remove the prototype for local_alloc.
22065
22066         * loop.c (loop_optimize): Make it static.
22067         * cfgloop.h: Remove the prototype for loop_optimize.
22068         * rtl.h: Likewise.
22069
22070 2006-01-16  DJ Delorie  <dj@redhat.com>
22071
22072         * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
22073         mems.
22074
22075 2006-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22076
22077         * pa.md: Disparage copies between general and floating-point registers
22078         in 32-bit move patterns.
22079
22080 2006-01-16  H.J. Lu  <hongjiu.lu@intel.com>
22081
22082         PR testsuite/25741
22083         * Makefile.in (check-%): Depend on site.exp instead of
22084         $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
22085         directories.
22086
22087 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
22088
22089         * global.c (global_alloc): Make it static.
22090         * rtl.h: Remove the prototype for global_alloc.
22091
22092 2006-01-16  Richard Guenther  <rguenther@suse.de>
22093
22094         * tree-ssa-alias.c (struct used_part): Add write_only field.
22095         (get_or_create_used_part_for): Initialize it to true.
22096         (create_overlap_variables_for): Don't create structure variables
22097         for structures that only are written to.
22098         (find_used_portions): Handle MODIFY_EXPR to track whether a
22099         structure is only written to.
22100
22101 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
22102
22103         * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
22104         static.
22105         * basic-block.h: Remove the prototype for
22106         partition_hot_cold_basic_blocks.
22107
22108 2006-01-16  Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
22109
22110         * cppspec.c (lang_specific_spec_functions): Remove.
22111         * gcc.c (lookup_spec_function): Use static_spec_functions directly.
22112         * gcc.h (lang_specific_spec_functions): Remove.
22113         * gccspec.c (lang_specific_spec_functions): Remove.
22114
22115 2006-01-16  Paolo Bonzini  <bonzini@gnu.org>
22116
22117         * combine.c (record_value_for_reg): Invalidate registers
22118         if INSN is null.
22119         (record_dead_and_set_regs_1): Likewise, by passing them to
22120         record_value_for_reg.
22121         (record_dead_and_set_regs): Invalidate stores made by a
22122         call.  We do not combine across a call, but we still
22123         relied on equivalences.
22124
22125 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
22126
22127         * tree-vrp.c (extract_range_from_binary_expr): Cope with
22128         vrp_int_const_binop returning non-constant nodes.
22129
22130 2006-01-16  Paul Brook  <paul@codesourcery.com>
22131
22132         * config/m68k/m68k.c (output_move_const_into_data_reg):
22133         Output correct mnemonic for mvz and mvs.
22134
22135 2006-01-16  Gabor Loki  <loki@gcc.gnu.org>
22136
22137         * rtl-factoring.c: Add sequence abstraction algorithm.
22138         * cfgcleanup.c (outgoing_edges_match): Extra checks.
22139         (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
22140         ABNORMAL edges.
22141         (block_has_preserve_label): New function.
22142         * common.opt: Register new pass.
22143         * Makefile.in: Ditto.
22144         * passes.c: Ditto.
22145         * timevar.def: Ditto.
22146         * tree-pass.h: Ditto.
22147         * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
22148         * rtl.h (make_jump_insn_raw): Add forward decl.
22149         * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
22150
22151 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
22152             Roger Sayle  <roger@eyesopen.com>
22153
22154         * fold-const.c (fold_minmax): New static function.
22155         (fold_binary) <MIN_EXPR>: Call it.
22156         <MAX_EXPR>: Likewise.
22157         * stor-layout.c (place_field): Use DECL_SIZE consistently
22158         in the computation of the new record size.
22159
22160 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
22161
22162         * cse.c (cse_condition_code_reg): Make it static.
22163         * rtl.h: Remove the prototype for cse_condition_code_reg.
22164
22165         * combine.c (combine_instructions): Make it static.
22166         * rtl.h: Remove the prototype for combine_instructions.
22167
22168 2006-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22169
22170         PR target/25168
22171         * tree.c (get_file_function_name_long): Concatenate the first global
22172         object name with a string derived from the input filename of the object
22173         for type "F".
22174
22175 2006-01-16  Ben Elliston  <bje@au.ibm.com>
22176
22177         * config/i386/winnt-stubs.c: Update FSF address.
22178         * config/xtensa/ieee754-df.S: Ditto.
22179         * config/xtensa/ieee754-sf.S: Ditto.
22180
22181 2006-01-14  Ian Lance Taylor  <ian@airs.com>
22182
22183         * ifcvt.c (noce_init_if_info): New static function, broken out of
22184         noce_process_if_block.
22185         (noce_process_if_block): Call noce_init_if_info.
22186         (check_cond_move_block): New static function.
22187         (cond_move_process_if_block): New static function.
22188         (process_if_block): Call cond_move_process_if_block.
22189
22190 2006-01-15  Kazu Hirata  <kazu@codesourcery.com>
22191
22192         * cselib.c (hash_table): Rename to cselib_hash_table.
22193         (cselib_clear_table, discard_useless_values,
22194         remove_useless_values, cselib_lookup_mem, cselib_lookup,
22195         cselib_init, cselib_finish): Adjust uses of hash_table.
22196
22197 2006-01-14  Kazu Hirata  <kazu@codesourcery.com>
22198
22199         PR tree-optimization/25485
22200         * tree-vrp.c (extract_range_from_binary_expr): Handle cases
22201         where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
22202         is known to be false and true, respectively.
22203
22204 2006-01-14  Richard Guenther  <rguenther@suse.de>
22205
22206         PR tree-optimization/22548
22207         PR tree-optimization/22555
22208         PR tree-optimization/22501
22209         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
22210         * params.def (salias-max-array-elements): New parameter.
22211         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
22212         * doc/invoke.texi (salias-max-array-elements): Document.
22213         * tree-flow-inline.h (var_can_have_subvars): We also handle
22214         arrays now.
22215         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
22216         COMPONENT_REF.
22217         * tree-ssa-structalias.c (params.h): Include.
22218         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
22219         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
22220         (get_constraint_for): For ADDR_EXPR operating on something
22221         containing an ARRAY_REF, add all subvars to the solution.
22222         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
22223         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
22224         for creating MUST_DEFs.
22225         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
22226
22227 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
22228
22229         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
22230         functions.
22231         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
22232         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
22233         number_of_iterations_le): New functions.
22234         (number_of_iterations_special): Removed.
22235         (number_of_iterations_exit): Do not use number_of_iterations_special.
22236         * tree.c (unsigned_type_for): Always return integer type.
22237
22238 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
22239         Richard Guenther  <rguenther@suse.de>
22240
22241         PR rtl-optimization/24257
22242         * gcse.c (find_moveable_store): Only consider a store movable
22243         when the SET_SRC of the insn can be assigned to a register.
22244
22245 2006-01-14  Ian Lance Taylor  <ian@airs.com>
22246
22247         * tree.c (tree_not_class_check_failed): New function.
22248         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
22249         (tree_not_class_check_failed): Declare.
22250
22251 2006-01-13  Ian Lance Taylor  <ian@airs.com>
22252
22253         * reload1.c (do_output_reload): Add assertion rejecting a
22254         CALL_INSN.
22255
22256 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
22257
22258         * combine.c (struct reg_stat): Add new fields truncation_label and
22259         truncated_to_mode.
22260         (record_value_for_reg): Reset truncated_to_mode.
22261         (record_truncated_value): New function.
22262         (check_promoted_subreg): Call it.  Rename to check_conversions.
22263         (combine_instructions): Rename check_promoted_subreg to
22264         check_conversions.
22265         (reg_truncated_to_mode): New function.
22266         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
22267         (gen_lowpart_or_truncate): New function.
22268         (force_to_mode): Use it instead of gen_lowpart.
22269
22270 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
22271
22272         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
22273         VAR is a tag, not its type tag.
22274
22275 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
22276
22277         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
22278         alternatives to match style of other entries.
22279         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
22280
22281 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
22282
22283         PR tree-optimization/25771
22284         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
22285         SSA_NAMES.
22286
22287 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
22288
22289         PR tree-opt/24365
22290         * tree-inline.c (declare_return_variable): If the return variable
22291         was marked as a non gimple complex, set the return slot variable
22292         to be a non gimple comple variable.
22293
22294 2006-01-13  Richard Guenther  <rguenther@suse.de>
22295
22296         * builtins.c (expand_builtin_sincos): New function.
22297         (expand_builtin_mathfn_3): Remove dead code, sin and cos
22298         do not set errno.
22299         (expand_builtin): Expand sincos using expand_builtin_sincos.
22300
22301 2006-01-12  DJ Delorie  <dj@redhat.com>
22302
22303         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
22304         shift counts, separate SI shifts for m32c vs m16c, pass shift type
22305         so that constant shifts can be split.
22306         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
22307         (m32c_valid_pointer_mode): Make static.
22308         (shift_gen_func_for): New.
22309         (m32c_prepare_shift): Use it.  Split large const shifts into
22310         multiple shifts.
22311         * config/m32c/predicates.md (shiftcount_operand): Allow more
22312         general operands.
22313         (longshiftcount_operand): New.
22314         * doc/md.texi (Machine Constraints): Document In6.
22315
22316 2006-01-13  Ben Elliston  <bje@au.ibm.com>
22317
22318         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
22319         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
22320         documentation.
22321
22322 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
22323
22324         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
22325         to try to avoid clobbering pieces of structures when we know
22326         something about the whole structure.
22327         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
22328
22329 2006-01-13  Ben Elliston  <bje@au.ibm.com>
22330
22331         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
22332         return in memory, as this is no limitation is no longer present.
22333
22334 2006-01-12  DJ Delorie  <dj@redhat.com>
22335
22336         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
22337         mova with fb, and for fb+0 -> An.
22338
22339         * config/m32c/mov.md (peephole2): Fix enabling logic.
22340
22341         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
22342         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
22343         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
22344         FINI_ARRAY_SECTION_ASM_OP): Define.
22345
22346         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
22347         variable.
22348         (m32c_legitimize_reload_address): New logic to reload FB to An.
22349         (m32c_output_reg_push): Add newline.
22350         (m32c_output_reg_pop): Likewise.
22351
22352 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
22353
22354         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
22355
22356 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
22357
22358         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
22359
22360 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
22361
22362         * config/sh/predicates.md (sh_rep_vec): Add parallel to
22363         match_code.
22364
22365 2006-01-11  Ben Elliston  <bje@au.ibm.com>
22366
22367         * rtlanal.c (find_reg_note): Assert insn is not null.
22368
22369 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
22370
22371         * df-scan.c (df_hard_reg_init): Move declaration of i outside
22372         ifdef.
22373
22374 2006-01-11  Jeff Law  <law@redhat.com>
22375
22376         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
22377         hold edge pairs.
22378         (mark_threaded_blocks, register_jump_thread): New functions.
22379         (thread_through_all_blocks): Remove unwanted argument.  No
22380         longer rely on e->aux to communicate thread target info.
22381         Call mark_threaded_blocks.  Release the threaded_blocks
22382         bitmap and threaded_edges vector when complete.
22383         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
22384         (threaded_blocks): Remove.
22385         (tree_ssa_dominator_optimize): Remove initialization and
22386         finalization of threaded_blocks.  Simplify call to
22387         thread_through_all_blocks.
22388         (thread_across_edge): Call register_jump_thread rather than
22389         storing thread information into e->aux.
22390         (free_all_edge_infos): Simplify now that e->aux is no longer
22391         used to communicate with thread_through_all_blocks.
22392         * tree-flow.h (thread_through_all_blocks): Update prototype.
22393         (register_jump_thread): Prototype.
22394
22395 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
22396
22397         * df-core.c (df_compact_blocks, df_bb_replace): Use
22398         SET_BASIC_BLOCK instead of BASIC_BLOCK.
22399
22400 2006-01-11  Richard Guenther  <rguenther@suse.de>
22401
22402         PR tree-optimization/25734
22403         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
22404         stop propagation after successful propagation to the LHS.
22405
22406 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
22407
22408         * basic-block.h (control_flow_graph): Change the type of
22409         x_basic_block_info to VEC(basic_block,gc) *.
22410         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
22411         basic_block_info.
22412         (SET_BASIC_BLOCK): New.
22413         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
22414         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
22415         * cfgbuild.c (find_basic_blocks): Likewise.
22416         * cfglayout.c (fixup_reorder_chain): Likewise.
22417         * cfgrtl.c (create_basic_block_structure,
22418         rtl_create_basic_block): Likewise.
22419         * ifcvt.c (find_if_case_1): Likewise.
22420         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
22421         Likewise.
22422
22423 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
22424
22425         * Makefile.in: Removed rotted odf.c entry.
22426
22427 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
22428
22429         PR target/25706
22430         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
22431         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
22432         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
22433         output pattern modifier, not %e.
22434         * config/cris/cris.c (cris_op_str): Update comment about pattern
22435         modifier.
22436         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
22437         before falling through into...
22438         <case 'E'>: Redefined from old 'e' case.
22439
22440 2006-01-11  Jan Hubicka  <jh@suse.cz>
22441
22442         PR target/25042
22443         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
22444
22445 2006-01-11  Jan Hubicka  <jh@suse.cz>
22446
22447         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
22448         * i386.c (x86_decompose_lea): Kill.
22449         (ix86_rtx_costs): Kill.
22450
22451 2006-01-11  Jan Hubicka  <jh@suse.cz>
22452
22453         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
22454         * cgraph.h (cgraph_node): Add inline_decl.
22455         (cgraph_insert_node_to_hashtable): Declare.
22456         (save_inline_function_body): Declare.
22457         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
22458         clones.
22459         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
22460         (cgraph_function_versioning): Update call of tree_function_versioning.
22461         (save_inline_function_body): New function.
22462         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
22463         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
22464         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
22465         (cgraph_default_inline_p): Likewise.
22466         (cgraph_decide_inlining_incrementally): Likewise.
22467         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
22468         (copy_bb): Kill saving; do updating of clones.
22469         (copy_cfg_body): Kill saving.
22470         (initialize_inlined-parameters): Likewise.
22471         (expand_call_inline): Likewise.
22472         (save_body): Kill.
22473         (tree_function_versioning): New parameter "update_clones".
22474         (inlining_p): Kill saving.
22475         * tree-inline.h (tree_function_versioning): Update prototype.
22476         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
22477         saving.
22478
22479 2006-01-11  Ian Lance Taylor <ian@airs.com>
22480
22481         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
22482         Allow undoing set of machine mode.
22483         (do_SUBST): Use enums instead of is_int.
22484         (do_SUBST_MODE): New function.
22485         (SUBST_MODE): New macro.
22486         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
22487         reg and trying to replace reg_regno_rtx with a new register.
22488         (undo_all): Use new enums, handle undoing a PUT_MODE change.
22489         (simplify_set): Use SUBST_MODE.
22490         (distribute_notes): Remove code that tried to update reg notes
22491         for regno_reg_rtx changes.
22492
22493 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
22494
22495         PR tree-optimization/23109
22496         PR tree-optimization/23948
22497         PR tree-optimization/24123
22498
22499         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
22500         * tree-cfg.c (single_noncomplex_succ): New.
22501         * tree-flow.h (single_noncomplex_succ): Declare it.
22502         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
22503         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
22504         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
22505         insert_bb, register_division_in, insert_reciprocals,
22506         replace_reciprocal, free_bb): New.
22507         (execute_cse_reciprocals_1): Rewritten.
22508         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
22509         Do not commit any edge insertion.  Always compute dominators and
22510         create the allocation pool.
22511         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
22512         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
22513         * targhooks.c (default_min_divistions_for_recip_mul): New.
22514         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
22515         * passes.c (init_optimization_passes): Run recip after tree loop
22516         optimizations.
22517         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
22518
22519 2006-01-11  Danny Berlin <dberlin@dberlin.org>
22520             Kenneth Zadeck <zadeck@naturalbridge.com>
22521
22522         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
22523         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
22524         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
22525         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
22526         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
22527         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
22528         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
22529         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
22530         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
22531         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
22532         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
22533         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
22534         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
22535         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
22536         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
22537         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
22538         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
22539         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
22540         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
22541         DF_SCAN_POST_ALLOC): New macros.
22542         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
22543         df_free_bb_function, df_local_compute_function, df_init_function,
22544         df_dataflow_function, df_confluence_function_0,
22545         df_confluence_function_n, df_transfer_function,
22546         df_finalizer_function, df_free_function, df_dump_problem_function,
22547         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
22548         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
22549         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
22550         df_urec_bb_info, ) New types.
22551         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
22552         variables.
22553         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
22554         df_analyze_simple_change_some_blocks,
22555         df_analyze_simple_change_one_block, df_compact_blocks,
22556         df_bb_replace, df_bb_regno_last_use_find,
22557         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
22558         df_insn_regno_def_p, df_find_def, df_find_use,
22559         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
22560         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
22561         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
22562         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
22563         debug_df_chain, df_get_dependent_problem, df_chain_create,
22564         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
22565         df_grow_bb_info, df_chain_dump, df_print_bb_index,
22566         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
22567         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
22568         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
22569         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
22570         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
22571         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
22572         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
22573         df_ref_remove, df_insn_refs_delete, df_refs_delete,
22574         df_reorganize_refs, df_set_state, df_hard_reg_init,
22575         df_read_modify_subreg_p) New public functions.
22576         * df-core.c: The core dataflow solver and glue routines for rtl
22577         dataflow.
22578         (df_init, df_add_problem, df_set_blocks, df_finish,
22579         df_hybrid_search_forward, df_hybrid_search_backward,
22580         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
22581         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
22582         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
22583         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
22584         df_reg_defined, df_find_use, df_reg_used, df_dump,
22585         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
22586         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
22587         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
22588         debug_df_useno, reset_df_after_reload): New functions.
22589         * df-scan.c: The scanning fuctions, once in df.c, completely
22590         rewritten so that they now fully model the functionality of
22591         register usage at the backend.
22592         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
22593         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
22594         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
22595         df_grow_insn_info, df_rescan_blocks, df_ref_create,
22596         df_get_artificial_defs, df_get_artificial_uses,
22597         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
22598         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
22599         df_refs_delete, df_reorganize_refs, df_set_state,
22600         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
22601         df_def_record_1, df_defs_record, df_uses_record,
22602         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
22603         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
22604         df_record_exit_block_uses, df_hard_reg_init): New functions.
22605
22606         * df-problems.c: Seven concrete dataflow problems that use the
22607         scanning in df-scan.c and are solved by the engine in df-core.c.
22608         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
22609         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
22610         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
22611         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
22612         df_ru_free_bb_info, df_ru_alloc,
22613         df_ru_bb_local_compute_process_def,
22614         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
22615         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
22616         df_ru_transfer_function, df_ru_free, df_ru_dump,
22617         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
22618         df_rd_free_bb_info, df_rd_alloc,
22619         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
22620         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
22621         df_rd_transfer_function, df_rd_free, df_rd_dump,
22622         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
22623         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
22624         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
22625         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
22626         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
22627         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
22628         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
22629         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
22630         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
22631         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
22632         df_urec_mark_reg_change, df_urec_check_earlyclobber,
22633         df_urec_mark_reg_use_for_earlyclobber,
22634         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
22635         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
22636         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
22637         df_urec_dump, df_urec_add_problem, df_chain_alloc,
22638         df_chain_create_bb_process_use, df_chain_create_bb,
22639         df_chain_finalize, df_chain_free, df_chains_dump,
22640         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
22641         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
22642         df_reg_lifetime): New functions.
22643         * df.c: Deleted file.
22644         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
22645         consistent with new df api.
22646         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
22647         rest_of_handle_sms): Ditto.
22648         * web.c (unionfind_union, union_defs, entry_register, web_main):
22649         Ditto.
22650         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
22651         invariant_expr_equal_p, find_defs, check_dependencies,
22652         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
22653         free_inv_motion_data, move_loop_invariants): Ditto.
22654         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
22655         Update dependencies.
22656         (odf.c): Added defective entry that was deleted later in day.
22657         * sched-deps.c (sched_analyze_1): Ditto.
22658
22659 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
22660
22661         * tree-ssa-operands.c (get_expr_operands): Record addressable
22662         variables directly.  Do not call add_stmt_operands for CONST_DECLs
22663         and ARRAY_DECLs.
22664         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
22665         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
22666
22667 2006-01-11  Ben Elliston  <bje@au.ibm.com>
22668
22669         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
22670         function returns true in the positive case.
22671
22672 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22673
22674         PR target/20754
22675         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
22676         for SI, DI, SF and DF modes.  Add alternatives to copy between
22677         general and floating point registers to the 32-bit patterns.
22678         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
22679         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
22680         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
22681         generating 64-bit code.
22682         * config/pa/pa.c (output_move_double): Handle copies between general
22683         and floating registers.
22684
22685 2006-01-10  Stuart Hastings  <stuart@apple.com>
22686
22687         * config/i386/i386.md (set_got): Update.
22688         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
22689         (builtin_setjmp_receiver): Mach-O support.
22690         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
22691         (GOT_SYMBOL_NAME): Define.
22692         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
22693         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
22694         * config/i386/i386.c (override_options): Revise for Darwin.
22695         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
22696         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
22697         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
22698         * config/i386/i386-protos.h (output_set_got): Likewise.
22699         * config/darwin.c (machopic_legitimize_pic_address): Update
22700         regs_ever_live[].
22701
22702 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22703
22704         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
22705         when MODE isn't BLKmode.
22706
22707 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
22708
22709         PR rtl-optimization/25367
22710         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
22711
22712 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
22713
22714         PR target/25718
22715         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
22716         for a negative bound.
22717
22718 2006-01-10  Richard Guenther  <rguenther@suse.de>
22719
22720         * tree-ssa-structalias.c (get_constraint_for_component_ref):
22721         Never override with anything constraint.
22722
22723 2006-01-10  Jan Beulich  <jbeulich@novell.com>
22724
22725         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
22726         256 bits when optimize_size.
22727
22728 2006-01-10  Jan Beulich  <jbeulich@novell.com>
22729
22730         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
22731         MASK_ALIGN_DOUBLE.
22732         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
22733         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
22734         arguments.
22735
22736 2006-01-10  Ben Elliston  <bje@au.ibm.com>
22737
22738         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
22739         float modes.
22740         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
22741         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
22742         (USE_FP_FOR_ARG): Reject decimal float modes.
22743         (function_arg_advance): Likewise.
22744         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
22745         (rs6000_handle_altivec_attribute): Do not permit decimal floating
22746         point types in AltiVec vectors.
22747         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
22748         (rs6000_libcall_value): Likewise.
22749
22750 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
22751
22752         * config/xtensa/ieee754-df.S: New file.
22753         * config/xtensa/ieee754-sf.S: New file.
22754         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
22755         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
22756         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
22757
22758 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
22759
22760         * config/sh/predicates.md (binary_float_operator,
22761         binary_logical_operator, commutative_float_operator,
22762         equality_comparison_operator, greater_comparison_operator,
22763         less_comparison_operator, logical_operator,
22764         noncommutative_float_operator, shift_operator,
22765         symbol_ref_operand, unary_float_operator): Remove redundant
22766         conditionals.
22767
22768 2006-01-09  Jeff Law  <law@redhat.com>
22769
22770         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
22771         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
22772         now unused arguments.  Callers updated.
22773         (eliminate_redundant_computations): Remove now unused arguments,
22774         callers updated.
22775         (local_fold): Remove, no longer used.
22776         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
22777         and moved to...
22778         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
22779         (simplify_cond): New function.
22780         (forward_propagate_into_cond): Call simplify_cond.
22781
22782 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
22783
22784         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
22785         (*vec_extractv2di_1_sse): New.
22786
22787 2006-01-09  Ben Elliston  <bje@au.ibm.com>
22788
22789         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
22790
22791 2006-01-08  Richard Guenther  <rguenther@suse.de>
22792
22793         * tree-ssa-structalias.c (get_constraint_for): Remove
22794         anyoffset argument.
22795         (get_constraint_for_component_ref): Likewise.
22796         (do_deref): Likewise.
22797         (get_constraint_for): Likewise.
22798         (do_structure_copy): Likewise.
22799         (handle_ptr_arith): Likewise.
22800         (find_func_aliases): Likewise.  Remove unused need_anyoffset
22801         variable.
22802
22803 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
22804             Kaz Kojima  <kkojima@gcc.gnu.org>
22805
22806         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
22807         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
22808         (EXTRA_CONSTRAINT_C16): Remove.
22809         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
22810         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
22811         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
22812         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
22813         constants of SHmedia.  Handle nested constant expressions of
22814         SHmedia correctly.
22815         (andcosts): Fix the costs for SHmedia constants.
22816         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
22817         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
22818         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
22819         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
22820         (movv4hi_i, movv2si_i): Likewise.
22821         (movsi_const): Adjust the second operand of ior so to match with
22822         the Csu constraint.
22823         (movdi_const, movdi_const_32bit): Likewise.
22824         (movdi_const_16bit+1): Don't sign-extend LOW.
22825         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
22826         step.
22827         (*double_shori): Fix the split condition.  Use GEN_INT instead
22828         of get_int_mode calls.  Mask lower 16-bit of the argument of
22829         the last GEN_INT.
22830         (sym2GOTPLT): Remove.
22831         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
22832         gen_rtx_UNSPEC.
22833         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
22834         instead of EXTRA_CONSTRAINT_C16.
22835
22836 2006-01-07  Ian Lance Taylor  <ian@airs.com>
22837             David Edelsohn  <edelsohn@gnu.org>
22838
22839         PR rtl-optimization/25662
22840         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
22841         for constant operands instead of simplify_gen_binary.
22842         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
22843         after trying simplify_binary_operation
22844
22845 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
22846
22847         * tree.c (iterative_hash_expr): Hash decls based on UID.
22848
22849 2006-01-06  Eric Christopher  <echristo@apple.com>
22850
22851         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
22852         (TARGET_UNWIND_EMIT): Fix spelling.
22853         * target.h (gcc_target): Add except_table_label.
22854         * except.c (output_function_exception_table): Use.
22855         * varasm.c (default_emit_except_table_label): New.
22856         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
22857         define.
22858         (asm_out): Add here.
22859         * output.h (default_emit_except_table_label): Prototype.
22860         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
22861         * config/darwin.c (darwin_emit_except_table_label): Define.
22862         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
22863
22864 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
22865
22866         PR tree-optimization/18527
22867         * tree-ssa-loop-niter.c (number_of_iterations_cond,
22868         number_of_iterations_special, number_of_iterations_exit):
22869         Move base and step of an iv to a single structure.  Add
22870         no_overflow flag, and use it in # of iterations analysis.
22871         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
22872         folded_casts argument.
22873         (simple_iv): Pass base and step in a structure.  Set no_overflow
22874         flag.
22875         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
22876         Evaluate expensiveness of computing # of iterations instead of
22877         the final expression.
22878         * tree-scalar-evolution.h (affine_iv): New structure.
22879         (simple_iv): Declaration changed.
22880         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
22881         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
22882         find_givs_in_stmt): Changed due to simple_iv change.
22883
22884 2006-01-06  Jeff Law  <law@redhat.com>
22885
22886         PR ada/24994
22887         * tree-cfg.c (bsi_replace): Rename final argument from
22888         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
22889         change (stmt -> orig_stmt).
22890         * tree-eh.c (verify_eh_throw_stmt_node): New function.
22891         (bsi_remove): Add new argument.  Remove EH information
22892         if requested.
22893         (verify_eh_throw_table_statements): New function.
22894         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
22895         updated.
22896         * tree-optimize.c (execute_free_cfg_annotations): Verify
22897         the EH throw statement table after removing annotations.
22898         * except.h (verify_eh_throw_table_statements): Prototype.
22899         * tree-flow.h (bsi_remove): Update prototype.
22900         * tree-vrp.c (remove_range_assertions): Add new argument to
22901         bsi_remove call.
22902         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
22903         * tree-complex.c (expand_complex_div_wide): Likewise.
22904         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
22905         * tree-tailcall.c (eliminate_tailcall): Likewise.
22906         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
22907         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
22908         * tree-nrv.c (tree_nrv): Likewise.
22909         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
22910         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
22911         (combine_blocks): Likewise.
22912         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
22913         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
22914         (cleanup_control_flow): Likewise.
22915         (remove_forwarder_block): Likewise.
22916         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
22917         * tree-sra.c (sra_replace): Likewise.
22918         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
22919         (forward_propagate_single_use_vars): Likewise.
22920         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
22921         * tree-inline.c (expand_call_inline): Likewise.
22922         * tree-vect-transform.c (vect_transform_loop): Likewise.
22923         * tree-outof-ssa.c (rewrite_trees): Likewise.
22924         * tree-cfg.c (make_goto_expr_edges): Likewise.
22925         (cleanup_dead_labels): Likewise.
22926         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
22927         (bsi_move_before, bsi_move_after): Likewise.
22928         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
22929         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
22930
22931 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
22932
22933         PR tree-opt/25528
22934         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
22935         and IMAGPART_EXPR.
22936         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
22937         on non gimple variables.  Also add checks at the top for decls and
22938         mtags.
22939         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
22940         complex types.
22941         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
22942         and IMAGPART_EXPR for creating MUST_DEFs.
22943         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
22944         and NAME_MEMORY_TAG separately from the DECLs.
22945
22946 2006-01-06  Richard Guenther  <rguenther@suse.de>
22947
22948         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
22949         annotation, if necessary.
22950         * tree-ssa-pre.c (create_expression_by_pieces): Remove
22951         redundant calls to update_stmt.
22952         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
22953         Likewise.
22954
22955 2006-01-05  Richard Henderson  <rth@redhat.com>
22956
22957         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
22958
22959 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
22960
22961         * c-typeck.c: Update copyright date.
22962
22963 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
22964
22965         * c-typeck.c (build_c_cast): Always warn when casting
22966         from a pointer to an integer of different size, even if
22967         the node was constant.
22968
22969 2006-01-05  Richard Guenther  <rguenther@suse.de>
22970
22971         PR tree-optimization/22555
22972         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
22973         if one structure field is an array.
22974         * tree-ssa-operands.c (get_expr_operands): Continue scanning
22975         operands even if we found a subvar, but ignore VOPs in this
22976         case.
22977         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
22978         for renaming.
22979         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
22980
22981 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
22982
22983         PR middle-end/24998
22984         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
22985
22986 2006-01-05  Richard Guenther  <rguenther@suse.de>
22987             Diego Novillo  <dnovillo@redhat.com>
22988
22989         * tree-pass.h (TODO_remove_unused_locals): Define.
22990         * gimple-low.c (expand_var_p, remove_useless_vars,
22991         pass_remove_useless_vars): Remove.  Update all users.
22992         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
22993         (remove_unused_locals): New function.
22994         * tree-flow.h (remove_unused_locals): Declare.
22995         * passes.c (execute_todo): Call remove_unused_locals if
22996         TODO_remove_unused_locals is set.
22997         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
22998         * tree-ssa-dce.c (pass_dce): Likewise.
22999         * tree-outof-ssa.c (pass_del_ssa): Likewise.
23000
23001 2006-01-05  Richard Guenther  <rguenther@suse.de>
23002
23003         * tree-flow.h (struct fieldoff): Decompose field to
23004         type, size and decl.
23005         * tree-ssa-alias.c (create_sft): Take type as parameter.
23006         (create_overlap_variables_for): Store type, size and decl
23007         in the fieldoff structure.
23008         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
23009         of struct fieldoff.
23010         (push_fields_onto_fieldstack): Likewise.
23011         (create_variable_info_for): Likewise.  Use offset for the
23012         SFT name if the decl is not available.
23013
23014 2006-01-04  Paul Brook  <paul@codesourcery.com>
23015
23016         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
23017
23018 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
23019
23020         * lambda-code.c (can_put_in_inner_loop): Relax
23021         restrictions.
23022         (can_put_after_inner_loop): New function.
23023         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
23024         (perfect_nestify): Change to make copies and modify uses.
23025
23026 2006-01-04  Richard Henderson  <rth@redhat.com>
23027
23028         Merge from gomp branch:
23029         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
23030         via integer constant.
23031         (pragma_lex): Remove.
23032         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
23033         rather than parsing it.
23034         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
23035         handle_pragma_extern_prefix): Add %< %> quotes.
23036         (registered_pragmas): New.
23037         (c_register_pragma_1): New.
23038         (c_register_pragma): Use it.
23039         (c_register_pragma_with_expansion): Likewise.
23040         (c_invoke_pragma_handler): New.
23041         (init_pragma): Use cpp_register_deferred_pragma directly for
23042         pch_preprocess.
23043         * c-pragma.h (enum pragma_kind): New.
23044         (pragma_handler): New.
23045         (c_invoke_pragma_handler): Declare.
23046         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
23047         CPP_PRAGMA_EOL.
23048         * c-common.h (c_common_pch_pragma): Update decl.
23049         * Makefile.in (c-parser.o): Update dependencies.
23050         (GTFILES): Add c-pragma.h.
23051         * c-parser.c (struct c_token): Add pragma_kind.
23052         (struct c_parser): Add in_pragma.
23053         (c_lex_one_token): Always initialize keyword and pragma_kind.
23054         Extract data for CPP_PRAGMA.
23055         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
23056         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
23057         Don't allow CPP_PRAGMA_EOL if in_pragma.
23058         (c_parser_consume_pragma): New.
23059         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
23060         (c_parser_skip_to_end_of_parameter): Likewise.
23061         (c_parser_skip_to_end_of_block_or_statement): Likewise.
23062         (c_parser_skip_to_pragma_eol): New.
23063         (c_parser_external_declaration): Handle CPP_PRAGMA.
23064         (c_parser_compound_statement_nostart): Likewise.
23065         (c_parser_statement_after_labels): Likewise.
23066         (c_parser_pragma): New.
23067         (pragma_lex): Likewise.
23068         (c_parser_pragma_pch_preprocess): New.
23069         (c_parser_new): Merge into ...
23070         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
23071
23072 2006-01-04  Jeff Law  <law@redhat.com>
23073
23074         PR ada/24994
23075         * tree-cfg.c (bsi_replace): Remove the original statement
23076         from the EH throw statement table.
23077
23078 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
23079
23080         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
23081         make the prototype extern "C" and add throw ().
23082
23083         PR target/25554
23084         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
23085         and pos non-negative and pos + len <= 32.
23086         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
23087         drop pos + len < HOST_BITS_PER_WIDE_INT test.
23088         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
23089
23090         PR c/25559
23091         * c-common.c (handle_vector_size_attribute): Reject zero vector size
23092         as well as sizes not multiple of component size.
23093
23094         PR debug/25562
23095         * function.c (instantiate_expr): New function.
23096         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
23097         walk its DECL_VALUE_EXPR with instantiate_expr.
23098
23099         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
23100         DW_OP_deref{,_size} if address isn't going to be added.
23101
23102 2006-01-04  Ben Elliston  <bje@au.ibm.com>
23103
23104         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
23105         * config/fp-bit.c: Likewise.
23106
23107 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
23108
23109         * dominance.c: Add comment about why we use DFS numbering
23110         of dominance tree.
23111
23112 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
23113             Richard Henderson  <rth@redhat.com>
23114
23115         Merge from gomp-branch:
23116         * varasm.c (assemble_variable): Handle thread-local COMMON data.
23117         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
23118
23119 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
23120
23121         PR rtl-optimization/25578
23122         * combine.c (combine_simplify_rtx, force_to_mode): Don't
23123         pass a parameter to simplify_shift_const if changing ASHIFTRT
23124         to LSHIFTRT.
23125
23126 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
23127
23128         * builtins.c (get_builtin_sync_mem): New function.
23129         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
23130         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
23131         Call get_builtin_sync_mem to generate mem rtx.
23132
23133 2006-01-03  Richard Guenther  <rguenther@suse.de>
23134
23135         PR c/25183
23136         * stmt.c (add_case_node): Make sure to clear overflow flags
23137         from ranges.
23138
23139 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
23140
23141         Merge from gomp-branch.
23142         * config/sparc/sync.md: New file.
23143         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
23144         UNSPECV_LDSTUB): New constants.
23145         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
23146         * config/sparc/predicates.md (memory_reg_operand): New predicate.
23147         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
23148         prototype.
23149
23150 2006-01-03  Roger Sayle  <roger@eyesopen.com>
23151
23152         * combine.c (reg_subword_p): New predicate to test whether the
23153         destination of a set refers to a subword/piece of a register.
23154         (try_combine): Generalize the code to merge the setting of a
23155         pseudo to a constant followed by a set of a subword of that
23156         register to a constant.
23157
23158 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
23159
23160         * basic-block.h (control_flow_graph): Change the type of
23161         x_label_to_block_map to VEC(basic_block,gc) *.
23162         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
23163         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
23164
23165         * tree-ssa-propagate.c (cfg_blocks): Change the type to
23166         VEC(basic_block,heap) *.
23167         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
23168         ssa_prop_fini): Adjust the uses of cfg_blocks.
23169
23170 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
23171
23172         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
23173         COMPONENT_REFs.
23174         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
23175         hashing trees instead of a pointer hash.
23176         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
23177         compare for MEM_EXPR.
23178
23179         PR rtl-optimization/25130
23180         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
23181         when comparing MEMs for GCSE
23182
23183 2006-01-03  Ben Elliston  <bje@au.ibm.com>
23184
23185         * targhooks.h (default_decimal_float_supported_p): Declare.
23186         * targhooks.c (default_decimal_float_supported_p): Define.
23187         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
23188         `default_decimal_float_supported_p'.
23189         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
23190
23191 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
23192
23193         * combine.c (apply_distributive_law <SUBREG>): Check
23194         TRULY_NOOP_TRUNCATION.
23195
23196 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
23197
23198         * dwarf2out.c (have_switched_text_section): Delete.
23199         (have_multiple_function_sections): New.
23200         (have_location_lists): Make 'bool'.
23201         (add_AT_loc_list): Use 'true' not '1'.
23202         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
23203         (output_loc_list): Use have_multiple_function_sections.
23204         (output_ranges): Likewise.
23205         (dwarf2out_begin_function): Set have_multiple_function_sections if
23206         necessary.
23207         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
23208         Check function_section rather than DECL_SECTION_NAME.
23209         (dwarf2out_finish): Use have_multiple_function_sections.
23210         Don't clear have_location_lists.
23211
23212 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
23213             Jan Hubicka  <jh@suse.cz>
23214
23215         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
23216         case of conditional jump jumping to the next instruction.
23217         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
23218         cases of conditional jump jumping to the next instruction.
23219
23220 2006-01-02  Jan Hubicka  <jh@suse.cz>
23221
23222         * i386.c (*_cost): Add COSTS_N_INSNS.
23223         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
23224
23225 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
23226
23227         PR target/25259
23228         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
23229
23230 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
23231
23232         * config/arm/arm.c (all_fpus): Fix comment typo.
23233         * config/darwin.c: Likewise.
23234         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
23235         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
23236         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
23237
23238 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
23239
23240         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
23241         (rs6000_split_compare_and_swapqhi): New.
23242         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
23243         (sync_compare_and_swapqhi_internal): New.
23244         * config/rs6000/rs6000-protos.h: Declare.