OSDN Git Service

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