OSDN Git Service

8033f04b1c1a871e904c3320d15b8742e1349384
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-03-18  James E Wilson  <wilson@specifixinc.com>
2
3         PR c++/19769
4         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
5         origin.
6
7 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
8
9         * config/mn10300/mn10300-protos.h: Remove the prototypes for
10         call_address_operand, const_8bit_operand.
11         * config/mn10300/mn10300.c (call_address_operand,
12         const_8bit_operand, const_1f_operand): Move to predicates.md.
13         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
14         * config/mn10300/mn10300.md: Include predicates.md.
15         * config/mn10300/predicates.md: New.
16
17 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
18
19         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
20         declarations in diagnostics and %E for identifiers, not %s.
21
22 2005-03-18  Jan Hubicka  <jh@suse.cz>
23             Dale Johannesen  <dalej@apple.com>
24
25         * basic-block.h (scale_bbs_frequencies_int,
26         scale_bbs_frequencies_gcov_type): Declare.
27         * cfg.c (RDIV): New macro.
28         (update_bb_frequency_for_threading): Fix.
29         * basic-block.h (scale_bbs_frequencies_int,
30         scale_bbs_frequencies_gcov_type): New.
31         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
32         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
33         scale_bbs_frequencies_int.
34         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
35
36 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
37
38         * config/m32r/m32r-protos.h: Remove the prototypes for
39         call_address_operand, symbolic_operand, seth_add3_operand,
40         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
41         reg_or_uint16_operand, reg_or_cmp_int16_operand,
42         two_insn_const_operand, move_src_operand,
43         move_double_src_operand, move_dest_operand,
44         eqne_comparison_operator, signed_comparison_operator,
45         large_insn_p, conditional_move_operand, carry_compare_operand,
46         m32r_block_immediate_operand, extend_operand,
47         reg_or_eq_int16_operand, int8_operand, and
48         reg_or_zero_operand.
49         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
50         seth_add3_operand, int8_operand, cmp_int16_operand,
51         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
52         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
53         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
54         move_double_src_operand, move_dest_operand,
55         eqne_comparison_operator, signed_comparison_operator,
56         extend_operand, small_insn_p, large_insn_p,
57         conditional_move_operand, carry_compare_operand,
58         m32r_block_immediate_operand): Move to predicates.md.
59         (MAX_MOVE_BYTES): Move to m32r.h.
60         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
61         * config/m32r/m32r.md: Include predicates.md.
62         * config/m32r/predicates.md: New.
63
64         * config/pa/pa-protos.h: Add prototypes for magic_milli and
65         shadd_constant_p.
66         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
67         symbolic_operand, symbolic_memory_operand,
68         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
69         indexed_memory_operand, move_dest_operand, move_src_operand,
70         prefetch_cc_operand, prefetch_nocc_operand,
71         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
72         arith_operand, arith11_operand, pre_cint_operand,
73         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
74         ireg_operand, int5_operand, uint5_operand, int11_operand,
75         uint32_operand, arith5_operand, and_operand, ior_operand,
76         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
77         pc_or_label_operand, div_operand, plus_xor_ior_operator,
78         shadd_operand, movb_comparison_operator,
79         cmpib_comparison_operator): Move to predicates.md.
80         (magic_milli, shadd_constant_p): Make it extern.
81         * config/pa/pa.h (PREDICATE_CODES): Remove.
82         * config/pa/pa.md: Include predicates.md.
83         * config/pa/predicates.md: New.
84
85         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
86         predicate.
87
88 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
89
90         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
91         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
92         config/alpha/freebsd.h, config/alpha/linux.h,
93         config/alpha/netbsd.h, config/alpha/osf5.h,
94         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
95         config/h8300/h8300-protos.h, config/h8300/h8300.c,
96         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
97         doc/cppopts.texi: Update copyright.
98
99 2005-03-18  Jan Hubicka  <jh@suse.cz>
100
101         PR middle-end/20225
102         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
103         too late.
104         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
105         called too late.
106
107 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
108
109         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
110         VEC_safe_push.
111
112 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
113
114         * combine.c (gen_binary): Remove.
115         (known_cond, simplify_shift_const, find_split_point,
116         combine_simplify_rtx, simplify_if_then_else, simplify_set,
117         simplify_logical, expand_field_assignment, extract_left_shift,
118         force_to_mode, if_then_else_cond, apply_distributive_law,
119         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
120         simplify_comparison, reversed_comparison): Replace with
121         simplify_gen_binary, simplify_gen_relational or
122         distribute_and_simplify_rtx.
123         (distribute_and_simplify_rtx): New function.
124
125 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
126             Paolo Bonzini  <gcc.gnu.org>
127
128         * calls.c (setjmp_call_p, special_function_p): Update comments
129         at the head of the functions.
130
131 2005-03-18  Jan Hubicka  <jh@suse.cz>
132
133         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
134
135         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether 
136         function body should be released; do not proactively release function
137         bodies in non-unit-at-a-time mode.
138
139 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
140
141         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
142         mno-fp-ret-in-387 multilib variants.
143
144 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
145
146         * common.opt (m): Remove.
147         * opts.c (handle_option): Pass 'm' options to set_target_switch if
148         table lookup fails.
149         (common_handle_option): Remove OPT_m case.
150
151 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
152
153         * builtins.c (fold_builtin_bitop): Take decomposed arguments
154         of CALL_EXPR.
155         (fold_builtin_1): Update a call to fold_builtin_bitop.
156
157         * builtins.c (fold_builtin_signbit): Take decomposed arguments
158         of CALL_EXPR.
159         (fold_builtin_1): Update a call to fold_builtin_signbit.
160
161 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
162
163         PR tree-optimization/20474
164         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the 
165         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
166
167 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
168
169         * config/h8300/h8300-protos.h: Remove prototypes for
170         general_operand_src, general_operand_dst, single_one_operand,
171         single_zero_operand, call_insn_operand,
172         two_insn_adds_subs_operand, small_call_insn_operand,
173         jump_address_operand, bit_operand, bit_memory_operand,
174         stack_pointer_operand, const_int_gt_2_operand,
175         const_int_ge_8_operand, const_int_qi_operand,
176         const_int_hi_operand, incdec_operand, bit_operator,
177         nshift_operator, eqne_operator, gtle_operator,
178         gtuleu_operator, iorxor_operator.
179         Add prototypes for h8sx_shift_type h8sx_classify_shift and
180         h8300_ldm_stm_parallel.
181         * config/h8300/h8300.c (h8sx_shift_type,): Move to
182         h8300-protos.h.
183         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
184         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
185         (h8300_ldm_stm_parallel): Make it extern.
186         (h8300_ldm_parallel, h8300_stm_parallel,
187         h8300_return_parallel, general_operand_src,
188         general_operand_dst, h8300_dst_operand, h8300_src_operand,
189         nibble_operand, reg_or_nibble_operand, single_one_operand,
190         single_zero_operand, call_insn_operand,
191         two_insn_adds_subs_operand, small_call_insn_operand,
192         jump_address_operand, bit_operand, bit_memory_operand,
193         stack_pointer_operand, const_int_gt_2_operand,
194         const_int_ge_8_operand, const_int_qi_operand,
195         const_int_hi_operand, incdec_operand, eqne_operator,
196         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
197         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
198         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
199         nshift_operator): Move to predicates.md.
200         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
201         * config/h8300/h8300.md: Include predicates.md.
202         * config/h8300/predicates.md: New.
203
204 2005-03-17  Richard Henderson  <rth@redhat.com>
205
206         * config.gcc (ia64*-*-hpux*): Add extra_options.
207         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
208         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
209         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
210         (ia64_tls_size_string, ia64_tune_string): Remove.
211         (ia64_tune): Init to PROCESSOR_ITANIUM2.
212         (TARGET_DEFAULT_TARGET_FLAGS): New.
213         (TARGET_HANDLE_OPTION): New.
214         (ia64_override_options): Move options parsing ...
215         (ia64_handle_option): ... here.  New.
216         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
217         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32, 
218         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
219         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
220         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
221         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM, 
222         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD, 
223         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
224         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
225         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
226         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
227         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
228         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
229         TARGET_EARLY_STOP_BITS): Remove.
230         (TARGET_ILP32): Default false.
231         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
232         (enum ia64_inline_type): New.
233         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
234         * config/ia64/ia64.md: Update for new definitions of
235         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
236         * config/ia64/ia64.opt: New file.
237         * config/ia64/ilp32.opt: New file.
238
239 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
240
241         PR target/18380
242         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
243
244 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
245
246         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
247         instead of MASK_H8300S.
248         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
249         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
250         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
251         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
252         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
253         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
254         TARGET_SWITCHES): Remove.
255         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
256         TARGET_H8300SX.
257         * config/h8300/h8300.opt: New.
258
259         * config/alpha/alpha.opt, config/arc/arc.opt,
260         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
261         notices.
262
263 2005-03-17  Ian Lance Taylor  <ian@airs.com>
264
265         * gmon.c: Remove.
266
267 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
268
269         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
270         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
271         (TARGET_HANDLE_OPTION): Override default.
272         (arc_handle_option): New function.
273         (arc_init): Remove code to set arch_cpu_string.
274         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
275         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
276         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
277         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
278         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
279         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
280         (arc_rodata_string, TARGET_OPTIONS): Delete.
281         * config/arc/arc.opt: New file.
282
283 2005-03-17  Richard Henderson  <rth@redhat.com>
284
285         * doc/extend.texi (Weak Pragmas): New section.
286         (attribute alias): Clarify that target must be in the same
287         translation unit.
288
289 2005-03-17  Richard Henderson  <rth@redhat.com>
290
291         * config/alpha/alpha.opt: New file.
292         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
293         of alpha_cpu.
294         (alpha_cpu_string, alpha_tune_string, alpha_tp_string, 
295         alpha_fprm_string, alpha_fptm_string): Make static.
296         (alpha_tls_size_string): Remove.
297         (alpha_handle_option): New.
298         (override_options): Update for alpha_cpu/alpha_tune split.
299         (alpha_file_start): Likewise.
300         (TARGET_DEFAULT_TARGET_FLAGS): New.
301         (TARGET_HANDLE_OPTION): New.
302         * config/alpha/alpha.h (alpha_tune): Declare.
303         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS, 
304         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
305         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
306         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
307         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
308         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
309         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
310         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
311         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
312         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
313         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
314         (TARGET_DEFAULT): Remove MASK_FP.
315         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
316         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
317         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
318         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
319         alpha_tls_size_string): Remove.
320         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
321         (attribute tune): Rename from attribute cpu.
322         * config/alpha/ev4.md: Update to match.
323         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
324         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
325         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
326         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
327         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
328         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
329
330 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
331
332         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
333         and return without creating new state if before_nops_num is nonzero.
334         * config/ia64/ia64.md (first_insn): New attribute.
335         (alloc): Set it to yes.
336
337 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
338
339         * tree-vectorizer.c (new_vec_stmt_info): Initialize
340         STMT_VINFO_SUBVARS to NULL.
341         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
342         
343 2005-03-16 Dale Johannesen  <dalej@apple.com>
344
345         * rtlanal.c (find_first_parameter_load):  Rewrite to
346         return actual first param load or the call if none,
347         instead of first in block, when not all loads exist.
348
349 2005-03-16  Roger Sayle  <roger@eyesopen.com>
350
351         * optabs.c (expand_copysign_absneg): Make static.
352         * optabs.h (expand_copysign_absneg): Delete prototype.
353         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
354
355 2005-03-16  Richard Henderson  <rth@redhat.com>
356
357         PR middle-end/15700
358         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
359         (alias_pairs): Rename from output_defs.
360         (find_decl_and_mark_needed): Split out from assemble_alias.
361         (do_assemble_alias): New.
362         (assemble_output_def): Remove.
363         (finish_aliases_1, finish_aliases_2): New.
364         (process_pending_assemble_output_defs): Remove.
365         (assemble_alias): Defer aliases for which we don't yet have a
366         non-external decl for the target symbol.
367         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
368         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
369         * toplev.c (compile_file): Use finish_aliases_2 instead of
370         process_pending_assemble_output_defs.
371         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
372         (process_pending_assemble_output_defs): Remove.
373
374 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
375         
376         Fix PR tree-optimization/20489
377
378         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
379         for empty structures.
380
381 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
382
383         Fix PR tree-optimization/20490
384         
385         * tree-ssa-pre.c (create_expression_by_pieces): Use
386         force_gimple_operand on result of fold.
387
388 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
389
390         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
391         of closing parenthesis.
392
393 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
394
395         * builtins.c (expand_movstr): Update a call to
396         fold_builtin_strcpy.
397         (expand_builtin_strncpy): Update a call to
398         fold_builtin_strncpy.
399         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
400         arguments of CALL_EXPR.
401         (fold_builtin_1): Update calls to fold_builtin_strcpy and
402         fold_builtin_strncpy.
403         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
404         * tree.h: Update the prototypes of fold_builtin_strcpy and
405         fold_builtin_strncpy.
406
407 2005-03-16  Steven Bosscher  <stevenb@suse.de>
408             Dorit Naishlos  <dorit@il.ibm.com>
409
410         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy 
411         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero" 
412         error.
413
414 2005-03-16  Steven Bosscher  <stevenb@suse.de>
415
416         * tree-inline.c (walk_type_fields, walk_tree,
417         walk_tree_without_duplicates): Move from here...
418         * tree.c: ...to here.
419
420 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
421
422         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
423         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
424         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
425         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
426         (version): Define using $(BASEVER_c).
427         (Makefile, config.status, build/gcov-iov.o): No longer depends on
428         version.c.
429         (version.o): Depend on version files; add custom generation command.
430         (prefix.o): Define BASEVER on command line.
431         (s-iov): Depend on version files; adjust command.
432         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
433         Add gcc-vers.texi.
434         (gcc-vers.texi): New rule.
435         (doc/%.info, doc/%.dvi): Add -I . to command line.
436         (doc/gccinstall.dvi): Likewise.
437         (PACKAGE): Delete.  All uses replaced with "gcc".
438         * aclocal.m4: Do not include gcc-version.m4.
439         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
440         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
441         Set is_release based on contents of DEV-PHASE.
442         Set gcc_version based on contents of BASE-VER.
443         Define WIN32_REGISTRY_KEY only if the user overrode the default.
444         * config.in, configure: Regenerate.
445         * gccbug.in: Determine version of GCC in use at runtime.
446         * gcov-iov.c: Get version number and development phase from
447         command line, not by including version.c.
448         * intl.c: Replace all uses of PACKAGE with "gcc".
449         * libada-mk.in: Delete unused "gcc_version" variable.
450         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
451         * version.c: (VERSUFFIX): New hook for redistributors; adjust
452         commentary to match.
453         (version_string): Put together from pieces.
454         * config/alpha/x-vms: Do not use $(gcc_version).
455         * config/i386/t-nwld: Likewise.
456         * doc/include/gcc-common.texi: Include gcc-vers.texi for
457         version-GCC and DEVELOPMENT.
458
459 2005-03-15  Roger Sayle  <roger@eyesopen.com>
460
461         PR tree-optimization/17454
462         * tree.c (tree_size): Add case for TREE_BINFO.
463         * fold-const.c (fold_checksum_tree): Only clear the overloaded
464         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
465
466 2005-03-15  Roger Sayle  <roger@eyesopen.com>
467
468         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
469         op1 whilst expanding the signed widenening multiply variant.
470
471 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
472
473         * toplev.c (display_target_options): Avoid unused variable warning if
474         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
475         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
476         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
477         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
478         (mips_isa_info): New variable.
479         (mips_parse_cpu): Remove the first argument and leave the caller
480         to report errors.
481         (TARGET_HANDLE_OPTION): Override default.
482         (mips_handle_option): New function.  Move option validation code from...
483         (override_options): ...here.  Update calls to mips_parse_cpu.
484         * config/mips/mips.h (mips_arch_string, mips_tune_string)
485         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
486         (SUBTARGET_TARGET_OPTIONS): Delete.
487         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
488         (mno-flush-func, mtune=): New options.
489
490 2005-03-15  Roger Sayle  <roger@eyesopen.com>
491             Richard Henderson  <rth@redhat.com>
492
493         * real.c (c4x_single_format, c4x_extended_format): Provide values
494         for signbit_ro for c4x's single and extended floating point formats.
495         * optabs.c (expand_copysign): Use the floating point format's
496         signbit_ro for expanding via expand_copysign_absneg, and it's
497         signbit_rw field for expanding via expand_copysign_bit.
498
499 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
500
501         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
502         known_alignment_for_access_p.
503         (known_alignment_for_access_p): New.
504         (do_peeling_for_alignment): Field made int instead of bool and renamed
505         to peeling_for_alignment.
506         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
507         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
508         functionality used to be in vect_analyze_operations.
509         (vect_analyze_operations): Code to determine vectorization factor was
510         moved to vect_determine_vectorization_factor.
511         (vect_enhance_data_refs_alignment): Update to correct alignment when it
512         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
513         factor.
514         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
515         be part of vect_analyze_operations).
516         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
517         creating the guard condition, as the number of iterations may be
518         constant.
519         (slpeel_tree_peel_loop_to_edge): Use new name of
520         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
521         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
522         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
523         (vect_do_peeling_for_alignment): Use fold.
524         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
525
526         (vect_update_inits_of_dr): Renamed to
527         vect_update_init_of_dr.
528         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
529         (vectorizable_store): Fix assertion to use == instead of =.
530
531 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
532
533         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
534         call_used_regs for wCG registers.
535
536 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
537
538         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
539         for non-offsettable memory references to cope with outstanding reload
540         replacements, take 2.
541
542 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
543
544         PR target/18668
545         * config/i386/i386.h (x86_fisttp): New.
546         (TARGET_FISTTP): New macro.
547         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
548         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
549         instruction when fisttp flag is set.
550         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
551
552         * config/i386/i386.md (type attribute): Add fisttp.
553         (unit attribute): Set to i387 for fisttp type.
554         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
555         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
556         TARGET_FISTTP.
557         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
558         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
559         macros.
560         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
561         patterns for TARGET_FISTTP.  Enable patterns for
562         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
563         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
564         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
565         implement fisttp x87 insn.
566         (fix_trunc*_i387_fisttp splitters): New patterns.
567         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
568         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
569         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
570         clobber.
571         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
572         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
573         Implement using mode macros. Disable patterns for TARGET_FISTTP.
574         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
575         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
576         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
577         Disable patterns for TARGET_FISTTP.
578         (fix_trunc*_i387 splitters): Implement usign mode macros.
579         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
580         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
581         (fix_trunx*_sse peephole2s): Implement using mode macros.
582
583 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
584
585         PR rtl-optimization/20291
586         * combine.c (try_combine): If splitting fails, re-try with
587         original combined pattern, i.e. before clobber stripping.
588
589 2005-03-14  Eric Christopher  <echristo@redhat.com>
590
591         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
592         STACK_GROWS_DOWNWARD.
593
594 2005-03-14  Roger Sayle  <roger@eyesopen.com>
595
596         * real.h (struct real_format): Split the signbit field into two
597         two fields, signbit_ro and signbit_rw.
598         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
599         mips_double_format, ieee_extended_motorola_format,
600         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
601         ieee_extended_intel_128_format, ibm_extended_format,
602         mips_extended_format, ieee_quad_format, mips_quad_format,
603         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
604         i370_double_format, c4x_single_format, c4x_extended_format,
605         real_internal_format): Update initializers for new field.
606         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
607         real_format structure.
608         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
609         field of the real_format structure.
610
611 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
612
613         Fix PR tree-optimization/20458
614
615         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
616         DECL_EXTERNAL on STRUCT_FIELD tags.
617         (clear_call_clobbered): Ditto.
618         * tree-ssa-operands.c (note_addressable): Make sure the original
619         variable doesn't slip into the addressable list if we have
620         subvars.
621         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
622         tags too.
623
624 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
625
626         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
627         (-fwide-exec-charset): Likewise.
628         (-finput-charset): Likewise.
629         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
630         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
631         * c.opt (Wnormalized): New.
632
633 2005-03-14  Devang Patel  <dpatel@apple.com>
634
635         * doc/invoke.texi: Add reference to Visibility document.
636
637 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
638
639         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
640         MASK_SPLIT_ADDRESSES.
641         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
642         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
643         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
644         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
645         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
646         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
647         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
648         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
649         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
650         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
651         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
652         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
653         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
654         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
655         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
656         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
657         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
658         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
659         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
660         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
661         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
662         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
663         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
664         (TARGET_EXPLICIT_RELOCS): Delete.
665         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
666         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
667         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
668         (override_options): Set MASK_LONG64 if -mint64 is given and no
669         -mlongXX option is.  Complain about -mint64 -mlong32.
670         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
671         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
672         * config/mips/mips.opt: New file.
673
674 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
675
676         * config.gcc (extra_options): New variable for listing option files.
677         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
678         * configure.ac (extra_opt_files): New AC_SUBST variable.
679         (tm_file_list, tm_include_list): Include options.h first.
680         * configure: Regenerate.
681         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
682         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
683         (s-options-h): New rule.
684         (options.h): Depend on it.
685         (TEXI_GCCINT_FILES): Add options.texi.
686         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
687         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
688         * target.h (gcc_target): Add default_target_flags and handle_option.
689         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
690         (TARGET_HANDLE_OPTION): New macros.
691         (TARGET_INITIALIZER): Include them.
692         * opt-functions.awk (opt_args, nth_arg): New functions.
693         (switch_flags): Handle the "Target" flag.
694         (var_args): Delete.
695         (var_name): Use opt_args and nth_arg.
696         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
697         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
698         macros for the "Mask" and "InverseMask" options.
699         * opts.h (cl_var_cond): New enum.
700         (cl_option): Replace the "has_set_value" and "set_value" fields with
701         "var_cond" and "var_value".
702         (CL_TARGET): New macro.
703         (option_enabled, print_filtered_help): Declare.
704         (decode_options): Move definition.
705         * opts.c (handle_option): Search for the original option before
706         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
707         var_cond and var_value fields.  Use targetm.handle_option to handle
708         target options.
709         (decode_options): Set target_flags to targetm.default_target_flags.
710         (print_filtered_help): Make global.  Handle CL_TARGET.
711         (option_enabled): New function.
712         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
713         (display_target_options, set_target_switch, print_switch_values)
714         (default_pch_valid_p): Guard uses of target_switches with
715         #ifdef TARGET_SWITCHES.  Also...
716         (display_target_options): Display the CL_TARGET entries in cl_options.
717         (set_target_option): Don't complain about the "" option when
718         TARGET_SWITCHES is undefined.
719         (print_switch_values): Use option_enabled.
720         (default_pch_valid_p): Check cl_options[] when looking for something
721         that has changed the value of target_flags.
722         * c.opt: Remove documentation from top of file.
723         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
724         * doc/sourecebuild.texi: Refer to the new options documentation
725         instead of c.opt.  Document machine-specific .opt files.
726         * doc/tm.texi (target_flags): Say that this variable is declared
727         by options.h.
728         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
729         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
730         an alternative.
731         * doc/options.texi: New file.
732
733 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
734
735         PR middle-end/18628
736         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
737         register.
738
739 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
740
741         PR c++/20280
742         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
743         temporary variable of pointer type if an lvalues is required.
744         (gimplify_modify_expr_rhs): Request an rvalue from it.
745         (gimplify_expr): Pass fallback on.
746
747 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
748
749         * cfgbuild.c: Update comments.
750
751 2005-03-14  Roger Sayle  <roger@eyesopen.com>
752
753         PR rtl-optimization/17236
754         * optabs.c (expand_doubleword_mult): New helper function split out
755         from expand_binop.  Permute the order in which instructions are
756         emitted to minimize the number of simultaneously live registers.
757         (expand_binop): Call expand_doubleword_mult to synthesize a double
758         word multiplication.
759
760 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
761
762         * basic-block.h: Update the prototypes of cached_make_edge and
763         rtl_make_eh_edge.
764         * cfg.c (cached_make_edge): Take edge_cache representing one
765         row of the adjacency matrix of edges.
766         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
767         (make_edges): Initialize edge_cache to represent one row of
768         the adjacency matrix of edges.
769
770 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
771
772         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
773         New functions.
774         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
775         Remove unused removed_phis variable.
776         (conditional_replacement): Use build1/build2.
777         (abs_replacement): Use last_and_only_stmt and build1/build2.
778
779 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
780
781         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
782         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
783         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
784         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
785         * c-common.c (handle_novops_attribute): New function.
786         (c_common_attribute_table): Add "no vops" entry.
787         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
788         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
789         * tree-ssa-operands.c (get_call_expr_operands): Do not
790         create virtual operands for calls with ECF_NOVOPS flag.
791         * tree.h (DECL_IS_NOVOPS): New macro.
792         (struct tree_decl): Add novops_flag.
793         (ECF_NOVOPS): New constant.
794
795 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
796
797         PR target/17688
798         * config/i386/i386.c (x86_use_himode_fiop): New.
799         (x86_use_simode_fiop): Rename from x86_use_fiop.
800         * config/i386/i386.h (x86_use_himode_fiop): Declare.
801         (TARGET_USE_HIMODE_FIOP): New.
802         (x86_use_simode_fiop): Rename from x86_use_fiop.
803         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
804
805         * config/i386/i386.md (X87MODEI12): New mode macro define.
806         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
807         to implement x87 FP compare with HImode input operands.
808         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
809         Use X87MODEI12 mode macro to handle HImode input operands.
810         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
811         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
812         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
813         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
814         macro to implement x87 operators with HImode input operands.
815         (fop splitters): Use X87MODEI12 mode macro to handle HImode
816         input operands.
817
818 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
819
820         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
821         integer_zerop.
822         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
823         constants invariant.
824
825 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
826
827         * basic-block.h (BB_VISITED): Removed.
828         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
829
830 2005-03-14  Falk Hueffner  <falk@debian.org>
831
832         PR bootstrap/20424
833         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
834
835 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
836
837         * ggc-zone.c: Fix comment typos.
838
839         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
840         stringpool.c, config/mips/mips-protos.h: Update copyright.
841
842 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
843
844         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
845         throughout with its typedef, "rtx".
846         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
847         (rs6000_tls_symbol_ref_1): Remove inline keyword.
848         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
849         regs in comment to match code.
850
851 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
852
853         * except.c (check_handled): Make it static.
854         * except.h: Remove the corresponding prototype.
855
856         * function.c (get_func_frame_size): Make it static.
857         * function.h: Remove the corresponding type.
858
859         * regclass.c (reg_class_superclasses, reg_class_subclasses):
860         Make them static.
861         * hard-reg-set.h: Remove the corresponding declarations.
862
863         * tree-cfg.c (verify_stmts): Check that
864         bb_for_stmt (stmt) == bb for every PHI node and statement.
865
866 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
867
868         * config.gcc: Remove excess indentation.
869         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
870
871 2005-03-13  Roger Sayle  <roger@eyesopen.com>
872
873         PR middle-end/19331
874         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
875         * fold-const.c (fold_sign_changed_comparison): Likewise.
876         (fold_binary): Optimize comparisons against widened operands if
877         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
878
879 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
880
881         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
882         (sparc_override_options): Initialize it.
883         (sparc_struct_value_rtx): Set it on the MEM to be returned.
884
885 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
886
887         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
888         (reg_or_none500mem_operand): New predicate.
889         (zero_reg_mem_operand): New predicate.
890         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
891         to reg_or_none500mem_operand.
892         (extendsfdf2_fpr): Add MEM alternative.
893         (extenddftf2_internal): Change operand2 predicate to
894         zero_reg_mem_operand.
895
896 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
897
898         * ggc-zone.c: Rewritten.
899
900         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
901         if there are none.
902         * configure.ac: Define GGC_ZONE for --with-gc=zone.
903         * config.in: Regenerated.
904         * configure: Regenerated.
905         * gengtype.c (write_types_process_field, write_func_for_structure):
906         Pass new argument to gt_pch_note_object.
907         * ggc-common.c (struct ptr_data): Add TYPE.
908         (gt_pch_note_object): Take TYPE argument and save it.
909         (call_count): Update call to ggc_pch_count_object.
910         (call_alloc): Update call to ggc_pch_alloc_object.
911         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
912         file.
913         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
914         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
915         (ggc_alloc_zone_stat): Delete.
916         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
917         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
918         (ggc_pch_alloc_object): Update prototypes.
919         (garbage_zone): Delete.
920         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
921         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
922         pointers.
923         (tree_id_zone): New variable.
924         (ggc_alloc_cleared_zone): Remove unused.
925         (ggc_alloc_zone): Define.
926         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
927         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
928         ggc_alloc_zone_stat.
929         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
930         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
931         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
932         (make_node_stat): Likewise.  Use tree_id_zone.
933
934 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
935             Joseph S. Myers  <joseph@codesourcery.com>
936
937         * configure.ac: Check for MIPS TLS.
938         * configure: Regenerated.
939         * config/mips/mips-protos.h (enum mips_symbol_type): Add
940         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
941         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
942         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
943         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
944         (mips_classify_symbol, mips_symbolic_constant_p)
945         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
946         (mips_tls_operand_p, mips_call_tls_get_addr)
947         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
948         (mips_tls_symbol_ref_1): New functions.
949         (mips_legitimize_address, mips_legitimize_const_move): Call
950         mips_legitimize_tls_address.
951         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
952         for MIPS16.
953         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
954         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
955         (mips_char_to_class): Document V1_REG.
956         (HAVE_AS_TLS): Provide default.
957         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
958         constants.
959         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
960         !TARGET_ABICALLS.
961         (tls_get_tp_<mode>): New instruction.
962
963 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
964
965         * configure.ac: Update checks for target tools.
966         * configure: Regenerated.
967
968 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
969
970         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
971
972 2005-03-13  Roger Sayle  <roger@eyesopen.com>
973
974         * expmed.c (expand_mult): Use synthetic multiplication sequences for
975         more classes of DImode multiplication by constant.  Allow both
976         multiplication by small negative constants (by performing a
977         multiplication by a positive constant and negating the result) and
978         multiplications by large powers of two, by using a left shift.
979
980 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
981
982         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
983         of basic blocks into work_stack.
984
985         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
986         config/mips/vr.h: Update copyright.
987
988         * c-decl.c (c_init_decl_processing): Remove useless calls to
989         build_function_type.
990
991         * builtins.c (fold_trunc_transparent_mathfn,
992         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
993         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
994         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
995         fold_builtin_strcpy, fold_builtin_strncpy,
996         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
997         TREE_TYPE (exp).
998
999         * builtins.c (expand_builtin_mathfn_3): Remove local variable
1000         before_call.
1001
1002         * lambda-code.c (lambda_compute_auxillary_space): Remove local
1003         variable determinant.
1004
1005         * tree-cfg.c (group_case_labels): Remove local variable type.
1006
1007         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
1008         variable ann.
1009
1010         * tree-ssa-phiopt.c (value_replacement): Remove local variable
1011         result.
1012
1013 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
1014
1015         PR target/18251
1016         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
1017         (*movmemqi_insn): Delete.
1018         (*movmemhi): Delete.
1019
1020 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
1021
1022         * builtins.c (fold_builtin_classify): Take decomposed
1023         arguments of CALL_EXPR.
1024         (fold_builtin_1): Update a call to fold_builtin_classify.
1025
1026 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
1027
1028         PR c/20402
1029         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
1030         through into call to parser_xref_tag after parse error.
1031         (c_parser_struct_declaration): Consistently return NULL_TREE on
1032         error.
1033
1034 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
1035
1036         * tree-flow-inline.h (ref_contains_array_ref): New function.
1037         (lookup_subvars_for_var): Ditto.
1038         (get_subvars_for_var): Ditto.
1039         (var_can_have_subvars): Ditto.
1040
1041         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
1042         (struct subvar): New type.
1043
1044         * tree-dfa.c (okay_component_ref_for_subvars): New function.
1045
1046         * tree-optimize.c (init_tree_optimization_passes): Call
1047         pass_create_structure_vars.
1048
1049         * tree-ssa-alias.c: Include vec.h.
1050         (init_alias_info): Don't auto-clear call clobbered on struct-field
1051         tags.
1052         (compute_flow_insensitive_aliasing): Handle subvars.
1053         (group_aliases): Handle STRUCT_FIELD aliases.
1054         (setup_pointers_and_addressables): Ditto.
1055         Don't mark variables non-addressable if they still have
1056         addressable subvars.
1057         Also mark subvars addressable when the real variable is marked
1058         addressable.
1059         (add_pointed_to_var): Try to prune the pointed-to set by only
1060         pointing to subvars when possible.
1061         Otherwise, make sure we set addresses_needed and pt_vars to
1062         properly include subvars.
1063         (bitpos_of_field): New function.
1064         (push_fields_onto_fieldstack): Ditto.
1065         (get_or_create_used_part_for): Ditto.
1066         (create_overlap_variables_for): Ditto.
1067         (find_used_portions): Ditto.
1068         (create_structure_vars): Ditto.
1069         (pass_create_structure_vars): New structure.
1070
1071         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
1072         (get_expr_operands): Handle subvars.  Also try to turn
1073         COMPONENT_REF accesses into must-defs now that we can accurately
1074         portray it.
1075         (note_addressable): Try to only mark as addressable those subvars
1076         we know a COMPONENT_REF touches.
1077         (overlap_subvar): New function.
1078
1079         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
1080         Handle subvar storing.
1081         (vect_address_analysis): Update caller of vect_object_analysis.
1082
1083         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
1084
1085         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
1086         (STMT_VINFO_SUBVARS): New macro.
1087
1088         * common.opts: add flag_tree_salias.
1089
1090         * opts.c (decode_options): flag_tree_salias defaults to on.
1091
1092         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
1093
1094         * doc/tree-ssa.texi: Document structural alias analysis.
1095
1096 2005-03-12  Steven Bosscher  <stevenb@suse.de>
1097
1098         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
1099         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
1100         * tree-ssa-operands.c (get_expr_operands): Likewise.
1101         (get_expr_operands): Likewise for ERROR_MARK.
1102
1103 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
1104
1105         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
1106         var.
1107
1108         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
1109         removed_phis.
1110
1111         * tree-ssa-pre.c (compute_avail): Remove local variable val.
1112         (mark_operand_necessary): Remove local variable ver.
1113
1114         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
1115         variable prefix_len.
1116
1117         * value-prof.c (mod_subtract_transform): Remove local variable
1118         value.
1119
1120         * builtins.c (fold_builtin_exponent): Take decomposed
1121         arguments of CALL_EXPR.
1122         (fold_builtin_1): Update a call to fold_builtin_exponent.
1123
1124         * builtins.c (fold_builtin_logarithm): Take decomposed
1125         arguments of CALL_EXPR.
1126         (fold_builtin_1): Update a call to fold_builtin_logarithm.
1127
1128         * c-decl.c (c_init_decl_processing): Remove local variables
1129         ptr_ftype_void and ptr_ftype_ptr.
1130
1131         * gimplify.c (gimplify_expr): Remove local variables r0 and
1132         r1.
1133
1134         * reg-stack.c (move_for_stack_reg): Remove local variable
1135         push_insn.
1136         (compare_for_stack_reg): Remove local variable flags_user.
1137         (convert_regs_1): Remove local variable deleted.
1138
1139         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
1140         variable new_cond.
1141         (combine_blocks): Remove local variables exits and new_e.
1142
1143         * tree-inline.c (expand_call_inline): Remove local variable
1144         decl.
1145
1146         * tree-ssa-live.c (create_ssa_var_map,
1147         calculate_live_on_entry): Remove local variable snn.
1148
1149 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
1150
1151         * c-lex.c (c_lex_with_flags): Add parameter to call to
1152         cpp_spell_token.
1153
1154 2005-03-11  Per Bothner  <per@bothner.com>
1155
1156         * c-tree.h (struct c_declarator): New id_loc field.
1157         * c-pragma.h (c_lex_with_flags): Take position reference.
1158         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
1159         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
1160         (c_lex): Pass dummy location to c_lex_with_flags.
1161         * c-parser.c (c_lex_one_token): Set c_token's location using
1162         c_lex_with_flags, instead of input_location, which might be "ahead".
1163         (c_parser_direct_declarator): Set declarator's id_loc from
1164         c_token's id_loc.
1165         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
1166         declarator's id_loc, rather than probably-imprecise input_location.
1167         (build_id_declarator): Initialize c_declarator's id_loc field.
1168
1169 2005-03-11  Roger Sayle  <roger@eyesopen.com>
1170
1171         PR middle-end/20419
1172         * builtins.c (expand_builtin_signbit): Force the signbit's word
1173         into an integer register to avoid SUBREGs of floating point modes.
1174
1175 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
1176
1177         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
1178         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
1179         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
1180         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
1181
1182 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
1183
1184         PR rtl-optimization/20306
1185         * expr.c (emit_move_complex): Set try_int false if mode is
1186         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
1187         emit_block_move if try_int is true.
1188
1189 2005-03-11  Richard Henderson  <rth@redhat.com>
1190
1191         PR target/20415
1192         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
1193         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
1194         to match.
1195
1196 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
1197
1198         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
1199         (TARGET_FIX_VR4130): New macro.
1200         (TARGET_OPTIONS): Add -mfix-vr4130.
1201         (ISA_HAS_MACCHI): New macro.
1202         (ASM_SPEC): Add -mfix-vr4130.
1203         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
1204         (override_options): Handle mips_fix_vr4130_string.
1205         (mips_avoid_hazards): Clear all_noreorder_p
1206         if we're working around VR4130 errata and the macc alternatives
1207         are not available.
1208         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
1209         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
1210         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
1211         (MULTILIB_DEFAULTS): Remove leading "march=".
1212         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
1213         if no architecture option is given.
1214         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
1215         VR4130 multilibs.
1216         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
1217         * doc/invoke.texi: Document -mfix-vr4130.
1218
1219 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
1220
1221         * config/mips/mips.c (override_options): Only warn about -mint64
1222         deprecation if TARGET_INT64.
1223
1224 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1225
1226         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
1227         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
1228         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
1229         are non-specific regarding the nonnull parameter positions.
1230         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
1231         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
1232         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
1233         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
1234
1235         * builtins.def: Use the non-specific "nonnull" attibute lists.
1236
1237 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
1238
1239         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
1240         single_pred_edge, single_succ, single_pred): Improve comments.
1241
1242 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
1243
1244         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
1245         single_pred_edge, single_succ, single_pred): New inline functions.
1246         * bb-reorder.c (rotate_loop, find_traces_1_round,
1247         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
1248         duplicate_computed_gotos): Use the single_succ/pred functions.
1249         * cfganal.c (forwarder_block_p): Ditto.
1250         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1251         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1252         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
1253         merge_seq_blocks): Ditto.
1254         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
1255         * cfglayout.c (fixup_reorder_chain): Ditto.
1256         * cfgloop.c (mark_single_exit_loops, update_latch_info,
1257         canonicalize_loop_headers, verify_loop_structure): Ditto.
1258         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
1259         mfb_update_loops, create_preheader, force_single_succ_latches,
1260         create_loop_notes): Ditto.
1261         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1262         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
1263         commit_one_edge_insertion, purge_dead_edges,
1264         cfg_layout_can_merge_blocks_p): Ditto.
1265         * except.c (sjlj_emit_function_enter): Ditto.
1266         * flow.c (init_propagate_block_info): Ditto.
1267         * function.c (thread_prologue_and_epilogue_insns): Ditto.
1268         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
1269         insert_insn_end_bb): Ditto.
1270         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
1271         find_if_case_2): Ditto.
1272         * lambda-code.c (perfect_nestify): Ditto.
1273         * lcm.c (optimize_mode_switching): Ditto.
1274         * loop-doloop.c (doloop_modify): Ditto.
1275         * loop-init.c (loop_optimizer_init): Ditto.
1276         * loop-iv.c (simplify_using_initial_values): Ditto.
1277         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
1278         * loop-unswitch.c (unswitch_loop): Ditto.
1279         * modulo-sched.c (generate_prolog_epilog): Ditto.
1280         * predict.c (combine_predictions_for_insn, estimate_probability,
1281         tree_estimate_probability, last_basic_block_p,
1282         estimate_bb_frequencies): Ditto.
1283         * profile.c (branch_prob): Ditto.
1284         * regrename.c (copyprop_hardreg_forward): Ditto.
1285         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
1286         * tracer.c (layout_superblocks): Ditto.
1287         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
1288         cfg_remove_useless_stmts_bb, cleanup_control_flow,
1289         cleanup_control_expr_graph, disband_implicit_edges,
1290         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
1291         tree_verify_flow_info, tree_make_forwarder_block,
1292         tree_forwarder_block_p, remove_forwarder_block,
1293         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
1294         * tree-if-conv.c (tree_if_conversion): Ditto.
1295         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
1296         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
1297         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
1298         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
1299         copy_loop_headers): Ditto.
1300         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
1301         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
1302         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
1303         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
1304         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
1305         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
1306         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
1307         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
1308         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
1309         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
1310         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
1311         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
1312         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
1313         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
1314         slpeel_add_loop_guard): Ditto.
1315
1316 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
1317
1318         PR tree-optimization/15784
1319         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
1320         and -1 - A to ~A.
1321
1322         * stmt.c (expand_case): Don't change index_type.  Convert minval
1323         to the proper type.
1324
1325         PR tree-optimization/20130
1326         * fold-const.c (fold): Fold x * -1 into -x.
1327
1328 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
1329
1330         PR rtl-optimization/20331
1331         * rtlanal.c (modified_between_p): Check its address first for MEM.
1332         (modified_in_p): Likewise.
1333
1334 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
1335
1336         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
1337
1338 2005-03-10  Steven Bosscher  <stevenb@suse.de>
1339
1340         * expr.c (expand_expr_real_1): If possible, use a conditional
1341         move for expanding MIN_EXPR and MAX_EXPR.
1342         Use temp for moving around rtx-en.
1343
1344 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
1345
1346         PR rtl-opt/20412
1347         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
1348         correct mode.
1349
1350 2005-03-10  Roger Sayle  <roger@eyesopen.com>
1351
1352         * builtins.c (expand_builtin_signbit): Extend to handle floating
1353         point modes wider than the largest integer type, using the
1354         operand_subword_force function to obtain the signbit's word.
1355
1356 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
1357
1358         PR target/20322
1359         * combine.c (try_combine): If recog_for_combine added CLOBBERs
1360         to NEWI2PAT, fail to combine if they are used by NEWPAT.
1361
1362 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
1363
1364         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
1365
1366 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
1367
1368         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
1369         type void.
1370         (perform_edge_inserts): Unconditionally call
1371         free_dominator_info.
1372
1373         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
1374
1375 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
1376
1377         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
1378
1379 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
1380
1381         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
1382
1383         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
1384         gcc_unreachable.
1385         (rtl_register_value_prof_hooks,
1386         tree_value_profile_transformations,
1387         tree_register_value_prof_hooks): Likewise.
1388         * var-tracking.c (stack_adjust_offset_pre_post,
1389         variable_htab_free, variable_union, dataflow_set_different_2,
1390         count_uses, variable_was_changed, set_frame_base_location,
1391         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
1392         vt_add_function_parameters): Likewise.
1393         * varasm.c (named_section_real, named_section, make_decl_rtl,
1394         asm_emit_uninitialised, assemble_integer, decode_addr_const,
1395         const_hash_1, compare_constant, copy_constant, force_const_mem,
1396         output_constant_pool_2, output_constant_pool_1, output_constant,
1397         output_constructor, make_decl_one_only, decl_tls_model,
1398         default_no_named_section, default_elf_select_section_1,
1399         default_unique_section_1): Likewise.
1400         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
1401         * vmsdbgout.c (addr_const_to_string): Likewise.
1402
1403         PR c++/20375
1404         * function.c (struct assign_parm_data_one): Remove last_named
1405         field.
1406         (assign_parm_find_data_types): Don't determine last_named.
1407         Reorder named_parm determination.
1408         (assign_parms): Only setup varargs on the last non-varadic
1409         parameter.
1410
1411 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
1412
1413         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
1414         sda base address on medium model.
1415
1416 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
1417
1418         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
1419         * cfgloop.c (flow_loop_nodes_find): Export.
1420         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
1421         Declare.
1422         * cfgloopmanip.c (fix_loop_structure): New function.
1423         * predict.c (predict_loops): Clean up the loops information.
1424         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
1425         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
1426         loop structure.
1427         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
1428         (rewrite_into_loop_closed_ssa): Declaration changed.
1429         * tree-loop-linear.c (linear_transform_loops): Add argument to
1430         rewrite_into_loop_closed_ssa call.
1431         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1432         * tree-ssa-loop-im.c (move_computations): Ditto.
1433         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
1434         * tree-vectorizer.c (vectorize_loops): Ditto.
1435         * tree-optimize.c: Include cfgloop.h.
1436         (execute_todo): Choose whether to call cleanup_tree_cfg or
1437         cleanup_tree_cfg_loop.
1438         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
1439         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
1440         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
1441         cleanup_tree_cfg_loop call.
1442         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
1443         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
1444         work on part of cfg.
1445
1446 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
1447
1448         PR inline-asm/20314
1449         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
1450         with multiple alternatives.
1451
1452         * stmt.c (parse_output_constraint): Fix a typo.
1453
1454 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
1455
1456         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
1457         assembly directive instead of deprecated "no-generics".
1458
1459 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
1460
1461         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
1462         for non-offsettable memory references to cope with outstanding reload
1463         replacements.
1464         * config/s390/s390.md ("reload_outti"): Call find_replacement to
1465         avoid losing outstanding address reloads.
1466         ("reload_outdi", "reload_outdf"): Likewise.
1467
1468 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1469
1470         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
1471         code.  Add more cbrt transformations.
1472
1473 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1474
1475         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
1476
1477 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1478
1479         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
1480         NULL_TREE when a given tree is not simplified.
1481         (fold): Return the original tree when any of the functions
1482         mentioned above NULL_TREE.
1483
1484         * fold-const.c (fold_unary, fold_binary): Take decomposed
1485         arguments, code, type, op0, and op1 in case of fold_binary.
1486         (fold): Update calls to fold_unary and fold_binary.
1487
1488 2005-03-09  Roger Sayle  <roger@eyesopen.com>
1489
1490         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
1491         a fndecl and an arglist instead of a CALL_EXPR, exp.
1492
1493 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1494
1495         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
1496
1497         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
1498
1499         * expr.c (expand_assignment): Remove orig_to_rtx.
1500
1501         * fold-const.c (int_const_binop): Remove no_overflow.
1502
1503         * ifcvt.c (noce_emit_move_insn): Remove inmode.
1504
1505         * loop-iv.c (get_biv_step_1): Remove lhs.
1506
1507         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
1508
1509         * real.c (real_nan): Remove neg.
1510
1511         * function.c (thread_prologue_and_epilogue_insns): Remove i
1512         and newinsn.
1513
1514         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
1515         tb.
1516
1517         * tree-eh.c (tree_could_trap_p): Remove idx.
1518
1519         * tree-into-ssa.c (ann): Remove ann.
1520
1521         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
1522
1523         * tree-sra.c (decide_block_copy): Remove inst_count.
1524
1525         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
1526
1527         * tree-ssa-loop-im.c (lhs): Remove.
1528
1529         * cfgbuild.c (state, STATE, SET_STATE,
1530         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
1531         make_edges.
1532         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
1533         (find_basic_blocks): Set the state of each basic block to
1534         BLOCK_NEW.
1535
1536 2005-03-08  Jeff Law  <law@redhat.com>
1537
1538         * tree-cfg.c (cleanup_control_flow): If removal of a computed
1539         goto results in the removal of edges in the CFG, then we need
1540         to recompute dominators.
1541
1542 2005-03-09  Ben Elliston  <bje@au.ibm.com>
1543
1544         * c-common.c (c_do_switch_warnings): Comment fix.
1545
1546 2005-03-08  Julian Brown  <julian@codesourcery.com>
1547
1548         * Patch from 2005-03-08 reverted for causing regressions and
1549         ppc-darwin bootstrap failure.
1550
1551 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
1552
1553         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
1554         Define the real function for ppc-darwin.
1555         * c-typeck.c (convert_arguments): Check for target-specific
1556         invalid argument call to unprototyped function.
1557         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
1558         New Macro.
1559         * target.h (invalid_arg_for_unprototyped_fn): New field
1560         in struct calls.
1561         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
1562         default target hook.
1563         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
1564         Declare.
1565
1566 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1567
1568         * c-typeck.c (constructor_stack, constructor_range_stack,
1569         initializer_stack): Make them static.
1570
1571         * cfg.c (rbi_pool): Make it static.
1572
1573         * gimple-low.c (lower_stmt_body): Make it static.
1574         * tree-flow.h: Remove the corresponding prototype.  Don't
1575         declare lower_data.
1576
1577         * sched-deps.c (cache_size): Make it static.
1578
1579         * stor-layout.c (lang_adjust_rli): Make it static.
1580
1581 2005-03-08  Julian Brown  <julian@codesourcery.com>
1582
1583         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
1584         from being used for symbols with vague linkage when
1585         HAVE_GAS_COMDAT_GROUP is true.
1586
1587 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
1588
1589         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
1590         nlabel == JUMP_LABEL (jump).
1591
1592 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1593
1594         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
1595         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
1596         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
1597         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
1598
1599 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
1600
1601         PR c/14411
1602         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
1603         * c-common.c (handle_returns_twice): New function.
1604         (c_common_attribute_table): Declare eturns_twice' attribute.
1605         * doc/extend.texi: Document eturns_twice' attribute.
1606         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
1607         (struct tree_decl): Add returns_twice_flag.
1608
1609 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1610
1611         * tree-ssa-phiopt.c: Fix a comment typo.
1612
1613         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
1614         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
1615         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
1616         copyright.
1617
1618 2005-03-08  Richard Henderson  <rth@redhat.com>
1619
1620         * config/alpha/alpha.c (code_for_builtin): Replace special-case
1621         builtin codes with ctzdi2, clzdi2, popcountdi2.
1622         (struct alpha_builtin_def): Add is_const.
1623         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
1624         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
1625         (alpha_init_builtins): Init them.  Set nothrow and const attributes
1626         on builtins.
1627         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
1628         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
1629         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
1630         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
1631         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
1632         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
1633         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
1634         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
1635         (TARGET_FOLD_BUILTIN): New.
1636         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
1637         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
1638         (ffsdi2): Use ctz.
1639         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
1640
1641 2005-03-08  Ira Rosen  <irar@il.ibm.com>
1642
1643         PR tree-optimization/20122
1644         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
1645         condition of access function instead of base.
1646
1647 2005-03-07  Jeff Law  <law@redhat.com>
1648             Steven Bosscher  <stevenb@suse.de>
1649
1650         * tree-cfg.c (find_taken_edge_computed_goto): New function.
1651         (find_taken_edge): Call find_taken_edge_computed_goto as
1652         appropriate.  Allow any gimple invariant rather than just
1653         INTEGER_CST for VAL.
1654         (cleanup_control_flow): Cleanup a computed goto which has turned
1655         into a simple goto.
1656         (tree_merge_blocks): If block B has any forced labels, move
1657         them to the start of block A.
1658         * tree-ssa-dom.c (thread_across_edge): Allow threading across
1659         computed gotos as well.
1660         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
1661         removal of unnecessary computed gotos too.
1662         (lookup_redirection_data): Fix type of INSERT argument.  Callers
1663         updated.
1664
1665 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1666
1667         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
1668         Remove trailing spaces.
1669
1670         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
1671         unshare_all_trees): Make them static.
1672         * tree-gimple.h: Remove the corresponding prototypes.
1673
1674         * diagnostic.h: Remove unused prototype
1675         debug_output_buffer.
1676         * modulo-sched.c: Remove unused prototype
1677         set_row_column_for_ps.
1678
1679         * tree-ssa-phiopt.c (tree_ssa_phiopt,
1680         replace_phi_edge_with_variable): Remove unused variable i.
1681
1682 2005-03-07  Per Bothner  <per@bothner.com>
1683
1684         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
1685
1686 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
1687
1688         PR tree-opt/17671
1689         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
1690         bbs on the COND_EXPR instead of the PHI_NODEs.
1691         (candidate_bb_for_phi_optimization): Remove.
1692         (replace_phi_with_stmt): Rename to ...
1693         (replace_phi_edge_with_variable): this and change so that we
1694         replace the phi argument instead of removing the PHI.
1695         (conditional_replacement): Change so we deal with PHI with more
1696         than two arguments.
1697         (value_replacement): Likewise.
1698         (abs_replacement): Likewise.
1699
1700 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
1701
1702         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
1703         output_e500_flip_gt_bit.
1704
1705         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
1706         as bit 31.
1707         (rs6000_generate_compare): Fix logic to look at the correct bits.
1708         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
1709         Look at GT bit.
1710         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
1711         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
1712         gen_move_from_CR_gt_bit.
1713
1714         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
1715         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
1716         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
1717
1718         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
1719         (E500_CR_IOR_COMPARE): New constant.
1720
1721 2005-03-08  Earl Chew <earl_chew@agilent.com>
1722             David Billinghurst <David.Billinghurst@riotinto.com>
1723
1724         * config/i386/host-cygwin.c: New file to support precompiled
1725         headers on cygwin
1726         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
1727         * config.host: Use above files for cygwin host.
1728
1729 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
1730
1731         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
1732         ordering ops from earlier change.
1733
1734 2005-03-07  Per Bothner  <per@bothner.com>
1735
1736         Various fixes to allow us to again build if --enable-mapped-location:
1737         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
1738         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
1739         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
1740         local variable loc. Change logic appropriately.
1741         * tree-vect-transform.c (vect_finish_stmt_generation): Use
1742         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
1743         * c-parser.c (c_parser_for_statement): Initialize loc variable.
1744         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
1745         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
1746
1747 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
1748
1749         PR rtl-optimization/19683
1750         * reload1.c (choose_reload_regs): Pass the number of bits, not the
1751         number of bytes, to smallest_int_for_mode.  Fix arguments to
1752         REG_CANNOT_CHANGE_MODE_P.
1753
1754 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1755
1756         * reorg.c (relax_delay_slots): Check that the jump is
1757         conditional before trying to invert it.
1758
1759 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1760
1761         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
1762         Make them static.
1763
1764         * calls (stack_arg_under_construction): Make it static.
1765
1766         * flow.c (regs_live_at_setjmp): Make it static.
1767         * flow.h: Remove the corresponding prototype.
1768
1769         * reload1.c (reload_startobj, reload_firstobj,
1770         something_needs_operands_changed, reload_inherited,
1771         reload_inheritance_insn, reload_override_in,
1772         reload_spill_index): Make them static.
1773
1774         * recog.c (verify_changes): Make it static.
1775         * recog.h: Remove the corresponding prototype.
1776
1777         * cfgbuild.c (find_sub_basic_blocks): Remove.
1778         * basic-block.h: Remove the corresponding prototype.
1779         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
1780         in comments.
1781         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
1782
1783         * tree-ssa-operands.c (check_build_stmt): Remove.
1784
1785         * stor-layout.c (set_alignment): Remove.
1786         * tree.h: Remove the corresponding prototype.
1787
1788         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
1789
1790         * tree-ssa-dce.c (control_dependence_map,
1791         visited_control_parents): Make them static.
1792
1793         * cfghooks.c (verify_flow_info): Remove local variable
1794         num_bb_notes.
1795
1796         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
1797         last_bb_seen.
1798
1799         * loop-unswitch.c (unswitch_loop): Remove local variable src.
1800
1801 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
1802
1803         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
1804
1805 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
1806
1807         * config/ia64/hpux.h (LINK_SPEC): Add -z.
1808         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
1809         PARALLEL for an empty structure.
1810
1811 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1812
1813         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
1814
1815         * fold-const.c (fold_binary): Unroll the very first "for"
1816         loop.
1817
1818 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
1819
1820         * config/rs6000/predicates.md (branch_comparison_operator): Remove
1821         redundant match_code test.
1822         (scc_comparison_operator): Swap match_operand and match_code
1823         tests.
1824         (branch_positive_comparison_operator): Same.
1825         (trap_comparison_operator): Use comparison_operator and swap with
1826         match_code test.
1827
1828 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1829
1830         PR target/20288
1831         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
1832         (out_movhi_r_mr): Read low byte of volatile MEM first.
1833         (out_movhi_mr_r): Write high byte of volatile MEM first.
1834
1835 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1836
1837         * cselib.c (reg_values, reg_values_size): Make them static.
1838
1839         * cse.c (cse_reg_info_table): Make it static.
1840
1841         * fold-const.c (fold_unary): Use build1 instead of copy_node.
1842
1843 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
1844
1845         * cse.c (find_best_addr): Use canon_for_address.
1846
1847 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1848
1849         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
1850         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
1851         SUBREG and MEM, respectively.
1852
1853         * fold-const.c (fold_binary): Use code instead of t.
1854
1855         * fold-const.c (optimize_minmax_comparison): Take decomposed
1856         arguments code, type, op0, and op1 instead of t.
1857         (fold_binary): Update a call to optimize_minmax_comparison.
1858
1859         * fold-const.c (fold_range_test): Take decomposed arguments
1860         code, type, op0, and op1 instead of t.
1861         (fold_binary): Update a call to fold_range_test.
1862
1863         * fold-const.c (fold_binary_op_with_conditional_arg): Take
1864         decomposed arguments code, type, op0, and op1 instead of t.
1865         (fold_binary): Update a call to fold_range_test.
1866
1867 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1868
1869         * fold-const.c (fold_binary): Avoid directly using the original
1870         expression t as much as possible.
1871
1872 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1873
1874         * c-semantics.c (build_stmt): Use TYPE_P instead of
1875         IS_NON_TYPE_CODE_CLASS.
1876         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
1877         (NON_TYPE_CHECK): Use TYPE_P instead of
1878         IS_NON_TYPE_CODE_CLASS.
1879
1880         * fold-const.c (fold): Remove handling of binary expressions.
1881
1882 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
1883
1884         * doc/c-tree.texi: Wrap comments in @r{}.
1885         * doc/cpp.texi: Likewise.
1886         * doc/cppinternals.texi: Likewise.
1887         * doc/extend.texi: Likewise.
1888         * doc/md.texi: Likewise.
1889         * doc/objc.texi: Likewise.
1890         * doc/sourcebuild.texi: Likewise.
1891         * doc/tm.texi: Likewise.
1892         * doc/tree-ssa.texi
1893
1894 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1895
1896         * predict.c (apply_return_prediction): Standardize PHI chain
1897         walking.
1898         * tree-ssa.c (ssa_redirect_edge): Likewise.
1899
1900         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
1901         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
1902         Update copyright.
1903
1904         * tree-phinodes.c (remove_phi_node): Drop the last argument.
1905         * tree-flow.h: Adjust the prototype for remove_phi_node.
1906         * lambda-code.c (perfect_nestify): Adjust a call to
1907         remove_phi_node.
1908         * tree-cfg.c
1909         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
1910         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
1911         Likewise.
1912         * tree-ssa-dce.c (remove_dead_phis): Likewise.
1913         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
1914         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1915         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
1916
1917         * combine.c (simplify_and_const_int): Use gen_int_mode instead
1918         of GEN_INT (trunc_int_for_mode (...)).
1919         * loop-iv.c (iv_number_of_iterations): Likewise.
1920         * postreload.c (reload_cse_move2add): Likewise.
1921         * simplify-rtx.c (simplify_const_unary_operation,
1922         simplify_const_binary_operation): Likewise.
1923         * stor-layout.c (get_mode_bounds): Likewise.
1924
1925         * fold-const.c (fold_binary): New.
1926         (fold): Call fold_binary on binary expressions.
1927
1928 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
1929
1930         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
1931         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
1932         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
1933         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
1934         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
1935
1936 2005-03-04  Devang Patel  <dpatel@apple.com>
1937
1938         PR tree-optimization/18815
1939         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
1940         loops with zero exit edges.
1941
1942 2005-03-04  Devang Patel  <dpatel@apple.com>
1943
1944         * doc/invoke.texi: Remove reference to webpage that does not exist.
1945
1946 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
1947             Joseph S. Myers  <joseph@codesourcery.com>
1948
1949         PR c++/19797
1950         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
1951         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
1952         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
1953         * pa.c (get_plabel): Change argument to symbol_ref.  Call
1954         maybe_get_identifier instead of get_identifier.
1955         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
1956         (struct deferred_plabel): Replace name field with symbol field.
1957         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
1958         ASM_OUTPUT_EXTERNAL_REAL is defined.
1959         (output_global_address): Use output_addr_const for output of all
1960         symbol_refs.
1961         (output_deferred_plabels): Use symbol_ref instead of name for address
1962         output.
1963         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
1964         ASM_OUTPUT_SYMBOL_REF): New macros.
1965         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
1966         comment.
1967         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
1968         label.
1969
1970 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
1971
1972         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
1973         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
1974
1975 2005-03-04  Jeff Law  <law@redhat.com>
1976
1977         * basic-block.h (rediscover_loops_after_threading): Declare.
1978         * tree-ssa-dom.c: Include cfgloop.h.
1979         (tree_ssa_dominator_optimize): Discover loops and some basic
1980         properties.  Remove forwarder blocks recreated by loop header
1981         canonicalization.  Also mark backedges in the CFG.
1982         * tree-ssa-threadupdate.c: Include cfgloop.h
1983         (rediscover_loops_after_threading): Define.
1984         (struct local_info): New field, JUMP_THREADED.
1985         (prune_undesirable_thread_requests): New function.
1986         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
1987         then record that fact for the callers of redirct_edges.
1988         (thread_block): If BB has incoming backedges, then call
1989         prune_undesirable_thraed_requests.    Note when we are
1990         going to have to rediscover loop information.  Return a
1991         boolean indicating if any jumps were threaded.
1992         (thread_through_all_blocks): Bubble up boolean indicating
1993         if any jumps were threaded.
1994         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
1995         (tree-ssa-threadupdate.o): Similarly.
1996
1997 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1998
1999         * fold-const.c (fold_ternary): Unroll the "for" loop to
2000         extract operands.
2001
2002 2005-03-04  Andrew Haley  <aph@redhat.com>
2003
2004         * unwind-dw2-fde-glibc.c (struct
2005         unw_eh_callback_data.check_cache): New field.
2006         (frame_hdr_cache): New.
2007         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
2008         Cache frame header info.
2009
2010 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
2011
2012         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2013         (print_c_condition): Declare.
2014         * read-rtl.c (ptr_loc): New structure.
2015         (ptr_locs, ptr_loc_obstack, joined_conditions)
2016         (joined_conditions_obstack): New variables.
2017         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
2018         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2019         (join_c_conditions, print_c_condition): New functions.
2020         (apply_macro_to_string): Associate the new string with the same
2021         source location as the old one.
2022         (add_condition_to_string): Use join_c_conditions.
2023         (read_string): Use set_rtx_ptr_loc to record a filename and line
2024         number for the string.
2025         (read_rtx): Initialize the new variables above.
2026         * genattrtab.c (write_test_expr, write_attr_value): Use
2027         print_c_condition.
2028         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
2029         comment above the GCC_VERSION check.
2030         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
2031         Inline the definition of MAYBE_EVAL.
2032         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
2033         * genoutput.c (process_template): Likewise.
2034         * genpreds.c (write_predicate_subfunction): Likewise.
2035         (write_predicate_expr): Use print_c_condition.
2036         * genrecog.c (write_cond): Likewise.
2037         * gensupport.c (process_rtx): Use join_c_conditions to join the
2038         conditions of a define_insn_and_split.  Record a source location
2039         for the string after the "&&".
2040         (alter_test_for_insn): Use join_c_conditions.
2041
2042 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
2043
2044         Revert for now:
2045         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
2046         PR tree-optimization/15784
2047         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
2048         and -1 - A to ~A.
2049
2050 2005-03-04  Ben Elliston  <bje@au.ibm.com>
2051
2052         * gcc.c (option_map): Add --coverage.
2053         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
2054         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
2055         * config/darwin.h: Pass -lgcov for `coverage'.
2056         * doc/invoke.texi (Debugging Options): Document --coverage.
2057
2058 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2059
2060         * gcse.c (bypass_block): Use find_edge wherever possible.
2061
2062 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
2063
2064         Fix PR debug/20253
2065
2066         * c-opts.c (c_common_parse_file): Call start_source_file
2067         and end_source_file at the approriate times.
2068
2069         * dwarf2out.c (dwarf2out_finish): Don't auto-end
2070         the main file, it will be done for us now.
2071
2072 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2073
2074         * fold-const.c (fold_ternary): New.
2075         (fold): Call fold_ternary on ternary expressions.  Remove
2076         handling of ternary expressions.
2077
2078 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
2079
2080         PR tree-optimization/15784
2081         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
2082         and -1 - A to ~A.
2083
2084 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
2085
2086         * config/rs6000/predicates.md (branch_comparison_operator):
2087         Convert from C block to conditional format.
2088
2089 2005-03-03  Jan Hubicka  <jh@suse.cz>
2090
2091         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
2092         and non-constant public variables.
2093
2094 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2095
2096         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
2097         with LABEL_EXPR.
2098
2099         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
2100         EDGE_I.
2101
2102         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
2103         calls to release_ssa_name and release_phi_node.
2104
2105         * fold-const.c (fold): Remove handling of unary expressions.
2106
2107         * fold-const.c (fold_unary): Avoid directly using the original
2108         expression t as much as possible.
2109
2110 2005-03-03  Roger Sayle  <roger@eyesopen.com>
2111             Andrew Pinski  <pinskia@physics.uc.edu>
2112
2113         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
2114         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
2115
2116 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
2117
2118         Describe special registers SRP and MOF as allocatable registers.
2119         * config/cris/cris.c (cris_md_asm_clobbers): New function.
2120         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
2121         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
2122         TARGET_HAS_MUL_INSNS.
2123         (cris_print_operand) <case 'd'>: New case.
2124         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
2125         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
2126         define.
2127         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
2128         (REG_ALLOC_ORDER): Update for MOF.
2129         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
2130         SPECIAL_REGS.
2131         (GENERAL_REGS): No longer a define of ALL_REGS.
2132         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
2133         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
2134         Adjust accordingly.
2135         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
2136         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
2137         (SECONDARY_RELOAD_CLASS): Define.
2138         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
2139         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
2140         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
2141         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
2142         (REGISTER_MOVE_COST): Define.
2143         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
2144         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
2145         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
2146         (CRIS_MOF_REGNUM): New define_constants.
2147         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
2148         special registers.
2149         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
2150         New patterns.
2151         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
2152         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
2153         Adjust for MOF being properly described as a register.
2154         (indir_to_reg_split): Name this split.  Conditionalize on the
2155         destination register being a general register.
2156         (movei): Conditionalize on on operands 0 and 1 having the same
2157         register class.
2158
2159 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
2160
2161         PR target/20277
2162         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
2163         -mcpu to override any other explicitly given flags.
2164
2165 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
2166
2167         * recog.c (verify_changes, confirm_change_group): New functions,
2168         broken out of apply_change_group.
2169         (apply_change_group): Use them.
2170         * recog.h (verify_change, confirm_change_group): Declare.
2171         * rtl.h (redirect_jump_2): Declare.
2172         * jump.c (redirect_exp, invert_exp): Delete.
2173         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
2174         (redirect_jump_2): New function, broken out of redirect_jump.
2175         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
2176         (invert_jump): Use invert_jump_1 and redirect_jump_2.
2177         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
2178
2179 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
2180
2181         * varasm.c (named_section): Use xstrdup rather than doing it by
2182         hand.
2183
2184         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
2185
2186 2005-03-02  Devang Patel  <dpatel@apple.com>
2187
2188         Undo PR tree-optimization/18815 fix.
2189
2190 2005-03-02  Devang Patel  <dpatel@apple.com>
2191
2192         PR tree-optimization/18815
2193         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
2194         loops with zero exit edges.
2195
2196 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2197
2198         * cfg.c (connect_src, connect_dest, disconnect_src,
2199         disconnct_dest): New.
2200         (unchecked_make_edge, remove_edge, redirect_edge_succ,
2201         redirect_edge_pred): Use the new functions.
2202
2203         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
2204         free_dominance_info only when needed.
2205
2206 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
2207
2208         PR target/20276
2209         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
2210         (reg_or_sub_cint64_operand): Same.
2211
2212 2005-03-02  Jeff Law  <law@redhat.com>
2213
2214         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
2215         CFG_ALTERED in the main DOM iteration loop.
2216
2217 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
2218
2219         PR c++/19916
2220         * varasm.c (initializer_constant_valid_p): Allow conversions
2221         between OFFSET_TYPEs.  Tidy.
2222
2223 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
2224
2225         * config/cris/cris.md ("return"): Remove epilogue delay list
2226         sanity check.
2227
2228 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
2229
2230         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
2231         for Thumb.
2232         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
2233
2234 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2235
2236         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
2237         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
2238         config/m68k/m68k.c, config/mips/mips.h,
2239         config/rs6000/rs6000-protos.h, doc/contrib.texi,
2240         doc/include/gcc-common.texi: Update copyright.
2241
2242         PR middle-end/18029 and PR middle-end/18030
2243         * expr.c (optimize_bitfield_assignment_op): Add a special case
2244         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
2245
2246         * fold-const.c (fold_unary): New.
2247         (fold): Call fold_unary on unary expressions.
2248
2249 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
2250
2251         * cgraph.h (struct cgraph_edge): Add prev_caller and
2252         prev_callee fields.
2253         (cgraph_node_remove_callees): Export.
2254         * cgraph.c (cgraph_create_edge): Initialize prev_caller
2255         and prev_callee.
2256         (cgraph_edge_remove_callee): New function.
2257         (cgraph_edge_remove_caller): Likewise.
2258         (cgraph_remove_edge): Use.
2259         (cgraph_redirect_edge_callee): Likewise.
2260         (cgraph_node_remove_callees): New function.
2261         (cgraph_node_remove_callers): Likewise.
2262         (cgraph_remove_node): Use.
2263         * tree-optimize.c (tree_rest_of_compilation): Use
2264         cgraph_node_remove_callees instead of manual loop.
2265         * cgraphunit.c (cgraph_finalize_function): Likewise.
2266         (cgraph_expand_function): Likewise.
2267         (cgraph_remove_unreachable_nodes): Likewise.
2268
2269 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
2270
2271         PR c/8927
2272         * c-tree.h (undeclared_variable, build_external_ref): Add extra
2273         argument.
2274         * c-decl.c (undeclared_variable): Take location as argument.
2275         * c-typeck.c (build_external_ref): Likewise.
2276         * c-parser.c (c_parser_postfix_expression): Pass location of
2277         identifier to build_external_ref.
2278
2279 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
2280
2281         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
2282         CCEQ mode for branch_positive_comparison_operator test.
2283         * config/rs6000/predicates (branch_comparison_operator): Revert to
2284         define_predicate.
2285         (scc_comparison_operator): Same.
2286         (branch_positive_comparison_operator): Same.
2287
2288 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
2289
2290         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
2291         (cris_delay_slots_for_epilogue): Remove.
2292         (save_last): Move into cris_target_asm_function_epilogue.
2293         (cris_target_asm_function_epilogue): Remove tests for file being
2294         NULL.
2295         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
2296         (cris_delay_slots_for_epilogue): Remove prototypes.
2297         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
2298         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
2299
2300 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
2301
2302         * config/rs6000/predicates.md (branch_comparison_operator): Change
2303         to define_special_predicate.
2304         (scc_comparison_operator): Same.
2305         (branch_positive_comparison_operator): Same.
2306
2307 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
2308
2309         * Makefile.in (tree-ssa-sink.o): New.
2310         (OBJS-common): Add tree-ssa-sink.o.
2311         * common.opt: Add -ftree-sink
2312         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
2313         * timevar.def (TV_TREE_SINK): new timevar.
2314         * tree-flow.h (is_hidden_global_store): Prototype.
2315         * tree-optimize.c (init_tree_optimization_passes): Add
2316         pass_sink_code.
2317         * tree-pass.h (pass_sink_code): New.
2318         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
2319         for non-obvious global store store to is_hidden_global_store, and
2320         call that new function.
2321         * tree-ssa-sink.c: New file.
2322         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
2323         * doc/passes.texi: Document forward store motion.
2324         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
2325         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
2326         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
2327         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
2328
2329 2005-03-01  Per Bothner  <per@bothner.com>
2330
2331         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
2332         and we have a non-zero column-number, add it to the message.
2333         Also factor out the diagnostic_kind_text.
2334
2335 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
2336
2337         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2338         flow_loop_pre_header_scan, flow_loop_pre_header_find,
2339         flow_loop_scan): Removed.
2340         (flow_loop_dump): Do not dump removed fields.
2341         (flow_loop_free): Do not free removed fields.
2342         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
2343         (loop_exit_edge_p): New function.
2344         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
2345         num_pre_header_edges, entry_edges, num_entries, exit_edges,
2346         num_exits, exits_doms.
2347         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
2348         LOOP_EDGES, LOOP_ALL): Removed.
2349         (flow_loop_scan): Declaration removed.
2350         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
2351         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
2352         flow_loops_find.
2353         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
2354         (if_convert): Call flow_loops_find and flow_loops_free
2355         when calling mark_loop_exit_edges.
2356         * cfgloopanal.c (mark_loop_exit_edges): Moved from
2357         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
2358         free_dominance_info calls.
2359         * loop-init.c (flow_loops_find): Ditto.
2360         * passes.c (rest_of_handle_branch_prob): Ditto.
2361         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
2362         * loop-unroll.c (analyze_insns_in_loop): Do not use
2363         EDGE_LOOP_EXIT.
2364         * predict.c (predict_loops): Do not call flow_loop_scan.
2365         Use get_loop_exit_edges.
2366         (tree_estimate_probability): Do not pass flags to flow_loops_find.
2367         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
2368         Do not use EDGE_LOOP_EXIT.
2369         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
2370         to bb_with_exit_edge_p.
2371         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
2372         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
2373         to bb_with_exit_edge_p.
2374         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
2375         EDGE_LOOP_EXIT.
2376         * tree-loop-linear.c (linear_transform_loops): Do not call
2377         flow_loop_scan.  Use loop->single_exit.
2378         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
2379         (vect_analyze_loop_form): Do not call flow_loop_scan.
2380         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
2381         loop->single_exit.
2382         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
2383         loop->single_exit.
2384         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
2385         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
2386         slpeel_tree_duplicate_loop_to_edge_cfg,
2387         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
2388         Use loop_preheader_edge and loop->single_exit.  Do not call
2389         flow_loop_scan.
2390
2391 2005-03-01  Nick Clifton  <nickc@redhat.com>
2392
2393         * config/arm/arm.c (thumb_find_work_register): Check all of the
2394         argument registers to see if they are free, and a couple of
2395         special cases where the last argument register but can be proved
2396         to be available during the function's prologue.
2397         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
2398         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
2399         thumb_unexpanded_epilogue): Use unsigned long as the type for the
2400         register bit-mask.
2401         (thumb_compute_save_reg_mask): Likewise.  Also use
2402         thumb_find_work_register() to ensure that there is agreement about
2403         which work register is going to be used in the prologue.
2404         (thumb_output_function_prologue): Use unsigned long as the type
2405         for the register bit-mask.  Also delay pushing the link register if
2406         other high registers are going to be pushed.
2407         (thumb_compute_save_reg_mask, emit_multi_reg_push,
2408         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
2409         redundant prototypes.
2410
2411 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
2412
2413         PR target/19819
2414         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
2415         and after reload in REG+REG indexed addresses without REG_POINTER
2416         set in the base and not set in the index.
2417
2418 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2419
2420         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
2421         Don't undefine here.
2422         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
2423         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
2424         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
2425         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
2426         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
2427         Delete.
2428         * config.gcc (sh*-*-linux*): Use config/linux.h.
2429
2430 2005-02-28  Dale Johannesen  <dalej@apple.com>
2431             Stan Shebs  <shebs@apple.com>
2432
2433         Rewrite of 64-bit Darwin structure-by-value pass/return.
2434         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
2435         intoffset, use_stack, named.
2436         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
2437         (rs6000_darwin64_record_arg_advance_flush):  New.
2438         (rs6000_darwin64_record_arg_advance_recurse): New.
2439         (rs6000_darwin64_record_arg_flush):  New.
2440         (rs6000_darwin64_record_arg_recurse):  New.
2441         (rs6000_darwin64_record_arg):  New.
2442         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
2443         (function_arg_boundary):  Handle 128-bit aligned structs.
2444         (function_arg_advance):  Rewrite darwin64 struct handling.
2445         (function_arg):  Call rs6000_darwin64_record_arg.
2446         (function_arg_partial_nregs):  Handle darwin64 structs.
2447         (rs6000_darwin64_function_value):  Remove.
2448         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
2449
2450 2005-02-28  Roger Sayle  <roger@eyesopen.com>
2451
2452         PR tree-optimization/20216
2453         * tree-chrec.c (tree_fold_factorial): Delete.
2454         (tree_fold_binomial): Change argument list to take a return type
2455         and change the type of K to unsigned int.  Rewrite to avoid explicit
2456         evaluation of factorials, and (recursively) calling fold to perform
2457         compile-time arithmetic.  Return NULL on (internal) overflow.
2458         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
2459         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
2460         if any intermediate calculation overflows.
2461         (chrec_apply): Update call to chrec_evaluate.
2462
2463 2005-02-28  James E Wilson  <wilson@specifixinc.com>
2464
2465         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
2466
2467 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
2468
2469         PR c/20245
2470         * c-parser.c (c_parser_compound_statement): Return error_mark_node
2471         instead of NULL_TREE on error.
2472
2473 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
2474
2475         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
2476         (EASY_VECTOR_15_ADD_SELF): Remove.
2477         (num_insns_constant_wide): Not static.
2478         (validate_condition_mode): Not static.
2479         (toc_relative_expr_p): Not static.
2480         (legitimate_indirect_address_p): Not static.
2481         (macho_lo_sum_memory_operand): Not static.
2482         (invalid_e500_subreg): Not static.
2483         (easy_vector_same): Not static.
2484         (easy_vector_splat_const): Not static.
2485         (RS6000_SYMBOL_REF_TLS_P): Remove.
2486         (any_operand): Delete.
2487         (any_parallel_operand): Delete.
2488         (count_register_operand): Delete.
2489         (altivec_register_operand): Delete.
2490         (xer_operand): Delete.
2491         (s8bit_cint_operand): Delete.
2492         (short_cint_operand): Delete.
2493         (u_short_cint_operand): Delete.
2494         (non_short_cint_operand): Delete.
2495         (exact_log2_cint_operand): Delete.
2496         (gpc_reg_operand): Delete.
2497         (cc_reg_operand): Delete.
2498         (cc_reg_not_cr0_operand): Delete.
2499         (reg_or_short_operand): Delete.
2500         (reg_or_neg_short_operand): Delete.
2501         (reg_or_aligned_short_operand): Delete.
2502         (reg_or_u_short_operand): Delete.
2503         (reg_or_cint_operand): Delete.
2504         (reg_or_arith_cint_operand): Delete.
2505         (reg_or_add_cint64_operand): Delete.
2506         (reg_or_sub_cint64_operand): Delete.
2507         (reg_or_logical_cint_operand): Delete.
2508         (got_operand): Delete.
2509         (got_no_const_operand): Delete.
2510         (easy_fp_constant): Delete.
2511         (easy_vector_constant): Delete.
2512         (easy_vector_constant_add_self): Delete.
2513         (zero_constant): Delete.
2514         (zero_fp_constant): Delete.
2515         (volatile_mem_operand): Delete.
2516         (offsettable_mem_operand): Delete.
2517         (mem_or_easy_const_operand): Delete.
2518         (add_operand): Delete.
2519         (non_add_cint_operand): Delete.
2520         (logical_operand): Delete.
2521         (non_logical_cint_operand): Delete.
2522         (mask_operand): Delete.
2523         (mask_operand_wrap): Delete.
2524         (mask64_operand): Delete.
2525         (mask64_2_operand): Delete.
2526         (and64_operand): Delete.
2527         (and64_2_operand): Delete.
2528         (and_operand): Delete.
2529         (reg_or_mem_operand): Delete.
2530         (lwa_operand): Delete.
2531         (symbol_ref_operand): Delete.
2532         (call_operand): Delete.
2533         (current_file_function_operand): Delete.
2534         (input_operand): Delete.
2535         (rs6000_nonimmediate_operand): Delete.
2536         (rs6000_tls_symbol_ref): Delete.
2537         (save_world_operation): Delete.
2538         (restore_world_operation): Delete.
2539         (load_multiple_operation): Delete.
2540         (store_multiple_operation): Delete.
2541         (vrsave_operation): Delete.
2542         (mfcr_operation): Delete.
2543         (mtcrf_operation): Delete.
2544         (lmw_operation): Delete.
2545         (stmw_operation): Delete.
2546         (branch_comparison_operator): Delete.
2547         (branch_positive_comparison_operator): Delete.
2548         (scc_comparison_operator): Delete.
2549         (trap_comparison_operator): Delete.
2550         (boolean_operator): Delete.
2551         (boolean_or_operator): Delete.
2552         (min_max_operator): Delete.
2553         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
2554         (EASY_VECTOR_15): Moved to here.
2555         (EASY_VECTOR_15_ADD_SELF): Move to here.
2556         (PREDICATE_CODES): Delete.
2557         * config/rs6000/rs6000-protos.h: Delete predicate functions.
2558         Declare functions no longer static.
2559         * config/rs6000/predicates.md: New.
2560         * config/rs6000/rs6000.md: Include predicates.md
2561
2562 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2563
2564         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
2565         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
2566         REG_ALWAYS_RETURN.
2567         * cfgrtl.c (need_fake_edge_p): Likewise.
2568         * combine.c (distribute_notes): Likewise.
2569         * emit-rtl.c (try_split): Likewise.
2570         * recog.c (peephole2_opimize): Likewise.
2571         * reg-notes.def (ALWAYS_RETURN): Remove.
2572         * rtl.h (LCT_ALWAYS_RETURN): Remove.
2573         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
2574         * tree.h (ECF_ALWAYS_RETURN): Remove.
2575
2576 2005-02-28  Roger Sayle  <roger@eyesopen.com>
2577
2578         PR middle-end/19874
2579         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
2580         between different machine modes is never a "useless" conversion.
2581
2582 2005-02-28  Geert Bosch  <bosch@gnat.com>
2583
2584         PR ada/15977
2585         * doc/contrib.texi: List contributors for Ada front end
2586
2587 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2588
2589         * simplify-rtx.c (simplify_unary_operation_1,
2590         simplify_const_unary_operation): New, extracted from...
2591         (simplify_unary_operation): ... this one.
2592         (simplify_binary_operation_1,
2593         simplify_const_binary_operation): New, extracted from...
2594         (simplify_binary_operation): ... this one.
2595         * rtl.h (simplify_const_unary_operation,
2596         simplify_const_binary_operation): Add prototypes.
2597
2598 2005-02-28  Julian Brown  <julian@codesourcery.com>
2599
2600         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
2601         building libjava and caused PR regression/20228.
2602
2603 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
2604
2605         PR bootstrap/17383
2606         * Makefile.in (host_subdir): New.
2607         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
2608         * configure: Regenerate.
2609
2610 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
2611
2612         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
2613         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
2614         installation directory first.
2615
2616 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
2617
2618         PR target/19065.
2619         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
2620         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
2621         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
2622         * config/cris/cris.md: Tweak comments referring to Q.
2623         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
2624         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
2625         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
2626         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
2627         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
2628         Insert spaces in constraints to align alternatives vertically for
2629         readability.
2630         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
2631         operand 1: "M".
2632
2633 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2634
2635         PR rtl-optimization/17728
2636         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
2637         operand 0 from general_operand to move_dest_operand.
2638
2639 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2640
2641         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
2642         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
2643         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
2644         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
2645
2646 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2647
2648         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
2649         * configure: Regenerate.
2650         * libada-mk.in: Remove CC; rename
2651         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
2652
2653 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
2654
2655         PR tree-opt/20188
2656         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
2657         for the lhs, also walk over the tree.  Likewise for rhs.
2658
2659 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
2660
2661         * tree-ssa-dom.c (simple_iv_increment_p): New function.
2662         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
2663         Do not propagate value of iv before increment over the increment.
2664
2665 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
2666
2667         * c-parser.c: New file.
2668         * c-parse.in: Remove.
2669         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
2670         Remove.
2671         (c-parser.o): Add dependencies.
2672         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
2673         maintainer-clean, TAGS): Update.
2674         * c-config-lang.in (gtfiles): Update.
2675         * gengtype-lex.l: Don't handle "@@".
2676         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
2677         objc_build_synchronized, objc_begin_try_stmt,
2678         objc_begin_catch_clause, objc_finish_catch_clause,
2679         objc_build_finally_clause, objc_finish_try_stmt): New.
2680         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
2681         type_seen_p.
2682         (c_parse_init): Update comment.
2683         * c-decl.c (c_init_decl_processing): Update comment.
2684         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2685         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
2686         new c_declspecs members.
2687
2688 2005-02-25  Julian Brown  <julian@codesourcery.com>
2689
2690         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
2691         from being used for symbols with vague linkage when
2692         HAVE_GAS_COMDAT_GROUP is true.
2693
2694 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
2695
2696         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
2697
2698 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
2699
2700         PR target/19930
2701         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
2702         (LIBGCC2_HAS_DF_MODE): New.
2703         (LIBGCC2_HAS_XF_MODE): New.
2704         (LIBGCC2_HAS_TF_MODE): New.
2705         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2706         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2707         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2708         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2709         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
2710         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
2711         and add _fixtfdi, _fixunstfdi, _floatditf
2712         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
2713         L_fixunstfdi, L_floatditf.
2714         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
2715         (LIBGCC2_HAS_TF_MODE): Define.
2716
2717 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
2718
2719         PR tree-optimization/20204
2720         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
2721         REWRITE_THIS_STMT markers on PHI nodes.
2722         (rewrite_initialize_block): Likewise.
2723
2724 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
2725
2726         * version.c (version_string): Update to 4.1.
2727
2728 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
2729
2730         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
2731         Clarify that the alternative way doesn't work in GNU C++.
2732
2733 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
2734
2735         PR tree-optimization/19937
2736         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
2737         to the type of the induction variable.
2738
2739 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
2740
2741         PR rtl-optimization/20117
2742         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
2743         the block including noncopyable insn.
2744
2745 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2746
2747         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
2748         calls to find_reg_note.
2749
2750 2005-02-24  Richard Henderson  <rth@redhat.com>
2751
2752         PR tree-opt/20127
2753         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
2754         the type.
2755
2756 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
2757
2758         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
2759         vector types if to use base reg for misaligned non-word ld/std.
2760
2761 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
2762
2763         PR target/14619
2764         * config/cris/cris.c (cris_target_asm_function_prologue): Create
2765         dwarf2 label manually and put it after, not before the prologue.
2766
2767 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
2768
2769         PR target/19019
2770         * reload.c (operands_match_p): Only increment register number for
2771         SCALAR_INT_MODE_P modes in multiple hard registers.
2772
2773         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
2774         Fix formatting.
2775
2776 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2777
2778         * ChangeLog.5: Fix log message typo(s).
2779         * ChangeLog.7: Likewise.
2780         * ChangeLog.tree-ssa: Likewise.
2781         * cfgexpand.c: Fix comment typo(s).
2782         * conflict.c: Likewise.
2783         * defaults.h: Likewise.
2784         * dwarf2out.c: Likewise.
2785         * gcse.c: Likewise.
2786         * ggc-page.c: Likewise.
2787         * tree-eh.c: Likewise.
2788         * tree-ssa-dom.c: Likewise.
2789
2790 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
2791
2792         PR target/19019
2793         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
2794         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
2795         if SHARED is defined.
2796
2797         PR target/20196
2798         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
2799         allow splitting only if operands 0 and 3 don't overlap.
2800
2801 2005-02-24  Richard Henderson  <rth@redhat.com>
2802
2803         PR middle-end/19953
2804         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
2805         (fold_builtin_1): Call them.
2806         * fold-const.c (fold_complex_mult_parts): Split out from ...
2807         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
2808         (fold_complex_div_parts, fold_complex_div): New.
2809         (fold): Use them.
2810         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
2811
2812 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2813
2814         * tree-ssa-ccp.c (visit_assignment): Verify that result of
2815         VIEW_CONVERT_EXPR is_gimple_min_invariant.
2816
2817         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
2818         (print_node): Likewise.
2819         Print TYPE_SIZES_GIMPLIFIED.
2820
2821 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
2822
2823         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
2824         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
2825         operands as commutative in constraints.
2826
2827 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
2828
2829         * tree-into-ssa.c: Re-organize internal functions.
2830
2831 2005-02-24  Richard Henderson  <rth@redhat.com>
2832
2833         PR middle-end/18902
2834         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
2835         for c99.
2836         * common.opt (fcx-limited-range): New.
2837         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
2838         * toplev.c (flag_complex_method): Initialize to 1.
2839         (process_options): Set flag_complex_method to 0 if
2840         flag_cx_limited_range.
2841         * doc/invoke.texi (-fcx-limited-range): New.
2842
2843 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2844
2845         * cse.c (delete_trivially_dead_insns): Speed up by using
2846         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
2847         prev_real_insn.
2848
2849 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
2850
2851         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
2852         functions when -mid-shared-library is being used.
2853
2854 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
2855
2856         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
2857         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
2858         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
2859         * system.h: Poison LINK_LIBGCC_SPECIAL.
2860
2861 2005-02-23  James E Wilson  <wilson@specifixinc.com>
2862
2863         * gengtype.c (note_insn_name): Make 1 element larger.
2864
2865 2005-02-23  Roger Sayle  <roger@eyesopen.com>
2866
2867         PR target/20018
2868         PR rtl-optimization/20097
2869         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
2870         BImode SUBREGs of SImode registers which confuse the ia64 backend.
2871
2872 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
2873
2874         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
2875         * t-aix52 (SHLIB_INSTALL): Same.
2876
2877 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2878
2879         * genpreds.c: Update copyright.
2880
2881 2005-02-23  Michael Beach  <michaelb@ieee.org>
2882
2883         PR target/20159
2884         * config/sparc/t-elf (startup files): Assemble with CPP.
2885
2886 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
2887
2888         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
2889         (write_predicate_expr): Likewise.
2890
2891 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
2892
2893         PR tree-optimization/20100
2894         PR tree-optimization/20115
2895         * tree-optimize.c (init_tree_optimization_passes): Remove
2896         pass_maybe_create_global_var.
2897         * tree-pass.h (pass_maybe_create_global_var): Remove.
2898         * tree-ssa-alias.c (aliases_computed_p): Declare.
2899         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
2900         (count_calls_and_maybe_create_global_var): Remove.
2901         (pass_maybe_create_global_var): Remove.
2902         (init_alias_info): Do not declare aliases_computed_p.
2903         (maybe_create_global_var): If the function contains no
2904         call-clobbered variables and a mix of pure/const and regular
2905         function calls, create .GLOBAL_VAR.
2906         Mark all call-clobbered variables for renaming.
2907         (merge_pointed_to_info): Update comment.
2908         (add_pointed_to_var): Likewise.
2909         (is_escape_site): Likewise.
2910         Accept struct alias_info * instead of size_t *.
2911         Update all users.
2912         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
2913         as necessary.
2914         * tree-ssa-operands.c (get_call_expr_operands): If
2915         ALIASES_COMPUTED_P is false, do not add call-clobbering
2916         operands.
2917         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
2918         (delete_tree_ssa): Likewise.
2919
2920 2005-02-22  James E Wilson  <wilson@specifixinc.com>
2921
2922         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
2923         (do_compile): Do call it here.
2924
2925 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
2926
2927         PR rtl-optimization/20017.
2928         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
2929         rest_of_handle_cse2, rest_of_handle_gcse): Call
2930         delete_dead_jumptables immediately before calling cleanup_cfg.
2931
2932 2005-02-22  Devang Patel  <dpatel@apple.com>
2933
2934         PR 19952
2935         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
2936         all labels
2937
2938 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
2939
2940         * config/rs6000/aix.h (WINT_TYPE): Define.
2941
2942 2005-02-22  Stan Shebs  <shebs@apple.com>
2943
2944         * config/rs6000/rs6000.c (rs6000_override_options): Default to
2945         natural alignment for 64-bit Darwin.
2946         (rs6000_parse_alignment_option): Warn about uses of -malign-power
2947         on 64-bit Darwin.
2948         * doc/invoke.texi: Document this.
2949
2950 2005-02-22  DJ Delorie  <dj@redhat.com>
2951
2952         * c-common.c (c_common_type_for_mode): Pass the mode's precision
2953         to make_[un]signed_type, not the mode itself.
2954
2955 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
2956
2957         * cfg.c (cached_make_edge): Call make_edge if edge cache is
2958         not available.  Use tail calls wherever possible.
2959         (make_edge): Call unchecked_make_edge to create an edge.
2960
2961         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
2962         (coalesce_ssa_name): Don't check for
2963         SSANORM_USE_COALESCE_LIST.
2964         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
2965
2966 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
2967
2968         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
2969         (rewrite_into_ssa): ... here.
2970
2971 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
2972
2973         PR tree-optimization/19786
2974         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
2975         tag to another's may-alias bitmap when adding to the other's list.
2976
2977 2005-02-21  DJ Delorie  <dj@redhat.com>
2978
2979         * tree-ssa-loop-ivopts.c (computation_cost): Start register
2980         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
2981         registers in unsupported ways.
2982         * expmed.c (init_expmed): Likewise.
2983
2984 2005-02-21  Stan Cox  <scox@redhat.com>
2985
2986         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
2987
2988 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
2989
2990         * tree-cfg.c (fold_cond_expr_cond): New.
2991         (make_edges): Call fold_cond_expr_cond.
2992         (find_taken_edge): Accept nothing but INTEGER_CST.
2993         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
2994         and 1.
2995         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
2996
2997         * flow.c (delete_dead_jumptables): Speed up by scanning insns
2998         that do not belong to any basic block.
2999
3000 2005-02-21  Jeff Law  <law@redhat.com>
3001
3002         * cfganal.c (find_unreachable_blocks): Manually CSE load of
3003         e->dest.
3004
3005 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3006
3007         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
3008         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
3009         Adjust their definitions.
3010         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
3011         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
3012
3013         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
3014         genautomata.c, langhooks.c, langhooks.h, system.h,
3015         config/arm/lib1funcs.asm: Update copyright.
3016
3017 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3018
3019         * dbxout.c (dbxout_function_end): Emit Lscope label always.
3020
3021 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
3022
3023         PR bootstrap/13770
3024         * doc/install.texi: Document --with-gc.
3025
3026 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
3027
3028         * simplify-rtx.c (simplify_unary_operation): Add a missing
3029         "break" statement.
3030
3031 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3032
3033         PR tree-optimization/18663
3034         * tree-ssa-dom.c (extract_range_from_cond): Return 0
3035         if the type has variable bounds.
3036
3037 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3038
3039         * gcse.c: Remove an obsolete comment.
3040
3041         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
3042
3043 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
3044
3045         * doc/extend.texi (Function Attributes) <Attribute const>: The
3046         attribute "pure" is below this text, not above.
3047
3048 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3049
3050         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
3051         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
3052         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
3053
3054 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
3055
3056         PR 18785
3057         * langhooks.h (struct lang_hooks): Add to_target_charset.
3058         * langhooks.c (lhd_to_target_charset): New function.
3059         * langhooks-def.h: Declare lhd_to_target_charset.
3060         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
3061         (LANG_HOOKS_INITIALIZER): Update.
3062         * c-common.c (c_common_to_target_charset): New function.
3063         * c-common.h: Declare it.
3064         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
3065         c_common_to_target_charset.
3066
3067         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
3068         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
3069         Delete definitions.
3070         * system.h: Poison them.
3071         * doc/tm.texi: Don't discuss them.
3072         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
3073         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
3074         (pp_c_char): Do not attempt to generate letter escapes for
3075         newline, tab, etc.
3076         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
3077         * config/mips/mips.c (mips_output_ascii): Likewise.
3078
3079 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
3080
3081         PR tree-optimization/19951
3082         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
3083         is abnormal.
3084
3085 2005-02-19  Steven Bosscher  <stevenb@suse.de>
3086
3087         PR middle-end/19698
3088         * function.h (struct function): New field `max_loop_depth'.
3089         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
3090         (flow_loops_find): Reset the max loop depth count before finding loops.
3091         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
3092         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
3093         (calculate_global_regs_live): Make sure the loop will terminate
3094         when the initial sets are not empty.
3095
3096 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
3097
3098         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
3099         object inside.
3100         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
3101
3102 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
3103
3104         PR other/19525
3105         * doc/invoke.texi: Remove documentation of %M spec.
3106         * gcc.c: Likewise.
3107         (init_spec): Remove %M suffix from -lgcc_s.
3108         (do_spec_1): Remove 'M' case.
3109         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
3110         to put shared libraries in the multilib directory.  Remove the
3111         shlib_so_soname substitution variable.  Don't add a multilib encoding
3112         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
3113         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
3114         SHLIB_INSTALL as well as SHLIB_LINK.
3115         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
3116         (SHLIB_NAME): Delete.
3117         (SHLIB_DIR): New macro.
3118         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
3119         (SHLIB_INSTALL): Adjust accordingly.
3120         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
3121         * config/t-slibgcc-sld: Likewise.
3122         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
3123         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
3124         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
3125         in $(SHLIB_DIR).
3126         (SHLIBUNWIND_INSTALL): Adjust accordingly.
3127         * config/i386/t-nwld (SHLIB_SONAME): Delete.
3128         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
3129         Use @shlib_base_name@ instead of @shlib_so_name@.
3130         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
3131         and @shlib_base_name@.so in @multilib_dir@.
3132         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
3133         to the install path.
3134         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
3135         (SHLIB_LINK): Remove previous workaround.
3136         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
3137         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
3138         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
3139         the install path.
3140         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
3141         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
3142         (SHLIB_INSTALL): Adjust accordingly.
3143         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
3144         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
3145         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
3146         config/t-slibgcc-elf-ver.
3147
3148 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
3149             Jakub Jelinek  <jakub@redhat.com>
3150
3151         PR tree-optimization/19828
3152         * tree-ssa-loop-im.c: Add a TODO comment.
3153         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
3154         without side-effects.
3155
3156 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
3157
3158         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
3159         call fold_convert.
3160
3161 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
3162
3163         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
3164         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
3165         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
3166         functions.
3167         (ia64_reorg): Delete fixup_errata call.
3168         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
3169         (TARGET_SWITCHES): Delete -mb-step entry.
3170
3171 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
3172
3173         PR c/20043
3174         * c-typeck.c (composite_type): Handle quals in transparent unions.
3175         (type_lists_compatible_p): Likewise.
3176
3177 2005-02-18  Stan Shebs  <shebs@apple.com>
3178
3179         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
3180         expressions in the .literal8 section.
3181
3182 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
3183
3184         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
3185
3186 2005-02-18  Roger Sayle  <roger@eyesopen.com>
3187
3188         * fold-const.c (constant_boolean_node): Always create values of the
3189         specified type, don't bother calling truthvalue_conversion.
3190
3191 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
3192
3193         * except.c (output_function_exception_table): Call
3194         assemble_external_libcall (eh_personality_libfunc).
3195
3196 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
3197
3198         PR target/19886
3199         * config/ia64/ia64.h (struct machine_function): Add state_num.
3200         * config/ia64/ia64.c (process_epilogue,
3201         process_for_unwind_directive): Use new unwind state numbers each
3202         time rather than state 1.
3203
3204 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
3205
3206         PR target/20054
3207         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
3208         before the "*llgt_didi" pattern.
3209
3210 2005-02-18  Jason Merrill  <jason@redhat.com>
3211
3212         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
3213
3214 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
3215
3216         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
3217         (div0): Use it in place of ARM_FUNC_ALIAS.
3218         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
3219
3220 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
3221
3222         PR middle-end/20030
3223         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
3224         access, the lower bound of the array type if it exists.
3225
3226 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
3227
3228         PR c++/20008
3229         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
3230         cases that are out-of-range for the index type.
3231
3232 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
3233
3234         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
3235         (estimate_case_costs): Don't call convert.
3236         * expmed.c (expand_shift): Likewise.
3237         (make_tree): Call fold_convert instead of convert.
3238
3239 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
3240
3241         PR c++/19813
3242         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
3243         that ref to be marked MEM_READONLY_P doesn't have base that needs
3244         constructing.
3245
3246 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
3247
3248         * genautomata.c (output_get_cpu_unit_code_func,
3249         output_cpu_unit_reservation_p): Don't generate old-style function
3250         definitions.
3251
3252 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
3253
3254         PR c++/20023
3255         PR tree-optimization/20009
3256         * convert.c (convert_to_integer): Revert 2005-02-16 change.
3257
3258         PR tree-optimization/18947
3259         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
3260         inline, remove all nodes that are inlined into the extern inline
3261         being redefined.
3262
3263 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3264
3265         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
3266         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
3267         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
3268         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
3269         Update copyright.
3270
3271 2005-02-17  Roger Sayle  <roger@eyesopen.com>
3272
3273         PR tree-optimization/19917
3274         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
3275         to be potentially trapping.
3276
3277 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3278
3279         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
3280
3281 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
3282
3283         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
3284         tem becomes a local variable which is set to the value of the
3285         back end defined INITIAL_FRAME_ADDRESS macro.
3286         (expand_builtin_frame_address): Omit the base parameter to
3287         expand_builtin_return_addr.
3288         (expand_builtin_profile_func): Likewise.
3289         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
3290         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
3291         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
3292
3293 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
3294
3295         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
3296         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
3297         * config/frv/frv.c (frv_function_epilogue): Likewise.
3298
3299 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
3300
3301         * lambda-code (perfect_nestify): Remove mark/unmark
3302         for rewriting hack.
3303         * tree-loop-linear.c (linear_transform_loops): Add
3304         rewrite_into_ssa call so that ssa is correct for
3305         rewriting into loop closed.
3306
3307 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
3308
3309         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
3310         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
3311         BITMAP_FREE.
3312         * bt-load.c (btr_def_live_range, combine_btr_defs,
3313         migrate_btr_def, migrate_btr_defs): Likewise.
3314         * cfgcleanup.c (thread_jump): Likewise.
3315         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
3316         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
3317         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
3318         df_rd_local_compute, df_reg_info_compute): Likewise.
3319         * dominance.c (init_dom_info, free_dom_info): Likewise.
3320         * flow.c (init_propagate_block_info,
3321         free_propagate_block_info): Likewise.
3322         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
3323         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
3324         modify_reg_pav): Likewise.
3325         * loop-invariant.c (find_defs, find_invariant_insn,
3326         find_invariants, free_inv_motion_data): Likewise.
3327         * predict.c (tree_predict_by_opcode,
3328         estimate_bb_frequencies): Likewise.
3329         * stmt.c (expand_case): Likewise.
3330         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
3331         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3332         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
3333         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
3334         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
3335         rewrite_ssa_into_ssa): Likewise.
3336         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3337         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
3338         analyze_edges_for_bb, perform_edge_inserts): Likewise.
3339         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
3340         * tree-sra.c (tree_sra): Likewise.
3341         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
3342         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
3343         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
3344         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3345         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
3346         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
3347         Likewise.
3348         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
3349         calculate_live_on_entry, calculate_live_on_exit,
3350         build_tree_conflict_graph): Likewise.
3351         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
3352         record_important_candidates, set_use_iv_cost, find_depends,
3353         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
3354         tree_ssa_iv_optimize_finalize): Likewise.
3355         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
3356         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
3357         tree_duplicate_loop_to_header_edge): Likewise.
3358         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
3359         * tree-ssa.c (verify_flow_insensitive_alias_info,
3360         verify_name_tags, verify_ssa, init_tree_ssa,
3361         delete_tree_ssa): Likewise.
3362         * tree-ssanames.c (marked_ssa_names, init_ssanames,
3363         fini_ssanames): Likewise.
3364         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
3365
3366 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
3367
3368         * config/rs6000/t-rtems: Completely reworked.
3369
3370 2005-02-17  Ira Rosen  <irar@il.ibm.com>
3371
3372         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
3373
3374 2005-02-17  Ira Rosen  <irar@il.ibm.com>
3375
3376         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
3377         POINTER_TYPE_P when checking that type is a pointer.
3378         (vect_get_memtag): Remove.
3379         (vect_address_analysis): Use POINTER_TYPE_P. Call
3380         vect_object_analysis with dummy parameter for memtag.
3381         (vect_object_analysis): Extract memtag (functionality that
3382         used to be in vect_get_memtag and moved here). Fix printings.
3383         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
3384         with correct parameters. Remove call to vect_get_memtag.
3385
3386 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
3387
3388         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
3389         (tree-vectorizer.o): Added missing dependencies.
3390
3391         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
3392         decleration.
3393         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
3394         declaration in tree-vectorizer.c, now has an extern declaration in
3395         tree-vectorizer.h).
3396         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3397         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3398         get_vectype_for_scalar_type, vect_is_simple_use,
3399         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3400         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
3401         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
3402         vectorizable_store, vectorizable_operation, vectorizable_assignment,
3403         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
3404         find_loop_location): Likewise.
3405
3406         * tree-vectorizer.c (langhooks.h): #include removed.
3407         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
3408         moved to tree-vectorized.h.
3409         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3410         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3411         get_vectype_for_scalar_type, vect_is_simple_use,
3412         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3413         vect_supportable_dr_alignment, new_loop_vec_info,
3414         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
3415         vect_set_verbosity_level, find_loop_location): Likewise.
3416
3417         (vect_analyze_loop): Function externalized. Declaration moved to
3418         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
3419         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
3420         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
3421         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
3422         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
3423         vect_enhance_data_refs_alignment, vect_analyze_operations,
3424         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
3425         vect_stmt_relevant_p, vect_get_loop_niters,
3426         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
3427         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
3428         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
3429         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
3430         vect_get_memtag): Likewise.
3431
3432         (vectorizable_load): Function externalized. Declaration moved to
3433         tree-vectorized.h. Function definition moved to tree-vect-transform.c.