OSDN Git Service

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