OSDN Git Service

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