OSDN Git Service

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