OSDN Git Service

2006-03-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-03-30  Richard Guenther  <rguenther@suse.de>
2
3         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
4         variants with double arguments.
5
6 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
7
8         * genpreds.c (write_tm_constrs_h): Delete variable p.
9         * genconditions.c (write_header): Add tm-constrs.h to included
10         headers.
11         * genpeep.c (main): Add toplev.h to included headers.
12         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
13         (build/genpeep.o): Add toplev.h dependency.
14         * config/rs6000/constraints.md: Add "W" constraint.
15
16 2006-03-29  Roger Sayle  <roger@eyesopen.com>
17
18         * stor-layout.c (mode_for_size_tree): Remove restiction on type
19         sizes by correctly testing whether the size fits a host integer.
20         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
21         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
22         SImode range for the default sizetype and bitsizetype.
23
24 2006-03-29  Roger Sayle  <roger@eyesopen.com>
25
26         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
27         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
28         quickly if the argument is already of the correct type.
29         Call fold_build1 instead of build1.  Tidy up blank lines.
30
31 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
32
33         * genemit.c (main): Add tm-constrs.h to included headers.
34         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
35         * genpeep.c (main): Add tm-constrs.h to included headers.
36         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
37         (write_tm_constrs_h): this and write complete file.
38         (write_tm_preds_h): Do not emit satisfies_constraint fns.
39         (write_insn_preds_c): Add tm-constrs.h to included headers.
40         (gen_constrs): New variable.
41         (parse_option): Parse "-c".
42         (main): Invoke write_tm_constrs_h.
43         * genrecog.c (write_header): Add tm-constrs.h to included headers.
44         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
45         (object_out_file): Add tm-constrs.h dependency.
46         (insn-emit.o): Same.
47         (insn-output.o): Same.
48         (insn-peep.o): Same.
49         (insn-preds.o): Same.
50         (insn-recog.o): Same.
51         (tm-constsr.h): New target.
52         (s-constrs-h): New target.
53
54         * config/rs6000/constraints.md: New file.
55         * config/rs6000/rs6000.c: Include tm-constrs.h.
56         (num_insn_constant_wide): Convert to satisfies_constraint.
57         (rs6000_rtx_costs): Convert to satisfies_constraint.
58         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
59         (CONST_OK_FOR_LETTER_P): Delete.
60         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
61         (EXTRA_CONSTRAINT): Delete.
62         (EXTRA_MEMORY_CONSTRAINT): Delete.
63         (EXTRA_ADDRESS_CONSTRAINT): Delete.
64         * config/rs6000/predicates.md: Convert to satisfies_constraint.
65         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
66         satisfies_constraint.
67
68         * config/i386/i386.c: Include tm-constrs.h.
69
70 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
71
72         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
73         * tree-data-ref.c (find_data_references_in_loop,
74         compute_data_dependences_for_loop): Use pointers to VEC.
75         (analyze_all_data_dependences): Adjust calls.
76         * tree-data-ref.h (find_data_references_in_loop,
77         compute_data_dependences_for_loop): Adjust declarations.
78         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
79         compute_data_dependences_for_loop.
80
81 2006-03-29  Paul Brook  <paul@codesourcery.com>
82
83         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
84         (movdf_vfp): Ditto.
85
86 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
87
88         PR tree-optimization/26859
89         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
90         division by zero.
91         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
92         for the step after fold_convert.
93
94 2006-03-29  Paul Brook  <paul@codesourcery.com>
95
96         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
97         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
98
99 2006-03-29  Paul Brook  <paul@codesourcery.com>
100
101         PR middle-end/23623
102         * targhooks.c (default_narrow_bitfield): New fuction.
103         * targhooks.h (default_narrow_bitfield): add prototype.
104         * target.h (gcc_target): Add narrow_volatile_bitfield.
105         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
106         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
107         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
108         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
109
110 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
111
112         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to 
113         tmake_file.
114         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
115         (NR_C_MODES): Add TDmode, DDmode and SDmode.
116         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
117         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
118         (s390_function_arg_float): Allow SDmode and DDmode values to be
119         passed in floating point registers.
120         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT 
121         check with SCALAR_FLOAT_MODE_P.
122         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
123
124 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
125
126         PR tree-optimization/25985
127         * tree-ssa-loop-niter.c (number_of_iterations_le,
128         number_of_iterations_ne): Make comments more precise.
129         (number_of_iterations_cond): Add only_exit argument.  Use the
130         fact that signed variables do not overflow only when only_exit
131         is true.
132         (loop_only_exit_p): New.
133         (number_of_iterations_exit): Pass result of loop_only_exit_p to
134         number_of_iterations_cond.
135
136 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
137
138         PR tree-optimization/26643
139         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
140         bit_field_refs.
141
142 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
143
144         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
145         (divsi3_i4_int): Likewise.
146
147 2006-03-28  Roger Sayle   <roger@eyesopen.com>
148
149         * expr.c (emit_group_store): Only create a new pseudo reg if the
150         quantity it needs to hold isn't already a suitable pseudo.
151
152 2006-03-28  Jeff Law  <law@redhat.com>
153
154         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
155         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
156
157 2006-03-28  Roger Sayle  <roger@eyesopen.com>
158
159         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
160         the equivalent ~X & Y, and the symmetry related transformations.
161         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as 
162         ~X & Y, and symmetry related transforms.
163
164 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
165
166         Revert my 2006-03-27 patches.
167
168 2006-03-28  Roger Sayle  <roger@eyesopen.com>
169
170         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
171         ~(T1)X, when T1 and T2 are integer types of the same precision
172         and (T2)X isn't an extension.
173
174 2006-03-28  Jeff Law  <law@redhat.com>
175
176         PR tree-optimization/26796
177         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
178         need EH edge cleanups rather than purging them immediately.
179         (eliminate_degenerate_phis): Handle queued EH cleanups.
180
181 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
182
183         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
184         from parent_var.
185
186 2006-03-27  Roger Sayle  <roger@eyesopen.com>
187
188         PR middle-end/22524
189         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
190         cast BIT_NOT_EXPR operand to the correct type.
191
192 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
193
194         * tree-loop-linear.c: Don't include varray.h.
195         (gather_interchange_stats, try_interchange_loops,
196         linear_transform_loops): Use VEC instead of VARRAY.
197         * lambda-mat.c: Don't include varray.h.
198         * tree-chrec.c: Same.
199         * lambda-trans.c: Same.
200         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
201         VEC instead of VARRAY.
202         * tree-vectorizer.h: Idem.
203         * tree-data-ref.c (dump_data_references,
204         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
205         initialize_data_dependence_relation, finalize_ddr_dependent,
206         compute_all_dependences, find_data_references_in_loop,
207         compute_data_dependences_for_loop, analyze_all_data_dependences,
208         free_dependence_relation, free_dependence_relations,
209         free_data_refs): Idem.
210         * tree-data-ref.h (data_reference_p, subscript_p): New.
211         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
212         VEC instead of VARRAY.
213         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
214         (find_data_references_in_loop, compute_data_dependences_for_loop,
215         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
216         dump_data_dependence_relations, free_dependence_relations,
217         free_data_refs): Adjust declaration.
218         (lambda_transform_legal_p): Move declaration here...
219         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
220         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
221         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
222         vect_analyze_data_refs): Use VEC instead of VARRAY.
223         * lambda.h (lambda_transform_legal_p): ...from here.
224         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
225         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
226         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
227         tree-chrec.o): Don't depend on VARRAY_H.
228
229 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
230
231         * rtl.def (Copyright): Update date.
232         (DEPS_LIST): Change type of the second operand to 'int'.
233         * target.h (Copyright): Update date.
234         (struct gcc_target.speculate_insn): Change type of the second parameter
235         to 'int'.
236         * lists.c (Copyright): Update date.
237         (alloc_DEPS_LIST): Change signature.  Update reference to the second
238         operand of the DEPS_LIST.
239         (copy_DEPS_LIST_list): Update reference to the second operand of the
240         DEPS_LIST.
241         * rtl.h (Copyright): Update date.
242         (alloc_DEPS_LIST): Update signature.
243         * sched-int.h (Copyright): Update date.
244         (ds_t): Change typedef to 'int'.
245         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
246
247 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
248
249         * haifa-sched.c (Copyright): Update date.
250         (try_ready): Change condition to restore non-speculative pattern
251         of the instruction.
252         (process_insn_depend_be_in_spec): Code to keep probability of the
253         speculative dependence non-decreasing.
254
255 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
256
257         * regrename.c (replace_oldest_value_addr): Initialize a variable to
258         shut up the compiler.
259
260 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
261
262         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
263         to use lib prefix for target.
264         ($(T)libic_invalidate_array_4-200.a): Likewise.
265         ($(T)libic_invalidate_array_4a.a): Likewise.
266
267 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
268             J"orn Rennecke <joern.rennecke@st.com>
269
270         * superh.opt: New file.
271         * sh.c (boardtype, osruntime): Remove.
272         * superh.h (SUBTARGET_OPTIONS): Remove.
273         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
274
275         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
276         arguments with ^ and/or [].
277
278         * config.gcc (sh-*-*): Add quoting to account for quirk of
279         Solaris /bin/sh.
280         Replace == with = in enable_incomplete_targets test.
281
282         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
283         with MASK_LITTLE_ENDIAN.
284
285         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
286         * config/sh/sh.opt: Added to some comments.
287         * config/sh/superh.h: Removed some chaff.
288
289         * config/sh/sh.opt: Add m4-[1234]00* options.
290         * config/sh/sh.c (sh_handle_option): Likewise.
291         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
292         (ic_invalidate_array_4-100.o): New rule.
293         ($(T)libic_invalidate_array_4-100.a): Likewise.
294         (ic_invalidate_array_4-200.o): Likewise.
295         ($(T)libic_invalidate_array_4-200.a): Likewise.
296         (ic_invalidate_array_4a.o): Likewise.
297         ($(T)libic_invalidate_array_4a.a): Likewise.
298         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
299         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
300         m4-200*, and m4a*.
301         * config/sh/crt1.asm: Merged in profiling code.
302         * config/sh/superh.h (STARTFILE_SPEC): Override.
303         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
304         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
305         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
306
307         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
308         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
309         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
310
311         * sh.opt (mpretend-cmove): New option.
312         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
313         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
314         (movsicc): Add TARGET_PRETEND_CMOVE code.
315
316 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
317
318         * config/s390/s390-protos.h (s390_hard_regno_mode_ok, 
319         s390_class_max_nregs): New function prototypes.
320         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
321         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
322         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
323         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
324
325 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
326
327         * dwarf2out.c (add_location_or_const_value_attribute): Call
328         tree_add_const_value_attribute if nothing else works.
329         (reference_to_unused): New.
330         (rtl_for_decl_init): Use reference_to_unused to decide whether
331         to output an initializer.
332
333 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
334
335         PR target/26459
336         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
337         peephole removing spe frob_di_df_2.
338
339 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
340
341         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
342         (subscript_dependence_tester_1): Declared.
343         (print_dir_vectors, print_dist_vectors): New.
344         (debug_data_dependence_relation): New.
345         (dump_data_dependence_relation): Print more details.
346         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
347         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
348         (save_dist_v, save_dir_v, add_outer_distances,
349         build_classic_dist_vector_1): New.
350         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
351         Don't test for lambda_vector_lexico_pos.
352         (same_access_functions, add_multivariate_self_dist,
353         add_other_self_distances, dir_from_dist): New.
354         (build_classic_dir_vector): Replace implementation almost identical to 
355         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
356         dir_from_dist.
357         (subscript_dependence_tester_1): New.
358         (subscript_dependence_tester): Handle the lexicographically negative
359         distance vectors by recomputing the dependence relation.
360         (compute_affine_dependence): Remove parameter loop_nest_depth.
361         (compute_self_dependence): Don't call compute_subscript_distance.
362         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
363         Add a parameter for the loop_nest.
364         (find_loop_nest_1, find_loop_nest): New.
365         (compute_data_dependences_for_loop): Compute the loop nest, and give
366         up if the nest is not well formed.
367         * tree-data-ref.h (loop_p): New.
368         (struct data_dependence_relation): Replace size_vect field with 
369         loop_nest, a vec of loops.
370         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
371         (DDR_LOOP_NEST): New.
372         (print_dir_vectors, print_dist_vectors,
373         debug_data_dependence_relation): Declared.
374         (index_in_loop_nest): New.
375         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
376         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
377         distance.
378
379 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
380
381         * simplify-rtx.c (simplify_relational_operation): Call
382         simplify_relational_operation_1 even if mode is VOIDmode.
383
384 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
385
386         PR tree-optimization/26804
387         * tree.h (DECL_CALL_CLOBBERED): New macro.
388         (tree_decl_common): Add call_clobbered_flag.
389         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
390         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
391         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
392         (mark_non_addressable): Ditto.
393         * tree-ssa.c (verify_call_clobbered): New function.
394         (verify_alias_info): Use it.
395         * tree-pass.h (pass_reset_cc_flags): New prototype.
396         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
397         (reset_cc_flags): New function.
398         * passes.c (init_optimization_passes): Call reset_cc_flags after
399         initializing referenced_vars.
400
401 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
402             Roger Sayle  <roger@eyesopen.com>
403
404         PR middle-end/26717
405         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
406         to 1.0 for non-real operands. Implement A / A optimization for
407         complex operands.
408
409 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
410
411         * config/i386/i386.c (size_cost): Correct the comment for
412         cost of storing fp registers.
413         (i386_cost): Likewise.
414         (i486_cost): Likewise.
415         (pentium_cost): Likewise.
416         (pentiumpro_cost): Likewise.
417         (k6_cost): Likewise.
418         (athlon_cost): Likewise.
419         (k8_cost): Likewise.
420         (pentium4_cost): Likewise.
421         (nocona_cost): Likewise.
422         (generic64_cost): Likewise.
423         (generic32_cost): Likewise.
424
425 2006-03-24  Denis Chertykov  <denisc@overta.ru>
426
427         * config/avr/avr-protos.h (extra_constraint): Delete.
428         (extra_constraint_Q): New declaration.
429         * config/avr/constraints.md: New file.
430         * config/avr/avr.md: Include it.
431         (REG_X, REG_Y, REG_Z, REG_W): New constants.
432         (TMP_REGNO, ZERO_REGNO): Likewise.
433         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
434         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
435         (extra_constraint): Delete.
436         (extra_constraint_Q): Test for memory constraint 'Q'.
437         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
438         (REG_CLASS_FROM_LETTER): Delete.
439         (CONST_OK_FOR_LETTER_P): Delete.
440         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
441         (EXTRA_CONSTRAINT): Delete.
442         (TMP_REGNO): Delete.
443         (ZERO_REGNO): Delete.
444
445 2006-03-24  Jeff Law  <law@redhat.com>
446
447         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
448         directly.  Call mark_new_vars_to_rename slightly earlier.
449
450 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
451
452         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
453         (is_cxx): Likewise.
454         (gen_compile_unit_die): Use new language types for Objective-C and
455         Objective-C++.
456         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
457         DW_LANG_C_plus_plus.
458
459         PR 26793
460         * config/t-darwin (crt3.o): Work around bug 26840.
461         * config/darwin-crt3.c: Rewrite.
462         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
463
464 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
465
466         * doc/invoke.texi: Document -femit-class-debug-always
467         * common.opt: Add -femit-class-debug-always.
468
469 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
470
471         * config/s390/s390.c (s390_decompose_address): Allow SImode for
472         index and base register.
473         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
474         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
475         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
476         REGNO_OK_FOR_INDEX_P.
477         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
478         ADDR_REGNO_P.
479         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
480         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
481         REG_OK_FOR_BASE_P): Definitions removed.
482
483 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
484
485         PR middle-end/26611
486         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
487         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
488         set yet or weren't marked as local yet.
489
490 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
491
492         * regrename.c (scan_rtx_address): Initialize a variable to shut up
493         the compiler.
494
495 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
496
497         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
498         (rs6000_legitimate_small_data_p): Delete.
499         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
500         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
501         and make static.  Add forward declaration.  Update uses.
502         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
503         of offsettable_memref_p.
504         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
505         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
506
507 2006-03-24  Jeff Law  <law@redhat.com>
508
509         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
510         around bug in immediate-use iterator.
511
512 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
513
514         PR target/26607
515         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
516         or __LITTLE_ENDIAN__.
517
518 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
519
520         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
521         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
522         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
523         * config/sh/sh.opt (mdiv=): Amend description.
524         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
525         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
526         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
527         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
528         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
529         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
530         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
531         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
532         TARGET_DIVIDE_CALL_FP.
533
534 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
535
536         * haifa-sched.c (choose_ready): Fix type of the local variable.
537         Move local variables.  Add comment.
538         (check_reg_live): Change signature.  Make callable from debugger.
539         * sched-int.h (check_reg_live): Update signature.
540         * sched-ebb.c (check_reg_live): Update parameters.
541         * sched-rgn.c (check_reg_live): Ditto.
542         (region_head_or_leaf_p): Check pointer before dereferencing.
543         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
544         before reload on optimization levels below 1.
545
546 2006-03-23  Richard Henderson  <rth@redhat.com>
547
548         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
549         tls symbols.
550
551         PR target/26347
552         * config/alpha/predicates.md (local_symbolic_operand): Reject
553         weak symbols.
554
555 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
556
557         PR tree-opt/26795
558         * tree-ssa-pre.c (create_value_expr_from): Don't reject
559         expressions which have overflowed constants.
560
561 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
562
563         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
564
565 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
566
567         * cfgloopmanip.c (create_loop_notes): Removed.
568         * final.c (final_scan_insn): Do not handle loop notes.
569         * jump.c (squeeze_notes): Ditto.
570         * cfglayout.c (skip_insns_after_block,
571         duplicate_insn_chain): Ditto.
572         * cfgcleanup.c (rest_of_handle_jump2): Do not call
573         create_loop_notes.
574         * cfgloop.h (create_loop_notes): Declaration removed.
575
576 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
577
578         * varasm.c (output_constant_pool): Restore fnname and fndecl
579         arguments.
580         (assemble_start_function): Adjust call accordingly.
581         (assemble_end_function): Likewise.
582
583 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
584
585         PR mudflap/26790
586         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
587
588         PR mudflap/26789
589         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
590
591 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
592
593         PR driver/22600
594         * system.h (ICE_EXIT_CODE): New macro.
595         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
596         (diagnostic_action_after_output): Likewise.
597         * gcc.c (fatal_ice): New function.
598         (execute): Use it instead of fatal.
599         (fancy_abort): Likewise.
600         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
601
602 2006-03-22  Jeff Law  <law@redhat.com>
603
604         * loop-unroll.c (analyze_iv_to_split_insn): Handle
605         iv_analyze_result returning false.
606
607 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
608
609         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
610
611 2006-03-22  Richard Henderson  <rth@redhat.com>
612
613         PR middle-end/26084
614         * except.c (duplicate_eh_regions_0): New.
615         (duplicate_eh_region_1): Duplicate the children of the node as
616         well as the node itself.  Link them up properly.
617         (duplicate_eh_region_2): Merge into ...
618         (duplicate_eh_regions): ... here.  Take copy_region argument, and
619         copy only a sub-tree if asked.  Simplify copying and fixup.
620         (eh_region_outer_p): New.
621         * except.h (duplicate_eh_regions): Update decl.
622         (eh_region_outer_p): Declare.
623         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
624         (lower_omp_master): Likewise.
625         (lower_omp_ordered): Likewise.
626         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
627         (move_stmt_r): Use it to remap labels.  Handle recursion vs
628         remap_decls_p properly.
629         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
630         (find_outermost_region_in_block): New.
631         (new_label_mapper): New.
632         (move_sese_region_to_fn): Copy eh information to the new function
633         properly.
634         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
635         argument.
636         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
637         number.
638
639 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
640
641         * doc/md.texi (-mshared): Mention that -mshared code can be linked
642         into shared libraries.
643
644 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
645
646         * doc/md.texi: Refer to i386/constraints.md instead of
647         i386/predicates.md.
648         * config/i386/constraints.md: New file, extracted from...
649         * config/i386/predicates.md: ...here.
650         * config/i386/i386.md: Include constraints.md.
651
652 2006-03-21  Jason Merrill  <jason@redhat.com>
653
654         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
655
656         PR middle-end/20297
657         * expr.c (init_block_move_fn): Force default visibility.
658         (init_block_clear_fn): Likewise.
659         * builtins.c (expand_builtin_fork_or_exec): Likewise.
660         * targhooks.c (default_external_stack_protect_fail): Likewise.
661
662 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
663
664         * config/mips/predicates.md (const_call_insn_operand): Allow direct
665         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
666         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
667         Use TARGET_OLDABI instead of !TARGET_NEWABI.
668         (loadgp): Use mips_current_loadgp_style.
669         (loadgp_noshared): New pattern.
670         (sibcall_internal): Use MIPS_CALL.
671         (sibcall_value_internal): Likewise.
672         (sibcall_value_multiple_internal): Likewise.
673         (call_internal): Likewise.
674         (call_value_internal): Likewise.
675         (call_value_multiple_internal): Likewise.
676         (call_split): Use MIPS_CALL and add an 'S' constraint.
677         (call_value_split): Likewise.
678         (call_value_multiple_split): Likewise.
679         * config/mips/mips.opt (-mabicalls): Tweak docstring.
680         (-mshared): New option.
681         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
682         (mips_current_loadgp_style): Declare.
683         * config/mips/mips.c (mips_classify_symbol): Avoid using
684         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
685         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
686         TARGET_ABSOLUTE_ABICALLS.
687         (override_options): Adjust comments.  Improve the warning that is
688         issued when -mabicalls and -G are used together.
689         (mips_file_start): Remove comment.
690         (mips_current_loadgp_style): New function.
691         (mips_gnu_local_gp): New variable.
692         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
693         LOADGP_ABSOLUTE.
694         (mips_output_function_prologue): Use mips_current_laodgp_style.
695         (mips_expand_prologue): Call mips_emit_loadgp before emitting
696         the cprestore instruction.
697         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
698         live for TARGET_ABSOLUTE_ABICALLS.
699         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
700         (ASM_SPEC): Pass down -mshared and -mno-shared.
701         (MIPS_CALL): New macro.
702         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
703         definition.
704         * doc/invoke.texi (-mabicalls): Update documentation.
705         (-mshared): Document.
706
707 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
708
709         * config/ia64/unwind-hpux.c: New file.
710         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
711
712 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
713
714         PR libgomp/26384
715         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
716
717 2006-03-21  Jeff Law  <law@redhat.com>
718
719         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
720         type conversions of a VR_VARYING source to a wider type.
721
722 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
723
724         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
725         tm_file on Solaris 10 and later.
726         (sparc64-*-solaris2*): Likewise.
727         (sparc-*-solaris2*): Likewise.
728         * config/sol26.h: Rename to config/sol2-6.h.
729         * config/sol2-10.h: New file.
730
731 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
732
733         PR tree-opt/26781
734         * tree-ssa-pre.c (create_component_ref_by_pieces):
735         Handle STRING_CST.
736
737 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
738
739         PR c++/26690
740         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
741         return it immediately.
742
743 2006-03-21  Michael Matz  <matz@suse.de>
744
745         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
746         New members.
747         (remove_arc, add_arc): Update num_out_arcs member.
748         (set_out_arc_insns_equiv_num): Returns nothing instead of number
749         of out arcs.
750         (cache_presence): New function.
751         (compare_states_for_equiv): New function.
752         (state_is_differed): Don't take number of outargs, adjust callers.
753         Use new invariant for speeding up.
754         (init_equiv_class): Create initial classes based on sorted
755         input.
756         (partition_equiv_class): Don't track out_arcs_num.
757         (evaluate_equiv_classes): Call cache_presence on all states and
758         sort them.
759
760 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
761
762         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
763         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
764         (bfin_valid_reg_p): Test for pseudos explicitly and use only
765         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
766         callers changed.
767         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
768         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
769         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
770         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
771         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
772         macros.
773         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
774         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
775         (REGNO_REG_CLASS): ARGP is in PREGS.
776         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
777         IREGS.
778         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
779         to deal with those addresses.
780         * addresses.h: New file.
781         * caller-save.c: Include "addresses.h".
782         (init_caller_save): Use new base_reg_class function.
783         * rtl-factoring.c: Include "addresses.h".
784         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
785         * recog.c: Include "addresses.h".
786         (preprocess_constraints): Use new base_reg_class function.
787         * regrename.c: Include "addresses.h".
788         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
789         functions.  Keep track of a new var INDEX_CODE to compute valid
790         classes.
791         (replace_oldest_value_addr): Likewise.
792         (replace_oldest_value_mem): Use base_reg_class.
793         * reload.c: Include "addresses.h".
794         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
795         (find_reloads): Use new base_reg_class function.
796         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
797         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
798         all callers and prototype changed.
799         * reload1.c: Include "addresses.h".
800         (maybe_fix_stack_asms): Use base_reg_class.
801         * regclass.c: Include "addresses.h".
802         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
803         (init_reg_autoinc): Use new base_reg_class function.
804         (record_reg_classes): Likewise.
805         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
806         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
807         Use new args to compute necessary class.
808
809         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
810         regrename.o, rtl-factoring.o): Update dependencies.
811         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
812         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
813         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
814         REG_OK_FOR_INDEX_P): Delete documentation.
815
816 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
817
818         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
819         from V7 to V9 for Solaris 7 and above.
820
821 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
822
823         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
824         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
825         argument pointers may not alias any other storage.
826         * common.opt: Define option -fargument-noalias-anything.
827         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
828         alias semantics is specified by flag_argument_noalias > 2.
829
830 2006-03-20  Jeff Law  <law@redhat.com>
831
832         * tree-pass.h (pass_phi_only_copy_prop): Delete.
833         (pass_phi_only_cprop): Declare.
834         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
835         with phi_only_cprop
836         * tree-ssa-dom.c (degenerate_phi_result): New function.
837         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
838         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
839         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
840         (eliminate_degenerate_phis): Likewise.
841         (pass_phi_only_cprop): New pass descriptor.
842         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
843         support code.  Callers updated.
844         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
845         (store_copy_prop): Likewise.
846         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
847
848 2006-03-20  Jason Merrill  <jason@redhat.com>
849
850         PR c++/21764
851         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
852         (push_visibility, pop_visibility): Likewise.
853         * c-pragma.h: Declare them.
854
855 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
856
857         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
858
859         * config/sh/sh.c (find_regmode_weight): Change the type of the first
860         parameter and use get_ebb_head_tail.
861         (sh_md_init_global): Adjust uses of find_regmode_weight.
862
863 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
864
865         * function.h (struct function) <x_tail_recursion_reentry>:
866         Rename to x_stack_check_probe_note.
867         (tail_recursion_reentry): Rename to stack_check_probe_note.
868         * function.c: Replace tail_recursion_reentry with
869         stack_check_probe_note everywhere.
870         (expand_function_start): Only emit a note for
871         stack_check_probe_note with -fstack-protect.
872         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
873
874         * emit-rtl.c (remove_unnecessary_notes): Remove.
875         (pass_remove_unnecessary_notes): Remove.
876         * rtl.h (remove_unnecessary_notes): Remove prototype.
877         * final.c (final_start_function): Don't call remove_unnecessary_notes.
878         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
879         * passes.c (pass_remove_unnecessary_notes): Don't run it.
880
881 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
882
883         PR tree-opt/26629
884         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
885         (valid_in_set): Handle ARRAY_REF.
886         Change "if min_variant or VH" to asserts.
887         (create_component_ref_by_pieces): Handle ARRAY_REF.
888         (create_expression_by_pieces): Likewise.
889         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
890
891 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
892
893         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
894         is operand of switch, not str[0].
895
896 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
897
898         * config/rs6000/rs6000.c (rs6000_handle_option): Use
899         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
900
901 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
902
903         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
904         end of insn_extra_address_constraint declaration.
905
906 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
907
908         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
909         (no-sum-in-toc): Same.
910         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
911         variables.
912         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
913         NO_FP_IN_TOC for -fPIC instead of mask.
914
915         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
916         (BOOT_LDFLAGS): Delete.
917         (LDFLAGS): Delete.
918         * config/rs6000/t-aix52: Same.
919
920         * config/rs6000/rs6000.md (store_multiple_power): Delete.
921         (stmsi[345678]_power): New.
922
923 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
924
925         * config/ia64/ia64.opt: Add empty line to end of file.
926
927 2006-03-17  Richard Guenther  <rguenther@suse.de>
928
929         PR middle-end/26721
930         * builtins.c (get_pointer_alignment): For component style references
931         adjust alignment to the component type alignment.  Make sure
932         to adjust alignment for component access of constants.
933
934 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
935
936         * config/rs6000/rs6000.md (strlensi): Emit barrier after
937         unconditional jump.
938
939 2006-03-17  Paul Brook  <paul@codesourcery.com>
940
941         * doc/install.texi: Docuemnt --with-mode.
942         * config.gcc: Add --with-mode for arm*-*-*.
943         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
944
945 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
946
947         * sh.c (max_labelno_before_reorg): New variable.
948         (sh_reorg): Initialize it.
949         (find_barrier): Check max_labelno_before_reorg before using
950         label_to_alignment.  Take length of explicit alignment insns
951         into account.  When seeing a UNSPECV_CONST_END, return it.
952
953         * sh.c (fixup_mova): Set mode of affected label to QImode.
954         (untangle_mova): New function.
955         (find_barrier): Use it.  Check mode of label before decrementing
956         num_mova.
957         (sh_reorg): Likewise.
958         Set mode of all insns back to VOIDmode.
959
960         * sh.c (MOVA_LABELREF): New macro.
961         (mova_p, fixup_mova, sh_reorg): Use it.
962         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
963         ADDR_DIFF_VEC matches mova.
964
965 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
966
967         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
968         with ATTRIBUTE_UNUSED.
969
970 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
971
972         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
973         pointer, instead of assuming it is possible to derive the
974         correct args size from a call insn.
975
976 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
977
978         * rtl.h (CONST_INT_P): Define.
979         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
980         instead of GET_CODE(x) == CONST_INT.
981         (vax_rtx_costs): Likewise.
982         (vax_output_int_move): Likewise.
983         (vax_output_int_add): Likewise.
984         (legitimate_constant_address_p): Likewise.
985         (index_term_p): Likewise.
986         * config/vax/vax.h (PRINT_OPERAND): Likewise.
987         * config/vax/vax.md (and<mode>3): Likewise.
988         (ashrsi3): Likewise.
989         (extv): Likewise.
990         (movstricthi): Likewise.
991         (movstrictqi): Likewise.
992         (rotrsi3): Likewise.
993         (five unnamed insns): Likewise.
994
995 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
996
997         * doc/tm.texi (SDB and DWARF): Add extra parameter to
998         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
999         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
1000         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
1001         Pass to ASM_OUTPUT_DWARF_OFFSET.
1002         * dwarf2out.c (debug_frame_section): New.
1003         (output_call_frame_info): Use debug_frame_section.  Pass it to
1004         dw2_asm_output_offset.
1005         (output_die): Pass appropriate section to dw2_asm_output_offset.
1006         (output_compilation_unit_header): Likewise.
1007         (output_pubnames): Likewise.
1008         (output_aranges): Likewise.
1009         (enum dw_val_class): Break dw_val_class_lbl_offset into
1010         dw_val_class_lineptr and dw_val_class_macptr.
1011         (add_AT_lbl_offset): Delete.
1012         (add_AT_lineptr): New.
1013         (add_AT_macptr): New.
1014         (AT_lbl): Expect a lineptr or macptr.
1015         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
1016         (attr_checksum): Likewise.
1017         (same_dw_val_p): Likewise.
1018         (size_of_die): Likewise.
1019         (value_format): Likewise.
1020         (output_die): Likewise.
1021         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
1022         add_AT_lbl_offset.
1023         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
1024         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
1025         * config/darwin-protos.h (darwin_file_start): New.
1026         (darwin_asm_output_dwarf_offset): New.
1027         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
1028         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
1029         darwin_file_start.
1030         * config/darwin.c (darwin_emit_unwind_label): Don't output label
1031         if not EH section; simplify.
1032         (darwin_file_start): New.
1033         (darwin_asm_output_dwarf_offset): New.
1034         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
1035         mark as 'debug'.
1036         (DEBUG_INFO_SECTION): Likewise.
1037         (DEBUG_ABBREV_SECTION): Likewise.
1038         (DEBUG_ARANGES_SECTION): Likewise.
1039         (DEBUG_MACINFO_SECTION): Likewise.
1040         (DEBUG_LINE_SECTION): Likewise.
1041         (DEBUG_LOC_SECTION): Likewise.
1042         (DEBUG_PUBNAMES_SECTION): Likewise.
1043         (DEBUG_STR_SECTION): Likewise.
1044         (DEBUG_RANGES_SECTION): Likewise.
1045         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
1046         (ASM_OUTPUT_DWARF_OFFSET): New.
1047
1048 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
1049
1050         * config.gcc (tm_defines): Always add to previous value rather
1051         than replacing it.
1052
1053 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
1054
1055         * config/mips/predicates.md (splittable_const_int_operand): New,
1056         split from move_operand.
1057         (splittable_symbolic_operand): New.
1058         (move_operand): Add commentary.  Use splittable_const_int_operand.
1059         Inline mips_atomic_symbolic_constant_p.
1060         * config/mips/mips.md: Add combine splitters for handling moves
1061         of splittable_const_int_operands and splittable_symbolic_operands.
1062         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
1063         (mips_split_symbol): Declare.
1064         (mips_move_integer): Declare.
1065         * config/mips/mips.c (mips_split_p): Make global.
1066         (TARGET_MIN_ANCHOR_OFFSET): Override default.
1067         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
1068         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
1069         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
1070         (mips_offset_within_object_p): Handle block symbols.
1071         (mips_atomic_symbolic_constant_p): Delete.
1072         (mips_cannot_force_const_mem): Return false for constants that
1073         mips_legitimize_move can handle.
1074         (mips_use_blocks_for_constant_p): New function.
1075         (mips_split_symbol): Make global.
1076         (mips_move_integer): Likewise.  Add a temporary register argument.
1077         (mips_legitimize_const_move): Use splittable_const_int_operand and
1078         splittable_symbolic_operand.
1079         (mips_use_anchors_for_symbol_p): New function.
1080         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
1081         (mips_split_p): Declare.  
1082
1083 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
1084
1085         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
1086         (mips*-*-linux*): Likewise.
1087
1088 2006-03-16  Roger Sayle  <roger@eyesopen.com>
1089             Daniel Speyer  <dspeyer@wam.umd.edu>
1090
1091         PR middle-end/18259
1092         * tree-dump.c (dump_real): New function.
1093         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
1094         * Makefile.in (REAL_H): New macro for dependencies on real.h.
1095         (tree-dump.o): Add $(REAL_H) to the dependencies.
1096
1097 2006-03-16  Roger Sayle  <roger@eyesopen.com>
1098
1099         PR middle-end/21781
1100         * real.c (real_from_string): If the mantissa is zero, don't bother
1101         parsing the exponent as the result should always be zero.
1102
1103 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
1104
1105         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
1106
1107 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1108
1109         * config/ia64/ia64.c (stops_p): Added explicit initialization.
1110         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
1111         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
1112         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
1113         ia64_sched_finish_global): New static functions to implement
1114         hooks from gcc_target.sched.
1115         (spec_check_no, max_uid, pending_data_specs): New static variables.
1116         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
1117         ia64_spec_check_src_p): New static functions.
1118         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
1119         (TARGET_SCHED_ADJUST_COST): Removed.
1120         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
1121         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
1122         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
1123         TARGET_SCHED_GEN_CHECK,
1124         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1125         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
1126         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
1127         Fixed to handle speculation checks.
1128         (rtx_needs_barrier): Fixed to handle speculative loads and
1129         their checks.
1130         (ia64_variable_issue): Added code to count speculative loads and their
1131         checks.
1132         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
1133         speculative loads.
1134         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
1135         New enumerations.
1136         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
1137         New constants.
1138         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
1139         (ia64_reorg): Reset stops_p to NULL after it is freed.
1140         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
1141         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
1142         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
1143         chk_a.
1144         (data_speculative, control_speculative, check_load): New attributes.
1145         (mov<mode>_advanced, mov<mode>_speculative,
1146         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
1147         zero_extend<mode>di2_speculative,
1148         zero_extend<mode>di2_speculative_advanced): New patterns for
1149         data and control speculative loads.
1150         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
1151         check loads.
1152         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
1153         New pattern for data and control speculation checks.
1154         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
1155         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
1156         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
1157         Auxiliary definitions for the patterns.
1158         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
1159         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
1160         constraints.
1161         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
1162         for speculation.
1163         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
1164         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
1165         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
1166         New resource constraints.
1167         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
1168         for speculation.
1169         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
1170         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
1171         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
1172         msched-in-control-spec, msched-ldc, msched-control-ldc,
1173         msched-spec-verbose, msched-prefer-non-data-spec-insns,
1174         msched-prefer-non-control-spec-insns,
1175         msched-count-spec-in-critical-path): New flags to tune speculative
1176         scheduling.
1177         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
1178         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
1179         msched-in-control-spec, msched-ldc, msched-control-ldc,
1180         msched-spec-verbose, msched-prefer-non-data-spec-insns,
1181         msched-prefer-non-control-spec-insns,
1182         msched-count-spec-in-critical-path): Document new flags.
1183
1184 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1185
1186         * target.h (struct spec_info_def): New opaque declaration.
1187         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
1188         speculate_insn, needs_block_p, gen_check,
1189         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
1190         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1191         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
1192         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
1193         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1194         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
1195         gcc_target.sched.
1196         (TARGET_SCHED): Use new macros.
1197         * rtl.h (copy_DEPS_LIST_list): New prototype.
1198         * sched-int.h (struct sched_info): Change signature of new_ready field,
1199         adjust all initializations. New fields: add_remove_insn,
1200         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
1201         region_head_or_leaf_p.
1202         (struct spec_info_def): New structure declaration.
1203         (spec_info_t): New typedef.
1204         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
1205         recovery_block, orig_pat.
1206         (glat_start, glat_end): New variables declaraions.
1207         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
1208         New access macros.
1209         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
1210         DETACH_LIFE_INFO, USE_GLAT.
1211         (enum SPEC_SCHED_FLAGS): New enumeration.
1212         (NOTE_NOTE_BB_P): New macro.
1213         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
1214         attach_life_info, debug_spec_status, check_reg_live): New functions.
1215         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
1216         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
1217         sched-ebb.c
1218         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
1219         * ddg.c (get_block_head_tail): Adjust all uses.
1220         * modulo-sched.c (get_block_head_tail): Adjust all uses.
1221         (sms_sched_info): Initialize new fields.
1222         (contributes_to_priority): Removed.
1223         * haifa-sched.c (params.h): New include.
1224         (get_block_head_tail): Adjust all uses.
1225         (ISSUE_POINTS): New macro.
1226         (glat_start, glat_end): New global variables.
1227         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
1228         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
1229         old_last_basic_block, before_recovery, current_sched_info_var,
1230         rgn_n_insns, luid): New static variables.
1231         (insn_cost1): New function.  Move logic from insn_cost to here.
1232         (find_insn_reg_weight1): New function.  Move logic from
1233         find_insn_reg_weight to here.
1234         (reemit_notes, move_insn, max_issue): Change signature.
1235         (move_insn1): Removed.
1236         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
1237         extend_bb): New static functions to support extension of scheduler's
1238         data structures.
1239         (generate_recovery_code, process_insn_depend_be_in_spec,
1240         begin_speculative_block, add_to_speculative_block,
1241         init_before_recovery, create_recovery_block, create_check_block_twin,
1242         fix_recovery_deps): New static functions to support
1243         generation of recovery code.
1244         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
1245         restore_bb_notes, move_block_after_check, move_succs): New static
1246         functions to support ebb scheduling.
1247         (init_glat, init_glat1, attach_life_info1, free_glat): New static
1248         functions to support handling of register live information.
1249         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
1250         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
1251         add_jump_dependencies): New static functions.
1252         (check_cfg, has_edge_p, check_sched_flags): New static functions for
1253         consistancy checking.
1254         (debug_spec_status): New function to call from debugger.
1255         (priority): Added code to handle speculation checks.
1256         (rank_for_schedule): Added code to distinguish speculative instructions.
1257         (schedule_insn): Added code to handle speculation checks.
1258         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
1259         Fixed to handle ebbs.
1260         (move_insn): Added code to handle ebb scheduling.
1261         (max_issue): Added code to use ISSUE_POINTS of instructions.
1262         (choose_ready): Added code to choose between speculative and
1263         non-speculative instructions.
1264         (schedule_block): Added code to handle ebb scheduling and scheduling of
1265         speculative instructions.
1266         (sched_init): Initialize new variables.
1267         (sched_finish): Free new variables.  Print statistics.
1268         (try_ready): Added code to handle speculative instructions.
1269         * lists.c (copy_DEPS_LIST_list): New function.
1270         * sched-deps.c (extend_dependency_caches): New function.  Move logic
1271         from create_dependency_caches to here.
1272         (get_dep_weak, ds_merge): Make global.
1273         * genattr.c (main): Code to output prototype for
1274         dfa_clear_single_insn_cache.
1275         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
1276         (output_dfa_clean_insn_cache_func): Code to output
1277         dfa_clear_single_insn_cache function.
1278         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
1279         n_insns.
1280         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
1281         Removed.
1282         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
1283         New static variables.
1284         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
1285         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
1286         struct sched_info.
1287         (ebb_sched_info): Initialize new fields.
1288         (get_block_head_tail): Adjust all uses.
1289         (compute_jump_reg_dependencies): Fixed to use glat_start.
1290         (schedule_ebb): Code to remove unreachable last block.
1291         (schedule_ebbs): Added code to update register live information.
1292         * sched-rgn.c (region_sched_info): Initialize new fields.
1293         (get_block_head_tail): Adjust all uses.
1294         (last_was_jump): Removed.  Adjust users.
1295         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
1296         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
1297         Implement new hooks.
1298         (check_dead_notes1): New static function.
1299         (struct region): New fields: dont_calc_deps, has_real_ebb.
1300         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
1301         (BB_TO_BLOCK): Fixed to handle EBBs.
1302         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
1303         (ebb_head): New static variable.
1304         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
1305         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
1306         new fields.
1307         (compute_dom_prob_ps): New assertion.
1308         (check_live_1, update_live_1): Fixed to work with glat_start instead of
1309         global_live_at_start.
1310         (init_ready_list): New assertions.
1311         (can_schedule_ready_p): Split update code to begin_schedule_ready.
1312         (new_ready): Add support for BEGIN_CONTROL speculation.
1313         (schedule_insns): Fixed code that updates register live information
1314         to handle EBBs.
1315         (schedule_region): Fixed to handle EBBs.
1316         (init_regions): Use extend_regions and check_dead_notes1.
1317         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
1318         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
1319         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
1320         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
1321         TARGET_SCHED_GEN_CHECK,
1322         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1323         TARGET_SCHED_SET_SCHED_FLAGS): Document.
1324         * doc/invoke.texi (max-sched-insn-conflict-delay,
1325         sched-spec-prob-cutoff): Document.
1326
1327 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1328
1329         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
1330         inter_tick, queue_index.
1331         (struct sched_info): Change signature of init_ready_list field.
1332         Adjust all initializations.
1333         (RESOLVED_DEPS): New access macro.
1334         (ready_add): Remove prototype.
1335         (try_ready): Add prototype.
1336         * sched-rgn.c (init_ready_list): Use try_ready.
1337         (schedule_region): Initialize
1338         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
1339         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
1340         (init_ready_list): Use try_ready.
1341         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
1342         * lists.c (remove_list_elem): Remove `static'.
1343         (remove_free_INSN_LIST_elem): New function.
1344         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
1345         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
1346         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
1347         New constants.
1348         (readyp): New variable.
1349         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
1350         change_queue_index, resolve_dep): New static functions.
1351         (try_ready): New function.  Adjust callers in sched-rgn.c and
1352         sched-ebb.c to use it instead of ready_add.
1353         (clock_var): Move at the begining of file.
1354         (rank_for_schedule): Fix typo.
1355         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
1356         (ready_lastpos): Enforce assertion.
1357         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
1358         update all callers.
1359         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
1360         (schedule_insn): Rewrite to use try_ready and resolve_dep.
1361         (queue_to_ready): Use free_INSN_LIST_list.
1362         (early_queue_to_ready): Fix typo.
1363         (schedule_block): Init readyp.  Move init_ready_list call after the
1364         initialization of clock_var.  Fix error in rejecting insn by
1365         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
1366         that previously corrected INSN_TICKs.  Add code for handling
1367         QUEUE_INDEX.
1368         (set_priorities): Fix typo.
1369         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
1370         Clarify comment and code that keeps current_sched_info->next_tail
1371         non-null.
1372
1373 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1374
1375         * sched-rgn.c (extend_rgns): New static function.
1376         (find_rgns): Use it.
1377         (gather_region_statistics, print_region_statistics): New static
1378         functions.
1379         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
1380         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1381
1382 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1383             Andrey Belevantsev <abel@ispras.ru>
1384
1385         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
1386         * lists.c (unused_deps_list): New variable.
1387         (free_list): Add assertions to verify the proper distinguishing 
1388         between INSN_LISTs and DEPS_LISTs.
1389         (find_list_elem, remove_list_elem, remove_list_node): New static
1390         functions.
1391         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
1392         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
1393         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
1394         (alloc_INSN_LIST): Assert that the list we're working on is indeed
1395         an INSN_LIST.
1396         (free_INSN_LIST_node): Likewise.
1397         * modulo-sched.c (current_sched_info): Initialize flags field.
1398         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
1399         * rtl.def (DEPS_LIST): Define.
1400         * rtl.h: Declare new functions from lists.c.
1401         * sched-deps.c (spec_dependency_cache): New static variable.
1402         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
1403         (add_dependence): Change return type to void.  Move the logic to ...
1404         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
1405         (delete_all_dependences): Add comment about forward_dependency_cache.
1406         Handle spec_dependency_cache.  Handle DEPS_LISTs.
1407         (fixup_sched_groups): Clarify the change of priority of output
1408         and anti dependencies.
1409         (sched_analyze_2): Adjust add_dependence calls to create data
1410         speculative dependence.
1411         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
1412         Adjust all callers.  Handle DEPS_LISTS.
1413         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
1414         presence of speculation.
1415         (init_dependency_caches, free_dependency_caches):
1416         Handle spec_dependency_cache.
1417         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
1418         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
1419         New static functions.
1420         (add_or_update_back_dep, add_or_update_back_forw_dep,
1421         add_back_forw_dep, delete_back_forw_dep): New functions.
1422         * sched-int.h (ds_t, dw_t): New typedefs.
1423         (struct sched_info): Add new field flags.
1424         (struct haifa_insn_data): Add new bitfield has_internal_dep.
1425         Prototype new sched-deps.c functions.
1426         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
1427         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
1428         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
1429         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
1430         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
1431         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
1432         New constants.
1433         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
1434         New enums.
1435         * sched-rgn.c (current_sched_info): Initialize flags field.
1436         (schedule_insns): Initialize current_sched_info before the sched_init
1437         call.
1438         * sched-ebb.c (current_sched_info): Initialize flags field.
1439         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
1440         Call add_or_update_back_dep instead of add_dependence.
1441         Create control speculative dependencies.
1442         (schedule_insns): Initialize current_sched_info before the sched_init
1443         call.
1444
1445 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1446
1447         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
1448         fs->signal_frame.
1449         (sh_fallback_frame_state): Likewise.
1450
1451 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
1452
1453         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
1454         Do switch on default_use_cxa_atexit.
1455         (powerpc*-*-darwin*): Build crt2.o on powerpc.
1456         * config/darwin-crt3.o: New.
1457         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
1458         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
1459         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
1460         OS version.
1461         * config/rs6000/t-darwin: Move crt2.o building to here.
1462         * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
1463         Mac OS version for using __cxa_get_exception_ptr.  Don't test versions
1464         of __cxa_atexit.
1465
1466 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1467
1468         * config/vax/vax.c (nonindexed_address_p): Change logical negation
1469         from '! xxx' to '!xxx' for coding-style conformance.
1470         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
1471         (EXTRA_CONSTRAINT): Likewise.
1472         * config/vax/vax.md (four unnamed insns): Likewise.
1473         
1474 2006-03-15  Paul Brook  <paul@codesourcery.com>
1475
1476         * config/arm/arm.c (minipool_pad): New.
1477         (add_minipool_forward_ref): Include pool alignment padding in address
1478         calculation.
1479         (push_minipool_fix): Set minipool_pad.
1480         (minipool_pad): Ditto.
1481
1482 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1483
1484         * config/vax/vax.c (split_quadword_operands): Use MEM_P()
1485         instead of GET_CODE() == MEM and REG_P() instead of
1486         GET_CODE() == REG.
1487         (print_operand_address): Likewise.
1488         (vax_address_cost): Likewise.
1489         (vax_rtx_costs): Likewise.
1490         (vax_notice_update_cc): Likewise.
1491         (vax_output_int_add): Likewise.
1492         (INDEX_REGISTER_P): Likewise.
1493         (BASE_REGISTER_P): Likewise.
1494         (nonindexed_address_p): Likewise.
1495         (vax_mode_dependent_address_p): Likewise.
1496         * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
1497         (PRINT_OPERAND): Likewise.
1498         * config/vax/vax.md (ashlsi3): Likewise.
1499         (ashlsi3): Likewise.
1500         (some more unnamed insns): Likewise.
1501
1502 2006-03-15  Kazu Hirata  <kazu@codesourcery.com>
1503
1504         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
1505         iterator-style macro.
1506         (mark_control_dependent_edges_necessary): Update the use of
1507         EXECUTE_IF_CONTROL_DEPENDENT.
1508
1509 2006-03-15  J"orn Rennecke <joern.rennecke@st.com>
1510
1511         * config/sh/predicates.md (cache_address_operand): Special.
1512         (ua_address_operand): Likewise.
1513
1514 2006-03-15  Zdenek Dvorak <dvorakz@suse.cz>
1515
1516         * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
1517         loop notes.
1518         * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
1519
1520 2006-03-15  Andreas Schwab  <schwab@suse.de>
1521
1522         * gensupport.c (identify_predicable_attribute): Don't free p_false
1523         when it is still in use.
1524
1525 2006-03-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
1526
1527         * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
1528         the default setting here.
1529
1530 2006-03-14  Steven Bosscher  <stevenb.gcc@gmail.com>
1531
1532         * tree-pass.h (pass_cfg): Remove.
1533         * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
1534         * passes.c (pass_cfg): Don't run it.
1535
1536 2006-03-14  Kazu Hirata  <kazu@codesourcery.com>
1537
1538         * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
1539         * reg-stack.c (stack_regs_mentioned_data): Change the type to
1540         VEC(char,heap) *.
1541         (stack_regs_mentioned): Update the uses of
1542         stack_regs_mentioned_data.  Don't access the array beyond its
1543         end.
1544         (reg_to_stack): Update the uses of stack_regs_mentioned_data.
1545         Don't include gt-reg-stack.h.
1546
1547         * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
1548         * system.h (UNALIGNED_WORD_ASM_OP): Poison.
1549
1550         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
1551
1552         PR middle-end/26684
1553         * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
1554         STACK_REGS.
1555
1556 2006-03-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1557
1558         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
1559
1560 2006-03-14  Richard Guenther  <rguenther@suse.de>
1561
1562         PR tree-optimization/26672
1563         * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
1564         SSA form.
1565
1566 2006-03-14  Richard Guenther  <rguenther@suse.de>
1567
1568         PR tree-optimization/26667
1569         * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
1570         node for the callees.  Always allow inlining if it will shrink
1571         the function size.
1572
1573 2006-03-14  Richard Guenther  <rguenther@suse.de>
1574
1575         PR middle-end/26659
1576         * builtins.c (get_pointer_alignment): Prefer alignment
1577         information from decls over that from types.
1578
1579 2006-03-14  Andrew Pinski  <pinskia@physics.uc.edu>
1580
1581         PR target/26657
1582         * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
1583
1584 2006-03-14  Joseph S. Myers  <joseph@codesourcery.com>
1585
1586         * config/rs6000/rs6000.opt (mdlmzb): New option.
1587         (msched-prolog, msched-epilog): Use Var not Mask.
1588         * doc/invoke.texi (-mdlmzb): Document.
1589         * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
1590         MASK_SCHED_PROLOG.
1591         (rs6000_override_options): Enable -mdlmzb for 405 and 440.
1592         * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
1593
1594 2006-03-13  Uttam Pawar  <uttamp@us.ibm.com>
1595
1596         PR rtl-optimization/25739
1597         * bt-load.c (augment_live_range): Free tos pointer.
1598
1599         * gensupport.c (identify_predicable_attribute): Free
1600         p_false pointer.
1601         * gcov.c (create_file_names): Free name pointer.
1602
1603 2006-03-13  Roger Sayle  <roger@eyesopen.com>
1604
1605         PR middle-end/26557
1606         * stmt.c (emit_case_nodes): Handle the case where the index is a
1607         CONST_INT, where the comparison mode is specified by the index type.
1608
1609 2006-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1610
1611         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
1612         is defined.
1613
1614 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
1615
1616         * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
1617         (*branch_fp_inverted): Likewise.
1618
1619 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
1620
1621         PR middle-end/25989
1622         * omp-low.c (expand_omp_for_generic): Mark istart0
1623         and iend0 as addressable.
1624
1625 2006-03-13  Jie Zhang  <jie.zhang@analog.com>
1626
1627         * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
1628
1629 2006-03-13  Jeff Law  <law@redhat.com>
1630
1631         * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
1632         virtual operands are interesting.
1633         (vrp_visit_stmt): Corresponding changes.
1634
1635 2006-03-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1636
1637         * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
1638         of RETS.
1639         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
1640         TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
1641         * config/bfin/crti.S: Use it instead of __PIC__.
1642         * config/bfin/crtn.S: Likewise.
1643
1644         * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
1645         call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
1646         not if flag_pic.
1647         Lose 'G' modifier for call operand.
1648         * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
1649         recognize 'G' modifier.
1650
1651 2006-03-13  Eric Botcazou  <ebotcazou@adacore.com>
1652
1653         PR middle-end/18859
1654         * gimplify.c (gimplify_switch_expr): Discard empty ranges.
1655         * stmt.c (expand_case): Likewise.
1656
1657 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
1658
1659         PR rtl-optimization/26254
1660         * loop-invariant.c (seq_insns_valid_p): New function.
1661         (move_invariant_reg): Only emit new code if it is valid.
1662
1663 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
1664
1665         * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
1666         Removed.
1667         (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
1668         (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
1669         (commit_one_edge_insertion): Do not look for loop notes.
1670
1671 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
1672
1673         * jump.c (follow_jumps): Do not check for loop notes.  Move check for
1674         flag_test_coverage out of loop.
1675
1676 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
1677
1678         * final.c (shorten_branches): Remove outdated comment, and turn
1679         the if branch that guards it to continue.
1680
1681 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
1682
1683         * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
1684         * cfgloop.h (struct loop): Remove unused fields.
1685
1686 2006-03-13  Kazu Hirata  <kazu@codesourcery.com>
1687
1688         * doc/invoke.texi (-fdump-rtl-loop): Remove.
1689         (-dL, -fdump-rtl-loop2): Update the dump file names 
1690
1691         * doc/invoke.texi: Update dump file names.
1692
1693 2006-03-12  Steven Bosscher  <stevenb.gcc@gmail.com>
1694
1695         * predict.c (estimate_probability): Remove.
1696         * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
1697         * basic-block.h (estimate_probability): Remove prototype.
1698         * passes.c (finish_optimization_passes): Dump branch prediction or
1699         profiling heuristics to the .profile tree dump.
1700         (init_optimization_passes): Unqueue pass_branch_prob.
1701
1702         * doc/invoke.texi (-fdump-rtl-bp): Remove.
1703
1704 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
1705
1706         * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
1707         * rtl.h (LABEL_NEXTREF): Remove field accessor.
1708
1709 2006-03-11  Eric Botcazou  <ebotcazou@adacore.com>
1710
1711         * function.h (frame_offset_overflow): Declare.
1712         * function.c (frame_offset_overflow): New function.
1713         (assign_stack_local_1): Call it to detect that the offset overflows.
1714         * cfgexpand.c (alloc_stack_frame_space): Likewise.
1715
1716 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
1717
1718         * config/sh/sh.c: Include alloc-pool.h.
1719         (label_ref_list_pool): New alloc pool.
1720         (label_ref_list_t): New type for lists of labels.
1721         (struct pool_node): Make wend a label_ref_list_t.
1722         (add_constant): Use the new type, eradicate LABEL_NEXTREF
1723         references.
1724         (dump_table): Likewise.
1725         (sh_reorg): Set up the alloc pool before using add_constant and
1726         dump_table, and destroy it when finishing.
1727
1728 2006-03-11  Richard Sandiford  <richard@codesourcery.com>
1729
1730         * config/mips/mips.c: Remove redundant comment.
1731
1732 2006-03-10  Jason Merrill  <jason@redhat.com>
1733
1734         PR c/26004
1735         * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if 
1736         the target was declared 'register'.
1737
1738 2006-03-10  Adam Nemet  <anemet@caviumnetworks.com>
1739
1740         * genpreds.c (write_insn_constraint_len): Change definition of
1741         insn_constraint_len to return size_t to match the declaration.
1742
1743 2006-03-10  DJ Delorie  <dj@redhat.com>
1744
1745         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
1746         start at zero.
1747         (m32c_expand_insv): Fix test for an AND mask.
1748
1749 2006-03-10  Richard Guenther  <rguenther@suse.de>
1750
1751         PR middle-end/26565
1752         * builtins.c (get_pointer_alignment): Handle component
1753         references for field alignment.
1754
1755 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
1756
1757         * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
1758         when building with libgloss.
1759         (sh*elf): Implement --without-fp option.
1760         (sh64-superh-linux*): Don't multilib. 
1761
1762 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
1763
1764         * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
1765
1766 2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>
1767
1768         * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
1769         Set it when one of the replacement functions returned true.
1770         Return TODO_cleanup_cfg if cfgchanged is true.
1771         (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
1772
1773 2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
1774
1775         * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
1776         instead of gen_lowpart.
1777
1778 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
1779
1780         * config/mips/mips-protos.h (mips_output_conditional_branch): Change
1781         interface.
1782         (mips_output_order_conditional_branch): Declare.
1783         * config/mips/mips.h (MIPS_BRANCH): New macro.
1784         * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
1785         for the comparison.  Use gen_condjump.
1786         (mips_output_conditional_branch): Rework interface to take the
1787         asm templates for a direct branch and the inverse of a direct branch.
1788         (mips_output_order_conditional_branch): New function.
1789         (mips_builtin_branch_and_move): New function.
1790         (mips_expand_builtin_compare): Use it.  Use VOIDmode for the
1791         branch condition.  Use gen_single_cc as the condition for
1792         __builtin_mips_upper_* or __builtin_mips_lower_*.
1793         (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
1794         Use VOIDmode for the branch condition.
1795         * config/mips/predicates.md (order_operator): New predicate.
1796         * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
1797         (branch_fp): Rename to...
1798         (*branch_fp): ...this.  Remove mode from comparison operator.
1799         Use new mips_output_conditional_branch interface.
1800         (branch_fp_inverted): Rename to...
1801         (*branch_fp_inverted): ...this and update as for *branch_fp.
1802         (*branch_zero<mode>): Rename to...
1803         (*branch_order<mode>): ...this.  Remove mode from comparison operator.
1804         Use mips_output_order_conditional_branch.  Only accept ordered
1805         comparisons.  
1806         (*branch_zero<mode>_inverted): Rename to...
1807         (*branch_order<mode>_inverted): ...this and update as for
1808         *branch_order<mode>.
1809         (*branch_equality<mode>): Accept zero as the second operand to
1810         the equality operator.  Use the new mips_output_conditional_branch
1811         interface.
1812         (*branch_equality<mode>_inverted): Likewise.
1813         (condjump): New expander.
1814         * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
1815         operator.
1816         * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
1817         (bc1any2t, bc1any2f): Likewise.
1818         (single_cc): New expander.
1819         (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
1820
1821 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
1822
1823         * doc/md.texi: Update documentation of MIPS constraints.
1824         * config/mips/constraints.md: New file.
1825         * config/mips/mips.md: Include it.
1826         * config/mips/mips.c (mips_char_to_class): Delete.
1827         (override_options): Don't initialize mips_char_to_class.
1828         * config/mips/mips.h (mips_char_to_class): Delete.
1829         (REG_CLASS_FROM_LETTER): Delete.
1830         (CONST_OK_FOR_LETTER_P): Delete.
1831         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1832         (EXTRA_CONSTRAINT_Y): Delete.
1833         (EXTRA_CONSTRAINT_STR): Delete.
1834         (CONSTRAINT_LEN): Delete.
1835         (EXTRA_MEMORY_CONSTRAINT): Delete.
1836
1837 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1838
1839         * tree-cfg.c (move_block_to_fn): Remove the statements from the
1840         original fn's eh regions.
1841
1842 2006-03-09  Eric Botcazou  <ebotcazou@adacore.com>
1843
1844         * fold-const.c (build_range_check): Make sure to use a valid type to
1845         apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
1846         transformation.
1847
1848         (range_predecessor): New static function.
1849         (range_successor): Likewise.
1850         (merge_ranges): Use them to compute predecessors and successors of
1851         range bounds.
1852
1853 2006-03-09  Roger Sayle  <roger@eyesopen.com>
1854
1855         PR middle-end/26561
1856         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
1857         X op C3, consider whether C3 overflows towards +Inf or -Inf.
1858
1859 2006-03-08  DJ Delorie  <dj@redhat.com>
1860
1861         * config/m32c/addsub.md (addqi3): Disparage a0/a1.
1862         (addpsi3): Expand to include memory operands.  Remove
1863         reload-specific splits.
1864         * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
1865         (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
1866         (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
1867         (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
1868         (shift1_qi, shift1_hi, insv): New.
1869         * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
1870         (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
1871         cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
1872         cond_to_int): New.
1873         * config/m32c/m32c-protos.h: Update as needed.
1874         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
1875         default the Rcr, Rcl, Raw, and Ral constraints.  Add Ra0 and Ra1.
1876         Fail for unrecognized R* constraints.
1877         (m32c_cannot_change_mode_class): Be more picky about pseudos.
1878         (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
1879         (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
1880         Add Sp constraint.
1881         (m32c_init_libfuncs): New.
1882         (m32c_legitimate_address_p): Add debug wrapper.
1883         (m32c_rtx_costs): New.
1884         (m32c_address_cost): New.
1885         (conversions): Add 'B' prefix.
1886         (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
1887         operands, or word regnames for QI operands.  'B' prints bit
1888         position.
1889         (m32c_expand_setmemhi): New.
1890         (m32c_expand_movmemhi): New.
1891         (m32c_expand_movstr): New.
1892         (m32c_expand_cmpstr): New.
1893         (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
1894         (m32c_expand_neg_mulpsi3): Handle non-ints.
1895         (m32c_cmp_flg_0): New.
1896         (m32c_expand_movcc): New.
1897         (m32c_expand_insv): New.
1898         (m32c_scc_pattern): New.
1899         * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS.  Take
1900         a0/a1 out of SIregs.
1901         (STORE_FLAG_VALUE): New.
1902         * config/m32c/m32c.md: Add unspecs for string moves.  Define various mode and
1903         code macros.
1904         (no_insn): New.
1905         * config/m32c/mov.md: Make constraints more liberal.
1906         (zero_extendqihi2): Optimize r0/r1 case.
1907         * config/m32c/muldiv.md (mulpsi3): Check for intvals.
1908         * config/m32c/predicates.md (m32c_any_operand): New.
1909         (m32c_nonimmediate_operand): New.
1910         (m32c_hl_operand): New.
1911         (m32c_r3_operand): New.
1912         (ap_operand): New.
1913         (ma_operand): New.
1914         (memsym_operand): New.
1915         (memimmed_operand): New.
1916         (a_qi_operand): New.
1917         (m32c_eqne_operator): New.
1918         (m32c_1bit8_operand): New.
1919         (m32c_1bit16_operand): New.
1920         (m32c_1mask8_operand): New.
1921         (m32c_1mask16_operand): New.
1922         * config/m32c/blkmov.md: New file.
1923         * config/m32c/t-m32c (MD_FILES): Add blkmov.
1924
1925 2006-03-08  Andreas Tobler  <a.tobler@schweiz.ch>
1926
1927         * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
1928         unsigned to fix signed/unsigned comparison issue in
1929         DWARF2_FRAME_REG_OUT.
1930         (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
1931         unsigned comparison issue in DWARF2_FRAME_REG_OUT.
1932
1933         * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
1934         of ptr into the ENABLE_CHECKING section.
1935
1936 2006-03-08  Jeff Law  <law@redhat.com>
1937
1938         * tree-vrp.c (infer_value_range): Only count pointer uses
1939         and dereferences if -fdelete-null-pointer-checks is enabled.
1940
1941         * tree-vrp.c (find_assert_locations): Infer value ranges for
1942         single use pointers, but do not create ASSERT_EXPRs for them.
1943         When a non-null range is inferred for a pointer, backwards
1944         propagate that range to other equivalent pointers through the
1945         use-def chain.
1946
1947 2006-03-08  Paolo Bonzini  <bonzini@gnu.org>
1948
1949         PR bootstrap/26500
1950         * Makefile.in (dvi, html, install-info): Invoke the corresponding
1951         language hook targets.
1952         * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
1953         objcp/Make-lang.in: Create stub rules for dvi, html, install-info
1954         if language hook targets were missing.
1955
1956 2006-03-07  Zdenek Dvorak <dvorakz@suse.cz>
1957
1958         * tree-ssa-opfinalize.h: Removed.
1959         * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
1960         dependency.
1961         * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
1962         (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
1963         INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
1964         add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
1965         finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
1966         finalize_ssa_v_must_def_ops): New.
1967
1968 2006-03-07  Kenneth Zadeck <zadeck@naturalbridge.com>
1969
1970         * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
1971         block as parameter.
1972
1973 2006-03-07  Geoffrey Keating  <geoffk@apple.com>
1974
1975         * varasm.c (assemble_end_function): Say that 'fnname' is unused.
1976
1977         * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
1978         addresses with offsets; reorganize.
1979
1980         * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
1981         (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
1982         (expand_builtin_init_dwarf_reg_sizes): Likewise.
1983
1984 2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
1985
1986         PR target/26588
1987         * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
1988
1989 2006-03-08  Ben Elliston  <bje@au.ibm.com>
1990
1991         * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
1992
1993 2006-03-07  Aldy Hernandez  <aldyh@redhat.com>
1994
1995         PR gomp/26238
1996         * doc/passes.texi (Tree-SSA passes): Document omp lowering and
1997         expansion.
1998
1999 2006-03-07  Richard Guenther  <rguenther@suse.de>
2000
2001         PR tree-optimization/26587
2002         * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
2003
2004 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
2005
2006         * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
2007
2008 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
2009
2010         * hooks.c (hook_bool_mode_rtx_true): New function.
2011         * hooks.h (hook_bool_mode_rtx_true): Declare.
2012         * toplev.c (compile_file): Call output_shared_constant_pool.
2013         * varasm.c (shared_constant_pool): New variable.
2014         (assemble_start_function, assemble_end_function): Remove arguments
2015         from call to output_constant_pool.
2016         (create_constant_pool): New function, split out from...
2017         (init_varasm_status): ...here.
2018         (force_const_mem): Choose between the shared and per-function constant
2019         pools.  Set current_function_uses_const_pool when reusing old entries
2020         as well as when creating new ones.
2021         (mark_constant): Ignore data argument.
2022         (mark_constants): Remove pool argument.
2023         (mark_constant_pool): Likewise.  Use current_function_uses_const_pool
2024         to decide whether the function uses a constant pool.
2025         (output_constant_pool_contents): New function, split out from...
2026         (output_constant_pool): ...here.
2027         (output_shared_constant_pool): New function.
2028         (init_varasm_once): Initialize shared_constant_pool.
2029         * output.h (output_constant_pool): Delete.
2030         (output_shared_constant_pool): Declare.
2031         * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
2032         * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
2033
2034 2006-03-06  Nick Clifton  <nickc@redhat.com>
2035
2036         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
2037         flag_strength_reduce.
2038
2039 2006-03-06  Ben Elliston  <bje@au.ibm.com>
2040
2041         * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
2042         x86_64-*-linux* configurations.
2043
2044         * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
2045         (LIBGCC2_WORDS_BIG_ENDIAN): Define.
2046
2047 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2048
2049         * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
2050         Remove.
2051         * basic-block.h: Remove the extern for
2052         rediscover_loops_after_threading.
2053
2054         * cfgloop.c (cancel_loop): Make it static.
2055         * cfgloop.h: Remove the prototype for cancel_loop.
2056
2057         * flow.c (recompute_reg_usage): Make it static.
2058         * rtl.h: Remove the prototype for recompute_reg_usage.
2059
2060         * function.c (use_return_register): Make it static.
2061         * function.h: Remove the prototype.
2062
2063 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2064
2065         * recog.c (volatile_mem_p, validate_change_maybe_volatile):
2066         Remove.
2067         * recog.h: Remove the prototype for
2068         validate_change_maybe_volatile.
2069
2070 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2071
2072         * rtlanal.c (replace_reg): Remove.
2073         * rtl.h: Remove the prototype for replace_reg.
2074
2075 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2076
2077         * regclass.c (reg_scan_update): Remove.
2078         (reg_scan_mark_refs): Remove the last argument.
2079         * rtl.h: Remove the prototype for reg_scan_update.
2080
2081 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2082
2083         * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
2084         combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
2085         config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
2086         config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
2087         df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
2088         loop-invariant.c, omp-low.c, opts.c, passes.c,
2089         rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
2090         tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
2091         tree-ssa-structalias.c, tree-ssa-threadedge.c,
2092         tree-ssa-threadupdate.c, tree-vect-patterns.c,
2093         tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
2094         unwind-dw2.c: Fix comment typos.  Follow spelling conventions.
2095
2096 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2097
2098         * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
2099         * dwarf2out.h: Remove the prototype for
2100         dwarf2out_add_library_unit_info.
2101
2102 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2103
2104         * tree.c (add_var_to_bind_expr): Remove.
2105         * tree.h: Remove the prototype for add_var_to_bind_expr.
2106
2107 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2108
2109         * regclass.c (n_non_fixed_regs): Remove.
2110         (init_reg_sets_1, globalize_reg): Remove all uses of
2111         n_non_fixed_regs.
2112         * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
2113
2114 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2115
2116         * rtlanal.c (insns_safe_to_move_p): Remove.
2117         * rtl.h: Remove the prototype for insns_safe_to_move_p.
2118
2119 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2120
2121         * expmed.c (expand_mult_add): Remove.
2122         * expr.h: Remove the prototype for expand_mult_add.
2123
2124 2006-03-04  Jakub Jelinek  <jakub@redhat.com>
2125
2126         * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
2127         and REG_SAVED_VAL_EXP constants.
2128         * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
2129         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
2130         Handle regs stored by value.
2131         (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
2132         (execute_cfa_program): Handle DW_CFA_val_offset,
2133         DW_CFA_val_offset_sf and DW_CFA_val_expression.
2134         (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
2135         value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
2136         (uw_install_context_1): Handle target regs stored by value.
2137
2138 2006-03-03  Daniel Berlin  <dberlin@dberlin.org>
2139
2140         * tree-sra.c (tree_sra): Return todoflags;
2141         (generate_one_element): Set TODO_update_smt_usage if needed.
2142         (pass_sra): Remove TODO_update_smt_usage.
2143         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
2144         parameter.
2145         (tree_ssa_forward_propagate_single_use_vars): Return
2146         TODO_update_smt_usage if we need to update SMT usage.
2147         (pass_forwprop): Remove TODO_update_smt_usage.
2148         
2149 2006-03-03  Diego Novillo  <dnovillo@redhat.com>
2150
2151         * tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
2152         (correct_use_link): Remove reference to get_stmt_operands.
2153         (update_stmt_operands): Likewise.
2154         (get_modify_expr_operands): New function factored out of
2155         parse_ssa_operands and get_expr_operands.
2156         Try to create V_MUST_DEFs for LHS by default.
2157         (get_expr_operands) <case MODIFY_EXPR>: Call
2158         get_modify_expr_operands.
2159         <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
2160         <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
2161         (parse_ssa_operands) <case MODIFY_EXPR>: Call
2162         get_modify_expr_operands.
2163
2164 2006-03-03  Kazu Hirata  <kazu@codesourcery.com>
2165
2166         * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
2167         * tree-flow.h: Remove the prototype for
2168         referenced_var_lookup_if_exists.
2169
2170 2006-03-03  Steve Ellcey  <sje@cup.hp.com>
2171
2172         PR rtl-optimization/26345
2173         PR target/19061
2174         * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
2175
2176 2006-03-03  Roger Sayle  <roger@eyesopen.com>
2177
2178         PR tree-optimization/26524
2179         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
2180         fold_convert to create a constant of the appropriate type.
2181
2182 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
2183
2184         * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2185         SYMBOL_REF_IN_BLOCK_P.
2186         * doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
2187         of SYMBOL_FLAG_IN_BLOCK.
2188         * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
2189         instead of SYMBOL_REF_IN_BLOCK_P.
2190         * explow.c (use_anchored_address): Likewise.
2191         * rtl.c (rtx_size): Likewise.
2192         * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
2193         instead of SYMBOL_FLAG_IN_BLOCK.
2194         (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2195         SYMBOL_REF_IN_BLOCK_P.
2196         (assemble_variable): Likewise.
2197         (output_constant_def_contents): Likewise.
2198         (output_constant_pool): Likewise.
2199         (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
2200         instead of SYMBOL_FLAG_IN_BLOCK.
2201         * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2202         SYMBOL_REF_IN_BLOCK_P.
2203         (SYMBOL_REF_BLOCK): Likewise.
2204         (SYMBOL_REF_OFFSET): Likewise.
2205         (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2206         SYMBOL_REF_IN_BLOCK_P.
2207         (SYMBOL_FLAG_IN_BLOCK): Replace with...
2208         (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
2209         (SYMBOL_REF_IN_BLOCK_P): Replace with...
2210         (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
2211
2212 2006-03-03  Jakub Jelinek  <jakub@redhat.com>
2213
2214         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
2215
2216 2006-03-02  Roger Sayle  <roger@eyesopen.com>
2217
2218         * simplify-rtx.c (simplify_unary_operation): When simplifying
2219         (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
2220         that we perform the right shift in the appropriate mode, and
2221         then extend or truncate the result to requested mode.
2222
2223 2006-03-03  Zdenek Dvorak <dvorakz@suse.cz>
2224
2225         * gengtype.c (main): Handle double_int type.
2226         * tree.h (struct tree_int_cst): Make type of int_cst double_int.
2227         * double-int.c: New file.
2228         * double-int.h: New file.
2229         * system.h: Include doubleint.h.
2230         * Makefile.in (SYSTEM_H): Include double-int.h.
2231         (double-int.o): Add.
2232
2233 2006-03-03  Joseph S. Myers  <joseph@codesourcery.com>
2234
2235         PR bootstrap/26478
2236         * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
2237         copying over it.
2238
2239 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
2240
2241         * tree-vrp.c (remove_range_assertions): Do not update statements
2242         unnecessarily.
2243
2244 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
2245
2246         * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
2247         cleanup.
2248         * gcse.c (rest_of_handle_gcse): Ditto.
2249         * except.c (gate_handle_eh): Ditto.
2250         * cfgcleanup.c (rest_of_handle_jump2): Ditto.
2251         * basic-block.h (CLEANUP_PRE_LOOP): Remove.
2252
2253 2006-03-02  Eric Christopher  <echristo@apple.com>
2254
2255         * config/i386/i386.c (machopic_output_stub): Add indirection to
2256         jump.
2257
2258 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
2259
2260         * loop.c: Removed.
2261
2262 2006-03-02  David S. Miller  <davem@sunset.davemloft.net>
2263
2264         Sun Niagara specific optimizations.
2265         * config.gcc: Recognize niagara as target.
2266         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
2267         (TARGET_CPU_niagara): Define.
2268         (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
2269         (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
2270         (CPP_CPU_SPEC): Handle -mcpu=niagara.
2271         (ASM_CPU_SPEC): Likewise.
2272         (PROCESSOR_NIAGARA): New enum entry.
2273         (REGISTER_MOVE_COST): Handle Niagara.
2274         (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
2275         * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
2276         (sparc_override_options): Recognize "niagara", set appropriate
2277         default MASK_* values for it, and align functions to 32-bytes
2278         by default just like ULTRASPARC/ULTRASPARC3.
2279         (sparc_initialize_trampoline): Handle niagara like ultrasparc.
2280         (sparc64_initialize_trampoline): Likewise.
2281         (sparc_use_sched_lookahead): Use zero for niagara.
2282         (sparc_issue_rate): Use one for niagara.
2283         * config/sparc/niagara.md: New file.
2284         * config/sparc/sparc.md: Include it.
2285         * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
2286         ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
2287         when default cpu is niagara.
2288         (CPP_CPU_SPEC): Handle -mcpu=niagara.
2289         (ASM_CPU_SPEC): Likewise.
2290         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
2291         when default cpu is niagara.
2292         (ASM_CPU_SPEC): Handle -mcpu=niagara.
2293         * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
2294         just like v9/ultrasparc/ultrasparc3.
2295         * doc/invoke.texi: Add documentation for "niagara" and improve
2296         existing documentation for ultrasparc variants.
2297
2298 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
2299
2300         * tree-ssa-operands.c (update_stmt_operands): Update documentation.
2301
2302 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
2303
2304         * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
2305         (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
2306         and say that only one is needed.
2307         * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
2308         * target.h (have_switchable_bss_sections): New hook.
2309         * explow.c (use_anchored_address): Check that the symbol is in a block.
2310         * varasm.c (tls_comm_section, comm_section, lcomm_section)
2311         (bss_noswitch_section): New variables.
2312         (get_unnamed_section): Add SECTION_UNNAMED to the flags.
2313         (get_noswitch_section): New function.
2314         (get_block_for_section): Allow SECT to be null.
2315         (unlikely_text_section_p): Use SECTION_STYLE.
2316         (bss_initializer_p): New function.
2317         (get_variable_section): Move earlier in file.  Take a new argument,
2318         prefer_noswitch_p.  Move bss checks from assemble_variable to here.
2319         Return one of the new *_sections in such cases.
2320         (get_block_for_decl): New function, extracting some logic from
2321         use_blocks_for_decl_p.
2322         (change_symbol_section): Remove in favor of...
2323         (change_symbol_block): ...this new function.
2324         (use_blocks_for_decl_p): Remove checks now performed by
2325         get_block_for_decl.
2326         (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
2327         (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
2328         (emit_local, emit_bss, emit_common): ...these new functions.
2329         Return true if the alignment was honored.
2330         (emit_tls_common): New function.
2331         (asm_emit_uninitialised): Delete.
2332         (assemble_variable_noswitch): New function, split out from...
2333         (assemble_variable): ...here.  Don't make decisions about common
2334         variables here.  Globalize all public decls that go into non-common
2335         sections.  Check whether SYMBOL_REF_BLOCK is null.
2336         (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
2337         (output_constant_pool): Likewise.
2338         (init_varasm_once): Initialize the new section variables.
2339         (have_global_bss_p): New function.
2340         (categorize_decl_for_section): Use bss_initializer_p.
2341         (switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
2342         (place_block_symbol): Assert that the symbol must be in a block.
2343         * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
2344         (TARGET_INITIALIZER): Include it.
2345         * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
2346         * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
2347         (SECTION_MACH_DEP): Bump by two.
2348         (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
2349         (unnamed_section): Mention SECTION_UNNAMED in comment.
2350         (named_section): Likewise SECTION_NAMED.
2351         (noswitch_section_callback): New type.
2352         (noswitch_section): New structure.
2353         (section): Add a noswitch_section alternative.
2354         (SECTION_STYLE): New macro.
2355         (tls_comm_section, comm_section, lcomm_section): Declare.
2356         (bss_noswitch_section, have_global_bss_p): Declare.
2357         * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
2358         * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
2359         Override.
2360         * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
2361         * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
2362         Override.
2363
2364 2006-03-02  Daniel Berlin <dberlin@dberlin.org>
2365
2366         * gcc/tree-vrp.c (execute_vrp): Return value.
2367         * gcc/regrename.c (rest_of_handle_regrename): Ditto.
2368         * gcc/tree-into-ssa.c (rewrite_into_ssa): Ditto.
2369         * gcc/tree-complex.c (tree_lower_complex): Ditto.
2370         (tree_lower_complex_O0): Ditto.
2371         * gcc/tracer.c (rest_of_handle_tracer): Ditto.
2372         * gcc/postreload-gcse.c (rest_of_handle_gcse2): Ditto.
2373         * gcc/postreload.c (rest_of_handle_postreload): Ditto.
2374         * gcc/tree-tailcall.c (execute_tail_recursion): Ditto.
2375         (execute_tail_calls): Ditto.
2376         * gcc/tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
2377         * gcc/tree.h (init_function_for_compilation): Ditto.
2378         * gcc/ipa-cp.c (ipcp_driver): Ditto.
2379         * gcc/tree-scalar-evolution.c (scev_const_prop): Ditto.
2380         * gcc/tree-scalar-evolution.h (scev_const_prop): Ditto.
2381         * gcc/final.c (compute_alignments): Ditto.
2382         (rest_of_handle_final): Ditto.
2383         (rest_of_handle_shorten_branches): Ditto.
2384         (rest_of_clean_state): Ditto.
2385         * gcc/omp-low.c (execute_expand_omp): Ditto.
2386         (execute_lower_omp): Ditto.
2387         * gcc/tree-ssa-dse.c (tree_ssa_dse): Ditto.
2388         * gcc/ipa-reference.c (static_execute): Ditto.
2389         * gcc/tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
2390         * gcc/reorg.c (rest_of_handle_delay_slots): Ditto.
2391         (rest_of_handle_machine_reorg): Ditto.
2392         * gcc/cgraphunit.c (rebuild_cgraph_edges): Ditto.
2393         * gcc/flow.c (recompute_reg_usage): Ditto.
2394         (rest_of_handle_remove_death_notes): Ditto.
2395         (rest_of_handle_life): Ditto.
2396         (rest_of_handle_flow2): Ditto.
2397         * gcc/tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
2398         * gcc/tree-ssa-ccp.c (do_ssa_ccp): Ditto.
2399         (do_ssa_store_ccp): Ditto.
2400         (execute_fold_all_builtins): Ditto.
2401         * gcc/mode-switching.c (rest_of_handle_mode_switching): Ditto.
2402         * gcc/modulo-sched.c (rest_of_handle_sms): Ditto.
2403         * gcc/ipa-pure-const.c (static_execute): Ditto.
2404         * gcc/cse.c (rest_of_handle_cse): Ditto.
2405         (rest_of_handle_cse2): Ditto.
2406         * gcc/web.c (rest_of_handle_web): Ditto.
2407         * gcc/tree-stdarg.c (execute_optimize_stdarg): Ditto.
2408         * gcc/tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
2409         * gcc/tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
2410         * gcc/tree-nrv.c (tree_nrv): Ditto.
2411         (execute_return_slot_opt): Ditto.
2412         * gcc/tree-ssa-alias.c (compute_may_aliases): Ditto.
2413         (create_structure_vars): Ditto.
2414         * gcc/loop-init.c (rtl_loop_init): Ditto.
2415         (rtl_loop_done): Ditto.
2416         (rtl_move_loop_invariants): Ditto.
2417         (rtl_unswitch): Ditto.
2418         (rtl_unroll_and_peel_loops): Ditto.
2419         (rtl_doloop): Ditto.
2420         * gcc/gimple-low.c (lower_function_body): Ditto.
2421         (mark_used_blocks): Ditto.
2422         * gcc/tree-ssa-sink.c (execute_sink_code): Ditto.
2423         * gcc/ipa-inline.c (cgraph_decide_inlining): Ditto.
2424         (cgraph_early_inlining): Ditto.
2425         * gcc/global.c (rest_of_handle_global_alloc): Ditto.
2426         * gcc/jump.c (cleanup_barriers): Ditto.
2427         (purge_line_number_notes): Ditto.
2428         * gcc/ifcvt.c (rest_of_handle_if_conversion): Ditto.
2429         (rest_of_handle_if_after_reload): Ditto.
2430         * gcc/tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
2431         (tree_ssa_loop_im): Ditto.
2432         (tree_ssa_loop_unswitch): Ditto.
2433         (tree_vectorize): Ditto.
2434         (tree_linear_transform): Ditto.
2435         (tree_ssa_loop_ivcanon): Ditto.
2436         (tree_ssa_empty_loop): Ditto.
2437         (tree_ssa_loop_bounds): Ditto.
2438         (tree_complete_unroll): Ditto.
2439         (tree_ssa_loop_prefetch): Ditto.
2440         (tree_ssa_loop_ivopts): Ditto.
2441         (tree_ssa_loop_done): Ditto.
2442         * gcc/predict.c (tree_estimate_probability): Ditto.
2443         * gcc/recog.c (split_all_insns_noflow): Ditto.
2444         (rest_of_handle_peephole2): Ditto.
2445         (rest_of_handle_split_all_insns): Ditto.
2446         * gcc/tree-eh.c (lower_eh_constructs): Ditto.
2447         * gcc/regmove.c (rest_of_handle_regmove): Ditto.
2448         (rest_of_handle_stack_adjustments): Ditto.
2449         * gcc/local-alloc.c (rest_of_handle_local_alloc): Ditto.
2450         * gcc/function.c (instantiate_virtual_regs): Ditto.
2451         (init_function_for_compilation): Ditto.
2452         (rest_of_handle_check_leaf_regs): Ditto.
2453         * gcc/gcse.c (rest_of_handle_jump_bypass): Ditto.
2454         (rest_of_handle_gcse): Ditto.
2455         * gcc/ipa-type-escape.c (type_escape_execute): Ditto.
2456         * gcc/alias.c (rest_of_handle_cfg): Ditto.
2457         * gcc/tree-if-conv.c (main_tree_if_conversion): Ditto.
2458         * gcc/profile.c (rest_of_handle_branch_prob): Ditto.
2459         * gcc/tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
2460         * gcc/rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
2461         * gcc/bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
2462         * gcc/tree-dfa.c (find_referenced_vars): Ditto.
2463         * gcc/except.c (set_nothrow_function_flags): Ditto.
2464         (convert_to_eh_region_ranges): Ditto.
2465         (rest_of_handle_eh): Ditto.
2466         * gcc/emit-rtl.c (unshare_all_rtl): Ditto.
2467         (remove_unnecessary_notes): Ditto.
2468         * gcc/except.h (set_nothrow_function_flags): Ditto.
2469         (convert_to_eh_region_ranges): Ditto.
2470         * gcc/cfgexpand.c (tree_expand_cfg): Ditto.
2471         * gcc/tree-cfgcleanup.c (merge_phi_nodes): Ditto.
2472         * gcc/tree-ssa-pre.c (do_pre): Ditto.
2473         (execute_fre): Ditto.
2474         * gcc/cfgcleanup.c (rest_of_handle_jump): Ditto.
2475         (rest_of_handle_jump2): Ditto.
2476         * gcc/tree-sra.c (tree_sra): Ditto.
2477         * gcc/tree-mudflap.c (execute_mudflap_function_ops): Ditto.
2478         (execute_mudflap_function_decls): Ditto.
2479         * gcc/tree-ssa-copy.c (do_copy_prop): Ditto.
2480         (do_store_copy_prop): Ditto.
2481         * gcc/ipa-prop.h (ipcp_driver): Ditto.
2482         * gcc/cfglayout.c (insn_locators_initialize): Ditto.
2483         * gcc/tree-ssa-forwprop.c
2484         (tree_ssa_forward_propagate_single_use_vars): Ditto.
2485         * gcc/cfglayout.h (insn_locators_initialize): Ditto.
2486         * gcc/tree-ssa-dce.c (tree_ssa_dce): Ditto.
2487         * gcc/tree-ssa.c (execute_early_warn_uninitialized): Ditto.
2488         (execute_late_warn_uninitialized): Ditto.
2489         * gcc/rtl.h (cleanup_barriers): Ditto.
2490         (split_all_insns_noflow): Ditto.
2491         (purge_line_number_notes): Ditto.
2492         (unshare_all_rtl): Ditto.
2493         (remove_unnecessary_notes): Ditto.
2494         (recompute_reg_usage): Ditto.
2495         (variable_tracking_main): Ditto.
2496         * gcc/integrate.c (emit_initial_value_sets): Ditto.
2497         * gcc/integrate.h (emit_initial_value_sets): Ditto.
2498         * gcc/tree-optimize.c (execute_free_datastructures): Ditto
2499         (execute_free_cfg_annotations): Ditto.
2500         (execute_fixup_cfg): Ditto.
2501         (execute_cleanup_cfg_pre_ipa): Ditto.
2502         (execute_cleanup_cfg_post_optimizing): Ditto.
2503         (execute_init_datastructures): Ditto.
2504         * gcc/tree-object-size.c (compute_object_sizes): Ditto.
2505         * gcc/combine.c (rest_of_handle_combine): Ditto.
2506         * gcc/tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
2507         * gcc/bb-reorder.c (duplicate_computed_gotos): Ditto.
2508         (rest_of_handle_reorder_blocks): Ditto.
2509         (rest_of_handle_partition_blocks): Ditto.
2510         * gcc/var-tracking.c (variable_tracking_main): Ditto.
2511         * gcc/tree-profile.c (tree_profiling): Ditto.
2512         * gcc/tree-vect-generic.c (expand_vector_operations): Ditto.
2513         * gcc/reg-stack.c (rest_of_handle_stack_regs): Ditto.
2514         * gcc/sched-rgn.c (rest_of_handle_sched): Ditto.
2515         (rest_of_handle_sched2): Ditto.
2516         * gcc/basic-block.h (free_bb_insn): Ditto.
2517         * gcc/tree-ssa-structalias.c (ipa_pta_execute): Ditto.
2518         * gcc/tree-cfg.c (execute_build_cfg): Ditto.
2519         (remove_useless_stmts): Ditto.
2520         (split_critical_edges): Ditto.
2521         (execute_warn_function_return): Ditto.
2522         (execute_warn_function_noreturn): Ditto.
2523         * gcc/tree-ssa-reassoc.c (execute_reassoc): Ditto.
2524         * gcc/cfgrtl.c (free_bb_for_insn): Ditto.
2525         * gcc/passes.c (execute_one_pass): Run additional
2526         todos returned by execute function.
2527         * gcc/tree-pass.h (struct tree_opt_pass): Make execute
2528         return a value.
2529
2530 2006-03-02  Richard Guenther  <rguenther@suse.de>
2531
2532         * tree-ssa-alias.c (find_used_portions): Consider taking
2533         the address as making the variable not write-only.
2534
2535 2006-03-02  Nick Clifton  <nickc@redhat.com>
2536
2537         * config.gcc (default_use_cxa_atexit): Extend the description of
2538         this configure variable.  Set its default value to "yes" for
2539         Linux, NetBSD and ELF targets on the assumption that they will
2540         use C libraries with the __cxa_atexit function.
2541
2542 2006-03-02  Ben Elliston  <bje@au.ibm.com>
2543
2544         * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
2545         parameter as unused to suppress a build warning.
2546
2547 2006-03-02  Ben Elliston  <bje@au.ibm.com>
2548
2549         * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
2550         config/dfp-bit.c.
2551
2552 2006-03-01  Roger Sayle  <roger@eyesopen.com>
2553
2554         PR other/26489
2555         * gthr-posix.h (__gthrw2): Define to take three parameters, the
2556         declared name, the weak reference name, and the typeof name.
2557         (__gthrw): Avoid expanding the declared name suffix.
2558         (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
2559
2560 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
2561
2562         * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
2563         from DWARF 3.
2564         (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
2565         DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
2566         DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
2567         DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
2568         DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
2569         (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
2570         (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
2571         DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
2572         (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
2573         DW_DS_leading_separate, DW_DS_trailing_separate): New.
2574         (DW_END_default, DW_END_big, DW_END_little): New.
2575         (DW_END_lo_user, DW_END_hi_user): Define.
2576         (DW_LNE_lo_user, DW_LNE_hi_user): Define.
2577         (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
2578         (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
2579         DW_LANG_D): New.
2580
2581 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
2582
2583         * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
2584         Update all users.
2585         * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
2586         Update all users.
2587         (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
2588         Update all users.
2589         * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
2590         Update all users.
2591         * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
2592         to 'symbol_mem_tag'.
2593         Update all users.
2594         * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
2595         rename.
2596
2597 2006-03-01  Roger Sayle  <roger@eyesopen.com>
2598
2599         * builtins.c (fold_builtin_copysign): Delete unreachable code.
2600
2601 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
2602
2603         PR target/25761
2604         * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
2605         MACHO_DYNAMIC_NO_PIC_P.
2606         (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
2607
2608 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
2609
2610         PR target/26389
2611         * config/darwin-protos.h (darwin_asm_output_anchor):
2612         Declare.
2613         * config/darwin-sections.def (cstring_section):
2614         Add SECTION_MERGE to the flags.
2615         (literal4_section): Likewise.
2616         (literal8_section): Likewise.
2617         (objc_selector_refs_section): Likewise.
2618         (objc_cls_refs_section): Likewise.
2619         * config/darwin.c (darwin_asm_output_anchor): New
2620         function.
2621         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
2622
2623 2006-03-01  Daniel Berlin  <dberlin@dberlin.org>
2624
2625         Fix PR tree-optimization/26443
2626         * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
2627         to todo and PROP_tmt_usage to properties_destroyed.
2628         * tree-ssa-ccp.c (pass_ccp): Ditto.
2629         (pass_store_ccp): Ditto.
2630         * tree-ssa-dom.c (pass_dominator): Ditto.
2631
2632 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
2633
2634         * tree-ssa-operands.c: Cleanup whitespace.
2635         (get_asm_expr_operands): Move before first invocation.
2636         (get_indirect_ref_operands): Likewise.
2637         (get_tmr_operands): Likewise.
2638         (get_call_expr_operands): Likewise.
2639         (append_def): Likewise.
2640         (append_use): Likewise.
2641         (append_v_may_def): Likewise.
2642         (append_v_must_def): Likewise.
2643         (add_call_clobber_ops): Likewise.
2644         (add_call_read_ops): Likewise.
2645         (add_stmt_operand): Likewise.
2646         (add_virtual_operand): Likewise.
2647         (build_ssa_operands): Likewise.
2648
2649 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
2650
2651         PR middle-end/26022
2652         Revert:
2653         PR middle-end/24437
2654         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
2655         with a call expr to ...
2656         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
2657
2658 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
2659
2660         * tree-vrp.c (extract_range_from_assert): Remove special
2661         handling for types with super-types.
2662
2663 2006-03-01  Ben Elliston  <bje@au.ibm.com>
2664
2665         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
2666         and powerpc64-*-linux* configurations.
2667         * config/t-dfprules: New file.
2668
2669         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
2670         Compile dfp-bit.c from the source directory using -DWIDTH and
2671         $DFP_CFLAGS to control the compilation of that file, rather than
2672         generating width-specific versions in the build directory.
2673         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
2674         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
2675
2676 2006-02-28  Zack Weinberg  <zackw@panix.com>
2677
2678         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
2679         continues to work.
2680
2681 2006-02-28  Eric Christopher  <echristo@apple.com>
2682
2683         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
2684         Set up IN_LIBGCC definition of TARGET_64BIT.
2685         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
2686
2687 2006-02-28  Roger Sayle  <roger@eyesopen.com>
2688
2689         PR middle-end/14752
2690         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
2691         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
2692         cases via the construction of "expr != 0".
2693
2694 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
2695
2696         * alias.c (alias_invariant, alias_invariant_size): Remove.
2697         (record_base_value): Remove.
2698         (memrefs_conflict_p): Don't look at alias_invariant.
2699         (end_alias_analysis): Don't free it.
2700         * alias.h (record_base_value): Remove prototype.
2701
2702 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
2703             Adam Nemet  <anemet@caviumnetworks.com>
2704
2705         * rtl.h (truncated_to_mode): Declare it.
2706         (struct rtl_hooks): Add reg_truncated_to_mode hook.
2707         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
2708         (RTL_HOOKS_INITIALIZER): Include it.
2709         * rtlhooks.c (reg_truncated_to_mode_general): New function.
2710         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
2711         reg_truncated_to_mode.
2712         * rtlanal.c (truncated_to_mode): Define it.
2713         * simplify-rtx.c (simplify_unary_operation_1): Use it.
2714
2715 2006-02-28  Jeff Law  <law@redhat.com>
2716
2717         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
2718         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
2719         the range allowed by TYPE_PRECISION.
2720
2721         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
2722
2723 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
2724
2725         PR tree-optimization/26419
2726         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
2727         values of n.
2728
2729 2006-02-27  Zack Weinberg  <zackw@panix.com>
2730
2731         * doc/md.texi: Fix typo in previous change.
2732
2733 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
2734
2735         * df.c: Remove.
2736
2737 2006-02-27  Zack Weinberg  <zackw@panix.com>
2738
2739         * rtl.def (define_constraint, define_register_constraint)
2740         (define_memory_constraint, define_address_constraint): New MD forms.
2741         * gensupport.c (process_rtx): Put define_constraint etc on the
2742         predicate queue.
2743         * genpreds.c (process_define_predicate): Adjust comment.  Validate
2744         the name, and call validate_exp to validate the expression.
2745         (mark_mode_tests, write_extract_subexp): Can assume correct input.
2746         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
2747         all callers changed.
2748         (validate_exp, needs_variable, struct constraint_data)
2749         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
2750         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
2751         (const_dbl_constraints, constraint_max_namelen)
2752         (have_register_constraints, have_memory_constraints)
2753         (have_address_constraints, have_address_constraints)
2754         (have_extra_constraints, have_const_int_constraints)
2755         (have_const_dbl_constraints, mangle, add_constraint)
2756         (process_define_constraint, process_define_register_constraint)
2757         (write_enum_constraint_num, write_lookup_constraint)
2758         (write_insn_constraint_len, write_regclass_for_constraint)
2759         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
2760         (write_insn_extra_memory_constraint)
2761         (write_insn_extra_address_constraint)
2762         (write_satisfies_constraint_fns): New.
2763         (write_tm_preds_h): If we have new-style constraint definitions,
2764         prototype the functions generated from them, and define the
2765         old constraint interface (still used by generic code) in terms of
2766         those functions.
2767         (write_insn_preds_c): If we have new-style constraint definitions,
2768         generate all relevant functions from those definitions.
2769         (main): Handle define_constraint etc.
2770         * genoutput.c (struct constraint_data, indep_constraints)
2771         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
2772         (mdep_constraint_len): New data structures and functions, defined
2773         #ifdef USE_MD_CONSTRAINTS.
2774         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
2775         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
2776         use new logic to validate operand constraints against constraint
2777         definitions.
2778         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
2779         defined.
2780         * defaults.h: If none of the old-style constraint macros are
2781         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
2782         old-style macros; and poison REG_CLASS_FROM_LETTER,
2783         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
2784         EXTRA_CONSTRAINT.
2785         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
2786         * doc/md.texi: Document new constraint-definition mechanism and the
2787         C interface it provides.  Remove references to old mechanism
2788         elsewhere in the document.
2789         (Machine Constraints): Use pathnames relative to gcc directory,
2790         i.e. config/ARCH/FILE.  Change i386 section to refer to
2791         config/i386/predicates.md; update that section to match docstrings.
2792         * doc/tm.texi: Move all documentation of the old constraint-
2793         definition macros to their own section, clearly mark as obsolete.
2794
2795         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
2796         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
2797         definitions.
2798         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
2799         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
2800         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
2801         constraint strings.
2802         (splits and peepholes): Use satisfies_constraint_*.
2803         * config/i386/i386.c (memory_address_length)
2804         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
2805
2806 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
2807
2808         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
2809         scalar operation to be put back into the loop.
2810
2811 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
2812
2813         PR other/26208
2814         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
2815         (extract_cie_info): Handle S flag in augmentation string.
2816         (execute_cfa_program): If context->signal_frame, execute also
2817         fs->pc == context->ra instructions.
2818         (uw_frame_state_for): If context->signal_frame, don't subtract one
2819         from context->ra to find FDE.
2820         (uw_update_context_1): Set context->signal_frame to
2821         fs->signal_frame.
2822         (_Unwind_GetIPInfo): New function.
2823         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
2824         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
2825         of _Unwind_GetIP.
2826         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
2827         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
2828         * unwind-compat.c (_Unwind_GetIPInfo): New function.
2829         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
2830         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
2831         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
2832         * config/i386/linux-unwind.h (x86_fallback_frame_state,
2833         x86_64_fallback_frame_state): Set fs->signal_frame.
2834         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
2835         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
2836         (frob_update_context): Likewise.  Workaround missing S flag in
2837         Linux 2.6.12 - 2.6.16 kernel vDSOs.
2838         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
2839         Remove the psw_addr + 1 hack.
2840
2841 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
2842
2843         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
2844         with aggregates here.
2845         (find_func_aliases): Remove code for &<aggregate> from here.
2846
2847 2006-02-26  Roger Sayle  <roger@eyesopen.com>
2848
2849         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold (~X & C) eq/ne 0 as
2850         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
2851         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
2852         as (X & C) ne/eq 0.
2853
2854 2006-02-26  Roger Sayle  <roger@eyesopen.com>
2855
2856         PR middle-end/19983
2857         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
2858
2859 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
2860
2861         * opts.c (decode_options): Do not handle flag_strength_reduce.
2862         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
2863         and OPT_fstrength_reduce.
2864         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
2865         flag_prefetch_loop_arrays for being nonzero.
2866         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
2867         no-ops.
2868         (fprefetch-loop-arrays-rtl): Removed.
2869         (flag_prefetch_loop_arrays): Do not specify the value.
2870
2871         * doc/passes.texi: Update documentation of loop optimizer
2872         passes.
2873         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
2874         -frerun-loop-opt): Remove.
2875
2876 2006-02-26  Richard Guenther  <rguenther@suse.de>
2877
2878         PR tree-optimization/26421
2879         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
2880         in function calls that are ADDR_EXPRs as using the whole structure.
2881
2882 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
2883
2884         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
2885         * tree-pass.h (pass_loop_optimize): Remove.
2886         * passes.c (pass_loop_optimize): Never run it.
2887         * toplev.c (backend_init): Don't call init_loop.
2888         * opts.c (flag_loop_optimize_set): Remove.
2889         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
2890         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
2891         the old RTL loop optimizer when profiling enabled.
2892         * predict.c (tree_estimate_probability): Always strip builtin_expect.
2893         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
2894         pre-headers for the sake of the old RTL loop optimizer.
2895         * Makefile.in: Remove all references to loop.o.
2896
2897         * doc/invoke.texi: Remove all references to -floop-optimize
2898         and -frerun-loop-opt.
2899
2900 2006-02-26  Zack Weinberg  <zackw@panix.com>
2901
2902         * doc/md.texi (Machine Constraints): Refer to all files with paths
2903         relative to gcc directory (i.e. config/CPU/file).  Add missing
2904         @table @code ... @end table to M32C subsection.
2905
2906 2006-02-26  Roger Sayle  <roger@eyesopen.com>
2907
2908         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
2909         (X & 1) == 0.
2910         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
2911
2912 2006-02-26  Roger Sayle  <roger@eyesopen.com>
2913             James A. Morrison  <phython@gcc.gnu.org>
2914
2915         PR middle-end/21137
2916         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold ((X>>C1)&C2) eq/ne 0,
2917         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
2918         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
2919         signedness of the shift operation.
2920
2921 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
2922
2923         PR tree-optimization/26359
2924         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
2925
2926 2006-02-25  Roger Sayle  <roger@eyesopen.com>
2927
2928         * simplify-rtx.c (simplify_relational_operation_1):  Simplify
2929         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
2930         as X == 0, and some symmetry related transformations.
2931         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
2932
2933 2006-02-25  Roger Sayle  <roger@eyesopen.com>
2934
2935         PR middle-end/23673
2936         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold (X^Y) == 0 as X == Y
2937         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
2938         symmetry related transformations.  Fold (X^C1) == C2 as
2939         X == (C1^C2).
2940
2941 2006-02-25  Juergen Weigert  <jw@suse.de>
2942         Richard Guenther  <rguenther@suse.de>
2943
2944         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
2945
2946 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
2947
2948         * combine.c (gen_lowpart_or_truncate): Call
2949         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
2950
2951 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
2952
2953         * doc/invoke.texi: Move -fopenmp description to "Options for
2954         Code Generation".
2955         Remove reference to -lgomp.
2956
2957 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
2958
2959         * doc/install.texi: Require GNU tar version 1.14.
2960
2961 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
2962
2963         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
2964         * doc/invoke.texi (C++ Dialect Options): Document
2965         -fno-use-cxa-get-exception-ptr.
2966         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
2967         * configure: Regenerate.
2968         * c.opt (fuse-cxa-get-exception-ptr): New.
2969         * c-opts.c (c_common_handle_option): Handle
2970         OPT_fuse_cxa_get_exception_ptr.
2971         * c-common.c (flag_use_cxa_atexit): Update documentation.
2972         (flag_use_cxa_get_exception_ptr): New.
2973         * c-common.h (flag_use_cxa_get_exception_ptr): New.
2974         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
2975         documentation.
2976         (C_COMMON_OVERRIDE_OPTIONS): New.
2977
2978 2006-02-24  Roger Sayle  <roger@eyesopen.com>
2979
2980         PR middle-end/24952
2981         * combine.c (try_combine): Explicitly check whether GET_CODE is
2982         a SET or a CLOBBER, instead on checking that it isn't a USE.
2983
2984 2006-02-24  Roger Sayle  <roger@eyesopen.com>
2985
2986         * fold-const.c (fold_comparison): New subroutine of fold_binary
2987         containing transformations common to both the equality and
2988         ordering relational operators, factored out of fold_binary.
2989         (fold_binary): Separate out the equality operators (EQ_EXPR
2990         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
2991         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
2992         transformations common to both.
2993         (fold_div_compare): Fix latent bugs in the previously unreachable
2994         LT_EXPR and GE_EXPR cases.
2995
2996 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
2997
2998         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
2999         decl libname for clog to __clog on AIX.
3000
3001         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
3002
3003 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
3004
3005         PR target/26453
3006         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3007         output traceback table for thunks.  Localise rs6000_stack_info call.
3008
3009 2006-02-23  Roger Sayle  <roger@eyesopen.com>
3010             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3011
3012         * gthr-posix.h (__gthrw): Fix typo in comment.
3013
3014 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
3015
3016         * doc/cpp.texi (Character sets): Document that we do support
3017         input files to be in any character set.
3018
3019 2006-02-23  Jeff Law  <law@redhat.com>
3020
3021         * tree.h (PHI_ARG_NONZERO): Remove.
3022         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
3023         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
3024         node to the new node.
3025
3026         PR tree-optimization/26425
3027         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
3028         min/max, then assume its varying.
3029
3030 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
3031
3032         PR rtl-optimization/26316
3033         * rtlanal.c (enum may_trap_p_flags): New.
3034         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
3035         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
3036         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
3037         (may_trap_after_code_motion_p): New function.
3038         * loop-invariant.c (find_identical_invariants): Fix dump formating.
3039         (find_invariant_insn): Use may_trap_after_code_motion_p.
3040         * rtl.h (may_trap_after_code_motion_p): Declare.
3041
3042 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
3043
3044         * emit-rtl.c (immed_double_const): Cleanup.
3045
3046 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
3047
3048         Fix PR tree-optimization/26376
3049         * tree-ssa-structalias.c (find_func_aliases):  Use get_id_for_tree,
3050         remove assert.
3051
3052 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
3053
3054         PR middle-end/26412
3055         * gimplify.c (omp_add_variable): Guard variable size decl test with
3056         DECL_SIZE (decl) check.
3057
3058 2006-02-23  Richard Guenther  <rguenther@suse.de>
3059
3060         PR middle-end/26439
3061         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
3062         like aggregate types.
3063
3064 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
3065
3066         * configure.ac: Add --with{,out}-long-double-128 configure option.
3067         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
3068         * configure: Rebuilt.
3069         * config.in: Rebuilt.
3070         * doc/install.texi (Options specification): Document
3071         --with-long-double-128.
3072
3073         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
3074         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
3075         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
3076         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
3077
3078 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
3079
3080         * config/s390/s390.c (override_options): Handle
3081         TARGET_DEFAULT_LONG_DOUBLE_128.
3082
3083         * config/alpha/alpha.c (override_options): Handle
3084         TARGET_DEFAULT_LONG_DOUBLE_128.
3085
3086         * config/sparc/sparc.c (sparc_override_options): Handle
3087         TARGET_DEFAULT_LONG_DOUBLE_128.
3088
3089 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
3090
3091         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
3092         (real-install-headers-tar, real-install-headers-cpio)
3093         (real-install-headers-cp): New targets.
3094
3095 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
3096
3097         * tree.h (variable_section): Delete.
3098         * varasm.c (variable_section): Delete.
3099
3100 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
3101
3102         * install.texi: Add notes on install.texi2html.
3103         (Building in parallel): Do not use footnotes.
3104
3105 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
3106
3107         PR libgomp/26234
3108         * doc/install.texi (Configuration): Document --disable-libgomp.
3109
3110 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
3111
3112         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
3113
3114 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
3115
3116         * config/i386/sse.md (vec_extractv2df_1_sse): New.
3117         (vec_extractv2df_0_sse): New.
3118
3119 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
3120
3121         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
3122         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
3123         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
3124         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
3125         to the result of the expression.
3126         (def_cfa_1): Adjust.
3127         (frame_pointer_cfa_offset): Rename to...
3128         (frame_pointer_fb_offset): ... this.  Adjust all uses.
3129         (convert_cfa_to_loc_list): Rename to...
3130         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
3131         Pass it on to build_cfa_loc.
3132         (compute_frame_pointer_to_cfa_displacement): Rename to...
3133         (compute_frame_pointer_to_fb_displacement): ... this.  New
3134         offset parameter.  Use it in computation.
3135         (gen_subprogram_die): Compute cfa_fb_offset with the new
3136         macro, and use it to compute the fb loc list and the
3137         displacement.
3138
3139 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
3140
3141         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
3142         replaced with register_operand.
3143         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
3144         non-DREG is expensive.
3145         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
3146         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
3147         involving memory.
3148
3149 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
3150
3151         * doc/install.texi2html: Use set -e.
3152
3153 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
3154
3155         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
3156         (ASM_OUTPUT_SHARED_LOCAL): Delete.
3157         * doc/invoke.texi (-fshared-data): Delete.
3158         * common.opt (fshared-data): Delete.
3159         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
3160         (assemble_static_space): Remove #if 0 code.
3161         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
3162         (ASM_OUTPUT_SHARED_LOCAL): Poison.
3163         * config/cris/cris.h: Remove FIXME.
3164
3165 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
3166
3167         * doc/sourcebuild.texi (Front End Directory): No more double-colon
3168         hooks.
3169
3170 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
3171
3172         PR middle-end/26379
3173         * combine.c (simplify_shift_const_1): Disable nested shifts
3174         optimization for vector shifts.
3175
3176 2006-02-20  Roger Sayle  <roger@eyesopen.com>
3177
3178         PR tree-optimization/26361
3179         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
3180         of unsigned integer types.
3181
3182 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
3183
3184         * tree-chrec.c (eq_evolutions_p): New.
3185         * tree-chrec.h (eq_evolutions_p): Declared.
3186         * tree-data-ref.c: Fix formatting.
3187         (datadep_stats, dependence_stats): New.
3188         (gcd): Moved...
3189         (print_direction_vector): New.
3190         (dump_data_dependence_relation): Use print_direction_vector.
3191         (object_analysis, create_data_ref): Handle COMPONENT_REF.
3192         (compute_subscript_distance): Static.
3193         (initialize_data_dependence_relation): Static.  Get the number
3194         of loops surrounding the references from the callers, and initialize
3195         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
3196         base_object_differ_p analyzers.
3197         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
3198         compute_overlap_steps_for_affine_1_2,
3199         analyze_subscript_affine_affine): Count the classified dependences.
3200         Print a message when a test failed.
3201         (can_use_analyze_subscript_affine_affine): New.
3202         (analyze_siv_subscript): Compute the data dependences on symbolic
3203         scevs that verify can_use_analyze_subscript_affine_affine.
3204         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
3205         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
3206         Handle symbolic scevs.
3207         (analyze_overlapping_iterations): Let symbolic affine scevs to be
3208         analyzed.
3209         (subscript_dependence_tester): Moved...
3210         (build_classic_dist_vector, build_classic_dir_vector): Don't use
3211         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
3212         DDR_SIZE_VECT instead of getting it in parameter.
3213         (subscript_dependence_tester): ... here.  Take as a parameter
3214         loop_nest_depth.  Call build_classic_dist_vector and
3215         build_classic_dir_vector.
3216         (compute_affine_dependence): Update subscript_dependence_tester
3217         parameters.  Update datadep_stats counters.  Call
3218         compute_subscript_distance.
3219         (compute_self_dependence): Save the dist and dir vectors.  Call
3220         compute_subscript_distance.
3221         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
3222         (compute_all_dependences): Reorder parameters as they were before
3223         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
3224         compute_subscript_distance.  Update the use of
3225         compute_affine_dependence and initialize_data_dependence_relation.
3226         (find_data_references_in_loop): Handle COMPONENT_REF.
3227         (compute_data_dependences_for_loop): Initialize dependence_stats.
3228         Don't call build_classic_dist_vector and build_classic_dir_vector.
3229         Update the parameters of initialize_data_dependence_relation and
3230         compute_all_dependences.  Print the statistics from datadep_stats.
3231         (analyze_all_data_dependences): Static.  Not used until the pass for
3232         checking the data dependences is contributed.
3233         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
3234         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
3235         (initialize_data_dependence_relation, compute_affine_dependence,
3236         analyze_all_data_dependences, compute_subscript_distance): Removed.
3237         (print_direction_vector): New.
3238         * lambda.h (gcd): ... here.
3239         (lambda_vector_gcd): Moved here from gcd_vector.
3240         * lambda-code.c (gcd, gcd_vector): Removed.
3241         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
3242         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
3243
3244 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
3245
3246         * ipa-type-escape.c: Tidy some comments and white space.
3247         * tree-ssa-operands.c: Likewise.
3248
3249 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
3250
3251         PR tree-opt/25879
3252         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
3253         (dump_decl_name): Do not walk the decl tree chains.
3254         * tree-pass.h (TDF_CHAIN): Remove.
3255
3256 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
3257
3258         * Makefile.in (C): Remove
3259         (PROTO): Remove
3260         (.PHONY): Remove C and PROTO
3261
3262 2006-02-20  Roger Sayle  <roger@eyesopen.com>
3263
3264         PR middle-end/26236
3265         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
3266         deprecated CHAR_TYPE tree code.
3267
3268 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
3269
3270         * configure.ac (target_list): Add install-info, dvi, html.
3271         * configure: Regenerate.
3272
3273         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
3274         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
3275         treelang/Make-lang.in: Do not use double-colon rules.
3276
3277 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
3278
3279         * tree.h (struct tree_memory_tag): Add is_used_alone member.
3280         (TMT_USED_ALONE): New macro.
3281         * tree-pass.h (PROP_tmt_usage): New property.
3282         (TODO_update_tmt_usage): New todo.
3283         * tree-ssa-alias.c (updating_used_alone): New variable.
3284         (recalculate_used_alone): New function.
3285         (compute_may_aliases): Set updating_used_alone, call
3286         recalculate_used_alone.
3287         * tree-sra.c (pass_sra): Note that this pass destroys
3288         PROP_tmt_usage, and add TODO_update_tmt_usage.
3289         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
3290         * tree-flow.h (updating_used_alone): Prototype.
3291         (recalculate_used_alone): Ditto.
3292         * passes.c (execute_todo): Add code to set updating_used_alone,
3293         and call recalculate.
3294         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
3295         for clobber if used alone, and add assert to verify used_alone
3296         status.
3297
3298 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
3299
3300         * config/s390/s390.c (legitimize_pic_address): Assertions checking
3301         for non tls symbols added.
3302         (legitimize_address): Do nothing for PLUS expressions if one of the
3303         addends is a tls symbol reference.
3304
3305 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
3306
3307         PR bootstrap/25476
3308
3309         * Makefile.in (LDFLAGS): Define from autoconf substitution.
3310
3311         * Makefile.in (BOOTSTRAPPING): New.
3312         (quickstrap): New definition if BOOTSTRAPPING=yes.
3313
3314         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
3315         * configure.ac: Substitute all_selected_languages with the languages
3316         that were configured.  For all the other variables except
3317         lang_specs_files, include all the languages in the tree.
3318         * configure: Regenerate.
3319
3320         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
3321         if there is one.  Run the commands to run fixincludes in the same
3322         subshell.
3323
3324         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
3325         * doc/install.texi: Document exact conventions for searching target tools.
3326         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
3327         something more about building an Ada cross-compiler.  Don't list GNU Make
3328         requirements which affect all platforms.
3329
3330 2006-02-19  Roger Sayle  <roger@eyesopen.com>
3331
3332         PR middle-end/19543
3333         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
3334         only equivalent if the have both the same mode and precision.
3335
3336 2006-02-20  Ben Elliston  <bje@au.ibm.com>
3337
3338         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
3339
3340 2006-02-19  Roger Sayle  <roger@eyesopen.com>
3341             Steven Bosscher  <stevenb.gcc@gmail.com>
3342
3343         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
3344         constant pool references to identify stack mode constants.
3345         * rtlanal.c (constant_pool_constant_p): New predicate to check
3346         whether operand is a floating point constant in the pool.
3347         * rtl.h (constant_pool_constant_p): Prototype here.
3348         * loop.c (scan_loop): Avoid hoisting constants from the constant
3349         pool on STACK_REGS targets.
3350         (load_mems): Likewise.
3351         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
3352         loads into x87 registers expensive in terms of register pressure.
3353
3354 2006-02-19  Roger Sayle  <roger@eyesopen.com>
3355
3356         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
3357         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
3358
3359 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
3360
3361         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
3362         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
3363
3364 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
3365
3366         * doc/invoke.texi: Document -fipa-pta.
3367         * common.opt: Add ipa-pta option.
3368         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
3369         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
3370         (do_ds_constraint): Ditto.
3371         (get_constraint_for): Only add to referenced_vars if
3372         referenced_vars exists.
3373         (insert_into_field_list): Rewrite to do this unsorted.
3374         (insert_into_field_list_sorted): Rename old insert_into_field_list
3375         to this.
3376         (create_function_info_for): Use insert_into_field_list_sorted.
3377         (create_variable_info_for): Rewrite so it uses unsorted version,
3378         since the field list is sorted.
3379         (intra_create_variable_infos): Only add to referenced_vars if
3380         referenced_vars exists.
3381         (ipa_pta_execute): Init heapvars, and delete when done.
3382         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
3383
3384 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3385
3386         * doc/install.texi: Add missing `@samp'.
3387
3388 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
3389
3390         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
3391         Use the arguments.
3392
3393 2006-02-18  Mark Wielaard  <mark@klomp.org>
3394
3395         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
3396         who added new 4.1 features, bug fixes and integration support.
3397
3398 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
3399
3400         PR target/26350